pty: Activate the signature wrapper of forkpty.
[gnulib.git] / ChangeLog
1 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
2
3         pty: Activate the signature wrapper of forkpty.
4         The intended preprocessor macro HAVE_FORKPTY is
5         never defined, yet `lib/forkpty.c' depends on it.
6
7         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
8         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
9         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
10
11 2013-11-18  Jim Meyering  <meyering@fb.com>
12         and Paul Eggert  <eggert@cs.ucla.edu>
13
14         quotearg: don't attempt to store 1 << 31 into an "int"
15         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
16         gcc's new -fsanitize=undefined and running its tests triggered some
17         new test failures due to undefined behavior, all with this diagnostic:
18           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
19             cannot be represented in type int
20         Rather than shifting "1" left to form a mask, shift the bits right and
21         simply use "1" as the mask.
22
23 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
24
25         error: depend on stdio
26         Problem reported by Nikos Mavrogiannopoulos in
27         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00084.html>
28         * modules/error (Depends-on): Add stdio.
29
30 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
31
32         * doc/relocatable-maint.texi (Supporting Relocation): Improve
33         wording.
34         Reported by Reuben Thomas <rrt@sc3d.org>.
35
36 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
37
38         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
39         New function and macro, to work around _DARWIN_C_SOURCE problem.
40         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
41
42 2013-11-11  Pádraig Brady <P@draigBrady.com>
43
44         base64: provide a fast path for encoding well sized buffers
45         Avoid conditionals in the base64 encoding loop,
46         which was seen to give 60% better throughput.
47         * lib/base64.c (base64_encode_fast): A new function to be called
48         when we don't want to NUL terminate, and we have enough space
49         in the output to encode the given input.
50         (base64_encode): Call the _fast() version when appropriate.
51         Also remove a redundant mask with 0x3F on the first encoded byte.
52
53 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
54
55         extern-inline: port better to OS X 10.9
56         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
57         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
58         OS X 10.9, except for g++ where the bug is still present.
59         See <http://trac.macports.org/ticket/41033>.
60
61 2013-11-08  Eric Blake  <eblake@redhat.com>
62
63         fpending: fix regression on DragonFly BSD
64         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
65         * lib/fpending.h (__fpending): Don't declare twice.
66         Reported by GW in
67         <https://lists.gnu.org/archive/html/bug-m4/2013-11/msg00000.html>
68
69 2013-11-05  Jim Meyering  <meyering@fb.com>
70
71         hash: relax license to LGPLv2+, for libguestfs
72         * modules/hash (License): Change from GPL to LGPLv2+.
73
74 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75
76         intprops: port to Oracle Studio c99
77         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
78         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
79
80 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
81
82         obstack: pacify HP C
83         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
84         warning "conversion from pointer to smaller integer" from HP
85         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
86         C89 or later nowadays, so cast to void instead of int.  Privately
87         reported by H.Merijn Brand.  Also, change header to match glibc's,
88         to make checking against glibc easier.
89
90 2013-10-29  Jim Meyering  <meyering@fb.com>
91
92         maint.mk: prefer gpgv2 over gpgv
93         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
94         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
95         Reported by Gary Vaughan.
96
97 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
98
99         isnan: port to VAX
100         Reported by John Klos for NetBSD-5/VAX in
101         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00133.html>.
102         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
103         (FUNC): Use it.
104
105 2013-10-28  Jim Meyering  <meyering@fb.com>
106
107         gnulib-tool: protect against CDPATH
108         * gnulib-tool: Many "cd" built-in functions print a directory name
109         to stdout when CDPATH is set, e.g.,
110           $ bash -c 'CDPATH=/; cd tmp'
111           /tmp
112         Unset it, when possible.  Prompted by a comment from Bruce Korb.
113
114         maint.mk: restore functionality removed by recent change...
115         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
116         the context of a shallow-cloned gnulib repository: "git describe"
117         would fail in such a directory.  However, that change made it so
118         the reported gnulib revision no longer includes the version number
119         or a commit count, even when run from a full clone.
120         * top/maint.mk (gnulib-version): Use the full "git describe"
121         output when possible, e.g., the form above, rather than the
122         abbreviated, no-tag, no-commit-count string, and fall back to
123         using a 10-byte hash, rather than the default minimal-length
124         hash prefix, since while the minimal-length one may be fine today,
125         it is likely not to be unique for very long.
126
127 2013-10-26  Jim Meyering  <meyering@fb.com>
128
129         maint.mk: fix "release" target to build _version
130         This fixes a bug in README-release whereby following the outlined
131         steps, one would publish a tarball whose programs would report
132         --version output not consistent with the package version number.
133         This bug caused grep-2.15 to produce a grep program whose
134         --version option made it print 2.14.56-1e3d rather than 2.15.
135         * top/maint.mk (release): Making this target build "_version"
136         ensures that the new version number is reflected in configure.
137
138 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
139
140         install-reloc: Support multi-binary installation.
141         * build-aux/install-reloc: Support installing multiple programs in
142         one invocation, as done by Automake starting with commit
143         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
144         Haible <bruno@clisp.org>, archived at
145         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
146         Reported by Sylvain <beuc@gnu.org>.
147
148 2013-10-21  Michael Haubenwallner <michael.haubenwallner@salomon.at>
149
150         selinux-h: Really build without selinux when library is missing.
151         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
152         continue without selinux, as already told in the warning message.
153
154 2013-10-21  Jim Meyering  <meyering@fb.com>
155
156         regex: also remove dependency on HAVE_WCSCOLL
157         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
158
159 2013-10-21  Reuben Thomas <rrt@sc3d.org>
160
161         xfreopen: Fix typo. s/frepoen/freopen/
162         * lib/xfreopen.c: Fix description.
163         * modules/xfreopen: Likewise.
164
165 2013-10-21  Jim Meyering  <meyering@fb.com>
166
167         regex: don't depend on wcscoll
168         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
169         It is no longer used.
170
171 2013-10-20  Jim Meyering  <meyering@fb.com>
172
173         error: add the printf attribute to a static function
174         * lib/error.c (error_tail): Add the printf attribute, to placate
175         gcc's -Werror=suggest-attribute=format option.
176
177 2013-09-30  Jim Meyering  <meyering@fb.com>
178
179         fpending, obstack, strerror-override: use pure+const function attrs
180         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
181         * lib/obstack.c (_obstack_allocated_p): Likewise.
182         * lib/obstack.h (_obstack_memory_used): Likewise.
183         (_obstack_memory_used): Likewise.
184         * lib/strerror-override.h (strerror_override): Declare with
185         the "const" attribute.
186
187 2013-10-18  Eric Blake  <eblake@redhat.com>
188
189         extern-inline: make safe for -Wundef usage
190         Reported by Vladimir 'phcoder' Serbinenko in
191         https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
192         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
193
194 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
195
196         mkfifo-tests, etc.: allow HP-UX 11.11 bug
197         Problem reported by Daniel Richard G. in
198         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
199         * doc/posix-functions/mkfifo.texi (mkfifo):
200         * doc/posix-functions/mkfifoat.texi (mkfifoat):
201         * doc/posix-functions/mknod.texi (mknod):
202         * doc/posix-functions/mknodat.texi (mknodat):
203         Document the HP-UX 11.11 bug.
204         * tests/test-mkfifo.h (test_mkfifo):
205         Allow the HP-UX 11.11 bug.
206
207 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
208
209         acl: allow cross-compilation to Gentoo
210         Problem reported by Gabriel Marcano in
211         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
212         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
213         test only whether it links.
214
215 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
216
217         mgetgroups: remove dependency on realloc-gnu
218         The dependency violates the comment in realloc-gnu, which
219         says that tests can't depend on realloc-gnu; some tests depend
220         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
221         Problem reported by Daniel Richard G. in
222         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
223         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
224         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
225         not realloc-gnu.
226
227 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
228
229         regex-tests: port to HP-UX 11.11
230         Problem reported by Daniel Richard G. in
231         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
232         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
233
234 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
235
236         verify: document some 'assume' pitfalls
237         * doc/verify.texi (Compile-time Assertions):
238         Mention that 'assume (E)' can sometimes slow things down.
239         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
240
241 2013-10-10  Eric Blake  <eblake@redhat.com>
242
243         strtoumax: fix typo in previous commit.
244         * modules/strtoumax (Depends-on): Fix typo.
245         * modules/strtoimax (Depends-on): Likewise.
246
247 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
248
249         strtoumax: port to Solaris 8
250         This problem was introduced in the recent HP-UX patch.
251         Reported by Tom G. Christensen in
252         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
253         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
254         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
255
256 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
257
258         strtoimax, strtoumax: port to HP-UX 11.11
259         Problem reported by Daniel Richard G. in
260         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
261         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
262         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
263         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
264         REPLACE_STRTOUMAX.
265         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
266         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
267         Replace the function if defined as a macro but not as a function.
268         * modules/inttypes-incomplete (inttypes.h): Substitute
269         REPLACE_STRTOUMAX.
270         * modules/strtoumax (configure.ac): Replace strtoumax if
271         REPLACE_STRTOUMAX.
272
273 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
274
275         strtoimax: port to HP-UX 11.11
276         Problem reported by Daniel Richard G.
277         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
278         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
279         they might clash with inttypes.h.
280
281 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
282
283         New module 'count-trailing-zeros'.
284         * MODULES.html.sh: Mention it.
285         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
286         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
287         * modules/count-trailing-zeros-tests:
288         * tests/test-count-trailing-zeros.c:
289         New files.
290
291         count-leading-zeros: port to MSC; support types wider than 64 bits
292         The ideas behind the MSC port are stolen from Emacs.
293         * lib/count-leading-zeros.h:
294         Don't include verify.h: it's no longer needed, as types wider than
295         64 bits are now supported.
296         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
297         performance with MSC.  All uses changed.  Do not assume that TYPE
298         has at most 64 bits.
299         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
300         All uses changed.  Fold the subtraction from 31 into the table.
301
302         count-one-bits: port to MSC; support types wider than 64 bits
303         The ideas behind the MSC port are stolen from Emacs.
304         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
305         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
306         Don't include verify.h: it's no longer needed, as types wider than
307         64 bits are now supported.
308         (COUNT_ONE_BITS_GENERIC): New macro.
309         (popcount_supported) [_MSC_VER]: New inline function.
310         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
311         performance with MSC.  All uses changed.  Do not assume that TYPE
312         has at most 64 bits.
313         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
314
315 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
316
317         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
318         * lib/mountlist.c (read_file_system_list): fix leak of directory
319         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
320
321 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
322
323         tests: improve diagnostic when an assertion fails
324         * tests/macros.h (ASSERT): Report the assertion that failed.
325
326 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
327
328         verify: new macro 'assume'
329         This is taken from Emacs, and should be generally useful.
330         * doc/verify.texi (assume): Document it.
331         * lib/verify.h (assume): New macro.
332         (__has_builtin): Expand to 0 if not defined.
333
334 2013-09-26  Eric Blake  <eblake@redhat.com>
335
336         dup2, dup3: work around another cygwin crasher
337         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
338         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
339         * tests/test-dup2.c (main): Likewise.
340         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
341         * lib/dup3.c (dup3): Likewise.
342         * doc/posix-functions/dup2.texi (dup2): Document it.
343         * doc/glibc-functions/dup3.texi (dup3): Likewise.
344
345         getdtablesize: work around cygwin issue
346         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
347         * modules/getdtablesize (configure.ac): Build replacement.
348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
349         * modules/unistd (Makefile.am): Expose the witness.
350         * lib/unistd.in.h (getdtablesize): Declare replacement.
351         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
352         * tests/test-getdtablesize.c (main): Test it.
353         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
354
355 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
356
357         pmccabe2html: escaping of special characters
358         Escape all '<', '>', and '&' in HTML output.
359         * build-aux/pmccabe2html (html_fnc): Call gsub()
360         instead of sub() to capture all '<', '>', and '&'.
361         Neither of '<' and '>' is special in a regexp,
362         so first arguments to gsub() are corrected. Also,
363         in replacement strings, ampersand must be escaped.
364         Finally, '&' must be handled first, then '<' and '>'.
365
366 2013-09-24  Eric Blake  <eblake@redhat.com>
367
368         manywarnings: enable nicer gcc warning messages
369         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
370         some -f options for optimal warnings.
371
372 2013-09-21  Jim Meyering  <meyering@fb.com>
373
374         timespec: use the new TIMESPEC_RESOLUTION in a few more places
375         * lib/timespec-add.c (timespec_add): Also replace 999999999
376         with TIMESPEC_RESOLUTION - 1.
377         * lib/timespec-sub.c (timespec_sub): Likewise.
378
379 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
380
381         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
382         Problem reported by Dagobert Michelsen via Eric Blake in
383         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
384         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
385         not AC_COMPILE_IFELSE.
386
387 2013-09-23  Eric Blake  <eblake@redhat.com>
388
389         configmake: support new --runstatedir option
390         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
391         even if autoconf was too old to provide the command line option.
392         * modules/configmake (Makefile.am): Propagate it to .h file.
393
394 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
395
396         ctype, string: depend on extern-inline
397         This is needed to complete the recent OS X fixes.
398         Also, fix related documentation as suggested by Eric Blake.
399         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
400         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
401         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
402         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
403         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
404         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
405         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
406         * doc/posix-functions/toupper.texi:
407         List the 'ctype' gnulib module.
408         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
409         * doc/posix-functions/strncpy.texi:
410         List the 'string' gnulib module.
411         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
412         Add string.
413         * modules/ctype, modules/string (Depends-on): Add extern-inline.
414
415 2013-09-19  Pádraig Brady  <P@draigBrady.com>
416
417         userspec: support optional parameters to parse_user_spec()
418         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
419         then avoid group processing and treat the full spec as a user.
420         (parse_with_separator): Allow the USERNAME and GROUPNAME to
421         be optional params (NULL), in which case they're ignored.
422
423 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
424
425         timespec: new function make_timespec, and new constants
426         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
427         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
428         (make_timespec): New function.
429         * lib/dtotimespec.c (dtotimespec):
430         * lib/timespec-add.c (timespec_add):
431         * lib/timespec-sub.c (timespec_sub):
432         * lib/utimens.c (validate_timespec):
433         * lib/utimensat.c (rpl_utimensat):
434         Use these new constants and functions.
435
436         stdio: OS X port of putc_unlocked + extern inline
437         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
438         * doc/posix-functions/putc_unlocked.texi:
439         * doc/posix-functions/putchar_unlocked.texi:
440         Document this portability problem.
441
442         signal: OS X port of sigaddset etc. + extern inline
443         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
444         (sigismember): #undef on problematic Apple platforms.
445         * doc/posix-functions/sigaddset.texi:
446         * doc/posix-functions/sigdelset.texi:
447         * doc/posix-functions/sigemptyset.texi:
448         * doc/posix-functions/sigfillset.texi:
449         * doc/posix-functions/sigismember.texi:
450         Document this portability problem.
451
452         extern-inline: do not always suppress extern inline on OS X
453         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
454         extern inline on Apple only if the particular compile-time
455         configuration is known to have the problem.
456         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
457         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
458         other Gnulib modules.
459
460         extern-inline: document fixes for ctype and wctype macros
461         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
462         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
463         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
464         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
465         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
466         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
467         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
468         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
469         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
470         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
471         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
472         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
473         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
474         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
475         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
476         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
477         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
478         * doc/posix-functions/strncpy.texi:
479         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
480         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
481         Document that Gnulib fixes portability problems with these
482         functions on OS X 10.8 and earlier when called from plain inline
483         or extern inline functions.
484
485 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
486
487         fflush, freadahead, fseeko: Fix for Android
488         Suggested by Bruno Haible in:
489         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
490         * lib/stdio-impl.h: Use local __sfileext definition.
491
492 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
493
494         pmccabe2html: Portability to other awk versions.
495         The functions systime() and strftime() are available
496         in Gawk only.  Properly close two HTML-tags 'style'
497         and 'span'.
498         * build-aux/pmccabe2html (BEGIN): Store timing
499         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
500         systime() in HTML_COMMENT.
501         (html_header): Correctly close tag 'style'.
502         (END): Replace strftime() by CHRONOS_TIME.  Close
503         tag 'span' correctly, not as 'div'.
504
505 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
506
507         getgroups: statement without effect
508         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
509         Change equality conditional to expected assignment.
510
511 2013-09-09  Eric Blake  <eblake@redhat.com>
512
513         glob: fix compilation
514         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
515
516 2013-09-07  Eric Blake  <eblake@redhat.com>
517
518         glob: fix build for platforms without __THROW
519         * lib/glob.in.h (__THROW): Add definition again.
520
521 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
522
523         regex-quote: fix buffer access out of bounds
524         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
525         * lib/regex-quote.c (regex_quote_spec_pcre):
526         Fix typo that resulted in an out-of-bounds read.
527
528 2013-09-04  Eric Blake  <eblake@redhat.com>
529
530         glob: avoid -Wattribute warnings on glibc
531         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
532         __THROWNL, not __THROW, on static functions.
533         * lib/glob.in.h (__THROW): Adjust...
534         (__THROWNL): ...accordingly.
535
536 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
537
538         headers: check that _GL_INLINE_HEADER_BEGIN is defined
539         Suggested by Bruce Korb in:
540         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
541         * doc/extern-inline.texi (extern inline):
542         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
543         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
544         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
545         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
546         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
547         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
548         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
549         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
550         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
551         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
552         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
553         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
554         * lib/xtime.h:
555         Check that _GL_INLINE_HEADER_BEGIN is defined.
556
557 2013-08-29  Pádraig Brady  <P@draigBrady.com>
558
559         bootstrap: remove the --version requirement from ancillary tools
560         * build-aux/bootstrap (check_exists): A new refactored function to
561         determine if a command exists.
562         (find_tool): Use the new function which does not require the
563         --version option to be supported.
564         (check_versions): Use the new function.
565
566 2013-08-26  Simon Josefsson  <simon@josefsson.org>
567
568         gc: support HMAC-SHA256 and HMAC-SHA512.
569         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
570         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
571         functions.
572         (gc_hmac_md5): Use symbolic constant.
573         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
574         (gc_hmac_sha256, gc_hmac_sha512): New functions.
575         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
576         * m4/sha256.m4: Protect against empty expansion.
577         * m4/sha512.m4: Likewise.
578         * lib/hmac-sha256.c: New file.
579         * lib/hmac-sha512.c: Likewise.
580         * m4/gc-hmac-sha256.m4: Likewise.
581         * m4/gc-hmac-sha512.m4: Likewise.
582         * m4/gc-sha256.m4: Likewise.
583         * m4/gc-sha512.m4: Likewise.
584         * modules/crypto/gc-hmac-sha256: Likewise.
585         * modules/crypto/gc-hmac-sha256-tests: Likewise.
586         * modules/crypto/gc-hmac-sha512: Likewise.
587         * modules/crypto/gc-hmac-sha512-tests: Likewise.
588         * modules/crypto/hmac-sha256: Likewise.
589         * modules/crypto/hmac-sha256-tests: Likewise.
590         * modules/crypto/hmac-sha512: Likewise.
591         * modules/crypto/hmac-sha512-tests: Likewise.
592         * tests/test-gc-hmac-sha256.c: Likewise.
593         * tests/test-gc-hmac-sha512.c: Likewise
594         * tests/test-hmac-sha256.c: Likewise.
595         * tests/test-hmac-sha512.c: Likewise
596
597 2013-08-24  Daiki Ueno  <ueno@gnu.org>
598
599         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
600         of AC_CHECK_DECLS.
601
602 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
603
604         selinux-at: omit unnecessary include
605         * lib/selinux-at.c: Don't include dosname.h; not needed, since
606         this source file doesn't use its macros, and subsidiary files that
607         use the macros already include it.
608
609 2013-08-21  Eric Blake  <eblake@redhat.com>
610
611         d-ino: avoid false negative on symlink
612         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
613         Reported by Stephane Chazelas.
614
615 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
616
617         bootstrap: port to OpenBSD sed
618         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
619         does not interpret `-' as a file argument to mean stdin.
620
621 2013-08-15  Eric Blake  <eblake@redhat.com>
622
623         warnings: minor optimization
624         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
625
626         warnings: check -Wfoo rather than -Wno-foo
627         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
628         -Wno-, test if the compiler recognizes the positive form instead.
629
630 2013-08-15  Karl Berry  <karl@gnu.org>
631
632         * config/srclist-update: add option "doclicense" to placate
633         pulling *.texi files from Emacs.  Write terse usage
634         documentation at the top.
635
636 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
637
638         xvasprintf-tests: port to GCC with hardening flags
639         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
640         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
641         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
642
643 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
644
645         fpending: port to recent Cygwin change to stdio_ext.h
646         Reported by LRN in
647         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
648         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
649         just declare __fpending unless it's a macro.
650         A duplicate decl shouldn't hurt.
651         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
652         call compiles and links, instead of separately checking for
653         decl and lib function.
654         * modules/fpending (configure-ac):
655         Adjust to fpending.m4's renaming of shell variable.
656
657 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
658
659         sys_time: port to OpenBSD
660         * lib/sys_time.in.h: Simply delegate to the system's header
661         in the BSDish cases as well.  Problem reported by Mike Miller in
662         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
663         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
664         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
665         wider than time_t.
666
667 2013-08-09  Pádraig Brady <P@draigBrady.com>
668
669         bootstrap: support checksum utils having -c but not --status
670         * build-aux/bootstrap: Only look for sha1sum if updating po files.
671         Add sha1 to the list of supported checksum utils since it's now
672         supported through adjustments below.
673         (update_po_files): Remove the use of --status
674         in a way that will suppress all error messages, but since this is
675         only used to minimize updates, it shouldn't cause an issue.
676         Exit early if there is a problem updating the po file checksums.
677         (find_tool): Remove the check for --version support as this
678         is optional as per commit 86186b17.  Don't even check for the
679         presence of the command as if that is needed, it's supported
680         through configuring prerequisites in bootstrap.conf.
681         Prompt that when a tool isn't found, one can define an environment
682         variable to add to the hardcoded search list.
683
684 2013-08-05  Jim Meyering  <meyering@fb.com>
685
686         regex: port to non-glibc/lock-using systems
687         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
688         system with GNULIB_LOCK would fail due to absence of the
689         included "glthread/lock.h".  This would affect any package
690         for which the "lock" module is used only by the regex module,
691         and not explicitly used.
692         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
693         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
694         Add a dependency on the "lock" module.
695
696 2013-07-20  Daiki Ueno  <ueno@gnu.org>
697
698         localecharset: make locale_charset thread-safe on Mac OS X
699         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
700         instead of MB_CUR_MAX.
701
702 2013-07-20  Daiki Ueno  <ueno@gnu.org>
703
704         gettext: update to version 0.18.3
705         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
706         require AC_PROG_SED to allow user to specify custom sed command when
707         generating en@quot PO file.
708
709 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
710
711         bootstrap: use correct source when copying build-aux files
712         * build-aux/bootstrap (gnulib_extra_files): This variable is
713         relative to upstream gnulib layout, not downstream.
714
715 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
716
717         tmpdir: fix bug in VMS port
718         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
719         See Steven M. Schweda in
720         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
721
722 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
723
724         tmpdir: port to VMS, to // != /, and to long dirs
725         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
726         __secure_getenv, so that we're more like the glibc version.
727         All uses changed.
728         (path_search): Don't put slash after directory if __VMS.
729         Problem reported by Steven M. Schweda in
730         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
731         Simplify code to add slash; no need for a loop.
732         Do not remove trailing slash from "//".
733         Do not assume dlen <= INT_MAX.
734
735 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
736
737         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
738         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
739         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
740         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
741
742         accept4, dup3, pipe2: port to Cygwin
743         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
744         * lib/accept4.c (accept4) [O_BINARY]:
745         * lib/dup3.c (dup3) [O_BINARY]:
746         * lib/pipe2.c (pipe2) [O_BINARY]:
747         Use set_binary_mode, not setmode.
748         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
749         * modules/binary-io (Depends-on): Remove module indicator.
750         These last two bits undo the previous change to pipe2 and binary-io.
751
752 2013-07-09  Pádraig Brady  <P@draigBrady.com>
753
754         mountlist: add support for deallocating returned list entries
755         * lib/mountlist.c (free_mount_entry): A new exported function
756         to deallocate a mount list entry.
757         (read_file_system_list): Refactor to use the new deallocation function.
758         Suggested by Anton Ovchinnikov.
759
760 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
761
762         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
763         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
764         * lib/stdalign.in.h (_Alignas, _Alignof):
765         Port to FreeBSD 9.1, and to C11 and C++11.
766         (_Alignas): Also support ICC.
767         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
768         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
769
770 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
771
772         fnmatch: don't goto over declaration
773         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
774         undefined behavior for goto over a declaration.
775         Problem reported by Charlie Brown in
776         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
777
778         pipe2: decouple from binary-io a bit
779         This is for Emacs, which needs pipe2 but not binary-io.
780         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
781         * modules/binary-io (Depends-on): Add module indicator.
782
783 2013-07-03  Eric Blake  <eblake@redhat.com>
784
785         mgetgroups: relax license to LGPLv2+
786         * modules/getugroups (License): Change from GPLv3+.
787         * modules/mgetgroups (License): Likewise.
788         * modules/getgroups (License): Change from LGPLv3+.
789
790         xalloc-oversized: relax license to LGPLv2+
791         * modules/xalloc-oversized (License): Change from GPLv3+.
792
793         nproc: relax license to LGPLv2+
794         * modules/nproc (License): Change from LGPLv3+.
795
796         bootstrap: honor --no-git
797         * build-aux/bootstrap: Don't even try to use git when user is
798         pointing to a static checkout.
799
800 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
801
802         ignore-value: port to gcc -pedantic
803         * lib/ignore-value.h (ignore_value):
804         Port to gcc -pedantic, by using __extension__.
805         Reindent as per usual gnulib style nowadays.
806         Simplify GCC version check.
807
808 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
809
810         extern-inline: port to gcc -std=c89
811         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
812         Do not use __gnu_inline__ if pedantic and pre-C99.
813
814 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
815
816         doc: document extern-inline
817         * doc/extern-inline.texi: New file.
818         * doc/gnulib.texi (alloca-opt): Include it.
819         * m4/extern-inline.m4: Move some comments to documentation,
820         and others closer to what they describe.
821
822         doc: chatter less
823         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
824         (updated-stamp): Use it.  This causes 'make' to output just
825         one file name rather than zillions.
826
827         fflush, fseeko: port to musl cross-compiles
828         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
829         on some implementation that (1) is not known to be buggy,
830         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
831         cross-compiled to so we can't easily check for lack of
832         conformance.  This is for cross-compiling to musl.
833         Reported by Rich Felker in
834         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
835         * m4/fclose.m4 (gl_FUNC_FCLOSE):
836         * m4/fflush.m4 (gl_FUNC_FFLUSH):
837         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
838         Adjust to above change.
839         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
840         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
841         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
842         known not to work, or unknown.
843
844 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
845
846         msvc-inval: port to mingw-w64
847         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
848         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
849         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
850
851 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
852
853         getcwd-lgpl: port to Tru64
854         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
855         Problem reported by Steven M. Schweda in
856         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
857
858         tests: port large-fd POSIX spawn tests to OS X
859         Problem reported by Daiki Ueno in
860         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
861         * tests/test-posix_spawn_file_actions_addclose.c:
862         * tests/test-posix_spawn_file_actions_adddup2.c:
863         * tests/test-posix_spawn_file_actions_addopen.c:
864         Include <limits.h>, for OPEN_MAX, if available.
865         (big_fd): New static function.
866         (main): Use it.
867
868 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
869
870         tests/nap.h: use an adaptive delay to avoid ctime update issues
871         The recent change in nap.h (5191133e) decreased the probability of lost
872         races to about a third, however such problems could still be observed
873         in virtual machines and openSUSE's OBS.
874         Before, nap() detected the needed time once empirically and then used
875         that delay (together with a small correction multiplier) in further
876         calls.  This problem has been reported and discussed several times,
877         including guesses about possible kernel issues:
878         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
879         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
880         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
881         http://bugs.gnu.org/12820
882         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
883         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
884         Now, nap() avoids the race alltogether by verifying on a reference
885         file whether a timestamp difference has happened.
886         * tests/nap.h (nap_fd): Define file descriptor variable for the
887         witness file.
888         (nap_works): Change return value to bool.  Change passing
889         the old file's status by value instead of by reference as this function
890         does no longer update that timestamp; rename the function argument from
891         st to old_st.  Remove the local variables cdiff and mdiff because that
892         function now returns true/false instead of the precise delay.
893         (guess_delay): Remove function.
894         (clear_tmp_file): Add new function to close and unlink the witness file.
895         (nap): Instead of re-using the delay which has been calculated during
896         the first call, avoid the race by actually verifying that a timestamp
897         difference can be observed on the current file system.  Use an adaptive
898         approach for the delay to minimize execution time.  Assert that the
899         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
900         = 2^31 - 1 = 2.1s.
901         Use atexit to call clear_tmp_file when the process terminates.
902
903 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
904
905         sig2str: port to C++
906         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
907         Reported by Daniel J Sebald in
908         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
909
910 2013-05-30  Eric Blake  <eblake@redhat.com>
911
912         docs: mention cygwin shortcoming in <sys/un.h>
913         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
914
915         vasnprintf: silence mingw compiler warning
916         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
917
918 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
919
920         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
921         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
922         This fixes a porting bug I recently reintroduced in regex, and
923         some other instances that I discovered while testing the fix.
924         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
925         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
926         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
927         with an empty argument if this is a pedantic pre-C99 GCC.
928         * lib/verify.h: Do not use _Static_assert if this is a pedantic
929         pre-C11 GCC.
930
931         regex: adapt to locking regime instead of depending on pthread
932         Instead of depending on pthread, adapt to whatever thread
933         modules are in use.  Problem reported by Ludovic Courtès in
934         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
935         and by Mats Erik Andersson in
936         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
937         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
938         Support either the 'lock' module, or the 'pthread' module, or
939         no module.
940         (lock_lock, lock_unlock): New macros.
941         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
942         * modules/lock, modules/pthread (configure.ac): Add module indicator.
943         * modules/regex (Depends-on): Remove pthread.
944
945 2013-05-22  Eric Blake  <eblake@redhat.com>
946
947         getgroups: document portability issues
948         * doc/glibc-functions/initgroups.texi (initgroups): Mention
949         multithread safety.
950         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
951         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
952         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
953         getugroups.
954         * doc/posix-functions/getgroups.texi (getgroups): Mention
955         multithread safety and mgetgroups.
956
957 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
958
959         test-lchown, test-chown: also skip test if chown fails with EPERM
960         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
961         skip this test, to handle FAT file systems.
962         * tests/test-chown.h (test_chown): Likewise.
963
964 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
965
966         regex: fix dfa race in multithreaded uses
967         Problem reported by Ludovic Courtès in
968         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
969         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
970         New macros.  All uses of __libc_lock_define, __libc_lock_init
971         changed to use the first two of these.
972         (__libc_lock_lock, __libc_lock_unlock): New macros, for
973         non-glibc platforms.
974         (struct re_dfa_t): Define the lock unconditionally.
975         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
976         '#ifdef _LIBC"s.
977         * modules/regex (Depends-on): Add pthread, if we use the
978         included regex.
979
980         * lib/regcomp.c: Do actions that are not needed for glibc,
981         but may be needed elsewhere.
982         (regfree, re_compile_internal): Destroy the lock.
983         (re_compile_internal): Check for lock-initialization failure.
984
985         malloca: port to compilers that reject size-zero arrays
986         This fixes a bug introduced in my previous patch.
987         * lib/malloca.c (struct preliminary_header): Use an int
988         rather than a character array of size int; that's simpler.
989         (struct header): Remove, replacing with ...
990         (union header): New type.  This avoids the need for declaring a
991         character array of size zero, which is not allowed on some platforms.
992         All uses changed.
993
994 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
995
996         parse-datetime, tests: don't use "string" + int
997         Recent versions of 'clang' complain about C source code that
998         uses expressions of the form '"string literal" + integer',
999         I guess on the theory that it's confusing for readers who are
1000         used to C++.  On those grounds I suppose it's OK to make this
1001         minor style change.
1002         * lib/parse-datetime.y (parse_datetime):
1003         * tests/test-fchdir.c (main):
1004         * tests/test-snprintf-posix.h (test_function):
1005         * tests/test-snprintf.c (main):
1006         * tests/test-vasnprintf-posix.c (test_function):
1007         * tests/test-vasnprintf.c (test_function):
1008         * tests/test-vsnprintf.c (main):
1009         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
1010         Rewrite '"str" + E' to '&"str"[E]'.
1011
1012 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1013
1014         argmatch: port to C++
1015         * lib/argmatch.h [__cplusplus]: Add extern "C".
1016
1017         argp: typo fix
1018         * lib/argp-help.c: Typo in comment.
1019
1020 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
1021
1022         manywarnings: update for GCC 4.8.0
1023         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
1024         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
1025         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
1026         -Wmissing-noreturn, as they are duplicates of other warnings.
1027         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
1028         was documented to be flaky in earlier versions of GCC.
1029
1030         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
1031         * tests/test-spawn.c (main):
1032         * tests/test-sys_socket.c (main):
1033         * tests/test-sys_wait.c (main):
1034         Don't have a switch value that isn't covered by a case.
1035
1036         getaddrinfo-tests: port --enable-gcc-warnings to clang
1037         * tests/test-getaddrinfo.c (simple):
1038         Avoid casts from looser to stricter-aligned pointers.
1039
1040         thread: port --enable-gcc-warnings to clang
1041         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
1042         Include <signal.h>, to pacify a warning about pthread_sigmask.
1043
1044         stdio: use __REDIRECT for fwrite, fwrite_unlocked
1045         * lib/stdio.in.h (fwrite):
1046         When working around bug 11959, use __REDIRECT rather than '#define
1047         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
1048         fix the -Wunused-value issue with clang, and it works with GCC too.
1049         Problem with targeting reported by Eric Blake in
1050         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
1051         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
1052         debugging the fwrite issue.
1053
1054         stdio: port --enable-gcc-warnings to clang
1055         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
1056         since the GCC workaround for fwrite does not pacify clang.
1057
1058         sig2str: port --enable-gcc-warnings to clang
1059         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
1060
1061         obstack: port --enable-gcc-warnings to clang
1062         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
1063         Avoid casts from looser to stricter-aligned pointers.
1064
1065         memchr2: port --enable-gcc-warnings to clang
1066         * lib/memchr2.c (memchr2):
1067         Avoid casts from looser to stricter-aligned pointers.
1068
1069         mbsstr: port --enable-gcc-warnings to clang
1070         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
1071         Avoid casts from looser to stricter-aligned pointers.
1072
1073         malloca: port --enable-gcc-warnings to clang
1074         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
1075         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
1076
1077         inttostr: port --enable-gcc-warnings to clang
1078         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
1079
1080         warnings: port to clang
1081         Problem reported by Daniel P. Berrange via Eric Blake in
1082         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
1083         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
1084         (gl_WARN_ADD): Use it.
1085
1086 2013-05-11  Jim Meyering  <meyering@fb.com>
1087
1088         quotearg: do not read beyond end of buffer
1089         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
1090         end of an ARG for which no length was specified.  With an N-byte
1091         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
1092         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
1093         via coreutils' misc/sort-debug-keys.sh test and detected by running
1094         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
1095         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
1096         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
1097         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
1098         characters correctly."
1099
1100 2013-05-11  Daiki Ueno  <ueno@gnu.org>
1101
1102         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
1103         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
1104         compilation target is Mac OS X 10.6.
1105         Problem reported by parafin and Andoni Morales in
1106         <http://savannah.gnu.org/bugs/?37844> and
1107         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
1108
1109 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1110
1111         mkdir-p: remove assumptions about umask and mode
1112         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
1113         umask is 0, or that MODE is a subset of MODE_BITS.
1114
1115 2013-05-10  Eric Blake  <eblake@redhat.com>
1116
1117         maint.mk: catch more abuse of HAVE_DECL in syntax-check
1118         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
1119
1120 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
1121
1122         deps: require Automake >= 1.9.6 in generated Makefile fragments
1123
1124         That is the same minimal version required in the DEPENDENCIES file.
1125         Moreover, the old code generated a requirement of Automake >= 1.5,
1126         and that is an insanely outdated version.
1127
1128         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
1129         * tests/havelib/rpathlx/Makefile.am: Likewise.
1130         * tests/havelib/rpathly/Makefile.am: Likewise.
1131         * tests/havelib/rpathlyx/Makefile.am: Likewise.
1132         * tests/havelib/rpathlz/Makefile.am: Likewise.
1133         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
1134         * tests/havelib/rpathx/Makefile.am: Likewise.
1135         * tests/havelib/rpathy/Makefile.am: Likewise.
1136         * tests/havelib/rpathz/Makefile.am: Likewise.
1137
1138 2013-05-08  Eric Blake  <eblake@redhat.com>
1139
1140         bootstrap: AC_INIT may have more than four parameters
1141         * build-aux/bootstrap (extract_package_name): Correctly extract
1142         non-empty tarname field.  Avoid range in regex.
1143         Based on a report by Sami Kerola <kerolasa@iki.fi>.
1144
1145 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1146
1147         qacl: port to MS-Windows port of GNU Emacs
1148         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
1149         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
1150         port of GNU Emacs.  Problem reported by Eli Zaretskii in
1151         <http://bugs.gnu.org/14295#14>.
1152
1153 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
1154
1155         acl: include quote.h
1156         * lib/copy-acl.c: Include quote.h.
1157         * lib/set-acl.c: Likewise.
1158
1159 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
1160
1161         fchownat, renameat, unlinkat: update statat dependencies
1162         These modules use statat and lstatat, not fstatat; so depend on
1163         the statat module, which was split out recently from fstatat.
1164         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
1165         * modules/renameat: Likewise.  Also delete fstat.
1166         URL: http://bugs.gentoo.org/468790
1167
1168 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
1169
1170         Assume gnulib is checked out from Git, not CVS
1171
1172         In fact, access to the gnulib repository through CVS has been
1173         disabled, or more precisely, got broken and was never restored; see:
1174         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
1175
1176         Note that support for CVS is not removed completely and unthinkingly
1177         by this change: only support for CVS checkouts of gnulib itself is
1178         removed.  For example, the 'bootstrap' script still cater to .cvsingore
1179         files and CVS directories, for the benefit of those poor gnulib clients
1180         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
1181
1182         * gnulib-tool: Simplify accordingly.
1183         * posix-modules: Likewise.
1184         * MODULES.html.sh: Likewise.
1185         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
1186         repository.
1187         * doc/gnulib-intro.texi: Likewise.
1188         * doc/gnulib-readme.texi: Likewise.
1189         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
1190         sample '.gitignore' file rather than a sample '.cvsignore'.
1191         * NEWS: Update.
1192         * m4/extensions.m4: While at it, remove a comment mistakenly referring
1193         to "CVS Autoconf" rather than "git Autoconf".
1194
1195 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
1196
1197         utimensat-tests, etc.: try to fix some races
1198         Problem reported by Bernhard Voelker in
1199         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
1200         I don't know whether this patch fixes that race condition, but it
1201         fixes *some* race conditions, so it should be a win.
1202         * modules/chown-tests (Depends-on):
1203         * modules/fchownat-tests (Depends-on):
1204         * modules/fdutimensat-tests (Depends-on):
1205         * modules/futimens-tests (Depends-on):
1206         * modules/lchown-tests (Depends-on):
1207         * modules/stat-time-tests (Depends-on):
1208         * modules/utimens-tests (Depends-on):
1209         * modules/utimensat-tests (Depends-on):
1210         Depend on nanosleep, not usleep.
1211         * modules/chown-tests (test_chown_LDADD):
1212         * modules/lchown-tests (test_lchown_LDADD):
1213         * modules/stat-time-tests (test_stat_time_LDADD):
1214         New macro.
1215         * modules/fchownat-tests (test_fchownat_LDADD):
1216         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
1217         * modules/futimens-tests (test_futimens_LDADD):
1218         * modules/utimens-tests (test_utimens_LDADD):
1219         * modules/utimensat-tests (test_utimensat_LDADD):
1220         Add $(LIB_NANOSLEEP).
1221         * modules/stat-time-tests (Files): Add tests/nap.h.
1222         * tests/nap.h: Include <limits.h>, for INT_MAX.
1223         (lt_mtime): Remove.
1224         (diff_timespec): New function.
1225         (get_stat): Rename from get_mtime.  All callers changed.
1226         (nap_works): Determine the needed delay by inspecting the
1227         file system's timestamp jumps; this should be more reliable.
1228         Look at both mtime and ctime, and take the maximum of the two jumps.
1229         (nap_works, guess_delay):
1230         Return a nanosecond cound, not a microsecond count.
1231         All callers changed.
1232         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
1233         failure.
1234         (nap): Multiply the guess by 1.125, to accommodate the case where
1235         the file system's clock is a bit slower than nanosleep's clock.
1236         * tests/test-stat-time.c (BASE): New macro.
1237         Include nap.h.
1238         (nap): Remove; nap.h now defines this.  This removes a duplicate
1239         implementation of 'nap'.
1240
1241         utimens, utimensat: work around Solaris UTIME_OMIT bug
1242         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
1243         Linux kernel 2.6.32 does.  Work around it in the same way.
1244         * doc/posix-functions/futimens.texi (futimens):
1245         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
1246         * lib/utimens.c (fdutimens, lutimens):
1247         * lib/utimensat.c (rpl_utimensat): Work around the bug.
1248
1249         gettext: now it's your responsibility to add -I$(top_builddir)/intl
1250         Formerly, it was your responsibility to do this for all Makefile.ams
1251         other than Gnulib's.  Now it's your responsibility to do it for
1252         Gnulib's Makefile.am, too.
1253         * NEWS: Document this.
1254         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
1255
1256         acl: include errno.h to get errno
1257         Reported by Daiki Ueno in
1258         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
1259         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
1260
1261 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1262
1263         tests: don't assume getdtablesize () <= 10000000
1264         * modules/cloexec-tests:
1265         * modules/dup2-tests:
1266         * modules/dup3-tests:
1267         * modules/nonblocking-tests:
1268         * modules/posix_spawn_file_actions_addclose-tests:
1269         * modules/posix_spawn_file_actions_adddup2-tests:
1270         * modules/posix_spawn_file_actions_addopen-tests:
1271         * modules/unistd-safer-tests:
1272         Depend on the getdtablesize module.
1273         * tests/test-cloexec.c:
1274         * tests/test-dup-safer.c:
1275         * tests/test-dup2.c:
1276         * tests/test-dup3.c:
1277         * tests/test-fcntl.c:
1278         * tests/test-nonblocking.c:
1279         * tests/test-posix_spawn_file_actions_addclose.c:
1280         * tests/test-posix_spawn_file_actions_adddup2.c:
1281         * tests/test-posix_spawn_file_actions_addopen.c:
1282         Don't assume getdtablesize () <= 10000000.
1283
1284 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
1285
1286         extern-inline: work around bug in Sun c99
1287         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1288         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
1289
1290 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
1291
1292         qacl: new module, broken out from the acl module
1293         This is for GNU Emacs, which wants the acl functions but does
1294         not want 'error' invoked when they fail.
1295         * lib/acl-internal.h: Do not include error.h, quote.h.
1296         (ENOSYS, ENOTSUP): Remove; no longer needed.
1297         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
1298         * lib/acl.h: Include <stdbool.h>.
1299         (acl_errno_valid): New function.
1300         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
1301         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
1302         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
1303         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
1304         (ACL_INTERNAL_INLINE): Remove; no longer needed.
1305         * lib/file-has-acl.c (file_has_acl):
1306         * lib/qcopy-acl.c (qcopy_acl):
1307         * lib/qset-acl.c (qset_acl):
1308         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
1309         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
1310         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
1311         lib/file-has-acl.c, m4/acl.m4 to qacl module.
1312         Add lib/set-acl.c.
1313         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
1314         Add qacl.
1315         (configure.ac): Move gl_FUNC_ACL to qacl module.
1316         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
1317         Rename set-mode-acl.c to set-acl.c.
1318         * lib/acl-errno-valid.c: New file.
1319         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
1320         copy_acl function remains in copy-acl.c.
1321         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
1322         (_): Remove; not needed.
1323         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
1324         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
1325         * modules/qacl: New file, moved from the old modules/acl.
1326         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
1327         Remove set-mode-acl.c, copy-acl.c.
1328         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
1329
1330         alignof, intprops, malloca: port better to IBM's C compiler
1331         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
1332         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
1333         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
1334
1335 2013-04-25  Daiki Ueno  <ueno@gnu.org>
1336
1337         wctype-h: fix gettext link error on mingw
1338         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
1339         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
1340         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
1341         rpl_towupper and rpl_towupper.
1342
1343 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
1344
1345         regex-tests, regex: allow glibc re_search behavior
1346         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
1347         re_search input data to make the multi-character collating element
1348         in it clearly visible, and treat re_search return code 0 as valid.
1349         * m4/regex.m4 (gl_REGEX): Likewise.
1350
1351 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1352
1353         stdalign: doc fix
1354         * doc/posix-headers/stdalign.texi (stdalign.h):
1355         Gnulib doesn't support '_Alignof expr'.
1356
1357 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
1358
1359         stdalign: port to stricter ISO C11
1360         ISO C11 says that _Alignof's operand must be a parenthesized type.
1361         Problem reported by Eli Zaretskii in
1362         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
1363         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1364         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
1365
1366 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
1367
1368         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
1369         Problem reported by Marco Atzeri in
1370         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
1371         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
1372         Simply delegate to the system <sys/select.h> in this case too.
1373         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
1374         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
1375         be needed on Solaris either.
1376         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
1377         Simply delegate to the system <sys/time.h> in this case.
1378
1379 2013-03-19  Karl Berry  <karl@gnu.org>
1380
1381         * build-aux/gnupload: check for erroneous (with gnupload) use of
1382         ftp-upload.gnu.org, tweak help.
1383
1384 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1385
1386         copy-file, rpmatch: fix problems found by cppcheck
1387         Reported by Arno Onken in
1388         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
1389         * lib/rpmatch.c (try): Fix memory leak.
1390         * lib/copy-file.c: Include "ignore-value.h".
1391         (qcopy_file_preserving): Ignore chown value.
1392         * modules/copy-file (Depends-on): Add ignore-value.
1393
1394 2013-01-27  Jim Meyering  <jim@meyering.net>
1395
1396         prefix-gnulib-mk: give better diagnostics
1397         * build-aux/prefix-gnulib-mk: Don't just "die".
1398         Give better diagnostics upon failure.
1399
1400 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
1401
1402         putenv: port to Solaris 10
1403         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
1404         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
1405         is not what is wanted here.
1406         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
1407         declaration, not for its existence.
1408
1409 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
1410
1411         mktime: fix configure typo
1412         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
1413
1414 2013-03-12  Eric Blake  <eblake@redhat.com>
1415
1416         regex-tests: skip UTF-8 test on mingw
1417         * modules/regex-tests (Depends-on): Add localcharset.
1418         * tests/test-regex.c (main): Use it to skip test on mingw.
1419
1420 2013-03-11  Eric Blake  <eblake@redhat.com>
1421
1422         tests: make it easier to bypass alarm time in debugger
1423         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
1424         * tests/test-memmem.c (main): Likewise.
1425         * tests/test-passfd.c (main): Likewise.
1426         * tests/test-ptsname.c (main): Likewise.
1427         * tests/test-ptsname_r.c (main): Likewise.
1428         * tests/test-strcasestr.c (main): Likewise.
1429         * tests/test-strstr.c (main): Likewise.
1430
1431         regex: port to mingw's recent addition of undeclared alarm
1432         * doc/posix-functions/alarm.texi (alarm): Document that alarm
1433         exists but still doesn't work in newer mingw.
1434         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
1435         not existence.  Ensure SIGALRM is not trapped.
1436         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
1437         * m4/regex.m4 (gl_REGEX): Likewise.
1438         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
1439         * tests/test-regex.c (main): Use correct probe for alarm.
1440
1441         putenv: avoid compilation warning on mingw
1442         * lib/putenv.c (_unsetenv): Protect variable declaration.
1443         (putenv): Fix indentation.
1444
1445 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
1446
1447         unistd: don't prevent Tru64 Unix from using gnulib strtod.
1448         * lib/unistd.in.h: be careful not to include un-needed system
1449         stdlib.h from here, because that prevents gnulib stdlib.h from
1450         defining rpl_strtod correctly.
1451
1452 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
1453
1454         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
1455         changesets, but for the 'precision 0' test.
1456         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1457         round-to-even, since POSIX says rounding is implementation-defined
1458         and OS X 10.8.2 rounds 1.51 to 1 here.
1459
1460         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
1461         changeset.
1462         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1463         round-to-even, since POSIX says rounding is implementation-defined
1464         and OS X 10.8.2 rounds 1.5 to 1 here.
1465
1466 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1467
1468         vasnprintf-posix-tests: allow rounding 1.5 to 1
1469         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
1470         round-to-even, since POSIX says rounding is implementation-defined
1471         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
1472         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
1473
1474         bootstrap: port to FreeBSD
1475         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
1476         that treat '--' differently.  Reported by Mats Erik Andersson in
1477         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
1478
1479 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
1480
1481         regex: rename remaining __attribute calls to __attribute__.
1482         2012-02-25 changed definition of __attribute, but left some uses
1483         unchanged, preventing compilation of regex module on most non-gcc
1484         environments.
1485         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
1486         (lookup_collation_sequence_value, build_range_exp)
1487         (build_collating_symbol): Set attributes with newly renamed
1488         __attribute__ decorator.
1489         * lib/regex_internal.c (re_string_peek_byte_case)
1490         (re_node_set_compare, re_node_set_contains): Likewise.
1491         * lib/regexec.c (acquire_init_state_context): Likewise.
1492
1493 2013-03-06  Bruno Haible  <bruno@clisp.org>
1494
1495         execute: Revert last change, but use a different condition.
1496         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
1497         on Windows.
1498
1499 2013-03-05  Eric Blake  <eblake@redhat.com>
1500
1501         execute: drop dead code
1502         * lib/execute.c (nonintr_close, nonintr_open): Delete.
1503
1504 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
1505
1506         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
1507         * m4/non-recursive-gnulib-prefix-hack.m4
1508         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
1509         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
1510         <http://bugs.gnu.org/10305#237>.
1511
1512 2013-03-04  Eric Blake  <eblake@redhat.com>
1513
1514         test-getsockopt: avoid compiler warning
1515         * tests/test-getsockopt.c (includes): Ensure close is declared.
1516
1517 2013-03-02  Bruno Haible  <bruno@clisp.org>
1518
1519         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
1520         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
1521
1522 2013-03-02  Bruno Haible  <bruno@clisp.org>
1523
1524         gettext: Update to version 0.18.2.
1525         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
1526         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
1527                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
1528
1529 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1530
1531         regex: merge patches from libc
1532
1533         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1534         * lib/regex_internal.h (__attribute__): Rename from __attribute.
1535         All uses changed.
1536         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
1537         (re_string_wchar_at, re_string_elem_size_at):
1538         Mark function as possibly unused.
1539
1540         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
1541         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
1542         elements compare against the byte sequence of it, not its name.
1543
1544 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
1545
1546         putenv: port better to native Windows
1547         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1548         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
1549         (_unsetenv): Use _putenv if available.
1550         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
1551         a bit less likely to cause damage.
1552         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1553         Fix the wrong value with SetEnvironmentVariable.
1554         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
1555         code better.
1556
1557 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1558
1559         regex: ignore old-style-definition warnings
1560         * lib/regex.c: Add pragma to ignore these warnings.
1561         Problem reported for GNU tar by Pavel Raiskup.
1562
1563 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1564
1565         getcwd: support coreutils better
1566         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
1567         but this might not be correct in coreutils, which disables
1568         the raw decl checks.  Problem reported by Nagendra in
1569         <http://bugs.gnu.org/10305#192>.
1570         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
1571         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
1572         Test the getcwd function, not any macro, since getcwd.c wants the
1573         function.
1574         * m4/getcwd.m4 (gl_FUNC_GETCWD):
1575         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
1576         compile, as might happen if there's a macro but no function.
1577
1578         strtod: support coreutils better
1579         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
1580         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
1581         disables the raw decl checks.  This assumes there is an underlying
1582         strtod, but that's a safe assumption these days.
1583         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
1584
1585         mountlist: port to HP NonStop
1586         Reported by Joachim Schmitz in
1587         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
1588         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
1589         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
1590
1591 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1592
1593         extern-inline: avoid compilation error with HP-UX cc
1594         Reported by Richard Lloyd in
1595         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
1596         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1597         Suppress extern inline with HP-UX cc.  This should be safe,
1598         though it may hurt performance.  Perhaps someone with some HP-UX
1599         experience can come up with a higher-performance fix.
1600
1601 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1602
1603         putenv: fix heap corruption with mixed putenv/_putenv
1604         Problem reported by Michael Goffioul in
1605         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
1606         * lib/putenv.c (putenv) [HAVE__PUTENV]:
1607         Rely on _putenv to allocate the new environment.
1608         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
1609         * modules/putenv (configure.ac): Use it.
1610
1611 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
1612
1613         unsetenv etc.: port to Solaris 11 + GNU Emacs
1614         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
1615         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
1616         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
1617         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
1618         idea but is too painful to fix right now), and without this gnulib
1619         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
1620         compiling unsetenv.c on Solaris 11.  Fix the problem for
1621         unsetenv.c, and fix other similar occurrences.
1622
1623 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1624
1625         secure_getenv: fix C++ declaration typo
1626         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
1627         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
1628         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
1629
1630 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1631
1632         careadlinkat: stop exporting careadlinkatcwd
1633         Only Emacs used it directly, and Emacs no longer needs it.
1634         * NEWS: Document this simplification.
1635         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
1636         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
1637         for readlink.
1638         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
1639         Don't include stdlib.h; no longer needed.
1640         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
1641         * lib/relocwrapper.c: Adjust comment to match new dependencies.
1642         * modules/areadlink (Depends-on): Add readlink.
1643         (Maintainer): Add self.
1644         * modules/careadlinkat (Depends-on): Remove readlink.
1645
1646         extensions: port better to HP-UX
1647         This is merged from git Autoconf.
1648         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1649         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
1650         so that it's compatible with the value used when compiling.
1651
1652         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
1653         Problem reported by Mats Erik Andersson in
1654         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
1655         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1656         openpty function exists, not merely when we intend to replace it.
1657         This corrects the 2013-01-31 patch, which mistakenly defined
1658         HAVE_OPENPTY even on hosts that lacked it.
1659
1660 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1661
1662         secure_getenv: fix include typo
1663         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
1664
1665         secure_getenv: port better to FreeBSD and Solaris
1666         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
1667         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
1668         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
1669         This works better on BSDish platforms.
1670         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
1671         Test for issetugid if __secure_getenv is missing.
1672
1673 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1674
1675         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
1676         Some of these changes are merged in from git Autoconf.
1677         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1678         When deciding whether to define _XOPEN_SOURCE, inspect the
1679         preprocessor macro __hpux instead of the more-heavyweight
1680         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
1681         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
1682         as the key for __EXTENSIONS__.
1683
1684         unistd: avoid namespace pollution on non-glibc systems
1685         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
1686         This avoids namespace pollution on non-glibc systems, by causing
1687         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
1688         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
1689         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
1690
1691 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1692
1693         tmpdir: use secure_getenv
1694         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
1695         Define to secure_getenv, not getenv.
1696         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
1697         as that's now secure_getenv's job.
1698         * modules/tmpdir (Depends-on): Add secure_getenv.
1699
1700         tempname: use secure_getenv
1701         * lib/tempname.c (__secure_getenv) [!_LIBC]:
1702         Define to secure_getenv, not getenv.
1703         * modules/tempname (Depends-on):
1704         Add secure_getenv.
1705
1706         secure_getenv: new module
1707         * MODULES.html.sh (Extra functions based on ANSI C 89):
1708         Add secure_getenv.
1709         * doc/glibc-functions/secure_getenv.texi: New file.
1710         * doc/gnulib.texi: Include it.
1711         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
1712         New files.
1713         * lib/stdlib.in.h (secure_getenv): New decl.
1714         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
1715         * modules/stdlib (stdlib.h):
1716         Add secure_getenv checks.
1717
1718 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1719
1720         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
1721         Reported for OS X 10.8.2 by Assaf Gordon in
1722         <http://bugs.gnu.org/13516>.
1723         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
1724         !HAVE_OPENAT && !HAVE_FDOPENDIR.
1725         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
1726         so that they can be kept in sync more easily.  Avoid PATH_MAX
1727         test on the Hurd.  Sync from test-getcwd.c for errno tests after
1728         mkdir or chdir failure.
1729         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
1730         lib/getcwd.c.
1731         (test_abort_bug): Do not test for the deep directory bug unless we
1732         have openat support.  Avoid PATH_MAX test on the Hurd.
1733
1734         regex-tests, regex: fix bug: memset undeclared
1735         * tests/test-regex.c: Don't include regex.h twice.  Include
1736         string.h, to declare memset.  Christensen's report also mentioned
1737         this issue.
1738         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
1739         test-regex.c, to avoid future problems like this.  Remove
1740         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
1741         twice.
1742
1743         regex-tests: fix link errors on older Solaris
1744         These need to link with @LIBINTL@ to get libintl_gettext.
1745         Problem reported by Tom G. Christensen in
1746         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
1747         * modules/regex-tests (test_regex_LDADD): New macro.
1748
1749 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1750
1751         regex-tests: new module
1752         * modules/regex-tests, tests/test-regex.c: New files.
1753
1754         regex: fix off-by-one error in configure test
1755         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
1756
1757 2013-01-31  Eric Blake  <eblake@redhat.com>
1758
1759         regex: avoid infinite configure test
1760         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
1761
1762 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
1763
1764         openpty: fix bug where HAVE_OPENPTY wasn't defined
1765         See the thread starting at:
1766         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
1767         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1768         openpty function exists, not merely when we intend to replace it.
1769
1770 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1771
1772         sys_time: port to Solaris 2.6
1773         There is a circularity problem on Solaris 2.6, where <time.h> includes
1774         <sys/time.h> for struct timespec.  The include nesting is gnulib
1775         <time.h>, system <time.h>, gnulib <sys/time.h>, system
1776         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
1777         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
1778         <sys/siginfo.h>; the last, innermost file needs struct
1779         timestruc_t, which is defined in <sys/time.h>, which has not been
1780         fully parsed.  Problem reported by Tom G. Christensen in
1781         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
1782         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
1783         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
1784         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
1785         uses split double-inclusion guards.
1786
1787 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
1788
1789         regex: test for buffer overrun
1790         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
1791         for the just-fixed regex bug.
1792
1793 2013-01-29  Andreas Schwab  <schwab@suse.de>
1794
1795         regex: fix buffer overrun in regexp matcher [BZ #15078]
1796         * lib/regexec.c (extend_buffers): Add parameter min_len.
1797         (check_matching): Pass minimum needed length.
1798         (clean_state_log_if_needed): Likewise.
1799         (get_subexp): Likewise.
1800
1801 2013-01-28  Pádraig Brady  <P@draigBrady.com>
1802
1803         mountlist: don't consider "devtmpfs" as dummy
1804         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
1805         as there is storage associcated with it.
1806
1807 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1808
1809         futimens-tests, utimens-tests: Depend on gettext.
1810         This works around a problem introduced in my 2013-01-12 patch,
1811         which added @LIBINTL@ to these modules.
1812         * modules/futimens-tests (Depends-on):
1813         * modules/utimens-tests (Depends-on): Add gettext.
1814
1815 2013-01-26  Eric Blake  <eblake@redhat.com>
1816
1817         test-getpeername: fix typo
1818         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
1819
1820 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1821
1822         bootstrap: remove the need for a sorted .gitignore file
1823         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
1824         rename to insert_if_absent(), so that we don't need or generate
1825         a sorted .gitignore file.  We do require a .gitignore with no
1826         existing duplicate entries and enforce that.
1827         (sort_patterns): Remove this function as we now use the simpler
1828         technigue of inserting blacklist entries at the top of the file,
1829         assuming gnulib won't be inserting !whitelist entries.
1830
1831 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1832
1833         readlinkat: don't depend on gl_FUNC_OPENAT
1834         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
1835         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
1836         renameat.m4, symlinkat.m4; but one thing at a time.
1837
1838         statat: new module, split out from fstatat
1839         GNU Emacs needs the POSIX-specified fstatat, but not the
1840         gnulib-specified statat and lstat.  Split the latter two into a
1841         new module 'statat'.
1842         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
1843         * lib/openat.h, lib/statat.c (STATAT_INLINE):
1844         Rename from FSTATAT_INLINE. All uses changed.
1845         * modules/fstatat (Files): Remove lib/statat.c.
1846         (gl_MODULE_INDICATOR([fstatat])): Remove.
1847         (lib_SOURCES): Remove.
1848         (Maintainer): Add self.
1849         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
1850         * tests/test-fstatat.c (BASE): Don't define if already defined.
1851         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
1852
1853 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
1854
1855         tests: don't assume fd 99 is closed
1856         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
1857         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
1858         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
1859         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
1860         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
1861         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
1862         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
1863         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
1864         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
1865         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
1866         * tests/test-fwrite.c, tests/test-getpeername.c:
1867         * tests/test-getsockname.c, tests/test-getsockopt.c:
1868         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
1869         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
1870         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
1871         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
1872         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
1873         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
1874         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
1875         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
1876         * tests/test-unlinkat.c, tests/test-unlockpt.c:
1877         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
1878         Close file descriptor 99, instead of assuming it's already closed.
1879
1880 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
1881
1882         stpncpy: port to OS X 10.8
1883         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
1884         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
1885
1886 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
1887
1888         unistd: port to recent mingw
1889         * lib/unistd.in.h: Remove special invocation convention for mingw,
1890         which breaks for the latest mingw version.  See John W. Eaton in
1891         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
1892
1893         largefile: port better to Mac OS X 10.5
1894         This patch is backported from Autoconf git.
1895         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
1896         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
1897         with ino_t size being different for configuration time versus
1898         build/run time.  Problem reported by PHO in
1899         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
1900
1901 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
1902
1903         doc: clarify -Werror
1904         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
1905         clarify that it's intended for developers, not for ordinary builds,
1906         and mention --enable-gcc-warnings as one possible use.
1907
1908 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
1909
1910         stdint: fix build with Android's Bionic fox x86
1911         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
1912         was already included as _SSIZE_T_DEFINED_ might also be defined
1913         in include/machine/_types.h, which is included by stdio.h
1914
1915 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
1916
1917         net_if-tests: port to Solaris 7 + GCC 3.4.6
1918         Problem reported by Tom G. Christensen in
1919         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
1920         * tests/test-net_if.c (ni): Move to next the code that uses it,
1921         so that it's declared only if needed.
1922
1923 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
1924
1925         net_if-tests: port to older Solaris
1926         Problem reported by Tom G. Christensen in
1927         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1928         * modules/net_if-tests (NET_IF_LIB): New substitution.
1929         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
1930         (HAVE_IF_NAMEINDEX): New C macro.
1931         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
1932
1933         system-quote-tests: port to older Solaris
1934         Problem reported by Tom G. Christensen in
1935         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1936         * tests/test-system-quote-child.c (fopen, fread): Undef.
1937
1938         c-xvasprintf etc.: fix link errors on older Solaris
1939         These need to link with @LIBINTL@ to get libintl_gettext.
1940         Problem reported by Tom G. Christensen in
1941         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1942         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
1943         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
1944         * modules/futimens-tests (test_futimens_LDADD):
1945         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
1946
1947 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
1948
1949         locale: port to Solaris 2.6 and 7 + GNU gettext
1950         * lib/locale.in.h: Just include_next <locale.h> when
1951         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
1952         when combining the localename module with GNU gettext 0.18.2.
1953         Problem reported by Tom G. Christensen in
1954         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
1955
1956 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
1957
1958         stdlib: port to Solaris 2.6
1959         Also, the code worked on Solaris 7 through 9 only by accident.
1960         Problem reported by Tom G. Christensen in
1961         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
1962         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
1963         simply include the system stdlib.h.
1964         * lib/getopt.in.h (__need_system_stdlib_h):
1965         * lib/pthread.in.h (__need_system_stdlib_h):
1966         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
1967         Define when including <stdlib.h>, to avoid problems at least for
1968         the pthread case on Solaris 2.6 and 7.  These .h files can get by
1969         with the system stdlib.h.
1970
1971 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1972
1973         doc: update main copyright year
1974         * doc/gnulib.texi: Update copyright date.
1975
1976         doc: improve ISO 8601 discussion
1977         * doc/parse-datetime.texi (Combined date and time of day items):
1978         Specify more carefully what formats are supported and what is
1979         done with excess precision.
1980
1981 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1982
1983         doc: avoid small caps
1984         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
1985         they're more trouble than they're worth.  Suggested by Karl Berry
1986         in <http://bugs.gnu.org/13360>.
1987
1988         regex: conform to strict C
1989         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
1990         From Aharon Robbins.
1991
1992         gnulib-tool: fix incompatibility with autopoint 0.18.2
1993         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
1994         Problem reported by Tom G. Christensen in
1995         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
1996
1997 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1998
1999         fprintftime: bring back and reword fwrite comment
2000         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
2001
2002         stdio: remove now-unnecessary stdio.c
2003         Since stdio.in.h no longer uses inline functions, we no longer
2004         need to compile the extern versions.
2005         * lib/stdio.c: Remove.
2006         * modules/stdio (Files): Remove lib/stdio.c.
2007         (lib_SOURCES): Remove.
2008
2009         unicodeio: depend on stdio, not ignore-value
2010         * lib/unicodeio.c: Do not include ignore-value.h.
2011         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
2012         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
2013
2014         fprintftime: depend on stdio, not ignore-value
2015         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
2016         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
2017         since the stdio module arranges to silence that warning now.
2018         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
2019
2020 2012-10-04  Simon Josefsson  <simon@josefsson.org>
2021
2022         stdint-tests: Fix expanded-before-required-warning.
2023         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
2024
2025 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
2026
2027         fwrite: silence __wur only for older glibc versions
2028         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
2029         This will help us remove this workaround some time in the far future.
2030
2031 2013-01-03  Eric Blake  <eblake@redhat.com>
2032
2033         fwrite: silence __wur without using inline
2034         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
2035         just gcc, and in a way that avoids inline issues.
2036         * modules/stdio (Depends-on): Drop extern-inline.
2037
2038 2013-01-03  Jim Meyering  <jim@meyering.net>
2039
2040         update-copyright: avoid copyright notice date corruption
2041         Given a sequence of copyright year numbers in which the final
2042         one was a two-digit number that happened to be a substring of
2043         a preceding four-digit year number, we would mistakenly update
2044         the substring (from two- to four-digit) rather than the two-digit
2045         number at the end, which, combined with the addition of the current
2046         4-digit year number would yield two 5-digit year numbers, e.g.,
2047         here, it would convert the first "99" to "1999, 2013" rather than
2048         the final one:
2049           1991, 99
2050           11999, 20131, 1999
2051         * build-aux/update-copyright: Tighten a regexp.
2052         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
2053         Reported by Joseph Myers in
2054         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
2055
2056 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
2057
2058         regex: omit needless signed-pointer casts
2059         * lib/regcomp.c (build_charclass, build_charclass_op):
2060         Use char *, not unsigned char *, for class name and extra.
2061         The char values are always nonnegative so there's no need to
2062         insist on unsigned char * here, and using char * removes the need
2063         for casts.  Reported by Aharon Robbins in
2064         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2065
2066         regex: support Gawk, which never uses alloca
2067         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
2068         Do not include in this case.  Gawk doesn't supply a substitute
2069         alloca.h and doesn't need one.
2070
2071         regex: port __libc_lock_define usage to C89
2072         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
2073         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
2074         does not conform to C89, as it has an empty macro argument.
2075         Reported by Aharon Robbins in
2076         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2077
2078 2013-01-01  Eric Blake  <eblake@redhat.com>
2079
2080         maint: update all copyright year number ranges
2081         Run "make update-copyright".
2082
2083         version-etc: bump copyright year reported in --version
2084         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
2085
2086 2012-12-31  Eric Blake  <eblake@redhat.com>
2087
2088         sigprocmask-tests: skip test if pid is unexpectedly large
2089         * tests/test-sigprocmask.c (main): Add range check.
2090
2091         git-version-gen: avoid test -z portability glitch
2092         * build-aux/git-version-gen: Prefer portable test spelling, since
2093         git-version-gen is run on more than just developer machines.
2094
2095 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
2096
2097         git-version-gen: add --fallback option to use if git is not present
2098         * build-aux/git-version-gen: Add support for the new option --fallback,
2099         which comes into play when there is no $tarball_version_file and
2100         git is not working.
2101         (scriptversion): Update.
2102
2103         maint.mk: handle missing git with more grace
2104         * top/maint.mk (no-submodule-changes, public-submodule-commit):
2105         Quietly proceed if git is not present.
2106
2107 2012-12-31  Eric Blake  <eblake@redhat.com>
2108
2109         dup2: work around cygwin bug
2110         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
2111         * lib/dup2.c (rpl_dup2): Work around it.
2112         * doc/posix-functions/dup2.texi (dup2): Document it.
2113
2114 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
2115
2116         regex: remove unnecessary dependency on localcharset.h
2117         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
2118         hasn't been needed for years.
2119         * modules/regex (Depends-on): Remove localcharset.
2120
2121         regex: revert single-byte change
2122         * lib/regexec.c (check_node_accept_bytes): Revert previous change
2123         to this function.  This was alredy fixed in a different way, at
2124         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
2125         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
2126         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
2127
2128         regex: simplify based on Gawk version
2129         * lib/regex_internal.c (re_dfa_add_node): Simplify.
2130         Reported by Aharon Robbins in
2131         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2132
2133 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2134
2135         regex: check that pattern char is single-byte
2136         Reported by Aharon Robbins in
2137         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2138         * lib/regexec.c (check_node_accept_bytes):
2139         Return 0 if the pattern string has a multibyte character here.
2140
2141         regex: implement rational ranges
2142         Reported by Aharon Robbins in
2143         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2144         * lib/regcomp.c (build_range_exp) [!_LIBC]:
2145         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
2146         Implement rational ranges.
2147
2148         regex: avoid redefining __wctype
2149         Reported by Aharon Robbins in
2150         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2151         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
2152         #undef before defining.
2153
2154         regex: port to hosts where malloc (0) == NULL
2155         Reported by Aharon Robbins in
2156         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2157         * lib/regex_internal.c (re_node_set_alloc):
2158         Don't assume that malloc (0) yields nonnull.
2159         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
2160         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
2161         * modules/regex (Files): Add m4/eealloc.m4.
2162
2163         regex: port to C89
2164         Reported by Aharon Robbins in
2165         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2166         * lib/regcomp.c (init_word_char): Declaration before statement.
2167
2168         regex: merge glibc changes
2169         Also, copy the license wording from glibc.  This simplifies
2170         merging changes.  gnulib-tool will change the wording to GPL as
2171         appropriate, when importing it to other packages.  The only
2172         glibc change made since the last merge, which needs merging, is:
2173         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
2174         * lib/regex_internal.h (gettext): Remove use of INTUSE.
2175
2176         * users.txt: Add Emacs.
2177
2178         doc: omit mention of version when not needed
2179         * doc/gnulib-intro.texi (Portability and Application Code):
2180         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
2181         Don't mention particular dates or versions when not necessary, so
2182         that the documentation won't go out of date so quickly.
2183
2184         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
2185
2186 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
2187
2188         bootstrap: pass --force to autoreconf.
2189         * build-aux/bootstrap (AUTORECONFFLAGS): New.
2190         Add "--force" so that Automake's ylwrap and other such tools
2191         be updated at each bootstrap invocation.
2192         Use it.
2193
2194 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2195
2196         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
2197         The earlier patch forgot to update one of the #if conditions, causing
2198         a problem on Debian testing i386 reported by Mats Erik Andersson
2199         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
2200         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
2201         (__argp_fmtstream_puts, argp_fmtstream_puts)
2202         (__argp_fmtstream_write, argp_fmtstream_write)
2203         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
2204
2205         * doc/gnulib-readme.texi: Minor fixups.
2206         (Portability guidelines): Modernize URLs.  Remove some repetition.
2207         (Indent with spaces not TABs): Reword to avoid too-long lines.
2208         Remove some '@ifset standalone' stuff that isn't used.
2209
2210         * doc/gnulib-readme.texi (Portability guidelines):
2211         ctype.h, not ctime.h.
2212
2213         Correct name of POSIX.1-2001.
2214         * doc/posix-functions/fgetc.texi (fgetc):
2215         * doc/posix-functions/fgets.texi (fgets):
2216         * doc/posix-functions/fread.texi (fread):
2217         * doc/posix-functions/fscanf.texi (fscanf):
2218         * doc/posix-functions/getc.texi (getc):
2219         * doc/posix-functions/getchar.texi (getchar):
2220         * doc/posix-functions/scanf.texi (scanf):
2221         POSIX.1-2001, not POSIX-2001.
2222
2223         doc: move README into manual
2224         * README: Move contents to new file doc/gnulib-readme.texi.
2225         Replace with a one-line summary.
2226         * doc/gnulib.texi (Brief Overview): New section,
2227         with old intro preface.  Include gnulib-readme.texi for contents.
2228         (Philosophy): Rename from "Introduction", since this
2229         section no longer introduces the rest.  Write a new preface.
2230         * doc/gnulib-readme.texi: New file, with the old contents of
2231         README texinfo-ized.  This way, the README info appears
2232         in the online and printed manual.
2233
2234 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
2235
2236         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
2237         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
2238         c_vasprintf() prototype.
2239
2240 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
2241
2242         c-vasprintf: Fix "empty declaration" warning reported by GCC.
2243         * lib/c-vasprintf.h: Remove stray semicolon.
2244
2245 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2246
2247         gettext: avoid obsolete macro AM_PROG_MKDIR_P
2248         It is obsolete and is planned to be removed from Automake 1.14; see
2249         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
2250         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
2251         (installdirs-data, installdirs-data-yes):
2252         Use $(MKDIR_P), not $(mkdir_p).
2253         * m4/intl.m4 (AM_INTL_SUBDIR):
2254         * m4/po.m4 (AM_PO_SUBDIRS):
2255         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
2256
2257 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2258
2259         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
2260         On this platform, we are not optimizing but we are using
2261         the substitute for extern inlines, so compile as if
2262         C99-style extern inline, or a substitute, is available.
2263         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
2264         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
2265         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
2266         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
2267         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
2268         Declare as ARGP_FS_EI, not as extern.
2269         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
2270         (__option_is_short, _option_is_end, __option_is_end)
2271         [!_LIBC && __USE_EXTERN_INLINES]:
2272         Declare as ARGP_EI, not as extern.
2273
2274 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2275
2276         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
2277         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
2278         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
2279         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
2280         ...), as the latter is fatal with older Autoconfs.
2281         Problem reported and fix suggested by Eric Blake in thread starting at
2282         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
2283
2284 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2285
2286         AC_PROG_MKDIR_P: don't workaround if not buggy
2287         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
2288         Define only for Autoconf versions before 2.62.
2289         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
2290         undocumented m4_PACKAGE_VERSION, for consistency with the
2291         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
2292         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
2293         was introduced in 2.62.
2294
2295 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
2296
2297         New 'c-*printf' modules for formatted output in C locale.
2298
2299         New module 'c-vasnprintf'.
2300         * modules/c-vasnprintf: New file.
2301         * lib/c-vasnprintf.c: New file.
2302         * lib/c-vasnprintf.h: New file.
2303
2304         New module 'c-snprintf'.
2305         * modules/c-snprintf: New file.
2306         * modules/c-snprintf-tests: New file.
2307         * lib/c-snprintf.c: New file.
2308         * lib/c-snprintf.h: New file.
2309         * tests/test-c-snprintf.c: New file.
2310         * tests/test-c-snprintf.sh: New file.
2311
2312         New module 'c-vsnprintf'.
2313         * modules/c-vsnprintf: New file.
2314         * modules/c-vsnprintf-tests: New file.
2315         * lib/c-vsnprintf.c: New file.
2316         * lib/c-vsnprintf.h: New file.
2317         * tests/test-c-vsnprintf.c: New file.
2318         * tests/test-c-vsnprintf.sh: New file.
2319
2320         New module 'c-vasprintf'.
2321         * modules/c-vasprintf: New file.
2322         * modules/c-vasprintf-tests: New file.
2323         * lib/c-asprintf.c: New file.
2324         * lib/c-vasprintf.c: New file.
2325         * lib/c-vasprintf.h: New file.
2326         * tests/test-c-vasprintf.c  +: New file.
2327         * tests/test-c-vasprintf.sh: New file.
2328
2329         New module 'c-xvasprintf'.
2330         * modules/c-xvasprintf: New file.
2331         * modules/c-xvasprintf-tests: New file.
2332         * lib/c-xasprintf.c: New file.
2333         * lib/c-xvasprintf.c: New file.
2334         * lib/c-xvasprintf.h: New file.
2335         * tests/test-c-xvasprintf.c: New file.
2336         * tests/test-c-xvasprintf.sh: New file.
2337
2338 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2339
2340         argp: better 'inline'
2341         Use extern-inline module to declare extern inline functions.
2342         This avoids some bogus warning diagnostics.  Problem discovered
2343         when modifying GNU tar to use the manywarnings module.
2344         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
2345         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
2346         Define based on extern-inline.
2347         * modules/argp (Depends-on): Add extern-inline.
2348
2349 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2350
2351         filemode, sys_stat: Handle MPX files a la AIX.
2352         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
2353         * lib/sys_stat.in.h (S_ISMPX): New macro.
2354         * tests/test-sys_stat.c: Add tests for MPX files.
2355
2356 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
2357
2358         x-to-1: honor $PERL
2359         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
2360         a chance to use his preferred version of Perl.  This is typically
2361         required by Darwin users whose default /usr/bin/perl does not have all
2362         the libraries required by help2man, and who need to use their MacPorts
2363         installation of Perl instead.
2364
2365 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2366
2367         gnu-web-doc-update: add all the new files, even in new directories
2368         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
2369         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
2370         Use it.
2371         (main): Don't use cvsutils to get the list of unknown files,
2372         just add all the existing files and directories.
2373
2374 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2375
2376         gnu-web-doc-update: improve --help
2377         * build-aux/gnu-web-doc-update: Move comments into --help.
2378
2379 2012-12-07  Eric Wong  <normalperson@yhbt.net>
2380
2381         mountlist: recognize more "dummy" file systems
2382         * lib/mountlist.c (ME_DUMMY_0):
2383         Add these dummy FS names to the list:
2384         - "debugfs" virtual filesystem for kernel debugging
2385         - "devpts" PTY slave filesystem
2386         - "devtmpfs" device filesystem on top of tmpfs/ramfs
2387         - "fusectl" control filesystem for FUSE
2388         - "mqueue" enumerates POSIX message queues
2389         - "rpc_pipefs" kernel <-> userspace bridge for NFS
2390         - "sysfs" is for exporting kernel objects
2391         - "devfs" device filesystem for Linux 2.4 and FreeBSD
2392
2393 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2394
2395         extern-inline: avoid incompatibility with Darwin Libc
2396         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
2397         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
2398         Problem reported by Akim Demaille in
2399         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
2400
2401 2012-12-11  Simon Josefsson  <simon@josefsson.org>
2402
2403         gnupload: Work with GnuPG using gpg-agent (for smartcards).
2404         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
2405         let it handle password prompting.
2406
2407 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
2408
2409         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
2410         * lib/canonicalize.c (canonicalize_filename_mode):
2411         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
2412         fetching the current directory.  Don't overrun the beginning of
2413         rpath if there's no slashes after the MS-Windows drive letter.
2414
2415 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2416
2417         maint.mk: avoid extra forks
2418         * top/maint.mk (_cfg_mk): The GNU make manual documents that
2419         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
2420         So use that instead of "$(shell test -f FILE && echo FILE)".
2421
2422 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
2423
2424         vasnprintf: fix ASCII_ONLY typo
2425         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2426         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2427         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2428         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
2429         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
2430
2431 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2432
2433         list, oset, xlist, xoset: fix extern inline issue with C99
2434         This was introduced by my recent changes for 'inline'.
2435         Problem reported for gettext by Daiki Ueno in
2436         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
2437         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
2438         (gl_list_nx_create, gl_list_size, gl_list_node_value)
2439         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
2440         (gl_list_previous_node, gl_list_get_at)
2441         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
2442         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
2443         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
2444         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
2445         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
2446         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
2447         (gl_list_iterator_free, gl_sortedlist_search)
2448         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
2449         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
2450         (gl_sortedlist_remove):
2451         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
2452         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
2453         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
2454         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
2455         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
2456         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
2457         (gl_list_add_at, gl_sortedlist_add):
2458         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
2459         Wrap these extern decls inside "#if 0", because they are implemented
2460         as inline functions, and extern inline is not what's wanted here.
2461         It would simplify these .h files to remove the extern decls entirely,
2462         although a downside would be less-clear separation between
2463         specification and implementation.
2464
2465 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2466
2467         sys_stat: no 'static inline'
2468         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
2469         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
2470
2471         extern-inline: no 'static inline'
2472         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
2473         Do not require AC_C_INLINE.
2474         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
2475         'static inline', for older compilers.
2476
2477         snippet/warn-on-use: no 'static inline'
2478         * build-aux/snippet/warn-on-use.h:
2479         Remove unnecessary 'inline' in comment.
2480
2481         rbtree-list, rbtreehash-list: no 'static inline'
2482         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
2483         * lib/gl_anytree_list2.h (node_at):
2484         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
2485         (gl_oset_first, add_nodes_to_buckets):
2486         Now static, not static inline.
2487
2488         regex: no 'static inline'
2489         * lib/regex_internal.c (calc_state_hash):
2490         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
2491         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2492         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
2493         Now static, not static inline.
2494         (inline) [__GNUC__ < 3 && _LIBC]:
2495         Remove macro; no longer needed.
2496
2497         xvasprintf: no 'static inline'
2498         * lib/xvasprintf.c (xstrcat):
2499         Now static, not static inline.
2500         * m4/xvasprintf.m4 (gl_XVASPRINTF):
2501         Do not require AC_C_INLINE.
2502
2503         parse-datetime, parse-duration: no 'static inline'
2504         * lib/parse-datetime.y (to_uchar):
2505         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
2506         (scale_n_add):
2507         Now static, not static inline.
2508         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
2509         * modules/parse-duration (configure.ac):
2510         Do not require AC_C_INLINE.
2511
2512         getaddrinfo: no 'static inline'
2513         * lib/getaddrinfo.c (validate_family):
2514         Now static, not static inline.
2515         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
2516         Do not require AC_C_INLINE.
2517
2518         ftruncate, fts, lstat, openat, raise: no 'static inline'
2519         * lib/ftruncate.c (chsize_nothrow):
2520         * lib/fts.c (opendirat, diropen):
2521         * lib/lstat.c (orig_lstat):
2522         * lib/openat.c (orig_openat):
2523         * lib/raise.c (raise_nothrow):
2524         Now static, not static inline.
2525         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
2526         * m4/fts.m4 (gl_FUNC_FTS_CORE):
2527         * m4/lstat.m4 (gl_PREREQ_LSTAT):
2528         * m4/openat.m4 (gl_PREREQ_OPENAT):
2529         * m4/raise.m4 (gl_PREREQ_RAISE):
2530         Do not require AC_C_INLINE.
2531
2532         fflush, stat: no 'static inline'
2533         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2534         (clear_ungetc_buffer, disable_seek_optimization)
2535         (restore_seek_optimization, update_fpos_cache):
2536         * lib/stat.c (orig_stat):
2537         Now static, not static inline.
2538         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
2539         (update_fpos_cache):
2540         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
2541         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
2542         * m4/stat.m4 (gl_PREREQ_STAT):
2543         Do not require AC_C_INLINE.
2544
2545         error, filevercmp: no 'static inline'
2546         * lib/error.c (is_open, flush_stdout):
2547         * lib/filevercmp.c (order):
2548         Now static, not static inline.
2549         * m4/error.m4 (gl_PREREQ_ERROR):
2550         * modules/filevercmp (configure.ac):
2551         Do not require AC_C_INLINE.
2552
2553         dup, execute, fatal-signal, etc.: no 'static inline'
2554         * lib/dup.c (dup_nothrow):
2555         * lib/execute.c (nonintr_close, nonintr_open):
2556         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
2557         * lib/fopen.c (orig_fopen):
2558         * lib/freadseek.c (freadptrinc):
2559         * lib/freopen.c (orig_freopen):
2560         * lib/fstat.c (orig_fstat, fstat_nothrow):
2561         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
2562         (get_rusage_as_via_iterator):
2563         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
2564         * lib/getdtablesize.c (_setmaxstdio_nothrow):
2565         * lib/isatty.c (_isatty_nothrow):
2566         * lib/open.c (orig_open):
2567         * lib/read.c (read_nothrow):
2568         * lib/sigprocmask.c (signal_nothrow):
2569         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
2570         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
2571         * lib/wait-process.c (unregister_slave_subprocess):
2572         * lib/write.c (write_nothrow):
2573         Now static, not static inline.
2574         * lib/spawn-pipe.c (nonintr_open): Define only if
2575         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
2576         * m4/dup.m4 (gl_PREREQ_DUP):
2577         * m4/execute.m4 (gl_EXECUTE):
2578         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
2579         * m4/fopen.m4 (gl_PREREQ_FOPEN):
2580         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
2581         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
2582         * m4/fstat.m4 (gl_PREREQ_FSTAT):
2583         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
2584         * m4/isatty.m4 (gl_PREREQ_ISATTY):
2585         * m4/open.m4 (gl_PREREQ_OPEN):
2586         * m4/read.m4 (gl_PREREQ_READ):
2587         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
2588         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
2589         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
2590         * m4/wait-process.m4 (gl_WAIT_PROCESS):
2591         * m4/write.m4 (gl_PREREQ_WRITE):
2592         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
2593         Do not require AC_C_INLINE.
2594
2595         c-strtod, memcoll, readutmp: no 'static inline'
2596         * lib/c-strtod.c (c_locale):
2597         * lib/memcoll.c (strcoll_loop):
2598         * lib/readutmp.c (desirable_utmp_entry):
2599         Now static, not static inline.
2600         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
2601         * m4/memcoll.m4 (gl_MEMCOLL):
2602         * m4/readutmp.m4 (gl_READUTMP):
2603         Do not require AC_C_INLINE.
2604
2605         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
2606         * lib/arctwo.c (to_uchar):
2607         * lib/md4.c (set_uint32):
2608         * lib/md5.c (set_uint32):
2609         * lib/sha1.c (set_uint32):
2610         * lib/sha256.c (set_uint32):
2611         * lib/sha512.c (set_uint64):
2612         Now static, not static inline.  This is a bit simpler, and doesn't
2613         affect performance with GCC and default optimization.
2614         * m4/arctwo.m4 (gl_ARCTWO):
2615         * m4/md4.m4 (gl_MD4):
2616         * m4/md5.m4 (gl_MD5):
2617         * m4/sha1.m4 (gl_SHA1):
2618         * m4/sha256.m4 (gl_SHA256):
2619         * m4/sha512.m4 (gl_SHA512):
2620         Do not require AC_C_INLINE.
2621
2622         cond, lock, thread: better 'inline'
2623         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
2624         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
2625         New macros.  Use them instead of static inline, for header functions.
2626         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
2627         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2628         * lib/glthread/lock.c (gl_waitqueue_init)
2629         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2630         * lib/glthread/thread.c (get_current_thread_handle):
2631         Change 'static inline' to 'inline'.
2632         * lib/glthread/cond.h, lib/glthread/thread.h:
2633         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2634         * m4/cond.m4 (gl_COND):
2635         * m4/lock.m4 (gl_PREREQ_LOCK):
2636         * m4/thread.m4 (gl_THREAD):
2637         Do not require AC_C_INLINE.
2638         * modules/cond, modules/thread (Depends-on): Add extern-inline.
2639
2640         chdir-long, cycle-check, savewd: better 'inline'
2641         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
2642         (find_non_slash):
2643         * lib/cycle-check.c (is_zero_or_power_of_two):
2644         * lib/savewd.c (savewd_delegating):
2645         Change 'static inline' to 'inline'.
2646         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
2647         Replace all remaining uses of 'static inline' with it.
2648         * lib/savewd.h:
2649         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2650         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
2651         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
2652         * m4/savewd.m4 (gl_SAVEWD):
2653         Do not require AC_C_INLINE.
2654         * modules/savewd (Depends-on): Add extern-inline.
2655
2656         base32, base64: no need for 'inline'
2657         * lib/base32.c (to_uchar, get_8, decode_8):
2658         * lib/base64.c (to_uchar, get_4, decode_4):
2659         Change 'static inline' to 'inline'.
2660         * m4/base32.m4 (gl_PREREQ_BASE32):
2661         * m4/base64.m4 (gl_PREREQ_BASE64):
2662         Do not require AC_C_INLINE.
2663
2664         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
2665         * lib/gl_array_oset.c (gl_array_nx_add_at):
2666         (gl_array_remove_at):
2667         * lib/gl_linkedhash_list.c (hash_resize_after_add)
2668         (add_to_bucket, remove_from_bucket):
2669         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
2670         Change 'static inline' to 'static', as it's simpler to omit
2671         'inline' unless there's a significant performance advantage.
2672
2673         list, oset, xlist, xoset, xsublist: simplify via extern inline
2674         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
2675         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
2676         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
2677         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
2678         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
2679         New macro.  Replace all uses of 'static inline' with it.
2680         [HAVE_INLINE]: Implement functions as *_INLINE functions,
2681         instead of as macros FOO that are defined to static inline
2682         functions FOO_inline.
2683         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
2684         * lib/gl_xsublist.c:
2685         Reimplement from scratch, by defining the corresponding *_INLINE
2686         macro and including the corresponding .h file.  This is simpler.
2687         * modules/list, modules/oset, modules/xlist, modules/xoset:
2688         (Files): Remove m4/gl_list.m4.
2689         (configure.ac): Remove gl_LIST.
2690         * m4/gl_list.m4: Remove.
2691         * modules/list, modules/oset, modules/xlist, modules/xoset:
2692         * modules/xsublist:
2693         (Depends-on): Depend on extern-inline, not inline.
2694
2695         xalloc: better 'inline'
2696         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
2697         New macro.  Replace all uses of 'static inline' with it.
2698         (static_inline): Remove.
2699         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2700         Let 'extern inline' do the work automatically, instead of doing
2701         it by hand.
2702         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
2703         Remove.  All uses removed.
2704         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
2705
2706         gethrxtime: better 'inline'
2707         * lib/xtime.c: New file.
2708         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
2709         * lib/xtime.h (XTIME_INCLUDE):
2710         New macros.  Replace all uses of 'static inline' with them.
2711         * lib/gethrxtime.c (gethrxtime): Define only if
2712         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
2713         this source file is now always compiled, because of the extern inline.
2714         * lib/gethrxtime.h, lib/xtime.h:
2715         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2716         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
2717         if gethrtime works, as they're not needed in that case.
2718         (gl_XTIME): Do not require AC_C_INLINE.
2719         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
2720         compiled now.  Move the check into gl_GETHRXTIME.
2721         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
2722         (Depends-on): Add extern-inline.
2723         (configure.ac): gethrxtime is always compiled now.
2724         (lib_SOURCES): Add gethrxtime.c.
2725
2726         wctype-h: better 'inline'
2727         * lib/wctype-h.c: New file.
2728         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
2729         New macro.  Replace all uses of 'static inline' with it.
2730         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2731         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
2732         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
2733         (Depends-on): Add extern-inline.
2734
2735         unistd: better 'inline'
2736         * lib/unistd.c: New file.
2737         * lib/unistd.in.h (_GL_UNISTD_INLINE):
2738         New macro.  Replace all uses of 'static inline' with it.
2739         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2740         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
2741         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
2742         (Depends-on): Add extern-inline.
2743
2744         sys_socket: better 'inline'
2745         * lib/sys_socket.c: New file.
2746         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
2747         New macro.  Replace all uses of 'static inline' with it.
2748         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2749         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
2750         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
2751         (Depends-on): Add extern-inline.
2752
2753         stdio: better 'inline'
2754         * lib/stdio.c: New file.
2755         * lib/stdio.in.h (_GL_STDIO_INLINE):
2756         New macro.  Replace all uses of 'static inline' with it.
2757         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2758         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
2759         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
2760         (Depends-on): Add extern-inline.
2761
2762         sigaction: better 'inline'
2763         * lib/sig-handler.c: New file.
2764         * lib/sig-handler.h (SIG_HANDLER_INLINE):
2765         New macro.  Replace all uses of 'static inline' with it.
2766         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2767         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
2768         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
2769         (Depends-on): Add extern-inline.
2770
2771         selinux-h: better 'inline'
2772         * lib/se-context.c, lib/se-selinux.c: New files.
2773         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
2774         * lib/se-context.in.h (SE_CONTEXT_INLINE):
2775         New macro.  Replace all uses of 'static inline' with it.
2776         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2777         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
2778         New macro.  Replace all uses of 'static inline' with it.
2779         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2780         * modules/selinux-h (Files, lib_SOURCES):
2781         Add lib/se-context.c, lib/se-selinux.c.
2782         (Depends-on): Add extern-inline.
2783         (configure.ac): Do not require AC_C_INLINE.
2784
2785         pthread: better 'inline'
2786         * lib/pthread.c: New file.
2787         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
2788         New macro.  Replace all uses of 'static inline' with it.
2789         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2790         * m4/pthread.m4 (gl_PTHREAD_CHECK):
2791         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
2792         * modules/pthread (Files): Add lib/pthread.c.
2793         (Depends-on): Add extern-inline.
2794
2795         math: better 'inline'
2796         * lib/math.c: New file.
2797         * lib/math.in.h (_GL_MATH_INLINE):
2798         New macro.  Replace all uses of 'static inline' with it.
2799         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2800         * m4/math_h.m4 (gl_MATH_H):
2801         Do not require AC_C_INLINE.
2802         * modules/math (Files, lib_SOURCES):
2803         Add lib/math.c.
2804         (Depends-on): Add extern-inline.
2805
2806         count-one-bits: better 'inline'
2807         * lib/count-one-bits.c: New file.
2808         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
2809         New macro.  Replace all uses of 'static inline' with it.
2810         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2811         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
2812         Do not require AC_C_INLINE.
2813         * modules/count-one-bits (Files, lib_SOURCES):
2814         Add lib/count-one-bits.c.
2815         (Depends-on): Add extern-inline.
2816
2817         count-leading-zeros: better 'inline'
2818         * lib/count-leading-zeros.c: New file.
2819         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
2820         New macro.  Replace all uses of 'static inline' with it.
2821         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2822         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
2823         Do not require AC_C_INLINE.
2824         * modules/count-leading-zeros (Files, lib_SOURCES):
2825         Add lib/count-leading-zeros.c.
2826         (Depends-on): Add extern-inline.
2827
2828         bitrotate: better 'inline'
2829         * lib/bitrotate.c: New file.
2830         * lib/bitrotate.h (BITROTATE_INLINE):
2831         New macros.
2832         Replace all uses of 'static inline' with them.
2833         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2834         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
2835         (Depends-on): Add extern-inline.
2836         (configure.ac): Do not require AC_C_INLINE.
2837
2838 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
2839
2840         maint.mk: avoid gratuitous failure
2841         Reported by Stefano Lattarini in
2842         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
2843         * top/maint.mk (public-submodule-commit): Quote more safely.
2844
2845 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
2846
2847         canonicalize, canonicalize-lgpl: support MS-Windows file names
2848         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
2849         for test cases, which it'd be nice to add at some point.
2850         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
2851         * lib/canonicalize.c (canonicalize_filename_mode):
2852         * lib/canonicalize-lgpl.c (__realpath):
2853         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
2854         slash is at the beginning of the file name.  Use ISSLASH, instead
2855         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
2856         the first character with '/'.  Test for
2857         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
2858         with a drive letter.
2859         * lib/canonicalize.c (SLASHES): New macro.
2860         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
2861
2862 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
2863
2864         fts: introduce FTS_VERBATIM
2865         * lib/fts_.h (FTS_VERBATIM): New bit flag.
2866         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
2867         * lib/fts.c (fts_open): Honor it.
2868
2869 2012-11-09  Pádraig Brady  <P@draigBrady.com>
2870
2871         getlogin-tests: allow errno == ENXIO
2872         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2873         with errno == ENXIO (No controlling tty).
2874         getlogin_r-tests: Likewise. Also allow errno == ENOENT
2875         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
2876         with errno == ENOENT.  This was reported to happen in various
2877         situations on GNU/Linux.
2878
2879 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2880
2881         getlogin-tests: allow errno == ENOENT
2882         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2883         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
2884         when running a test in an Emacs shell buffer.
2885
2886 2012-11-08  Jim Meyering  <jim@meyering.net>
2887
2888         tests/nap.h: avoid warning about unused variable
2889         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
2890
2891         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
2892         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
2893         white space before each of the special-cased file names, to avoid
2894         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
2895         in http://bugs.gnu.org/12830.
2896
2897 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2898
2899         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
2900         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
2901         fails with errno == EBADF when fd is opened with O_PATH.
2902         Reported by Jim Meyering in
2903         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
2904         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2905         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
2906
2907 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2908
2909         test-utimens: speed up by taking shorter naps
2910         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
2911         New functions.
2912         (nap): Use them, to do a better job of guessing the delay.
2913         On Fedora 17 with ext4 atop md atop hard disks, this made
2914         test-utimens run 10x faster, because the test napped for
2915         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
2916         <http://bugs.gnu.org/12820#11>.
2917
2918 2012-11-07  Jim Meyering  <jim@meyering.net>
2919
2920         mountlist.c: fix a compilation failure
2921         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
2922         I introduced while transforming commit v0.0-7683-g613bcb6
2923
2924 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2925
2926         errno: port to LynxOS 178 2.2.2
2927         Problem reported by Joel Brobecker in
2928         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
2929         * doc/posix-headers/errno.texi (errno.h): Document this.
2930         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
2931         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
2932         Supply a string for EILSEQ.
2933         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
2934
2935 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2936
2937         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
2938         Linux kernel 2.6.39 introduced O_PATH (see
2939         <http://lwn.net/Articles/433854/>) and this is a better fallback
2940         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
2941         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2942         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
2943         * lib/fcntl.in.h (O_ACCMODE):
2944         * tests/test-fcntl-h.c (main):
2945         Do not reject O_ACCMODE merely because it has more than the
2946         minimal number of bits, as POSIX allows extensions here.
2947
2948 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
2949
2950         mountlist: do not classify a bind-mounted dir entry as "dummy"
2951         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
2952         the "none"-testing clause.
2953         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
2954         exception for bind-mounted directories.
2955
2956 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
2957
2958         quote: provide a means to escape strings with nul characters
2959         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
2960         (quote, quote_n): Rename formal arguments for consistency with
2961         quotearg.
2962
2963 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
2964
2965         test-raise: don't assume 199 is an invalid signal
2966         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
2967
2968         sh-quote-tests: port to Solaris 9
2969         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
2970         Problem reported by Dagobert Michelsen in
2971         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
2972
2973 2012-10-28  Jim Meyering  <jim@meyering.net>
2974
2975         maint.mk: rename a new configurable variable
2976         * top/maint.mk (_gl_translatable_string_re): Rename from
2977         translation-markers: _gl_ prefix to insulate from user Makefile code,
2978         and the _re suffix to inform that it's a regular expression.
2979
2980 2012-10-26  Eric Blake  <eblake@redhat.com>
2981
2982         maint.mk: let packages tweak sc_po_check pattern
2983         * top/maint.mk (sc_po_check): Add translation-markers, to allow
2984         finding files with other translation markers.
2985
2986 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2987
2988         euidaccess: speed up 'configure' on GNU hosts
2989         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
2990         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
2991         it's needed only in this case.  Use AC_CHECK_DECLS, not
2992         AC_CHECK_DECLS_ONCE.
2993         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
2994         or AC_REQUIRE for AC_FUNC_GETGROUPS.
2995
2996         * lib/regexec.c (re_search_internal): Fix grammar in comment.
2997
2998 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2999
3000         fchmodat, fchownat, fstatat: port to non-inlining compilers
3001         Problem reported for FreeBSD 9 by Jim Meyering in
3002         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
3003         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
3004         New files, which define FCHMODAT_INLINE etc.
3005         * lib/fchmodat.c (FCHMODAT_INLINE):
3006         * lib/fchownat.c (FCHOWNAT_INLINE):
3007         * lib/fstatat.c (FSTATAT_INLINE):
3008         Remove, as chmodat.c etc. now do this.
3009         * modules/fchmodat (Files): Add lib/chmodat.c.
3010         * modules/fchownat (Files): Add lib/chownat.c.
3011         * modules/fstatat (Files): Add lib/statat.c.
3012
3013 2012-10-15  Jim Meyering  <jim@meyering.net>
3014
3015         fchmodat.c, fchownat.c: compile-impeding typos
3016         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
3017         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
3018         Introduced in commit v0.0-7636-gd202279.
3019
3020 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3021
3022         fcntl-h: support GNU flags like O_IGNORE_CTTY
3023         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
3024         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
3025         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
3026         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
3027         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
3028         Define to 0 if not already defined.
3029         * tests/test-fcntl-h.c: Test these new flags.
3030
3031 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3032
3033         faccessat, etc.: support AT_FDCWD-only use
3034         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
3035         this function only if its first argument is AT_FDCWD.
3036         Emacs wants faccessat for AT_EACCESS but not for any first-arg
3037         values other than AT_FDCWD, so it doesn't want all the openat
3038         machinery with fchdir etc.
3039         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
3040         * modules/fstatat, modules/mkdirat, modules/openat (Files):
3041         * modules/unlinkat (Files):
3042         Remove lib/openat-priv.h, as at-internal supplies this file.
3043         Removing this file here allows us to support programs like Emacs
3044         that avoid at-internal.
3045
3046         faccessat: speed up 'configure' on mainstream hosts
3047         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
3048         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
3049         since it's only on unusual platforms that we need to check for
3050         'access', and it's better not to slow 'configure' down on all
3051         platforms.
3052
3053         faccessat: port to Solaris 10
3054         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
3055         Needed on Solaris 10, which doesn't have AT_EACCESS,
3056         so we need the Gnulib fcntl.h, which defines it.
3057
3058 2012-10-14  Pádraig Brady  <P@draigBrady.com>
3059         canonicalize: fix C89 compilation
3060         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
3061         declarations so C89 is supported.  Also remove the comment
3062         referencing memorty allocation as the suggested feature could
3063         not be implemented as suggested.
3064         Reported by Michael Goffioul.
3065
3066 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3067
3068         group-member: omit unnecessary dependencies
3069         This is for Emacs, which has its own allocator and where we
3070         don't want to use xalloc.
3071         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
3072         since we no longer use xmalloc.  Do not include stdbool.h, since
3073         the changes below happen to remove the only use of bool.
3074         (GROUPBUF_SIZE): New constant.
3075         (struct group_info): Remove n_groups member.  Add groupbuf member.
3076         This lets us get the groups without using malloc, usually.
3077         (free_group_info, get_group_info): Adjust to this.
3078         (get_group_info): Return the number of groups found, or -1 on error.
3079         Use plain malloc not xmalloc, and treat its failure as if there
3080         are no groups, as the user already loses in case of error.
3081         (group_member): Simplify, based on changes to get_group_info.
3082         * modules/group-member (Depends-on): Remove dependencies on
3083         xalloc and stdbool.  Add dependency on xalloc-oversized.
3084
3085 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
3086
3087         gethrxtime: port to C++
3088         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
3089
3090 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
3091
3092         ptsname: fix macro-name typo
3093         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
3094
3095 2012-10-03  Simon Josefsson  <simon@josefsson.org>
3096
3097         inttostr: Relax license.
3098         * modules/inttostr (License): Change from LGPL to LGPLv2+.
3099
3100 2012-10-03  Eric Blake  <eblake@redhat.com>
3101
3102         ptsname_r: support ptys returned by FreeBSD posix_openpt
3103         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
3104         lives in /dev/pts/.
3105
3106 2012-10-02  Eric Blake  <eblake@redhat.com>
3107
3108         pselect: reject invalid file descriptors
3109         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
3110         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
3111         * modules/pselect (Depends-on): Add dup2.
3112         * doc/posix-functions/pselect.texi (pselect): Document this.
3113
3114         select: reject invalid file descriptors
3115         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
3116         * lib/select.c (rpl_select) [!win32]: Work around it.
3117         * modules/select (Depends-on): Add dup2.
3118         * doc/posix-functions/select.texi (select): Document this.
3119
3120         select: enhance test
3121         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
3122         New functions.
3123         (test_function): Enhance test.
3124         (do_select_bad_fd): Avoid any stale errno values.
3125
3126         ptsname: reject invalid file descriptors
3127         http://www.austingroupbugs.net/view.php?id=503
3128         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
3129         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
3130         * modules/stdlib (Makefile.am): Replace witness.
3131         * lib/stdlib.in.h (ptsname): Allow for replacement.
3132         * modules/ptsname (configure.ac): Trigger replacement.
3133         * doc/posix-functions/ptsname.texi (ptsname): Document this.
3134
3135 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
3136
3137         hash-pjw-bare: new module
3138         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
3139         * lib/hash-pjw-bare.h: Likewise.
3140         * modules/hash-pjw-bare: New file.
3141         * MODULES.html.sh (Misc): Add it.
3142
3143 2012-10-02  Eric Blake  <eblake@redhat.com>
3144
3145         manywarnings: cater to more gcc infelicities
3146         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
3147         -Wuninitialized without -O.
3148
3149 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
3150
3151         select, poll tests: Make setsockopt invocation effective.
3152         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
3153         the bind() call.
3154         * tests/test-select.h (open_server_socket): Likewise.
3155
3156 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
3157
3158         sockets, sys_stat: restore AC_C_INLINE
3159         This undoes the 2012-09-22 patch.
3160         * m4/sockets.m4 (gl_SOCKETS):
3161         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3162         Restore AC_C_INLINE, since MSVC requires __inline or _inline
3163         and does not support plain 'inline'.  Reported by Bruno Haible in
3164         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
3165
3166 2012-09-30  Bruno Haible  <bruno@clisp.org>
3167
3168         localeconv tests: Avoid test failure on OpenIndiana.
3169         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
3170         skip the 'grouping' and 'mon_grouping' tests.
3171         Reported by Jim Meyering.
3172
3173 2012-09-30  Bruno Haible  <bruno@clisp.org>
3174
3175         havelib: Follow libtool developments.
3176         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
3177         Suggested by Simon Josefsson.
3178
3179 2012-09-29  Jim Meyering  <meyering@redhat.com>
3180
3181         fstatat.c: fix a compile-impeding typo
3182         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
3183         Introduced in commit v0.0-7636-gd202279.
3184         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
3185
3186 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
3187
3188         extern-inline: provide a -Wundef safe config.h
3189         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
3190         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
3191         to produce a -Wundef warning free config.h.
3192
3193 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3194
3195         hash-pjw: relax license to LGPLv2+
3196         * modules/hash-pjw (License): Relax, with consent of author.
3197
3198 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3199
3200         maint.mk: fix strict vs. lazy variable issues with RELEASE
3201         * top/maint.mk (_equal): New function.
3202         (member_check): Strip the result to avoid spurious spaces.
3203         (url_dir_list): Do not use ifeq, which is strict, as it will
3204         require RELEASE_TYPE to be defined.
3205         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
3206         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
3207         (announcement_Cc_alpha,announcement_mail_headers_alpha)
3208         (announcement_Cc_beta,announcement_mail_headers_beta)
3209         (announcement_Cc_stable,announcement_mail_headers_stable): these.
3210         (release): Do not depend on $(release-type), as it forces its
3211         evaluation.  Bounce to it.
3212
3213 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3214
3215         maint.mk: formatting changes
3216         * top/maint.mk: Indent bodies of if's.
3217
3218 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
3219
3220         maint.mk: factor the validation of RELEASE_TYPE
3221         With help from Jim Meyering.
3222         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
3223         * top/maint.mk (_empty, _sp): Move their definition earlier.
3224         (member-check, release-type): New.
3225         Use the latter instead of $(RELEASE_TYPE).
3226         Remove now useless local checks.
3227
3228 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3229
3230         maint.mk: provide "make upload" to ease uploading
3231         See
3232         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
3233         Do not depend simply on the current $(VERSION), as there may have been
3234         new commits since the tarball generation.  Rather, rely on $(RELEASE),
3235         as "make release-commit" already does.
3236
3237         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
3238         "make TYPE".
3239
3240         * top/maint.mk (upload_command, upload, release): New.
3241         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
3242         (VERSION): first word of $(RELEASE) is always right.
3243         (emit_upload_commands): Adjust.
3244         * top/README-release: Update.
3245
3246 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3247
3248         maint.mk: silent rules
3249         With help from Stefano Lattarini.
3250         * top/maint.mk (writable-files): Use $(AM_V_GEN).
3251         (announcement): Use $(AM_V_at).
3252
3253 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3254
3255         localename: port gl_locale_name_thread_unsafe to FreeBSD
3256         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
3257         and use the simpler FreeBSD implementation on Mac OS X as well.
3258         Original idea suggested by Ed Maste in
3259         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
3260
3261 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
3262
3263         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
3264         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
3265         * lib/mbuiter.c, lib/xsize.c: New files.
3266         * lib/binary-io.h (BINARY_IO_INLINE):
3267         * lib/eealloc.h (EEALLOC_INLINE):
3268         * lib/mbfile.h (MBFILE_INLINE):
3269         * lib/mbiter.h (MBITER_INLINE):
3270         * lib/mbuiter.h (MBUITER_INLINE):
3271         * lib/xsize.h (XSIZE_INLINE):
3272         New macros.
3273         Replace all uses of 'static inline' with them.
3274         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3275         * m4/eealloc.m4 (gl_EEALLOC):
3276         * m4/mbfile.m4 (gl_MBFILE):
3277         * m4/mbiter.m4 (gl_MBITER):
3278         * m4/xsize.m4 (gl_XSIZE):
3279         Do not require AC_C_INLINE.
3280         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
3281         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
3282         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
3283         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
3284         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
3285         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
3286         * modules/binary-io, modules/eealloc, modules/mbfile:
3287         * modules/mbiter, modules/mbuiter:
3288         (Depends-on): Add extern-inline.
3289
3290         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
3291         * lib/pipe-filter-aux.c: New file.
3292         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
3293         Replace all uses of 'static inline' with it.
3294         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3295         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
3296         (filter_retcode): No real need for inline here.
3297         * modules/pipe-filter-gi, modules/pipe-filter-ii:
3298         (Files): Add lib/pipe-filter-aux.c.
3299         (Depends-on): Add extern-inline.
3300         (configure.ac): Do not require AC_C_INLINE.
3301         (lib_SOURCES): Add pipe-filter-aux.c.
3302
3303         fdutimensat: omit unnecessary AC_C_INLINE
3304         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
3305
3306         fchmodat, fchownat, fstatat: use extern-inline
3307         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
3308         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
3309         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
3310         New macros.
3311         * lib/openat.h:
3312         Replace all uses of 'static inline' with them.
3313         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3314         * modules/fchmodat, modules/fchownat, modules/fstatat:
3315         * modules/openat-h:
3316         (Depends-on):
3317         Add extern-inline.
3318         (configure.ac): Remove AC_C_INLINE.
3319
3320         acl, mbchar, priv-set: use extern-inline
3321         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
3322         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
3323         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
3324         New macros.
3325         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
3326         Replace all uses of 'static inline' with it.
3327         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3328         * m4/acl.m4 (gl_FUNC_ACL):
3329         * m4/mbchar.m4 (gl_MBCHAR):
3330         * m4/priv-set.m4 (gl_PRIV_SET):
3331         Remove AC_C_INLINE, since 'inline' is no longer used directly.
3332         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
3333         Add extern-inline.
3334
3335         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
3336         * m4/sockets.m4 (gl_SOCKETS):
3337         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3338         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
3339         environments where it's already guaranteed to work, so we needn't
3340         check for it at 'configure'-time.
3341
3342         tls-tests: omit unnecessary 'inline'
3343         * tests/test-tls.c (perhaps_yield): No longer inline.
3344         Simplicity and portability trump efficiency in test cases.
3345
3346         utimens-tests: avoid unnecessary 'inline'
3347         * modules/fdutimensat-tests (configure.ac):
3348         * modules/futimens-tests (configure.ac):
3349         * modules/utimens-tests (configure.ac):
3350         * modules/utimensat-tests (configure.ac):
3351         Remove AC_C_INLINE.
3352         * tests/test-utimens-common.h (ctime_compare):
3353         No longer inline.  Simplicity and portability trump efficiency here.
3354
3355         misc: don't limit commentary to inline functions
3356         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
3357         * lib/xalloc-oversized.h, lib/xsize.h:
3358         Contrast macros to functions in general, not just to inline functions,
3359         when the commentary does not apply only to inline functions.
3360
3361 2012-09-20  Jim Meyering  <meyering@redhat.com>
3362
3363         non-recursive-gnulib-prefix-hack: new module
3364         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
3365         the file that originated in Bison.
3366         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
3367         largely copied from a snippet that resided in bison's configure.ac.
3368         * modules/non-recursive-gnulib-prefix-hack: New file.
3369         * MODULES.html.sh (Support for maintaining and releasing projects):
3370         Add it.
3371
3372 2012-09-18  Jim Meyering  <meyering@redhat.com>
3373
3374         maint.mk: generalize _gl_tight_scope for non-recursive make
3375         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
3376         that *.h would describe additional .h files in the directory
3377         specified by $(_gl_TS_dir).  I.e., add this...
3378         (_gl_TS_other_headers): New variable.
3379
3380         maint.mk: exempt trailing blanks found in "binary" files
3381         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
3382         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
3383         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3384
3385 2012-09-17  Jim Meyering  <meyering@redhat.com>
3386
3387         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
3388         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
3389         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
3390         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3391
3392 2012-09-17  Jim Meyering  <meyering@redhat.com>
3393
3394         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
3395         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
3396         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
3397         It is not in the same category as "exit (0)" or "exit (1)", and
3398         besides, I know of no symbolic name for that 77.  Reported by
3399         Richard W.M. Jones in
3400         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3401
3402 2012-09-17  Jim Meyering  <meyering@redhat.com>
3403
3404         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
3405         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
3406         all uses of #define, not just those that start in column 1.
3407         Richard W.M. Jones reported a false positive in
3408         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3409
3410 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3411
3412         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
3413         * lib/localcharset.c (locale_charset) [DARWIN7]:
3414         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
3415         as these two values are incompatible.  Problem reported by Max Horn.
3416         For more discussion, please see
3417         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
3418
3419         doc: document sticky-EOF issue
3420         * doc/posix-functions/fgetc.texi (fgetc):
3421         * doc/posix-functions/fgets.texi (fgets):
3422         * doc/posix-functions/fread.texi (fread):
3423         * doc/posix-functions/fscanf.texi (fscanf):
3424         * doc/posix-functions/getc.texi (getc):
3425         * doc/posix-functions/getchar.texi (getchar):
3426         * doc/posix-functions/scanf.texi (scanf):
3427         Mention that glibc and default Solaris do not conform to
3428         C99 and POSIX-2001 or later, with respect to how getchar
3429         etc. behave when feof reports nonzero.
3430
3431 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3432
3433         poll: fix poll(0, NULL, msec)
3434         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
3435         but nfd is 0.  In that case poll should behave like select.
3436
3437 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3438             Paolo Bonzini <bonzini@gnu.org>
3439
3440         poll: fix for systems that can't recv() on a non-socket
3441         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
3442         is readable.  In this case POLLHUP will not be supported.
3443         * doc/posix-functions/poll.texi: Document this.
3444
3445 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
3446
3447         poll/select: document portability problems not fixed by Gnulib.
3448         * doc/posix-functions/poll.texi: poll does not work well on
3449         pipes under Windows.  It has the same limitations as select on
3450         BeOS.
3451         * doc/posix-functions/select.texi: select does not work well
3452         on pipes under Windows.
3453
3454 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3455
3456         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
3457         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
3458         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
3459         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
3460
3461 2012-09-06  Eric Blake  <eblake@redhat.com>
3462
3463         net_if: give more details about the bug being fixed
3464         * doc/posix-headers/net_if.texi: Add clarification.
3465
3466 2012-09-05  Eric Blake  <eblake@redhat.com>
3467
3468         net_if: new module
3469         * modules/net_if: New module, borrowing ideas from netinet_in.
3470         * m4/net_if_h.m4: New file.
3471         * lib/net_if.in.h: Likewise.
3472         * doc/posix-headers/net_if.texi (net/if.h): Document it.
3473         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3474         * tests/test-net_if.c: Make function checks conditional.
3475         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
3476
3477 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
3478
3479         readutmp: fix non-portable UT_PID use
3480         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
3481         Use `UT_PID (u) > 0' as absolute condition.
3482
3483 2012-09-04  Jim Meyering  <meyering@redhat.com>
3484
3485         fts: reduce two or more trailing spaces to just one, usually
3486         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
3487         or more slashes, trim all but the final one.  But if a name consists
3488         solely of two slashes, don't modify it.  If it consists solely of
3489         three or more slashes, strip all but one.
3490
3491         This is part of the solution to a minor problem with rm:
3492         it would print a bogus ELOOP diagnostic when failing to remove
3493         the slash-decorated name of a symlink-to-directory:
3494
3495             $ mkdir d && ln -s d s && env rm -r s/
3496             rm: cannot remove 's': Too many levels of symbolic links
3497
3498         With the change below and a trivial don't-trim-trailing-slashes
3499         adjustment to remove.c, it does this:
3500
3501             $ env rm -r s/
3502             rm: cannot remove 's/': Not a directory
3503
3504         Improved by: Eric Blake
3505
3506         fts: when there is no risk of overlap, use memcpy, not memmove
3507         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
3508
3509 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3510
3511         stdbool: be more compatible with mixed C/C++ compiles
3512         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
3513         Define to bool, true, false, respectively, as GCC's builtin
3514         stdbool.h does.  Problem reported by Michael Goffioul in
3515         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
3516
3517 2012-08-28  Jim Meyering  <meyering@redhat.com>
3518
3519         revert last change: it was not needed
3520         * tests/test-vc-list-files-git.sh: There's already a test for
3521         a working git, just below.
3522
3523 2012-08-28  Jim Meyering  <meyering@redhat.com>
3524
3525         tests: test-vc-list-files-git.sh: skip if git is not available
3526         * tests/test-vc-list-files-git.sh: Skip this test when git is
3527         not available.
3528
3529 2012-08-26  Bruno Haible  <bruno@clisp.org>
3530
3531         gnulib-tool: Remove no-op option --no-changelog.
3532         * gnulib-tool (func_usage): Don't mention --no-changelog.
3533         (do_changelog): Remove variable.
3534         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3535
3536 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3537
3538         doc: remove fdl-1.2.texi
3539         It is no longer used or maintained, and its use of @acronym
3540         is problematic.  See the thread containing
3541         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
3542         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
3543         * doc/old-licenses/fdl-1.2.texi: Remove.
3544
3545         execinfo: port to FreeBSD
3546         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
3547         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
3548         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
3549         * modules/execinfo (Link): Add $(LIB_EXECINFO).
3550
3551 2012-08-23  Jim Meyering  <meyering@redhat.com>
3552
3553         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
3554         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
3555         to placate gcc's -Wold-style-declaration.
3556
3557 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3558
3559         doc: do not use @acronym
3560         * doc/inet_ntoa.texi (inet_ntoa):
3561         * doc/parse-datetime.texi (Seconds since the Epoch)
3562         (Specifying time zone rules):
3563         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
3564         Don't use @acronym.  Problem reported by John Darlington in
3565         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
3566
3567 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3568
3569         stdnoreturn: port to newer GCCs
3570         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
3571         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
3572         Problem reported by Jim Meyering in
3573         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
3574         Also, rename the 'test' function to a void a clash with the
3575         already-supplied 'main' function; this fixes a bug that incorrectly
3576         rejected GCC 4.7.1's <stdnoreturn.h>.
3577         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
3578         Document GCC problem.
3579
3580 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
3581
3582         pipe-filter: fix comment typo
3583         * lib/pipe-filter.h: Mention correct function.
3584
3585 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3586
3587         execinfo: new module
3588         This is for Emacs.  Currently, it provides a no-effect stub
3589         on all platforms where it does not already work.
3590         It already works on glibc-based systems, and on Solaris 11.
3591         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
3592         New files.
3593         * doc/glibc-headers/execinfo.texi (execinfo.h):
3594         * MODULES.html.sh (Misc): Document it.
3595
3596 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3597
3598         extern-inline: support old GCC 'inline'
3599         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
3600         if available.  This applies to GCC versions 2.7 through 4.2, or
3601         when newer GCC is using -fgnu89-inline.  The goal is to address
3602         some of the performance issues mentioned by Bruno Haible in
3603         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
3604
3605 2012-08-20  Eric Blake  <eblake@redhat.com>
3606
3607         maint.mk: avoid redundant file name in message
3608         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3609         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
3610         (sc_makefile_path_separator_check): Remove bogus $(ME).
3611
3612 2012-08-20  Mike Frysinger <vapier@gentoo.org>
3613
3614         timer-time: fix link order when static linking on glibc
3615         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3616         _after_ -lrt so that it's significant.
3617
3618 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3619
3620         timespec: omit unnecessary AC_C_INLINE
3621         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
3622
3623         stat-time: omit unnecessary AC_C_INLINE
3624         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3625         Do not require AC_C_INLINE.
3626
3627         ignore-value: omit unnecessary AC_C_INLINE
3628         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
3629
3630         sys_select: avoid 'static inline'
3631         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
3632
3633         mktime: avoid 'static inline'
3634         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
3635         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
3636
3637 2012-08-19  Bruno Haible  <bruno@clisp.org>
3638
3639         gnulib-tool: Improve coding style.
3640         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
3641         func_emit_lib_Makefile_am.
3642         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3643
3644 2012-08-19  Bruno Haible  <bruno@clisp.org>
3645
3646         gnulib-tool: Fix indentation.
3647         * gnulib-tool (func_import): Fix indentation.
3648
3649 2012-08-19  Bruno Haible  <bruno@clisp.org>
3650
3651         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
3652         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
3653         on the list of removed files.
3654
3655 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3656
3657         test-parse-datetime: avoid glibc leap-second glitch
3658         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
3659         with the 2012 rules.  Problem reported by Bruce Dubbs in
3660         <http://bugs.gnu.org/12206>.
3661
3662 2012-08-14  Bruno Haible  <bruno@clisp.org>
3663
3664         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
3665         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
3666         from argument.
3667         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3668
3669 2012-08-14  Eric Blake  <eblake@redhat.com>
3670
3671         ldexp: relax license
3672         * modules/ldexp (License): Trivial relax, since the module only
3673         provides a permissively licensed m4 file.
3674
3675 2012-08-13  Bruno Haible  <bruno@clisp.org>
3676
3677         gnulib-tool: Fix persistence of --witness-c-macro option.
3678         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
3679         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3680
3681 2012-08-11  Eric Blake  <eblake@redhat.com>
3682
3683         count-leading-zeros: use a lookup table on non-gcc compilers
3684         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
3685         alternate implementation, suggested by Jim Meyering.
3686
3687 2012-08-10  Eric Blake  <eblake@redhat.com>
3688
3689         count-leading-zeros: new module
3690         * modules/count-leading-zeros: New module.
3691         * m4/count-leading-zeros.m4: New file.
3692         * lib/count-leading-zeros.h: Likewise.
3693         * modules/count-leading-zeros-tests: New test.
3694         * tests/test-count-leading-zeros.c: New file.
3695         * MODULES.html.sh (Integer arithmetic functions): Document it.
3696
3697 2012-08-07  Simon Josefsson  <simon@josefsson.org>
3698             Jim Meyering  <meyering@redhat.com>
3699
3700         maintainer-makefile: Fix syntax error with dash.
3701         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
3702         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
3703
3704 2012-08-05  Jim Meyering  <meyering@redhat.com>
3705
3706         extern-inline: also ignore -Wmissing-declarations
3707         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
3708         required with gcc-4.8.0-to-be.
3709
3710         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
3711         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
3712         for /error ?([^,]*)/.  This avoids false-positives for strings like
3713         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
3714
3715 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
3716
3717         gnumakefile: better interaction with Automake-NG
3718         * modules/gnumakefile [Makefile.am]: The makefiles generated by
3719         Automake-NG always contain a definition of VPATH, even in non-VPATH
3720         builds (its value being simply '.' in that case).  So, in the
3721         'clean-GNUmakefile' rule, to determine whether running under a
3722         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
3723         '$(VPATH)' expands to the empty string.
3724
3725 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
3726
3727         base64: Use extern C scope in header file, for C++.
3728         * lib/base64.h: Add C++ namespace protection.
3729
3730 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3731
3732         stat-time, timespec, u64: support naive out-of-dir builds
3733         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
3734         Use '#include "foo.h"', not '#include <foo.h>', when including
3735         one's own interface.  This works better when configuring with
3736         out-of-directory builds, since packages need not add an
3737         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
3738
3739 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3740
3741         utimens: use extern-inline
3742         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
3743         * lib/utimens.h: Add copyright notice, since this is now large enough
3744         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3745         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
3746         * modules/utimens (Depends-on): Add extern-inline.
3747
3748         u64: use extern-inline
3749         * lib/u64.c: New file.
3750         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3751         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
3752         * modules/u64 (Files): Add lib/u64.c.
3753         (Depends-on): Add extern-inline.
3754         (configure.ac): No need to require AC_C_INLINE, since extern-inline
3755         does that now.
3756         (lib_SOURCES): Add u64.c.
3757
3758         timespec: use extern-inline
3759         * lib/timespec.c: New file.
3760         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3761         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
3762         * modules/timespec (Files): Add lib/timespec.c.
3763         (Depends-on): Add extern-inline.
3764         (lib_SOURCES): Add timespec.c.
3765
3766         stat-time: use extern-inline
3767         * lib/stat-time.c: New file.
3768         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3769         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
3770         * modules/stat-time (Files): Add lib/stat-time.c.
3771         (Depends-on): Add extern-inline.
3772         (lib_SOURCES): Add stat-time.c.
3773
3774         extern-inline: new module
3775         * modules/extern-inline, m4/extern-inline.m4: New files.
3776         This is for better support of 'extern inline' a la ISO C99,
3777         with a portable alternative on compilers that do not support
3778         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
3779         of the Emacs executable, when compiled with debugging disabled,
3780         which is a typical way that Emacs is built while developing.
3781
3782 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
3783
3784         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
3785         * build-aux/do-release-commit-and-tag: Move variable definitions
3786         together.
3787         ($branch): Instead of defaulting to "master", default to the current
3788         branch (as gnu-web-doc-update does).
3789         (help): Display the current values of the option arguments.
3790         * top/maint.mk (release-commit): New.
3791         * top/README-release: Simplify the corresponding step.
3792
3793 2012-07-30  Eric Blake  <eblake@redhat.com>
3794
3795         passfd: fix comment on recvfd
3796         * lib/passfd.c (recvfd): Fix comment.
3797         Reported by Jann Horn <jannhorn@googlemail.com>.
3798
3799 2012-07-30  Jim Meyering  <meyering@redhat.com>
3800
3801         maint.mk: avoid a sub-shell
3802         * top/maint.mk (release-prep): Remove unneeded sub-shell.
3803
3804 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3805
3806         maint.mk: use silent-rules support from Automake
3807         * top/maint.mk (news-check, vc-diff-check, announcement)
3808         (no-submodule-changes, alpha beta stable, release-prep)
3809         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
3810
3811 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3812
3813         maint.mk: provide a web-manual-update target
3814         * top/maint.mk: here.
3815         * top/README-release: Use it to simplify the web manual update step.
3816
3817 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3818
3819         README-release: shorten the circuit to post a news
3820         * top/README-release: Point directly to the news submission form.
3821
3822 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3823
3824         gnu-web-doc-update: fix --help
3825         * build-aux/gnu-web-doc-update: The information "top level" was written
3826         twice.
3827
3828 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3829
3830         maint.mk: absolute VPATH issue
3831         * top/maint.mk (release-prep): Help Git find .git/.
3832         From Jim Meyering.
3833
3834 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3835
3836         gitlog-to-changelog: fix previous change
3837         * build-aux/gitlog-to-changelog: Fix condition.
3838         Add missing ";".
3839
3840 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3841
3842         gitlog-to-changelog: don't expect .git to be in $srcdir
3843         Reported by Bruno Haible.
3844         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
3845         * build-aux/gitlog-to-changelog (&git_dir_option): New.
3846         Use it.
3847
3848 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3849
3850         maint.mk: absolute VPATH build fix
3851         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
3852         $(srcdir) is not a parent of $(builddir).
3853
3854 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
3855
3856         clean-temp: Fix memory leak.
3857         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
3858         'files' members of tmpdir.
3859
3860 2012-07-27  Jim Meyering  <meyering@redhat.com>
3861
3862         maint.mk: new rule: refresh-gnulib-patches
3863         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
3864         Use this rule to refresh them.
3865         * top/maint.mk (refresh-gnulib-patches): New rule.
3866
3867 2012-07-24  Bruno Haible  <bruno@clisp.org>
3868
3869         gnulib-tool: Fix handling of inctests variable.
3870         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
3871         Reported by Nick Bowler <nbowler@elliptictech.com>.
3872
3873 2012-07-22  Bruno Haible  <bruno@clisp.org>
3874
3875         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
3876         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
3877         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3878         Remove exemption for getpass.h.
3879         Suggested by Eric Blake.
3880
3881 2012-07-20  Eric Blake  <eblake@redhat.com>
3882
3883         verify: document conflict with -Wnested-externs
3884         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
3885
3886         maint.mk: forbid exit(-1)
3887         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
3888
3889 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
3890
3891         fsusage: port back to Solaris
3892         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
3893         error (fsd not declared) on Solaris 10.  Reported privately by
3894         Andrew Borodin.
3895
3896 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
3897
3898         gnu-web-doc-update: fix error messages
3899         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
3900
3901         gnu-web-doc-update: check the requirements.
3902         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
3903         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
3904         * build-aux/bootstrap (find_tool): Comment change.
3905
3906 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
3907
3908         maint.mk: minor simplication.
3909         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
3910         for default values.
3911
3912 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
3913
3914         gitlog-to-changelog: VPATH build issues
3915         If builddir is not a subdirectory of srcdir, running git from it will
3916         fail.
3917         * build-aux/gitlog-to-changelog (--srcdir): New option.
3918
3919 2012-07-15  Bruno Haible  <bruno@clisp.org>
3920
3921         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
3922         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
3923         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
3924         Remove exemption for fpending.h.
3925         Suggested by Eric Blake.
3926
3927 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3928
3929         pthread_sigmask: fix bug on FreeBSD 9
3930         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
3931         Include string.h.
3932         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
3933         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
3934         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
3935         but pthread_sigmask (1729, NULL, NULL) returns zero.
3936         See <http://bugs.gnu.org/11884>.
3937         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
3938         by inspecting whether the main call changed the old mask.
3939
3940 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
3941
3942         README-release: make it more legible
3943         * top/README-release: Improve typography slightly.
3944
3945 2012-07-15  Jim Meyering  <meyering@redhat.com>
3946
3947         maint: require that each sc_... command start with "@"
3948         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
3949         "make sc_maint" helps us avoid this nit.
3950
3951 2012-07-15  Jim Meyering  <meyering@redhat.com>
3952
3953         maint.mk: add leading "@" to quiet new "make syntax-check" rule
3954         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
3955
3956 2012-07-13  Eric Blake  <eblake@redhat.com>
3957
3958         maint.mk: new syntax check for HAVE_DECL checks
3959         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
3960         * cfg.mk
3961         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3962         Exempt some false positives.
3963         Based on a report by Karel Zak.
3964
3965         argp: make HAVE_DECL usage consistent
3966         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
3967         macros, not whether they are defined.
3968         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
3969         convention with other declaration checks.
3970         Reported by Karel Zak, with suggestions from Paul Eggert.
3971
3972         stat-time: relax license to LGPLv2+
3973         * modules/stat-time (License): Relax, with consent of all authors.
3974
3975         strndup: fix m4 usage error
3976         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
3977         defined, to either 0 or 1.
3978         Reported by Karel Zak.
3979
3980 2012-07-11  Jim Meyering  <meyering@redhat.com>
3981
3982         maint: enable the sc_avoid_if_before_free syntax-check rule
3983         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
3984         (if_before_free_offenders_): Define.
3985         (if_before_free_basename_re_): Define.
3986         Exempt current files with useless if-before-free.
3987
3988 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
3989
3990         gettext: do not assume '#define ... defined ...' behavior
3991         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
3992         Do not use '#define FOO ... defined BAR ...', as the C standard says
3993         it's not portable to expect that this works after macro expansion.
3994         Problem reported for gzip by Steven M. Schweda in
3995         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
3996
3997 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
3998
3999         getloadavg: clean out old Emacs and Autoconf cruft
4000         See Glenn Morris in <http://bugs.gnu.org/11905>.
4001         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
4002         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
4003         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
4004         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
4005
4006 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
4007
4008         bootstrap: let warn be like tests/init.sh's warn_
4009         Reported by Jim Meyering.
4010         * build-aux/bootstrap (warn): Remove, replaced by...
4011         (warnf_, warn_): these.
4012         Adjust callers.
4013         Shorten messages that no longer fit in 80 columns.
4014
4015 2012-07-09  Bruno Haible  <bruno@clisp.org>
4016
4017         getopt: Simplify after Emacs changed.
4018         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
4019         (gl_GETOPT_IFELSE): Remove macro.
4020
4021 2012-07-09  Jim Meyering  <meyering@redhat.com>
4022
4023         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
4024         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
4025
4026         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
4027         Bugs in both of those conspired to make the
4028         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
4029         _sc_search_regexp's handling of non-empty $in_files would filter
4030         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
4031         choice of in_files value meant there would be no match in most
4032         projects, due to the presence of two or more Makefile.in files.
4033         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
4034         Fix a bug in how a non-empty $$in_files was processed:
4035         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
4036         in spite of the name, it's a regexp, not a list of file names.
4037
4038 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4039
4040         getloadavg, getopt: fix commentary re configure.in
4041         Autoconf is deprecating the name 'configure.in', so change it to
4042         to the new name 'configure.ac' in a couple of places.
4043         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
4044         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
4045         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
4046         Emacs has renamed it to configure.ac, and it no longer refers
4047         to these macros anyway.
4048
4049         timespec: mark functions with const attributes
4050         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
4051         Mark with _GL_ATTRIBUTE_CONST.
4052
4053 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4054
4055         canonicalize[-lgpl]: handle "guessing" values when cross-building
4056         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
4057         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
4058         matches "*yes" instead of just "yes".  Regression introduced in commit
4059         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
4060
4061 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4062             Bruno Haible  <bruno@clisp.org>
4063
4064         canonicalize: make the right guess when cross-compiling to GNU
4065         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
4066         determine whether cross-compiling to glibc systems, so as to
4067         include GNU/Hurd.
4068
4069 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4070
4071         timespec-sub: avoid duplicate include
4072         * lib/timespec-sub.c: Do not include <config.h> twice.
4073         Reported by Juanma Barranquero.
4074
4075 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
4076
4077         bootstrap: use a more consistent error reporting scheme
4078         * build-aux/bootstrap (warn, die): New.
4079         Use them.
4080
4081 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4082
4083         sys_time: allow too-wide tv_sec
4084         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
4085         timeval even if tv_sec is wider than time_t.  This allows
4086         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
4087         as without this patch gnulib replaces struct timeval
4088         and OpenBSD futimes therefore has a type mismatch.
4089         * doc/posix-headers/sys_time.texi: Mention this.
4090
4091         pthread: check for both pthread_create and pthread_join
4092         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
4093         alter the check so that it tests for both pthread_create and
4094         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
4095         Suggested by Bruno Haible and Richard Yao in
4096         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
4097
4098         parse-datetime: doc tuneup
4099         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
4100         spacing issues.
4101
4102 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
4103
4104         do-release-commit-and-tag: fix the previous commit
4105         * build-aux/do-release-commit-and-tag: Actually the test was right,
4106         but the comment and the error message were misleading.
4107         Fix comment, and improve error message.
4108         Perform check first, so that NEWS is not modified uselessly.
4109
4110         do-release-commit-and-tag: fix typo
4111         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
4112         _not_ start with a stub.
4113
4114 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
4115
4116         pthread: check for pthread_create, not pthread_join
4117         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
4118         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
4119         pthread_join in libc.  I hope this removes the need for all the
4120         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
4121         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
4122
4123 2012-07-04  Jim Meyering  <meyering@redhat.com>
4124
4125         parse-datetime: fix failure to diagnose invalid input
4126         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
4127         rather than diagnosing the invalid input.  Now it reports this:
4128         date: invalid date '\260'
4129         * lib/parse-datetime.y (to_uchar): Define.
4130         (yylex): Don't sign-extend "other" bytes.
4131         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
4132         Thanks to Bruno Haible for the patch to this file.
4133         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
4134         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
4135
4136 2012-07-03  Jim Meyering  <meyering@redhat.com>
4137
4138         bootstrap: do not require now-removed build-aux/missing
4139         Now that build-aux/missing is, er, missing, bootstrap would
4140         silently fail.
4141         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
4142         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
4143         no longer part of gnulib.
4144         Diagnose the failure.
4145
4146 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4147
4148         alloca: add support for HP NonStop TNS/E native
4149         * lib/alloca.in.h (alloca): Support the new host.
4150         From a suggestion by Joachim Schmitz in
4151         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
4152
4153 2012-07-02  Pádraig Brady  <P@draigBrady.com>
4154
4155         fsusage: remove code not needed on non GNU/Linux systems.
4156
4157         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4158         Don't include headers no longer needed in this case.
4159         * lib/fsusage.c [STAT_STATVFS &&
4160         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
4161         STAT_STATFS2_FRSIZE to exclude code not used in this case.
4162
4163 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4164
4165         fsusage: include files needed for glibc 2.6 fallback
4166         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4167         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
4168         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
4169         Problem reported by Ludovic Courtès in
4170         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
4171
4172         fsusage: avoid needless check on GNU/Linux
4173         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
4174         on GNU/Linux systems, since it can't possibly work.
4175
4176 2012-07-01  Bruno Haible  <bruno@clisp.org>
4177
4178         log: Fix an autoconf >= 2.64 warning.
4179         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
4180         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4181
4182 2012-06-28  Bruno Haible  <bruno@clisp.org>
4183
4184         log10f: Fix possible configuration problem.
4185         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
4186         $LOGF_LIBM.
4187         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4188
4189 2012-06-28  Bruno Haible  <bruno@clisp.org>
4190
4191         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
4192         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
4193         not gl_cv_func_unlink_works.
4194         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4195
4196 2012-06-27  Eric Blake  <eblake@redhat.com>
4197
4198         config: drop scripts that automake says are not independent
4199         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
4200         * build-aux/elisp-comp: Delete.
4201         * build-aux/missing: Likewise.
4202         * build-aux/ylwrap: Likewise.
4203         * modules/elisp-comp: Likewise.
4204         * MODULES.html.sh: Drop mention of elisp-comp.
4205         * NEWS: Mention this.
4206
4207 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
4208
4209         root-uid: new module
4210         This is for portability to Tandem's NonStop Kernel.
4211         * lib/root-uid.h, modules/root-uid: New files.
4212         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
4213         * lib/write-any-file.c, tests/test-sethostname2.c:
4214         Include "root-uid.h".
4215         * lib/euidaccess.c (euidaccess):
4216         * lib/pt_chown.c (main):
4217         * lib/unlinkdir.c (cannot_unlink_dir):
4218         * lib/write-any-file.c (can_write_any_file):
4219         * m4/mknod.m4 (gl_FUNC_MKNOD):
4220         * tests/test-sethostname2.c (geteuid, main):
4221         Don't assume ROOT_UID == 0.
4222         * modules/euidaccess (Depends-on):
4223         * modules/pt_chown (Depends-on):
4224         * modules/sethostname-tests (Depends-on):
4225         * modules/unlinkdir (Depends-on):
4226         * modules/write-any-file (Depends-on):
4227         Add root-uid.
4228
4229         regex: use locale-independent comparison for codeset name
4230         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
4231         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
4232         for codeset name.
4233         * lib/regex_internal.h: Do not include <strings.h>, since we
4234         no longer use strcasecmp.
4235         * modules/regex (Depends-on): Remove strcase.
4236
4237 2012-06-23  Bruno Haible  <bruno@clisp.org>
4238
4239         getopt-posix: No longer guarantee that option processing is resettable.
4240         * doc/posix-functions/getopt.texi: Drop description of problem with
4241         internal state. Fix info about mingw and msvc9.
4242         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
4243         option processing by getopt(). Run three test programs instead of one.
4244         Simplify cross-compilation guess.
4245         * NEWS: Mention the change.
4246         Reported by Rich Felker <dalias@aerifal.cx>.
4247
4248 2012-06-26  Bruno Haible  <bruno@clisp.org>
4249
4250         argp, regex: Ensure strcasecmp gets declared.
4251         * lib/argp-help.c: Include <strings.h>.
4252         * lib/regex_internal.h: Likewise.
4253         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
4254
4255 2012-06-24  Bruno Haible  <bruno@clisp.org>
4256
4257         ptsname_r: Make it consistent with ptsname on AIX.
4258         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
4259         implementation as for OSF/1.
4260         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
4261         a pty master.
4262
4263         ptsname_r: Make it consistent with ptsname on OSF/1.
4264         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4265         OSF/1.
4266
4267 2012-06-24  Bruno Haible  <bruno@clisp.org>
4268
4269         ttyname_r: Fix result on OSF/1, Solaris.
4270         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
4271
4272 2012-06-24  Bruno Haible  <bruno@clisp.org>
4273
4274         ptsname_r: Add support for Solaris.
4275         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4276         Solaris.
4277
4278         ptsname_r: Fix test failure on native Windows.
4279         * modules/ptsname_r (Depends-on): Add isatty.
4280
4281         ptsname_r: Fix test failures on IRIX, Solaris.
4282         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
4283         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
4284         accordingly.
4285         * lib/ptsname_r.c: Include <fcntl.h>.
4286         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
4287         set errno if fd is invalid.
4288         * tests/test-isatty.c (main): Update comments.
4289
4290 2012-06-24  Bruno Haible  <bruno@clisp.org>
4291
4292         ptsname test: Extend test.
4293         * tests/test-ptsname.c: Include <errno.h>.
4294         (main): Test behaviour with invalid file descriptor.
4295
4296 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4297
4298         time: fix obsolete comment
4299         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
4300         reference to HAVE_STRUCT_TIMESPEC in comment.
4301
4302 2012-06-23  Bruno Haible  <bruno@clisp.org>
4303
4304         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
4305         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
4306         does not handle abbreviated long options with equivalent
4307         disambiguations, set gl_replace_getopt to yes.
4308         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
4309
4310 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
4311
4312         time_r: fix typo that always overrode localtime_r decl
4313         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
4314         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
4315         not in a standard include.
4316
4317 2012-06-22  Bruno Haible  <bruno@clisp.org>
4318
4319         Write "Mac OS X" instead of "MacOS X".
4320         * README: Write "Mac OS X" instead of "MacOS X".
4321         * build-aux/bootstrap: Likewise.
4322         * build-aux/install-reloc: Likewise.
4323         * lib/acl-internal.h: Likewise.
4324         * lib/acl_entries.c: Likewise.
4325         * lib/argp-ba.c: Likewise.
4326         * lib/argp-pv.c: Likewise.
4327         * lib/config.charset: Likewise.
4328         * lib/copy-acl.c: Likewise.
4329         * lib/csharpexec.c: Likewise.
4330         * lib/euidaccess.c: Likewise.
4331         * lib/fbufmode.c: Likewise.
4332         * lib/fflush.c: Likewise.
4333         * lib/file-has-acl.c: Likewise.
4334         * lib/filemode.h: Likewise.
4335         * lib/fpurge.c: Likewise.
4336         * lib/freadable.c: Likewise.
4337         * lib/freadahead.c: Likewise.
4338         * lib/freading.c: Likewise.
4339         * lib/freadptr.c: Likewise.
4340         * lib/freadseek.c: Likewise.
4341         * lib/fseeko.c: Likewise.
4342         * lib/fseterr.c: Likewise.
4343         * lib/fsusage.c: Likewise.
4344         * lib/fwritable.c: Likewise.
4345         * lib/fwriting.c: Likewise.
4346         * lib/get-rusage-as.c: Likewise.
4347         * lib/get-rusage-data.c: Likewise.
4348         * lib/getdomainname.c: Likewise.
4349         * lib/idpriv-drop.c: Likewise.
4350         * lib/idpriv-droptemp.c: Likewise.
4351         * lib/localcharset.c: Likewise.
4352         * lib/locale.in.h: Likewise.
4353         * lib/localename.c: Likewise.
4354         * lib/mbsrtowcs-state.c: Likewise.
4355         * lib/nproc.c: Likewise.
4356         * lib/passfd.c: Likewise.
4357         * lib/posix_openpt.c: Likewise.
4358         * lib/printf-parse.c: Likewise.
4359         * lib/progreloc.c: Likewise.
4360         * lib/safe-read.h: Likewise.
4361         * lib/safe-write.h: Likewise.
4362         * lib/sched.in.h: Likewise.
4363         * lib/set-mode-acl.c: Likewise.
4364         * lib/signal.in.h: Likewise.
4365         * lib/stdint.in.h: Likewise.
4366         * lib/stdio-impl.h: Likewise.
4367         * lib/stdlib.in.h: Likewise.
4368         * lib/strtod.c: Likewise.
4369         * lib/sys_select.in.h: Likewise.
4370         * lib/tcgetsid.c: Likewise.
4371         * lib/unistd.in.h: Likewise.
4372         * lib/unlockpt.c: Likewise.
4373         * lib/vasnprintf.c: Likewise.
4374         * lib/vma-iter.c: Likewise.
4375         * lib/wcsrtombs-state.c: Likewise.
4376         * m4/acl.m4: Likewise.
4377         * m4/acosl.m4: Likewise.
4378         * m4/asinl.m4: Likewise.
4379         * m4/atanl.m4: Likewise.
4380         * m4/c-stack.m4: Likewise.
4381         * m4/cosl.m4: Likewise.
4382         * m4/expl.m4: Likewise.
4383         * m4/extensions.m4: Likewise.
4384         * m4/fdatasync.m4: Likewise.
4385         * m4/fmal.m4: Likewise.
4386         * m4/frexp.m4: Likewise.
4387         * m4/frexpf.m4: Likewise.
4388         * m4/frexpl.m4: Likewise.
4389         * m4/fsusage.m4: Likewise.
4390         * m4/getdomainname.m4: Likewise.
4391         * m4/getloadavg.m4: Likewise.
4392         * m4/getopt.m4: Likewise.
4393         * m4/gettext.m4: Likewise.
4394         * m4/gnulib-common.m4: Likewise.
4395         * m4/intdiv0.m4: Likewise.
4396         * m4/intlmacosx.m4: Likewise.
4397         * m4/largefile.m4: Likewise.
4398         * m4/ldexpl.m4: Likewise.
4399         * m4/link-follow.m4: Likewise.
4400         * m4/locale-ar.m4: Likewise.
4401         * m4/locale-fr.m4: Likewise.
4402         * m4/locale-ja.m4: Likewise.
4403         * m4/locale-tr.m4: Likewise.
4404         * m4/locale-zh.m4: Likewise.
4405         * m4/locale_h.m4: Likewise.
4406         * m4/lock.m4: Likewise.
4407         * m4/logl.m4: Likewise.
4408         * m4/mathfunc.m4: Likewise.
4409         * m4/minus-zero.m4: Likewise.
4410         * m4/mktime.m4: Likewise.
4411         * m4/mmap-anon.m4: Likewise.
4412         * m4/multiarch.m4: Likewise.
4413         * m4/nanosleep.m4: Likewise.
4414         * m4/nocrash.m4: Likewise.
4415         * m4/poll.m4: Likewise.
4416         * m4/printf-frexpl.m4: Likewise.
4417         * m4/printf.m4: Likewise.
4418         * m4/signbit.m4: Likewise.
4419         * m4/sinl.m4: Likewise.
4420         * m4/sqrtl.m4: Likewise.
4421         * m4/strerror_r.m4: Likewise.
4422         * m4/tanl.m4: Likewise.
4423         * m4/threadlib.m4: Likewise.
4424         * m4/ttyname_r.m4: Likewise.
4425         * m4/unlink.m4: Likewise.
4426         * m4/visibility.m4: Likewise.
4427         * m4/wcwidth.m4: Likewise.
4428         * tests/minus-zero.h: Likewise.
4429         * tests/test-alloca-opt.c: Likewise.
4430         * tests/test-copy-acl.sh: Likewise.
4431         * tests/test-copy-file.sh: Likewise.
4432         * tests/test-fdatasync.c: Likewise.
4433         * tests/test-file-has-acl.sh: Likewise.
4434         * tests/test-flock.c: Likewise.
4435         * tests/test-fsync.c: Likewise.
4436         * tests/test-localename.c: Likewise.
4437         * tests/test-malloca.c: Likewise.
4438         * tests/test-nonblocking-pipe.h: Likewise.
4439         * tests/test-nonblocking-socket.h: Likewise.
4440         * tests/test-openpty.c: Likewise.
4441         * tests/test-posix_openpt.c: Likewise.
4442         * tests/test-ptsname.c: Likewise.
4443         * tests/test-ptsname_r.c: Likewise.
4444         * tests/test-sameacls.c: Likewise.
4445         * tests/test-select.h: Likewise.
4446         * tests/test-set-mode-acl.sh: Likewise.
4447         * tests/test-snprintf-posix.h: Likewise.
4448         * tests/test-sprintf-posix.h: Likewise.
4449         * tests/test-strtod.c: Likewise.
4450         * tests/test-time.c: Likewise.
4451         * tests/test-vasnprintf-posix.c: Likewise.
4452         * tests/test-vasprintf-posix.c: Likewise.
4453         * doc/acl-resources.txt: Likewise.
4454         * doc/**/*.texi: Likewise.
4455         Reported by Max Horn <max@quendi.de>.
4456
4457 2012-06-22  Bruno Haible  <bruno@clisp.org>
4458
4459         grantpt: Relax requirement regarding invalid file descriptors.
4460         * lib/grantpt.c: Don't include <fcntl.h>.
4461         (grantpt): Don't verify the validity of the file descriptor.
4462         * modules/grantpt (Depends-on): Remove fcntl-h.
4463         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
4464         file descriptors.
4465         * doc/posix-functions/grantpt.texi: Document more platforms on which
4466         grantpt succeeds for invalid file descriptors.
4467         Reported by Rich Felker <dalias@aerifal.cx>.
4468
4469 2012-06-22  Bruno Haible  <bruno@clisp.org>
4470
4471         fbufmode test: Don't test unportable behaviour.
4472         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
4473         (main): Invoke it three times.
4474         Reported by Szabolcs Nagy <nsz@port70.net>
4475         and Rich Felker <dalias@aerifal.cx>.
4476
4477 2012-06-21  Bruno Haible  <bruno@clisp.org>
4478
4479         gnulib-tool: Refactor inctests variable.
4480         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
4481         (func_modules_transitive_closure,
4482         func_modules_transitive_closure_separately,
4483         func_import, func_create_testdir): Update.
4484
4485         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
4486         * gnulib-tool: Accept option --without-tests.
4487         (func_usage): Document --without-tests option. Rearrange.
4488         (inctests): Normalize according to the mode.
4489         * NEWS: Mention the change.
4490         Suggested by Simon Josefsson.
4491
4492 2012-06-21  Bruce Korb  <bkorb@gnu.org>
4493
4494         parse-duration test: Avoid spurious output.
4495         * tests/test-parse-duration.sh: Reindent with leading tabs.
4496
4497 2012-06-21  Jim Meyering  <meyering@redhat.com>
4498
4499         maint: disable the strncpy prohibition
4500         * cfg.mk: Do not prohibit strncpy here.
4501
4502 2012-06-21  Bruno Haible  <bruno@clisp.org>
4503
4504         nonblocking: Avoid compilation error on mingw64.
4505         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
4506         fscanf.
4507         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
4508         * modules/vfscanf (configure.ac): Likewise.
4509         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
4510         definition only if stdio.h has prepared it.
4511         Reported by Daniel P. Berrange <berrange@redhat.com>.
4512
4513 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
4514
4515         gnulib-tool: Use readlink if it is available.
4516         * gnulib-tool (func_readlink): Choose function more appropriately.
4517
4518 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
4519
4520         posixtm-tests: port to buggy compiler
4521         Problem reported by Simon Josefsson in
4522         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
4523         * modules/posixtm-tests (Depends-on): Add stdint.
4524         * tests/test-posixtm.c (struct posixtm_test.t_expected):
4525         Now of type int_least64_t, not int64_t, both because that's
4526         what INT64_C returns and because int_least64_t works even
4527         on 72-bit hosts.
4528         (T): Use INT64_C on constants outside the traditional int range,
4529         to work around compiler bug noted by Simon.
4530
4531         mktime: fix integer overflow in 'configure'-time test
4532         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
4533         after integer overflow.  Problem reported by Rich Felker in
4534         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
4535         Also, don't look for further instances of a bug if we've already
4536         found one instance; this helps 'configure' run faster.
4537
4538 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
4539
4540         tmpfile, clean-temp: Fix invocation of GetVersionEx.
4541         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
4542         GetVersionEx correctly.
4543         * lib/clean-temp.c (supports_delete_on_close): Likewise.
4544
4545 2012-06-20  Bruno Haible  <bruno@clisp.org>
4546
4547         fdopen: Allow implementations that don't reject invalid fd arguments.
4548         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
4549         succeeds.
4550         Reported by Rich Felker <dalias@aerifal.cx>.
4551
4552 2012-06-20  Simon Josefsson  <simon@josefsson.org>
4553
4554         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
4555         bring in LIBINTL.
4556
4557 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4558
4559         init.sh: do not rely on autoupated PWD
4560         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
4561         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
4562         Although Nelson's bug was not necessarily fixed by this patch,
4563         it seems wise to make the change for safety.
4564         * tests/init.sh (path_prepend_): Do not rely on PWD updating
4565         automagically after 'cd'; this is not reliable on older shells.
4566         (setup_): Fail if we cannot cd to temporary directory.
4567
4568 2012-06-19  Bruno Haible  <bruno@clisp.org>
4569
4570         stat, fstat: Avoid warnings on mingw64.
4571         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
4572         redefining.
4573         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
4574         Reported by Daniel P. Berrange <berrange@redhat.com>.
4575
4576 2012-06-19  Bruno Haible  <bruno@clisp.org>
4577
4578         stdioext: Add support for musl libc.
4579
4580         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
4581         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
4582
4583         * m4/fseterr.m4: New file.
4584         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
4585         function exists.
4586         * modules/fseterr (Files): Add m4/fseterr.m4.
4587         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
4588         __fseterr does not exist.
4589         (Makefile.am): Remove fseterr.c from lib_SOURCES.
4590
4591         * lib/freadable.h: Update comment.
4592
4593         * lib/fwritable.h: Update comment.
4594
4595         * lib/freading.h: Update comment.
4596
4597         * lib/fwriting.h: Update comment.
4598
4599         * m4/freadahead.m4: New file.
4600         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
4601         that function exists.
4602         * modules/freadahead (Files): Add m4/freadahead.m4.
4603         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
4604         __freadahead does not exist.
4605         (Makefile.am): Remove freadahead.c from lib_SOURCES.
4606
4607         * m4/freadptr.m4: New file.
4608         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
4609         function exists.
4610         * modules/freadptr (Files): Add m4/freadptr.m4.
4611         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
4612         __freadptr does not exist.
4613         (Makefile.am): Remove freadptr.c from lib_SOURCES.
4614
4615         * m4/freadseek.m4: New file.
4616         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
4617         exists.
4618         * modules/freadseek (Files): Add m4/freadseek.m4.
4619         (configure.ac): Invoke gl_FUNC_FREADSEEK.
4620
4621         * lib/fpurge.c (fpurge): Update comment.
4622
4623         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
4624
4625 2012-06-19  Bruno Haible  <bruno@clisp.org>
4626
4627         *printf-posix: Put more info into config.log.
4628         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
4629         exit code into config.log.
4630
4631 2012-06-19  Bruno Haible  <bruno@clisp.org>
4632
4633         getopt-gnu: Fix exit code overflow in autoconf test.
4634         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
4635         to keep them below < 128.
4636
4637 2012-06-17  Jim Meyering  <meyering@redhat.com>
4638
4639         maint.mk: fix typo in code to derive GPG key at release time
4640         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
4641
4642 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4643
4644         regex: avoid warning when pointers are not long
4645         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
4646         and uintptr_t, not long, for portability to hosts where pointers and
4647         long have different sizes.  Issue noted by Daniel P. Berrange in
4648         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
4649         and fix suggested by Bruno Haible in
4650         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
4651
4652 2012-06-17  Bruno Haible  <bruno@clisp.org>
4653
4654         dummy: Relicense into the public domain.
4655         * modules/dummy (License): Set to "public domain".
4656         Suggested by Reuben Thomas.
4657
4658 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4659
4660         announce-gen: VPATH issues
4661         * build-aux/announce-gen (--srcdir): New option, used to trim the
4662         $srcdir part of the path from $builddir to NEWS.
4663         * top/maint.mk (announcement): Adjust.
4664
4665 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4666
4667         gnu-web-doc-update: VPATH builds
4668         * build-aux/gnu-web-doc-update (--builddir): New option.
4669         Revamp the handling of options.
4670         Prefer $(...) to `...`.
4671         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
4672         the template, and it is GNU mktemp specific.
4673         Prefer set -e to long series of &&.
4674         Restore the initial git branch, not "master".
4675         Properly initialize submodules (don't rely only on bootstrap).
4676         Do not reconfigure blindly, use config.status.
4677         * top/README-release: Update instructions for gnu-web-doc-update.
4678
4679 2012-06-11  Jim Meyering  <meyering@redhat.com>
4680
4681         maint.mk: revert most of the previous change re "all these"
4682         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
4683         For rationale, see the discussion at
4684         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
4685
4686 2012-06-10  Karl Berry  <karl@gnu.org>
4687
4688         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
4689
4690         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
4691
4692 2012-06-10  Bruce Korb  <bkorb@gnu.org>
4693
4694         parse-duration: Relicense under LGPLv2+.
4695         * modules/parse-duration (License): Change to LGPLv2+.
4696
4697 2012-06-10  Jim Meyering  <meyering@redhat.com>
4698
4699         maint.mk: prohibit common grammar error: "all these"
4700         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
4701         the list of prohibited word sequences.  It should be "all of these".
4702         * lib/tempname.c (__gen_tempname): Fix one of them.
4703
4704 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4705
4706         do-release-commit-and-tag: support VPATH builds
4707         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
4708         (noteworthy): Defined earlier to factor its value.
4709         (noteworthy_stub): New.
4710         Use it to factor.
4711         (help_version): Split into...
4712         (help, version): these.
4713         Adjust the option processing part.
4714         Support "--option=value" in addition to "--option value".
4715         (builddir): New.
4716         (--builddir): New option.
4717         * top/README-release: Document this.
4718         Reword slightly so that the reader cannot understand that he
4719         has to do these steps before calling do-release-commit-and-tag.
4720
4721 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4722
4723         readme-release: also require announce-gen and maintainer-makefile
4724         * modules/readme-release (Depends-on): here.
4725         * modules/announce-gen, modules/do-release-commit-and-tag,
4726         modules/gnu-web-doc-update, modules/maintainer-makefile
4727         (Description): Point to readme-release.
4728
4729 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4730
4731         maint.mk: fix VPATH issues.
4732         * top/maint.mk (news-check): GNU Make understand $< very well.
4733         (release-prep): NEWS is in $(srcdir).
4734
4735 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
4736
4737         readme-release: require the promoted modules.
4738         * modules/readme-release (Depends-on): Add
4739         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
4740         in this text.
4741
4742 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4743             Bruno Haible  <bruno@clisp.org>
4744
4745         error, strerror-override: Support mingw64 from Fedora 17.
4746         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
4747         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
4748         EINPROGRESS.
4749         * lib/strerror-override.h (strerror_override): Test it.
4750         * lib/strerror-override.c (strerror_override): Likewise.
4751         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
4752
4753 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4754             Bruno Haible  <bruno@clisp.org>
4755
4756         error, strerror-override: Support mingw64 from Fedora 17.
4757         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
4758         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
4759         * lib/strerror-override.h (strerror_override): Test it.
4760         * lib/strerror-override.c (strerror_override): Likewise.
4761
4762 2012-06-03  Bruno Haible  <bruno@clisp.org>
4763
4764         error, strerror-override: Support new errno values from POSIX:2008.
4765         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
4766         ENOTRECOVERABLE.
4767         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
4768         platforms.
4769         * lib/strerror-override.c (strerror_override): Conditionalize the
4770         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
4771         * lib/strerror-override.h (strerror_override): Declare also if
4772         GNULIB_defined_EOWNERDEAD is defined.
4773         * tests/test-errno.c (e130, e131): New variables.
4774         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
4775         ENOTRECOVERABLE.
4776         Reported by Paolo Bonzini.
4777
4778 2012-05-31  Jim Meyering  <meyering@redhat.com>
4779
4780         savewd: add missing dependency on sys_wait module
4781         * modules/savewd (Depends-on): Add sys_wait, needed at least
4782         for MSVC.  Report and suggested change by Michael Goffioul.
4783
4784 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4785
4786         system-quote-tests: port to CentOS 5
4787         Problem reported by Tom G. Christensen in
4788         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
4789         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
4790
4791 2012-05-29  Jim Meyering  <meyering@redhat.com>
4792
4793         maint: fix typos in comments and ChangeLog
4794         Culprits identified and fixed mostly automatically using these commands:
4795         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
4796         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
4797         using http://github.com/lyda/misspell-check
4798         * ChangeLog: Fix typos.
4799         * doc/solaris-versions: Likewise.
4800         * lib/regexec.c (re_search_stub): Likewise.
4801         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4802
4803 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
4804
4805         manywarnings: remove duplicate -Wmultichar entry
4806         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
4807         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
4808         so keep the entry marked as documented.
4809
4810 2012-05-27  Karl Berry  <karl@gnu.org>
4811
4812         * config/srclist.txt (mktime.c): remove last libc sync,
4813         perhaps just temporarily.
4814
4815 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
4816
4817         regex: don't assume uint64_t or uint32_t
4818         * lib/regcomp.c (init_word_char): Don't assume that the types
4819         uint64_t and uint32_t exist.  The C standard doesn't guarantee
4820         them, and on some 32-bit compilers there is no uint64_t.
4821         Problem reported by Gianluigi Tiesi in
4822         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
4823
4824 2012-05-25  Jim Meyering  <meyering@redhat.com>
4825
4826         maint.mk: add strncpy-prohibiting syntax-check rule
4827         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
4828
4829 2012-05-24  Jim Meyering  <meyering@redhat.com>
4830
4831         maint.mk: compute $(gpg_key_ID) more portably
4832         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
4833         That use of sed is not portable to some fringe systems.
4834         Reported by Paul Eggert in
4835         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
4836
4837 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4838
4839         mktime: sync from glibc
4840         * config/srclist.txt: Uncomment mktime.c.
4841         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
4842         First, indent with tabs, since glibc uses tabs and doesn't want to
4843         change and we'd rather be identical to glibc.  Also, two small
4844         coding changes:
4845         (isdst_differ): Use &&, not &, as && is the usual style.
4846         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
4847         for clarity.
4848
4849 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4850
4851         announce-gen: du -h is more portable than du --human
4852         * build-aux/announce-gen (sizes): Invoke du with -h instead
4853         of --human.  Accept leading white space in its output.
4854
4855 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4856
4857         announce-gen: Improve diagnostics.
4858         * build-aux/announce-gen: When parsing command line options,
4859         prefer "announce-gen: option --release-type requires an argument"
4860         to "Option release-type requires an argument".
4861
4862 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4863
4864         maint.mk: gpg_key_ID: use sed more portably
4865         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
4866         the closing brace.
4867         (refresh-po): Fuse two sed invocations into one.
4868
4869 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
4870
4871         gitlog-to-changelog: support the log message format used in Bison.
4872         * build-aux/gitlog-to-changelog: Support --strip-tab and
4873         --strip-cherry-picked.
4874
4875 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4876
4877         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
4878         the rest of the current time slice to another thread in the current
4879         process. So if the thread that feeds the file decscriptor we're
4880         polling is not in the current process, we get busy-waiting.
4881         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
4882         Patch from Theodore Leblond.
4883         * lib/select.c: Split polling out of the loop that sets the output
4884         fd_sets.  Check for zero result and loop if the wait timeout is
4885         infinite.
4886
4887 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4888
4889         select: Fix build error on IRIX 6.5.
4890         * lib/select.c: Include stddef.h for NULL.
4891
4892 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4893
4894         gc: fix libgcrypt detection on older machines.
4895         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
4896         copyright years because the file has been distributed every year
4897         since it was created.
4898
4899 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
4900
4901         crypto: fix bug in large buffer handling
4902         Problem reported by Serge Belyshev for glibc in
4903         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
4904         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
4905         * lib/md4.c (md4_process_block):
4906         * lib/md5.c (md5_process_block):
4907         * lib/sha1.c (sha1_process_block):
4908         * lib/sha256.c (sha256_process_block):
4909         Don't assume the buffer length is less than 2**32.
4910         * lib/sha512.c (sha512_process_block): Likewise.
4911         Here, the bug is present only in the rare case where the host does
4912         not support uint64_t or where size_t is wider than 64 bits.
4913         Use u64size to work around the problems.
4914         * lib/u64.h (u64size): New macro.
4915
4916 2012-05-15  Pádraig Brady  <P@draigBrady.com>
4917
4918         fsusage: fix block size returned on older Linux 2.6
4919
4920         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
4921         which is available since Linux 2.6.
4922         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
4923         when the member is available so it can be used as a fallback.
4924         * doc/posix-functions/statvfs.texi: Mention the hang issue
4925         on Linux < 2.6.36.
4926
4927 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
4928
4929         bootstrap: suppress stderr chatter
4930         * build-aux/bootstrap (insert_sorted_if_absent, main program):
4931         Omit unnecessary chatter to stderr.  The main program chatter
4932         was there only inadvertantly.
4933
4934         bootstrap: .gitignore files created by autopoint, libtool
4935         I ran into this problem when bootstrapping the latest diffutils.
4936         After './bootstrap', 'git status' reported lots of untracked files
4937         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
4938         autopoint and do not need to be version-controlled.
4939         * build-aux/bootstrap: Put into .gitignore the files that
4940         autopoint and libtool create, by keeping track of files that exist
4941         after but not before these programs are run.
4942         (version_controlled_file): Move up.  2nd arg is now full file
4943         name, not base name; this is more convenient.  Put CVS at the end,
4944         as it's now somewhat deprecated.
4945
4946 2012-05-14  Jim Meyering  <meyering@redhat.com>
4947
4948         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
4949         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
4950         definition.  Reported by Bruno Haible.
4951
4952 2012-05-13  Bruno Haible  <bruno@clisp.org>
4953             Paul Eggert  <eggert@cs.ucla.edu>
4954
4955         binary-io: Define set_binary_mode function.
4956         * lib/binary-io.h (set_binary_mode): New function.
4957         (SET_BINARY): Define in terms of set_binary_mode.
4958         * modules/binary-io (configure.ac): Require AC_C_INLINE.
4959         * tests/test-binary-io.c (main): Accept an argument, and test either
4960         set_binary_mode or SET_BINARY depending on the argument.
4961         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
4962         argument. Clean up also t-bin-out0.tmp.
4963
4964 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
4965
4966         bootstrap: take advantage of POSIX shell features
4967
4968         The 'bootstrap' script offered by Gnulib script already uses POSIX
4969         shell features (like $((...)) arithmetic expansions) that are not
4970         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
4971         means that bootstrap must already be run using a proper POSIX shell,
4972         which will thus provide more features, like ${var#pattern} parameter
4973         expansion or inversion of a command exit status with '!'.  We can
4974         thus use these features to improve the clarity and the performances
4975         of the bootstrap script.
4976
4977         Suggested by Eric Blake.
4978
4979         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
4980         of sed/expr plus command substitutions, to save some forks.  While
4981         we are at it, prefer the POSIX $(...) form of command substitution,
4982         rather than the legacy form `...` (since the former is visually
4983         clearer and interacts better with quoting), and prefer the idiom:
4984           "if ! CMD; then ACTION ..."
4985         over the idiom:
4986           "if CMD; then :; else ACTION ..."
4987         which was required by legacy Bourne shells not supporting '!'.
4988
4989 2012-05-12  Bruno Haible  <bruno@clisp.org>
4990
4991         system-quote: Add more comments.
4992         * lib/system-quote.h: Add more comments about wilcards and limitations.
4993         Suggested by Eli Zaretskii <eliz@gnu.org>.
4994
4995         sh-quote, system-quote: Add comments about wildcards.
4996         * lib/sh-quote.h: Clarify what happens with wildcard characters.
4997         * lib/system-quote.h: Likewise.
4998         Reported by Eli Zaretskii <eliz@gnu.org>.
4999
5000 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
5001
5002         fsusage: check for GNU/Linux statvfs problem dynamically
5003         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
5004         Define STAT_STATFS2_BSIZE too, since in this case the code now
5005         checks dynamically whether statvfs is reliable, falling back on
5006         Linux-style statfs otherwise.
5007         (statvfs_works): New function, for dynamically testing statvfs.
5008         (get_fs_usage) [STAT_STATVFS]: Use it.
5009         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
5010         statvfs on GNU/Linux hosts, since it's now done dynamically.
5011
5012 2012-05-10  Bruno Haible  <bruno@clisp.org>
5013
5014         system-quote, execute, spawn-pipe: Escape '?' on Windows.
5015         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
5016         '?' character.
5017         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
5018         * tests/test-system-quote-main.c (check_all): Check also strings like
5019         "??????????".
5020         Reported by Eli Zaretskii <eliz@gnu.org>.
5021
5022 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5023
5024         _Noreturn: port config.h to gcc -Wundef
5025         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
5026         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
5027         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
5028
5029 2012-05-10  Bruno Haible  <bruno@clisp.org>
5030
5031         system-quote: Refactor.
5032         * lib/system-quote.h (system_quote_copy): Fix comment.
5033         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
5034         New functions, extracted from system_quote_copy.
5035         (system_quote_length, system_quote_copy): Use these functions.
5036         Reported by Paul Eggert.
5037
5038 2012-05-08  Bruno Haible  <bruno@clisp.org>
5039
5040         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
5041         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
5042
5043 2012-05-08  Bruno Haible  <bruno@clisp.org>
5044
5045         Tests for module 'system-quote'.
5046         * modules/system-quote-tests: New file.
5047         * tests/test-system-quote.sh: New file.
5048         * tests/test-system-quote-main.c: New file.
5049         * tests/test-system-quote-child.c: New file.
5050
5051         New module 'system-quote'.
5052         * lib/system-quote.h: New file.
5053         * lib/system-quote.c: New file.
5054         * modules/system-quote: New file.
5055
5056 2012-05-08  Bruno Haible  <bruno@clisp.org>
5057
5058         sh-quote: Make C++ safe and allow multiple inclusion.
5059         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
5060         declarations in extern "C".
5061
5062 2012-05-08  Bruno Haible  <bruno@clisp.org>
5063
5064         sh-quote tests: Make tests stricter.
5065         * tests/test-sh-quote.c (check_one): Check the return value of
5066         shell_quote_copy.
5067         (main): Check a string with a CR character. Check a string that
5068         contains UCHAR_MAX.
5069
5070 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
5071
5072         warnings.m4: provide a means to specify the program to compile.
5073         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
5074         (gl_WARN_ADD): here.
5075         Use gl_AS_VAR_APPEND.
5076         Support an argument to specify the program to compile.
5077         (gl_WARN_ADD): Accept an argument to specify the program to compile.
5078         AC_SUBST the WARN_CFLAGS when they are used.
5079         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
5080         leave this to gl_WARN_ADD.
5081
5082 2012-05-08  Eric Blake  <eblake@redhat.com>
5083
5084         doc: recommendations on gettext version
5085         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
5086         choice between versions.
5087         * DEPENDENCIES (gettext): Cover both approaches.
5088
5089 2012-05-08  Jim Meyering  <meyering@redhat.com>
5090
5091         init.sh: explain why EXEEXT support uses aliases rather than functions
5092         * tests/init.sh: Add a comment.
5093
5094         init.sh: don't let bash aliases interfere with tests
5095         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
5096         is bash.  This avoids problems for those who alias standard commands to
5097         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
5098         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
5099
5100 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5101
5102         stdint: be more consistent with glibc, SunOS libc
5103         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
5104         (gl_int_fast16_t, gl_uint_fast16_t)
5105         (gl_int_fast32_t, gl_uint_fast32_t)
5106         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
5107         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
5108         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
5109         Be consistent with glibc by default, and with SunOS 5.10 and later
5110         if __sun is defined.  This lessens the likelihood of clashes if
5111         code compiled for older hosts is combined with code compiled for
5112         newer ones.  Problem reported by Niels Möller in
5113         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
5114
5115 2012-05-07  Eric Blake  <eblake@redhat.com>
5116
5117         isatty: relax license to LGPLv2+
5118         * modules/isatty (License): Relax license.
5119
5120 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5121
5122         stat-size: comment fix
5123         * lib/stat-size.h: Remove obsolete comment about indenting.
5124
5125 2012-05-06  Bruno Haible  <bruno@clisp.org>
5126
5127         Tests for module 'sh-quote'.
5128         * modules/sh-quote-tests: New file.
5129         * tests/test-sh-quote.c: New file.
5130
5131 2012-05-06  Bruno Haible  <bruno@clisp.org>
5132
5133         sh-quote: Improve shell_quote_argv's signature.
5134         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
5135         * lib/sh-quote.c (shell_quote_argv): Likewise.
5136
5137 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5138
5139         stdint: document issues with int_fast8_t etc.
5140         * doc/posix-headers/stdint.texi (stdint.h): Say that other
5141         stdint.h substitutes may define these types differently.  See
5142         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
5143
5144 2012-05-05  Bruno Haible  <bruno@clisp.org>
5145
5146         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
5147         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
5148         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
5149         or 'guessing no (mishandles large arguments)'.
5150
5151 2012-05-05  Bruno Haible  <bruno@clisp.org>
5152
5153         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
5154         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
5155         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5156         set gl_cv_func_link_follows_symlink to "guessing no".
5157
5158 2012-05-05  Bruno Haible  <bruno@clisp.org>
5159
5160         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
5161         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
5162         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
5163         "guessing no".
5164         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
5165
5166 2012-05-05  Bruno Haible  <bruno@clisp.org>
5167
5168         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
5169         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
5170         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5171         set gl_cv_struct_dirent_d_ino to "guessing yes".
5172
5173 2012-05-05  Bruno Haible  <bruno@clisp.org>
5174
5175         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
5176         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
5177         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
5178         "guessing yes".
5179
5180 2012-05-05  Bruno Haible  <bruno@clisp.org>
5181
5182         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
5183         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
5184         compiling to a glibc system, set gl_cv_func_signbit and
5185         gl_cv_func_signbit_gcc to "guessing yes".
5186
5187 2012-05-05  Bruno Haible  <bruno@clisp.org>
5188
5189         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
5190         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
5191         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
5192         to "guessing yes".
5193         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
5194         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
5195
5196 2012-05-05  Bruno Haible  <bruno@clisp.org>
5197
5198         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
5199         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
5200         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
5201         gl_cv_func_realpath_works to "guessing yes".
5202
5203 2012-05-05  Bruno Haible  <bruno@clisp.org>
5204
5205         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
5206         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
5207         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
5208
5209 2012-05-04  Bruno Haible  <bruno@clisp.org>
5210
5211         Tweak last commit.
5212         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
5213         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5214
5215 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
5216
5217         unistd_h: make it easier to avoid sys_types_h
5218         This is useful for Emacs, which has its own method of porting to
5219         Windows, and which therefore does not need the sys_types_h module.
5220         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
5221         code moved here from gl_SYS_TYPES_H.
5222         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
5223         using the code directly.
5224         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
5225         gl_SYS_TYPES_H.
5226         * modules/sys_types (Files):
5227         * modules/unistd (Files): Add m4/off_t.m4.
5228
5229 2012-05-03  Bruno Haible  <bruno@clisp.org>
5230
5231         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
5232         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
5233         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
5234         "guessing yes" or "guessing no".
5235         (gl_FUNC_LSTAT): Update.
5236         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
5237         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5238         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
5239
5240 2012-05-03  Bruno Haible  <bruno@clisp.org>
5241
5242         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
5243         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
5244         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
5245         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
5246         cross-compiling, choose the first alternative on glibc systems.
5247         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
5248
5249 2012-05-03  Bruno Haible  <bruno@clisp.org>
5250
5251         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
5252         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
5253         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
5254
5255 2012-05-03  Bruno Haible  <bruno@clisp.org>
5256
5257         chown: Avoid "guessing no" when cross-compiling to glibc systems.
5258         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
5259
5260 2012-05-03  Bruno Haible  <bruno@clisp.org>
5261
5262         Avoid "guessing no" guesses when cross-compiling to glibc systems.
5263         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
5264         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
5265         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
5266         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
5267         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
5268         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
5269         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
5270         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
5271         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
5272         compiling to glibc systems, set gl_cv_func_chown_slash_works,
5273         gl_cv_func_chown_ctime_works to "guessing yes".
5274         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
5275         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
5276         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
5277         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
5278         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
5279         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
5280         compiling to glibc systems, set gl_cv_func_open_directory_works to
5281         "guessing yes".
5282         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
5283         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
5284         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
5285         "guessing yes".
5286         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
5287         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
5288         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
5289         compiling to glibc systems, set gl_cv_func_floorf_ieee to
5290         "guessing yes".
5291         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
5292         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
5293         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
5294         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
5295         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
5296         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
5297         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
5298         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
5299         "guessing yes".
5300         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
5301         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
5302         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
5303         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
5304         "guessing yes".
5305         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
5306         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
5307         "guessing yes".
5308         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
5309         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
5310         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
5311         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
5312         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
5313         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
5314         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
5315         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
5316         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
5317         compiling to glibc systems, set gl_cv_func_log10f_ieee to
5318         "guessing yes".
5319         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
5320         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
5321         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
5322         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
5323         "guessing yes".
5324         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
5325         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
5326         "guessing yes".
5327         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
5328         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
5329         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
5330         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
5331         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
5332         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
5333         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
5334         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
5335         compiling to glibc systems, set gl_cv_func_mkfifo_works to
5336         "guessing yes".
5337         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
5338         compiling to glibc systems, set gl_cv_func_mknod_works to
5339         "guessing yes".
5340         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
5341         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
5342         "guessing yes".
5343         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
5344         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
5345         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
5346         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
5347         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
5348         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
5349         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
5350         compiling to glibc systems, set gl_cv_func_svid_putenv to
5351         "guessing yes".
5352         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
5353         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
5354         "guessing yes".
5355         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
5356         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
5357         "guessing yes".
5358         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
5359         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
5360         to "guessing yes".
5361         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
5362         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
5363         to "guessing yes".
5364         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
5365         compiling to glibc systems, set gl_cv_func_rmdir_works to
5366         "guessing yes".
5367         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
5368         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
5369         gl_cv_func_unlink_parent_fails to "guessing yes".
5370         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
5371         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
5372         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
5373         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
5374         gl_cv_func_rename_dest_works to "guessing yes".
5375         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
5376         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
5377         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
5378         compiling to glibc systems, set gl_cv_func_roundf_ieee to
5379         "guessing yes".
5380         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
5381         compiling to glibc systems, set gl_cv_func_roundl_ieee to
5382         "guessing yes".
5383         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
5384         compiling to glibc systems, set gl_cv_func_setenv_works to
5385         "guessing yes".
5386         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
5387         compiling to glibc systems, set gl_cv_func_unsetenv_works to
5388         "guessing yes".
5389         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
5390         compiling to glibc systems, set gl_cv_func_sleep_works to
5391         "guessing yes".
5392         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
5393         compiling to glibc systems, set gl_cv_func_stat_file_slash to
5394         "guessing yes".
5395         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
5396         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
5397         "guessing yes".
5398         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
5399         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
5400         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
5401         compiling to glibc systems, set gl_cv_func_truncf_ieee to
5402         "guessing yes".
5403         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
5404         compiling to glibc systems, set gl_cv_func_truncl_ieee to
5405         "guessing yes".
5406         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
5407         compiling to glibc systems, set gl_cv_func_usleep_works to
5408         "guessing yes".
5409         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
5410         compiling to glibc systems, set gl_cv_func_futimesat_works to
5411         "guessing yes".
5412
5413 2012-05-03  Bruno Haible  <bruno@clisp.org>
5414
5415         Say "guessing yes" or "guessing no" when cross-compiling.
5416         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
5417         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
5418         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
5419         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
5420         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
5421         am_cv_func_working_getline to "guessing yes" or "guessing no".
5422         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
5423         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
5424         (gl_FUNC_MEMMEM): When cross-compiling, set
5425         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
5426         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
5427         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
5428         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
5429         set gl_cv_func_strcasestr_works_always to "guessing yes" or
5430         "guessing no".
5431         (gl_FUNC_STRCASESTR): When cross-compiling, set
5432         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
5433         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
5434         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
5435         (gl_FUNC_STRSTR): When cross-compiling, set
5436         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
5437         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
5438         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
5439         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
5440         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
5441
5442 2012-05-01  Bruno Haible  <bruno@clisp.org>
5443
5444         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
5445         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
5446         * build-aux/reloc-ldflags: Likewise.
5447         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
5448
5449 2012-05-01  Bruno Haible  <bruno@clisp.org>
5450
5451         gnulib-tool: Remove transitional code.
5452         * gnulib-tool: Don't warn about --import with 0 arguments any more.
5453         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
5454
5455 2012-05-01  Bruno Haible  <bruno@clisp.org>
5456
5457         getcwd: Fix misindentation.
5458         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
5459
5460 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5461
5462         exclude: process exclude and include directives in order
5463         This restores the pre-2009 behavior, and is part of a fix of a
5464         grep bug reported by Quentin Arce in
5465         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
5466         * lib/exclude.c (struct exclude): Remove 'tail' member.
5467         (new_exclude_segment): Prepend the new segment instead of appending.
5468         Return void, since that's now more convenient.
5469         (file_pattern_matches): Renamed from excluded_file_pattern_p.
5470         (file_name_matches): Renamed from excluded_file_name_p.
5471         (file_pattern_matches, file_name_matches):
5472         Return true if the pattern matches, not if it excludes.
5473         All callers changed.
5474         (excluded_file_name): Process the list in reverse order;
5475         since the list is now reversed this restores the pre-2009 behavior.
5476         (add_exclude): Adjust to new reversed-order list.  Use local var
5477         rather than macro, for clarity.
5478         * tests/test-exclude7.sh: Adjust to corrected behavior.
5479
5480         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
5481         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
5482         it's not possible here.  Handle the case of \ at end of pattern
5483         without dumping core.
5484         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
5485
5486         _Noreturn: future-proof non-GNU and non-MSVC compilers
5487         * build-aux/snippet/_Noreturn.h (_Noreturn):
5488         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5489         Do not define _Noreturn if __STDC_VERSION__ indicates this is
5490         C11 or later.  This is more likely to work with random future C
5491         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
5492         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
5493
5494         exclude: handle wildcards with FNM_EXTMATCH
5495         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
5496         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
5497         comment that "has wildcards" really means "has or may have
5498         wildcards".  Simplify by avoiding the need to call strcspn.
5499
5500 2012-04-29  Bruno Haible  <bruno@clisp.org>
5501
5502         gnulib-tool: Fix list of authors.
5503         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
5504
5505 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
5506
5507         bootstrap: support Automake-NG in $buildreq
5508         * bootstrap (check_versions): Handle automake and aclocal from
5509         Automake-NG specially.  They can be specified as respectively
5510         the "automake-ng" and "aclocal-ng" requirements.
5511
5512 2012-04-25  Eric Blake  <eblake@redhat.com>
5513
5514         bootstrap: only force latest Makefile.in.in for gettext module
5515         * build-aux/bootstrap (with_gettext): Only install latest
5516         Makefile.in.in for projects requesting bleeding edge gettext.
5517
5518 2012-04-22  Bruno Haible  <bruno@clisp.org>
5519
5520         doc: Mention reason for replacement on glibc/Linux systems.
5521         * doc/posix-functions/dprintf.texi: Mention the problem with special
5522         'long double' values.
5523         * doc/posix-functions/fprintf.texi: Likewise.
5524         * doc/posix-functions/printf.texi: Likewise.
5525         * doc/posix-functions/snprintf.texi: Likewise.
5526         * doc/posix-functions/sprintf.texi: Likewise.
5527         * doc/posix-functions/vdprintf.texi: Likewise.
5528         * doc/posix-functions/vfprintf.texi: Likewise.
5529         * doc/posix-functions/vprintf.texi: Likewise.
5530         * doc/posix-functions/vsnprintf.texi: Likewise.
5531         * doc/posix-functions/vsprintf.texi: Likewise.
5532         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
5533         platforms with F_DUPFD_CLOEXEC problems.
5534         * doc/posix-functions/glob.texi: Mention which platforms are affected
5535         by the problem with symbolic links.
5536         * doc/posix-functions/linkat.texi: Mention the problem with
5537         AT_SYMLINK_FOLLOW on Linux.
5538
5539 2012-04-22  Bruno Haible  <bruno@clisp.org>
5540
5541         pwrite: Don't replace on all platforms.
5542         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
5543
5544 2012-04-22  Bruno Haible  <bruno@clisp.org>
5545
5546         rint* tests: Avoid gcc warnings.
5547         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
5548         * tests/test-rintf.c (INFINITY, NAN): Likewise.
5549         * tests/test-rintl.c (INFINITY, NAN): Likewise.
5550
5551 2012-04-21  Bruno Haible  <bruno@clisp.org>
5552
5553         users.txt: Update.
5554         * users.txt: Add freedink, wdiff. Update URLs for projects that have
5555         switched from CVS to git, bzr, or svn.
5556
5557 2012-04-21  Bruno Haible  <bruno@clisp.org>
5558
5559         Large File Support for native Windows platforms.
5560
5561         * m4/largefile.m4 (gl_LARGEFILE): New macro.
5562         * modules/largefile (configure.ac): Require gl_LARGEFILE.
5563
5564         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
5565         type.
5566         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
5567         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
5568         * doc/posix-headers/sys_types.texi: Mention the effect of the
5569         'largefile' module.
5570
5571         * lib/fcntl.in.h: Add comments about off_t.
5572         * modules/fcntl-h (Depends-on): Add sys_types.
5573
5574         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
5575         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
5576         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
5577         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
5578         * modules/unistd (Depends-on): Add sys_types.
5579         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
5580
5581         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
5582         instead of lseek.
5583         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
5584         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
5585         * modules/lseek (Depends-on): Add sys_types.
5586
5587         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
5588         msvc-nothrow.h.
5589         (SetFileSize): New function.
5590         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
5591         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
5592         if Large File Support is requested.
5593         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
5594         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
5595
5596         * lib/stdio.in.h: Add comments about off_t.
5597         * modules/stdio (Depends-on): Add sys_types.
5598
5599         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
5600         instead of ftello.
5601         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
5602         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
5603         (gl_PREREQ_FTELLO): New macro.
5604         * modules/ftello (Depends-on): Add sys_types.
5605         (configure.ac): Incoke gl_PREREQ_FTELLO.
5606
5607         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
5608         instead of fseeko.
5609         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
5610         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
5611         (gl_PREREQ_FSEEKO): New macro.
5612         * modules/fseeko (Depends-on): Add sys_types.
5613         (configure.ac): Invoke gl_PREREQ_FSEEKO.
5614
5615         * lib/sys_stat.in.h: Add comments about off_t.
5616         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
5617         64-bit integer for st_size in 'struct stat'.
5618         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
5619         Define _GL_WINDOWS_64_BIT_ST_SIZE.
5620         * modules/sys_stat (Depends-on): Add sys_types.
5621         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
5622
5623         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
5624         instead of stat or _stat.
5625
5626         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
5627         'struct _stati64' instead of fstat and 'struct stat'.
5628         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
5629         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
5630
5631         Reported by Ray Satiro <raysatiro@yahoo.com>.
5632
5633 2012-04-19  Eric Blake  <eblake@redhat.com>
5634
5635         bootstrap: accommodate older libtool
5636         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
5637         Reported by Daniel P. Berrange.
5638
5639 2012-04-19  Jim Meyering  <meyering@redhat.com>
5640
5641         announce-gen: avoid failure due to lack of Digest::SHA1
5642         Even with the preferred Digest::SHA available, this script
5643         would fail when the backup module, Digest::SHA1, was not installed.
5644         * build-aux/announce-gen: Quote the conditional use of "use".
5645         Reported by Reuben Thomas in:
5646         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
5647
5648         bootstrap: don't let a user's CDPATH setting affect this script
5649         When CDPATH is set, cd will sometimes generate output.
5650         When "cd" is run in a subshell whose output matters, that
5651         surprising-to-some output can cause malfunction.
5652         Unsetting CDPATH turns off this shell "feature."
5653         * build-aux/bootstrap (CDPATH): Unset.
5654         Reported by Reuben Thomas in:
5655         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
5656         and inspired by his patch here:
5657         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
5658
5659 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
5660         and Jim Meyering  <meyering@redhat.com>
5661
5662         maint.mk: catch "see @xref{}" and similar
5663         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
5664         prohibit "See also @xref{", "Also see @pxref{", and similar.
5665
5666 2012-04-16  Jim Meyering  <meyering@redhat.com>
5667
5668         bootstrap: really use gnulib's po/Makefile.in.in
5669         * build-aux/bootstrap: Correct the source file name in previous change.
5670         Reported by Akim Demaille.
5671
5672         configmake: correct minor inconsistency in Makefile rule
5673         * modules/configmake (Makefile.am): All other rules like this one
5674         run the final "mv -f ..." in the same backslash-continued command
5675         as the one that does everything else.  This one put the mv -f ...
5676         command on a separate, non-backslash-continued line.
5677         Make it like the others.
5678
5679         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
5680         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
5681         the one from gettext.  Reported by Akim Demaille.
5682
5683 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
5684
5685         Fix recursion of install-* into po directories.
5686         Bison's install-pdf bug reported by Hans Aberg at
5687         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
5688         * build-aux/po/Makefile.in.in (install-dvi, install-html)
5689         (install-info, install-pdf, install-ps): New targets.
5690
5691 2012-04-16  Jim Meyering  <meyering@redhat.com>
5692
5693         maint: avoid spurious "make sc_maint" failure
5694         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
5695         exempt all *.class file names, for lib/javaversion.class.
5696
5697 2012-04-15  Bruno Haible  <bruno@clisp.org>
5698
5699         lseek: Make configure test independent of environment.
5700         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
5701         Windows, we know that lseek() on pipes is broken; skip the runtime
5702         test.
5703
5704 2012-04-14  Bruno Haible  <bruno@clisp.org>
5705
5706         stat: Bypass buggy override in mingw64.
5707         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
5708         * lib/stat.c (stat) [mingw64]: Define to _stat.
5709         * doc/posix-functions/stat.texi: Mention mingw64 bug.
5710
5711 2012-04-14  Bruno Haible  <bruno@clisp.org>
5712
5713         pathmax: Fix compilation error on MSVC 9.
5714         * modules/pathmax (Depends-on): Add unistd.
5715
5716 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5717
5718         README: document pointer comparison assumption
5719         * README (Portability guidelines): Document assumption about
5720         pointer comparisons, in response to a recent bug-gnulib comment by
5721         Jeffrey Kegler.
5722
5723 2012-04-12  Bruno Haible  <bruno@clisp.org>
5724
5725         Tests for module 'getrusage'.
5726         * modules/getrusage-tests: New file.
5727         * tests/test-getrusage.c: New file.
5728
5729         New module 'getrusage'.
5730         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
5731         warn-on-use.h.
5732         (getrusage): New declaration.
5733         * lib/getrusage.c: New file.
5734         * m4/getrusage.m4: New file.
5735         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
5736         is declared.
5737         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
5738         HAVE_GETRUSAGE.
5739         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
5740         snippet/c++defs, snippet/warn-on-use.
5741         (Makefile.am): Update generation of sys/resource.h. Substitute
5742         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
5743         * modules/getrusage: New file.
5744         * doc/posix-functions/getrusage.texi: Mention the new module.
5745
5746 2012-04-12  Bruno Haible  <bruno@clisp.org>
5747
5748         Tests for module 'sys_resource'.
5749         * modules/sys_resource-tests: New file.
5750         * tests/test-sys_resource.c: New file.
5751
5752         New module 'sys_resource'.
5753         * lib/sys_resource.in.h: New file.
5754         * m4/sys_resource_h.m4: New file.
5755         * modules/sys_resource: New file.
5756         * doc/posix-headers/sys_resource.texi: Mention the new module.
5757
5758 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
5759
5760         ioctl: Fix compilation error on mingw.
5761         * lib/ioctl.c: Include <windows.h>.
5762         Also reported by Ray Satiro <raysatiro@yahoo.com>.
5763
5764 2012-04-04  Jim Meyering  <meyering@redhat.com>
5765
5766         regex: correct #pragma guard expression
5767         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
5768         not 4.3.  Correct its cpp guard expression.
5769
5770 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
5771
5772         regex: remove unnecessary type punning
5773         Problem reported by Vladimir Serbinenko in
5774         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
5775         * lib/regex.h (struct re_pattern_buffer): Change the type of
5776         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
5777         Fix comment to match code.
5778         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
5779         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
5780         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
5781         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
5782         (set_regs):
5783         Omit no-longer-necessary casts.
5784
5785 2012-04-03  Bruno Haible  <bruno@clisp.org>
5786
5787         Tests for module 'ilogbl'.
5788         * modules/ilogbl-tests: New file.
5789         * tests/test-ilogbl.c: New file.
5790
5791         New module 'ilogbl'.
5792         * lib/math.in.h (ilogbl): New declaration.
5793         * lib/ilogbl.c: New file.
5794         * m4/ilogbl.m4: New file.
5795         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
5796         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
5797         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
5798         Split sed invocation, to avoid the limit of 100 substitutions of
5799         HP-UX 'sed'.
5800         * modules/ilogbl: New file.
5801         * tests/test-math-c++.cc: Check the declaration of ilogbl.
5802         * doc/posix-functions/ilogbl.texi: Mention the new module.
5803
5804 2012-04-03  Bruno Haible  <bruno@clisp.org>
5805
5806         Tests for module 'ilogbf'.
5807         * modules/ilogbf-tests: New file.
5808         * tests/test-ilogbf.c: New file.
5809
5810         New module 'ilogbf'.
5811         * lib/math.in.h (ilogbf): New declaration.
5812         * lib/ilogbf.c: New file.
5813         * m4/ilogbf.m4: New file.
5814         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
5815         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
5816         REPLACE_ILOGBF.
5817         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
5818         REPLACE_ILOGBF.
5819         * modules/ilogbf: New file.
5820         * tests/test-math-c++.cc: Check the declaration of ilogbf.
5821         * doc/posix-functions/ilogbf.texi: Mention the new module.
5822
5823 2012-04-03  Bruno Haible  <bruno@clisp.org>
5824
5825         Tests for module 'ilogb'.
5826         * modules/ilogb-tests: New file.
5827         * tests/test-ilogb.c: New file.
5828         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
5829         tests/test-logb-ieee.h.
5830
5831         New module 'ilogb'.
5832         * lib/math.in.h (ilogb): New declaration.
5833         * lib/ilogb.c: New file.
5834         * m4/ilogb.m4: New file.
5835         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
5836         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
5837         REPLACE_ILOGB.
5838         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
5839         REPLACE_ILOGB.
5840         * modules/ilogb: New file.
5841         * tests/test-math-c++.cc: Check the declaration of ilogb.
5842         * doc/posix-functions/ilogb.texi: Mention the new module.
5843
5844 2012-04-03  Bruno Haible  <bruno@clisp.org>
5845
5846         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
5847         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
5848         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
5849         (main): Check their values.
5850         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
5851         problem.
5852
5853 2012-04-03  Bruno Haible  <bruno@clisp.org>
5854
5855         Tests for module 'logbl-ieee'.
5856         * modules/logbl-ieee-tests: New file.
5857         * tests/test-logbl-ieee.c: New file.
5858
5859         New module 'logbl-ieee'.
5860         * modules/logbl-ieee: New file.
5861
5862         Tests for module 'logb-ieee'.
5863         * modules/logb-ieee-tests: New file.
5864         * tests/test-logb-ieee.c: New file.
5865
5866         New module 'logb-ieee'.
5867         * modules/logb-ieee: New file.
5868
5869         Tests for module 'logbf-ieee'.
5870         * modules/logbf-ieee-tests: New file.
5871         * tests/test-logbf-ieee.c: New file.
5872         * tests/test-logb-ieee.h: New file.
5873
5874         New module 'logbf-ieee'.
5875         * modules/logbf-ieee: New file.
5876
5877 2012-04-03  Bruno Haible  <bruno@clisp.org>
5878
5879         Tests for module 'logbl'.
5880         * modules/logbl-tests: New file.
5881         * tests/test-logbl.c: New file.
5882
5883         New module 'logbl'.
5884         * lib/math.in.h (logbl): New declaration.
5885         * lib/logbl.c: New file.
5886         * m4/logbl.m4: New file.
5887         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
5888         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
5889         REPLACE_LOGBL.
5890         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
5891         REPLACE_LOGBL.
5892         * modules/logbl: New file.
5893         * tests/test-math-c++.cc: Check the declaration of logbl.
5894         * doc/posix-functions/logbl.texi: Mention the new module.
5895
5896 2012-04-02  Bruno Haible  <bruno@clisp.org>
5897
5898         Tests for module 'logbf'.
5899         * modules/logbf-tests: New file.
5900         * tests/test-logbf.c: New file.
5901
5902         New module 'logbf'.
5903         * lib/math.in.h (logbf): New declaration.
5904         * lib/logbf.c: New file.
5905         * m4/logbf.m4: New file.
5906         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
5907         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
5908         REPLACE_LOGBF.
5909         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
5910         REPLACE_LOGBF.
5911         * modules/logbf: New file.
5912         * tests/test-math-c++.cc: Check the declaration of logbf.
5913         * doc/posix-functions/logbf.texi: Mention the new module.
5914
5915 2012-04-02  Bruno Haible  <bruno@clisp.org>
5916
5917         logb tests: More tests.
5918         * tests/test-logb.h: New file, based on tests/test-logb.c and
5919         tests/test-frexp.h.
5920         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
5921         (main): Just invoke test_function.
5922         * modules/logb-tests (Files): Add tests/test-logb.h,
5923         tests/minus-zero.h, tests/randomd.c.
5924         (Makefile.am): Add randomd.c to test_logb_SOURCES.
5925
5926         logb: Provide replacement and workarounds.
5927         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
5928         is 1.
5929         * lib/logb.c: New file.
5930         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
5931         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
5932         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
5933         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
5934         * modules/logb (Files): Add lib/logb.c.
5935         (Depends-on): Add isfinite, frexp, isnand.
5936         (configure.ac): Compile the replacement code logb.c if needed.
5937         * tests/test-math-c++.cc: Check the declaration of logb.
5938         * doc/posix-functions/logb.texi: Mention the replacement and the bug
5939         with subnormal numbers.
5940
5941 2012-04-02  Bruno Haible  <bruno@clisp.org>
5942
5943         log10* tests: Speed up.
5944         * tests/test-log10.h (test_function): Reduce amount of random numbers
5945         to test.
5946
5947 2012-04-01  Bruno Haible  <bruno@clisp.org>
5948
5949         logf-ieee: Fix test whether logf works.
5950         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
5951
5952 2012-04-01  Bruno Haible  <bruno@clisp.org>
5953
5954         log10l: Work around log10l-ieee test failure on IRIX 6.5.
5955         * lib/log10l.c: Include <float.h>
5956         (log10l): On IRIX, normalize the +Infinity value.
5957         * modules/log10l (Depends-on): Add 'float'.
5958         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
5959         +Infinity.
5960
5961         log10f-ieee: Work around test failure on NetBSD 5.1.
5962         * m4/log10f-ieee.m4: New file.
5963         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
5964         test whether log10f works with a negative argument. Replace it if not.
5965         * lib/log10f.c (log10f): For negative arguments, return NaN.
5966         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
5967         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
5968         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
5969
5970         log10f-ieee: Work around test failure on Solaris 9.
5971         * modules/log10f-ieee (Depends-on): Add log10-ieee.
5972         (configure.ac): Require gl_FUNC_LOG10F.
5973
5974         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5975         * m4/log10-ieee.m4: New file.
5976         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
5977         whether log10 works with a negative argument. Replace it if not.
5978         * lib/log10.c (log10): For negative arguments, return NaN.
5979         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
5980         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
5981         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
5982
5983         Tests for module 'log10l-ieee'.
5984         * modules/log10l-ieee-tests: New file.
5985         * tests/test-log10l-ieee.c: New file.
5986
5987         New module 'log10l-ieee'.
5988         * modules/log10l-ieee: New file.
5989
5990         Tests for module 'log10-ieee'.
5991         * modules/log10-ieee-tests: New file.
5992         * tests/test-log10-ieee.c: New file.
5993
5994         New module 'log10-ieee'.
5995         * modules/log10-ieee: New file.
5996
5997         Tests for module 'log10f-ieee'.
5998         * modules/log10f-ieee-tests: New file.
5999         * tests/test-log10f-ieee.c: New file.
6000         * tests/test-log10-ieee.h: New file.
6001
6002         New module 'log10f-ieee'.
6003         * modules/log10f-ieee: New file.
6004
6005 2012-04-01  Bruno Haible  <bruno@clisp.org>
6006
6007         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
6008         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
6009         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
6010         workaround.
6011         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
6012         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
6013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
6014         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
6015         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
6016         (Depends-on): Update conditions.
6017         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
6018         IRIX 6.5, OSF/1 5.1 problems.
6019
6020 2012-04-01  Bruno Haible  <bruno@clisp.org>
6021
6022         log10f: Work around OSF/1 5.1 bug.
6023         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
6024         * lib/log10f.c (log10f): If logf exists, use it and provide just the
6025         workaround.
6026         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
6027         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
6028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
6029         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
6030         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
6031         (Depends-on): Update conditions.
6032         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
6033
6034 2012-04-01  Bruno Haible  <bruno@clisp.org>
6035
6036         log10: Work around OSF/1 5.1 bug.
6037         * lib/math.in.h (log10): New declaration.
6038         * lib/log10.c: New file.
6039         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
6040         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
6041         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
6042         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
6043         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
6044         * modules/log10 (Files): Add lib/log10.c.
6045         (Depends-on): Add math.
6046         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
6047         * tests/test-math-c++.cc: Check the declaration of log10.
6048         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
6049
6050 2012-03-31  Bruno Haible  <bruno@clisp.org>
6051
6052         log10l tests: More tests.
6053         * modules/log10l-tests (Files): Add tests/test-log10l.h,
6054         tests/minus-zero.h, tests/randoml.c.
6055         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
6056         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
6057         (main): Invoke test_function.
6058
6059         log10f tests: More tests.
6060         * modules/log10f-tests (Files): Add tests/test-log10.h,
6061         tests/minus-zero.h, tests/randomf.c.
6062         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
6063         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
6064         (main): Invoke test_function.
6065
6066         log10 tests: More tests.
6067         * tests/test-log10.h: New file.
6068         * modules/log10-tests (Files): Add tests/test-log10.h,
6069         tests/minus-zero.h, tests/randomd.c.
6070         (Makefile.am): Add randomd.c to test_log10_SOURCES.
6071         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
6072         (main): Invoke test_function.
6073
6074 2012-03-31  Simon Josefsson  <simon@josefsson.org>
6075
6076         fflush: Fix syntax error.
6077         * lib/fflush.c: Include unused-parameter.h, needed for
6078         _GL_UNUSED_PARAMETER.
6079         * modules/fflush (Depends-on): Add snippet/unused-parameter.
6080
6081 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
6082
6083         regex: pacify GCC when compiling GRUB
6084         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
6085         a diagnostic.  Reported by Vladimir Serbinenko in
6086         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
6087
6088 2012-03-29  Eric Blake  <eblake@redhat.com>
6089
6090         stdio: don't assume gets any more
6091         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
6092         support.
6093         * modules/stdio (Makefile.am): Likewise.
6094         * lib/stdio-read.c (gets): Likewise.
6095         * tests/test-stdio-c++.cc: Likewise.
6096         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
6097         * lib/stdio.in.h (gets): Make warning occur in more places.
6098         * doc/posix-functions/gets.texi (gets): Update documentation.
6099         Reported by Christer Solskogen.
6100
6101         maint.mk: fix syntax checks without exclusions
6102         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
6103         Reported by Daniel P. Berrange.
6104
6105         strerror_r: avoid compiler warning
6106         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
6107         level.
6108
6109         fflush: avoid compiler warning
6110         * lib/fflush.c (update_fpos_cache): Mark variables that are
6111         potentially unused.
6112
6113 2012-03-25  Bruno Haible  <bruno@clisp.org>
6114
6115         Tests for module 'localeconv'.
6116         * modules/localeconv-tests: New file.
6117         * tests/test-localeconv.c: New file.
6118
6119         New module 'localeconv'.
6120         * lib/locale.in.h (localeconv): New declaration.
6121         * lib/localeconv.c: New file.
6122         * m4/localeconv.m4: New file.
6123         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
6124         REPLACE_LOCALECONV.
6125         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
6126         REPLACE_LOCALECONV.
6127         * modules/localeconv: New file.
6128         * modules/nl_langinfo (Depends-on): Add localeconv.
6129         * modules/human (Depends-on): Likewise.
6130         * doc/posix-functions/localeconv.texi: Mention the new module.
6131
6132 2012-03-25  Bruno Haible  <bruno@clisp.org>
6133
6134         locale: Provide a complete 'struct lconv'.
6135         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6136         'struct lconv' does not contain int_p_cs_precedes.
6137         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6138         * doc/posix-headers/locale.texi: Update.
6139
6140         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
6141         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
6142         * doc/posix-headers/locale.texi: Update.
6143
6144         locale: Provide a working 'struct lconv'.
6145         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
6146         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6147         'struct lconv' does not even contain decimal_point.
6148         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
6149         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
6150         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6151         * doc/posix-headers/locale.texi: Mention the problems with
6152         'struct lconv'.
6153         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
6154
6155 2012-03-24  Bruno Haible  <bruno@clisp.org>
6156
6157         Enable common subexpression optimization in GCC.
6158         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
6159         macros.
6160         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
6161         GCC attribute 'const'.
6162         (uc_locale_language): Declare with GCC attribute 'pure'.
6163         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
6164         with GCC attribute 'const'.
6165         * lib/unictype.in.h (uc_is_general_category_withtable,
6166         uc_combining_class, uc_combining_class_name,
6167         uc_combining_class_long_name, uc_bidi_class_name,
6168         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
6169         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
6170         uc_decimal_value, uc_digit_value, uc_numeric_value,
6171         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
6172         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
6173         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
6174         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
6175         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
6176         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
6177         Declare with GCC attribute 'const'.
6178         (uc_general_category_name, uc_general_category_long_name,
6179         uc_general_category_byname, uc_general_category,
6180         uc_is_general_category, uc_combining_class_byname,
6181         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
6182         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
6183         Declare with GCC attribute 'pure'.
6184         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
6185         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
6186         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
6187         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
6188         with GCC attribute 'pure'.
6189         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
6190         'const'.
6191         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
6192         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
6193         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
6194         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
6195         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
6196         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
6197         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
6198         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
6199         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
6200         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
6201         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
6202         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
6203         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
6204         GCC attribute 'pure'.
6205         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
6206         'const'.
6207         * lib/uniwidth.in.h (uc_width): Simplify declaration.
6208         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
6209         u32_strwidth): Declare with GCC attribute 'pure'.
6210
6211         Enable common subexpression optimization in GCC.
6212         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6213         (alphasort): Declare with GCC attribute 'pure'.
6214         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6215         (atoll): Declare with GCC attribute 'pure'.
6216         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6217         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6218         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
6219         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6220         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
6221         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
6222         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
6223
6224 2012-03-24  Bruno Haible  <bruno@clisp.org>
6225
6226         gnulib-tool: Avoid unintended error output from 'cmp'.
6227         * gnulib-tool (func_add_file, func_update_file, func_import): Use
6228         "cmp -s", not "cmp > /dev/null".
6229
6230 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
6231
6232         gnulib-tool: fix imprecise comments w.r.t. an automake bug
6233
6234         It's not just Automake versions < 1.9b that creates an empty
6235         pkgdatadir at installation time if pkgdata_DATA is specified
6236         to empty; modern automake versions do this as well, at least
6237         until automake 1.11.4 (not yet released at the moment of writing,
6238         but soon to appear).  That behaviour was generally considered a
6239         feature rather than a bug, at least until this discussion:
6240         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
6241
6242         See also automake bugs #10997 and #11030.
6243
6244         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
6245         reference to relevant automake bug numbers.
6246         (func_emit_tests_Makefile_am): Likewise.
6247
6248 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6249
6250         announce-gen: use Digest::SHA when possible
6251         * build-aux/announce-gen: Use Digest::SHA when possible, falling
6252         back to Digest::SHA1 if necessary.
6253
6254 2012-03-20  Jim Meyering  <meyering@redhat.com>
6255
6256         tests: avoid gcc warnings about argv vs. const initializers
6257         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
6258         warnings about discarding 'const' qualifier from pointer target type.
6259         * tests/test-posix_spawn2.c (main): Likewise.
6260
6261 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6262
6263         README-release: simplify slightly
6264         * top/README-release: Run "git checkout master" only once.
6265
6266 2012-03-15  Mark Wielaard  <mark@klomp.org>
6267
6268         git-merge-changelog: add specific example on how to use with hg.
6269         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
6270
6271 2012-03-18  Mark Wielaard  <mark@klomp.org>
6272
6273         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
6274
6275 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
6276
6277         git-version-gen: don't let "prefix" envvar cause trouble
6278         * build-aux/git-version-gen (prefix): Initialize properly,
6279         so as not to use a value specified via the environment.
6280         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
6281
6282 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6283
6284         regex: diagnose too-large repeat counts in EREs
6285         Previously, the code did not diagnose the too-large repeat count
6286         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
6287         as if it were 'b\{1000000000}', which is unexpected.
6288         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
6289         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
6290         is a reasonable one for this problem.  Another option would be to
6291         create a new REG_OVERFLOW error for repeat counts that are too large.
6292         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
6293         count is too large, so that the caller can distinguish the two cases.
6294         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
6295         "Too large" return code, and that repeat counts are one example of this.
6296
6297 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6298
6299         doc: some glibc x32 integer width issues
6300         * doc/posix-headers/sys_types.texi (sys/types.h):
6301         * doc/posix-headers/time.texi (time.h):
6302         Mention that glibc x32 does not conform to POSIX in a couple of
6303         areas related to integer widths.
6304
6305 2012-03-15  Bruno Haible  <bruno@clisp.org>
6306
6307         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
6308         * lib/fma.c (VOLATILE): New macro.
6309         (FUNC): Use it to work around a GCC compiler bug.
6310
6311 2012-03-13  Bruno Haible  <bruno@clisp.org>
6312
6313         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6314         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
6315         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
6316         REPLACE_HYPOTL to 1.
6317         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
6318
6319 2012-03-13  Bruno Haible  <bruno@clisp.org>
6320
6321         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6322         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
6323         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
6324         REPLACE_REMAINDERL to 1.
6325         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
6326         bug.
6327
6328 2012-03-13  Bruno Haible  <bruno@clisp.org>
6329
6330         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6331         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
6332         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
6333         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
6334         too big rounding errors.
6335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
6336         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
6337         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
6338         (Depends-on): Update conditions.
6339         * tests/test-sqrtl.c (my_ldexpl): New function.
6340         (main): Add test of a particular value.
6341         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6342
6343 2012-03-13  Pádraig Brady  <P@draigBrady.com>
6344
6345         doc: Update timer_* platform portability notes.
6346         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
6347         that always return ENOSYS.
6348         * doc/posix-functions/timer_delete.texi: Likewise.
6349         * doc/posix-functions/timer_gettime.texi: Likewise.
6350         * doc/posix-functions/timer_settime.texi: Likewise.
6351
6352 2012-03-13  Bruno Haible  <bruno@clisp.org>
6353
6354         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6355         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
6356         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
6357         REPLACE_CBRTL to 1.
6358         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6359
6360 2012-03-13  Bruno Haible  <bruno@clisp.org>
6361
6362         remainderl: Avoid compilation error on AIX >= 5.2.
6363         * lib/math.in.h (remainderl): Undefine macro from the system header.
6364
6365 2012-03-13  Bruno Haible  <bruno@clisp.org>
6366
6367         Avoid compilation errors with MSVC option -fp:strict.
6368         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
6369         * lib/cbrtf.c: Likewise.
6370         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6371
6372 2012-03-12  Bruno Haible  <bruno@clisp.org>
6373
6374         uninorm: Don't crash in out-of-memory conditions.
6375         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
6376         gracefully.
6377         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
6378         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
6379
6380 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
6381
6382         quote: fix syntax-check
6383         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
6384         also exports quote_quoting_options.
6385
6386 2012-03-12  Simon Josefsson  <simon@josefsson.org>
6387
6388         Collapse list of copyright years to ranges.  See
6389         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
6390         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
6391         build-aux/csharpexec.sh.in, build-aux/gnupload,
6392         build-aux/install-reloc, build-aux/javacomp.sh.in,
6393         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
6394         build-aux/move-if-change, build-aux/reloc-ldflags,
6395         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
6396
6397 2012-03-11  Bruno Haible  <bruno@clisp.org>
6398
6399         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6400         * m4/log2f-ieee.m4: New file.
6401         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
6402         whether log2f works with a minus zero argument. Replace it if not.
6403         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
6404         (Depends-on): Add log2-ieee.
6405         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
6406         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
6407
6408         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6409         * m4/log2-ieee.m4: New file.
6410         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
6411         whether log2 works with a minus zero argument. Replace it if not.
6412         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
6413         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
6414         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
6415
6416         Tests for module 'log2l-ieee'.
6417         * modules/log2l-ieee-tests: New file.
6418         * tests/test-log2l-ieee.c: New file.
6419
6420         New module 'log2l-ieee'.
6421         * modules/log2l-ieee: New file.
6422
6423         Tests for module 'log2-ieee'.
6424         * modules/log2-ieee-tests: New file.
6425         * tests/test-log2-ieee.c: New file.
6426
6427         New module 'log2-ieee'.
6428         * modules/log2-ieee: New file.
6429
6430         Tests for module 'log2f-ieee'.
6431         * modules/log2f-ieee-tests: New file.
6432         * tests/test-log2f-ieee.c: New file.
6433         * tests/test-log2-ieee.h: New file.
6434
6435         New module 'log2f-ieee'.
6436         * modules/log2f-ieee: New file.
6437
6438 2012-03-11  Bruno Haible  <bruno@clisp.org>
6439
6440         Tests for module 'log2l'.
6441         * modules/log2l-tests: New file.
6442         * tests/test-log2l.c: New file.
6443
6444         New module 'log2l'.
6445         * lib/math.in.h (log2l): New declaration.
6446         * lib/log2l.c: New file.
6447         * m4/log2l.m4: New file.
6448         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
6449         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
6450         REPLACE_LOG2L.
6451         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
6452         REPLACE_LOG2L.
6453         * modules/log2l: New file.
6454         * tests/test-math-c++.cc: Check the declaration of log2l.
6455         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
6456         and OSF/1 problems.
6457
6458 2012-03-11  Bruno Haible  <bruno@clisp.org>
6459
6460         Tests for module 'log2f'.
6461         * modules/log2f-tests: New file.
6462         * tests/test-log2f.c: New file.
6463
6464         New module 'log2f'.
6465         * lib/math.in.h (log2f): New declaration.
6466         * lib/log2f.c: New file.
6467         * m4/log2f.m4: New file.
6468         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
6469         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
6470         REPLACE_LOG2F.
6471         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
6472         REPLACE_LOG2F.
6473         * modules/log2f: New file.
6474         * tests/test-math-c++.cc: Check the declaration of log2f.
6475         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
6476         and OSF/1 and Cygwin problems.
6477
6478 2012-03-11  Bruno Haible  <bruno@clisp.org>
6479
6480         Tests for module 'log2'.
6481         * modules/log2-tests: New file.
6482         * tests/test-log2.c: New file.
6483         * tests/test-log2.h: New file.
6484
6485         New module 'log2'.
6486         * lib/math.in.h (log2): New declaration.
6487         * lib/log2.c: New file.
6488         * m4/log2.m4: New file.
6489         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
6490         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
6491         REPLACE_LOG2.
6492         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
6493         REPLACE_LOG2.
6494         * modules/log2: New file.
6495         * tests/test-math-c++.cc: Check the declaration of log2.
6496         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
6497         and OSF/1 and Cygwin problems.
6498
6499 2012-03-11  Bruno Haible  <bruno@clisp.org>
6500
6501         exp2* tests: More tests.
6502         * tests/test-exp2.h (test_function): Test all integral arguments that
6503         don't need to overflow or denormalized numbers.
6504         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
6505         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
6506         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
6507
6508 2012-03-10  Bruno Haible  <bruno@clisp.org>
6509
6510         log1pl-ieee: Work around test failure on AIX 7.1.
6511         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
6512
6513         log1pl-ieee: Work around test failure on IRIX 6.5.
6514         * m4/log1pl-ieee.m4: New file.
6515         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
6516         test whether log1pl works with a minus zero argument. Replace it if
6517         not.
6518         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
6519         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
6520         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
6521         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
6522         (Depends-on): Update conditions.
6523         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6524         m4/signbit.m4.
6525         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
6526         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
6527
6528         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
6529         * m4/log1pf-ieee.m4: New file.
6530         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
6531         test whether log1pf works with a minus zero argument. Replace it if
6532         not.
6533         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
6534         m4/signbit.m4.
6535         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
6536         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
6537
6538         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
6539         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
6540         (configure.ac): Require gl_FUNC_LOG1PF.
6541
6542         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
6543         * m4/log1p-ieee.m4: New file.
6544         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
6545         whether log1p works with a minus zero argument. Replace it if not.
6546         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
6547         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
6548         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
6549         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
6550         (Depends-on): Update conditions.
6551         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6552         m4/signbit.m4.
6553         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
6554         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
6555
6556         Tests for module 'log1pl-ieee'.
6557         * modules/log1pl-ieee-tests: New file.
6558         * tests/test-log1pl-ieee.c: New file.
6559
6560         New module 'log1pl-ieee'.
6561         * modules/log1pl-ieee: New file.
6562
6563         Tests for module 'log1p-ieee'.
6564         * modules/log1p-ieee-tests: New file.
6565         * tests/test-log1p-ieee.c: New file.
6566
6567         New module 'log1p-ieee'.
6568         * modules/log1p-ieee: New file.
6569
6570         Tests for module 'log1pf-ieee'.
6571         * modules/log1pf-ieee-tests: New file.
6572         * tests/test-log1pf-ieee.c: New file.
6573         * tests/test-log1p-ieee.h: New file.
6574
6575         New module 'log1pf-ieee'.
6576         * modules/log1pf-ieee: New file.
6577
6578 2012-03-10  Bruno Haible  <bruno@clisp.org>
6579
6580         Tests for module 'log1pl'.
6581         * modules/log1pl-tests: New file.
6582         * tests/test-log1pl.c: New file.
6583
6584         New module 'log1pl'.
6585         * lib/math.in.h (log1pl): New declaration.
6586         * lib/log1pl.c: New file.
6587         * m4/log1pl.m4: New file.
6588         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
6589         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
6590         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
6591         * modules/log1pl: New file.
6592         * tests/test-math-c++.cc: Check the declaration of log1pl.
6593         * doc/posix-functions/log1pl.texi: Mention the new module.
6594
6595 2012-03-10  Bruno Haible  <bruno@clisp.org>
6596
6597         Tests for module 'log1pf'.
6598         * modules/log1pf-tests: New file.
6599         * tests/test-log1pf.c: New file.
6600
6601         New module 'log1pf'.
6602         * lib/math.in.h (log1pf): New declaration.
6603         * lib/log1pf.c: New file.
6604         * m4/log1pf.m4: New file.
6605         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
6606         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
6607         REPLACE_LOG1PF.
6608         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
6609         REPLACE_LOG1PF.
6610         * modules/log1pf: New file.
6611         * tests/test-math-c++.cc: Check the declaration of log1pf.
6612         * doc/posix-functions/log1pf.texi: Mention the new module.
6613
6614 2012-03-10  Bruno Haible  <bruno@clisp.org>
6615
6616         log1p tests: More tests.
6617         * tests/test-log1p.h: New file.
6618         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
6619         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
6620         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
6621         (main): Invoke test_function.
6622
6623         log1p: Provide replacement for Minix and MSVC.
6624         * lib/math.in.h (log1p): New declaration.
6625         * lib/log1p.c: New file.
6626         * m4/log1p.m4: New file.
6627         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
6628         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
6629         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
6630         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
6631         (Depends-on): Add math, isnand, log, round.
6632         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
6633         HAVE_LOG1P is 0.
6634         * tests/test-math-c++.cc: Check the declaration of log1p.
6635         * doc/posix-functions/log1p.texi: Mention the replacement.
6636
6637 2012-03-10  Bruno Haible  <bruno@clisp.org>
6638
6639         math tests: Small simplification.
6640         * tests/test-exp.h (test_function): Use the same err_bound for
6641         'double' on platforms with sizeof (long double) == sizeof (double)
6642         than on platforms with sizeof (long double) > sizeof (double).
6643         * tests/test-exp2.h (test_function): Likewise.
6644         * tests/test-expm1.h (test_function): Likewise.
6645         * tests/test-log.h (test_function): Likewise.
6646
6647 2012-03-10  Bruno Haible  <bruno@clisp.org>
6648
6649         Fix some comments.
6650         * lib/expl.c: Fix an ambiguous comment.
6651         * lib/expm1.c: Likewise.
6652         * lib/expm1l.c: Likewise.
6653         * lib/exp2.c: Likewise.
6654         * lib/exp2l.c: Likewise.
6655
6656 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
6657
6658         regex: allow inclusion of <regex.h> before <limits.h>
6659         Without this patch, portable programs had to include <limits.h> before
6660         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
6661         I ran into this problem with a test version of GNU grep on Solaris 8.
6662         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
6663         This is done conditionally so that this change can be merged
6664         back to glibc.
6665         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
6666         using the included regex.
6667
6668         fts: depend on fdopendir
6669         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
6670         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
6671         problem was introduced when fdopendir was split out.
6672
6673 2012-03-10  Bruno Haible  <bruno@clisp.org>
6674
6675         Remove unused variables.
6676         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
6677         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6678
6679 2012-03-10  Bruno Haible  <bruno@clisp.org>
6680
6681         isnanf-nolibm: Fix last commit.
6682         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
6683
6684         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
6685         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
6686
6687 2012-03-10  Bruno Haible  <bruno@clisp.org>
6688
6689         logf-ieee: Work around test failure on NetBSD 5.1.
6690         * m4/logf-ieee.m4: New file.
6691         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
6692         whether logf works with a negative argument. Replace it if not.
6693         * lib/logf.c (logf): For negative arguments, return NaN.
6694         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
6695         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
6696         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
6697
6698         logf-ieee: Work around test failure on Solaris 9.
6699         * modules/logf-ieee (Depends-on): Add log-ieee.
6700         (configure.ac): Require gl_FUNC_LOGF.
6701
6702         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6703         * m4/log-ieee.m4: New file.
6704         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
6705         log works with a negative argument. Replace it if not.
6706         * lib/log.c (log): For negative arguments, return NaN.
6707         * modules/log-ieee (Files): Add m4/log-ieee.m4.
6708         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
6709         * doc/posix-functions/log.texi: Mention the log-ieee module.
6710
6711         Tests for module 'logl-ieee'.
6712         * modules/logl-ieee-tests: New file.
6713         * tests/test-logl-ieee.c: New file.
6714
6715         New module 'logl-ieee'.
6716         * modules/logl-ieee: New file.
6717
6718         Tests for module 'log-ieee'.
6719         * modules/log-ieee-tests: New file.
6720         * tests/test-log-ieee.c: New file.
6721
6722         New module 'log-ieee'.
6723         * modules/log-ieee: New file.
6724
6725         Tests for module 'logf-ieee'.
6726         * modules/logf-ieee-tests: New file.
6727         * tests/test-logf-ieee.c: New file.
6728         * tests/test-log-ieee.h: New file.
6729
6730         New module 'logf-ieee'.
6731         * modules/logf-ieee: New file.
6732
6733 2012-03-10  Bruno Haible  <bruno@clisp.org>
6734
6735         log: Fix bug introduced on 2012-03-09.
6736         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
6737
6738 2012-03-10  Pádraig Brady  <P@draigBrady.com>
6739
6740         timer-time: link explicitly with pthreads on glibc
6741         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
6742         to support static linking, when newer glibc is
6743         detected, as that contains pthread emulation of
6744         POSIX timer functions where required.
6745         * modules/timer-time: Depend on threadlib to
6746         pull in the appropriate library to link.
6747
6748 2012-03-10  Bruno Haible  <bruno@clisp.org>
6749
6750         log* tests: More tests.
6751         * tests/test-log.h: New file.
6752         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
6753         (main): Invoke test_function.
6754         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
6755         (main): Invoke test_function.
6756         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
6757         (main): Invoke test_function.
6758         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6759         tests/randomd.c.
6760         (Makefile.am): Add randomd.c to test_log_SOURCES.
6761         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6762         tests/randomf.c.
6763         (Makefile.am): Add randomf.c to test_logf_SOURCES.
6764         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6765         tests/randoml.c.
6766         (Depends-on): Add 'float'.
6767         (Makefile.am): Add randoml.c to test_logl_SOURCES.
6768
6769 2012-03-09  Bruno Haible  <bruno@clisp.org>
6770
6771         logl: Work around OSF/1 5.1 bug.
6772         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
6773         * lib/logl.c (logl): If logl exists, use it and provide just the
6774         workaround.
6775         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
6776         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
6777         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
6778         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
6779         * modules/logl (configure.ac): Consider REPLACE_LOGL.
6780         (Depends-on): Update conditions.
6781         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
6782
6783 2012-03-09  Bruno Haible  <bruno@clisp.org>
6784
6785         logf: Work around OSF/1 5.1 bug.
6786         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
6787         * lib/logf.c (logf): If logf exists, use it and provide just the
6788         workaround.
6789         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
6790         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
6791         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
6792         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
6793         * modules/logf (configure.ac): Consider REPLACE_LOGF.
6794         (Depends-on): Update conditions.
6795         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
6796
6797 2012-03-09  Bruno Haible  <bruno@clisp.org>
6798
6799         log: Work around OSF/1 5.1 bug.
6800         * lib/math.in.h (log): New declaration.
6801         * lib/log.c: New file.
6802         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
6803         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
6804         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
6805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
6806         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
6807         * modules/log (Files): Add lib/log.c.
6808         (Depends-on): Add math.
6809         (configure.ac): If REPLACE_LOG is 1, compile an override.
6810         * tests/test-math-c++.cc: Check the declaration of log.
6811         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
6812
6813 2012-03-09  Jim Meyering  <meyering@redhat.com>
6814
6815         readtokens.c: adjust wording in a comment
6816         * lib/readtokens.c: Insert omitted "that" in a comment.
6817
6818 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6819
6820         modechange: add notations +40, 00440, etc.
6821         * lib/modechange.c (mode_compile): Support new notations
6822         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
6823
6824 2012-03-08  Bruno Haible  <bruno@clisp.org>
6825
6826         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
6827         * m4/exp2l-ieee.m4: New file.
6828         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
6829         test whether exp2l works with a NaN argument and with a negative
6830         infinity argument. Replace it if not.
6831         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
6832         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
6833         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
6834         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
6835         (Depends-on): Update conditions.
6836         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
6837         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
6838         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
6839
6840         Tests for module 'exp2l-ieee'.
6841         * modules/exp2l-ieee-tests: New file.
6842         * tests/test-exp2l-ieee.c: New file.
6843
6844         New module 'exp2l-ieee'.
6845         * modules/exp2l-ieee: New file.
6846
6847         Tests for module 'exp2-ieee'.
6848         * modules/exp2-ieee-tests: New file.
6849         * tests/test-exp2-ieee.c: New file.
6850
6851         New module 'exp2-ieee'.
6852         * modules/exp2-ieee: New file.
6853
6854         Tests for module 'exp2f-ieee'.
6855         * modules/exp2f-ieee-tests: New file.
6856         * tests/test-exp2f-ieee.c: New file.
6857         * tests/test-exp2-ieee.h: New file.
6858
6859         New module 'exp2f-ieee'.
6860         * modules/exp2f-ieee: New file.
6861
6862 2012-03-08  Bruno Haible  <bruno@clisp.org>
6863
6864         Tests for module 'exp2l'.
6865         * modules/exp2l-tests: New file.
6866         * tests/test-exp2l.c: New file.
6867
6868         New module 'exp2l'.
6869         * lib/math.in.h (exp2l): New declaration.
6870         * lib/exp2l.c: New file.
6871         * lib/expl-table.c: New file, extracted from lib/expl.c.
6872         * lib/expl.c (gl_expl_table): New declaration.
6873         (expl): Remove expl_table. Update reference.
6874         * m4/exp2l.m4: New file.
6875         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
6876         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
6877         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
6878         * modules/exp2l: New file.
6879         * modules/expl (Files): Add lib/expl-table.c.
6880         (configure.ac): Compile also expl-table.c.
6881         * tests/test-math-c++.cc: Check the declaration of exp2l.
6882         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
6883         problem.
6884
6885 2012-03-08  Bruno Haible  <bruno@clisp.org>
6886
6887         Tests for module 'exp2f'.
6888         * modules/exp2f-tests: New file.
6889         * tests/test-exp2f.c: New file.
6890
6891         New module 'exp2f'.
6892         * lib/math.in.h (exp2f): New declaration.
6893         * lib/exp2f.c: New file.
6894         * m4/exp2f.m4: New file.
6895         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
6896         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
6897         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
6898         * modules/exp2f: New file.
6899         * tests/test-math-c++.cc: Check the declaration of exp2f.
6900         * doc/posix-functions/exp2f.texi: Mention the new module and the
6901         IRIX problem.
6902
6903 2012-03-08  Bruno Haible  <bruno@clisp.org>
6904
6905         Tests for module 'exp2'.
6906         * modules/exp2-tests: New file.
6907         * tests/test-exp2.c: New file.
6908         * tests/test-exp2.h: New file.
6909
6910         New module 'exp2'.
6911         * lib/math.in.h (exp2): New declaration.
6912         * lib/exp2.c: New file.
6913         * m4/exp2.m4: New file.
6914         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
6915         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
6916         REPLACE_EXP2.
6917         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
6918         REPLACE_EXP2.
6919         * modules/exp2: New file.
6920         * tests/test-math-c++.cc: Check the declaration of exp2.
6921         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
6922         and OpenBSD problems.
6923
6924 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6925
6926         savedir: fix comment typo
6927         * lib/savedir.c (savedirstream): Fix typo in comment.
6928
6929 2012-03-08  Bruno Haible  <bruno@clisp.org>
6930
6931         test-readtokens.c: use const; remove unwarranted cast
6932         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
6933
6934 2012-03-08  Bruno Haible  <bruno@clisp.org>
6935
6936         fmal: Avoid compilation error on AIX.
6937         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
6938         AIX 5.2..7.1.
6939
6940 2012-03-08  Bruno Haible  <bruno@clisp.org>
6941
6942         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
6943         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
6944         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
6945         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
6946         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
6947         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
6948         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
6949
6950 2012-03-08  Bruno Haible  <bruno@clisp.org>
6951
6952         remainderf: Override buggy system function on IRIX 6.5.
6953         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
6954         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
6955         when it exists.
6956         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
6957
6958 2012-03-08  Jim Meyering  <meyering@redhat.com>
6959
6960         test-readtokens.c: avoid const-related compilation warnings
6961         * tests/test-readtokens.c: Avoid const-related compilation warnings.
6962
6963 2012-03-07  Jim Meyering  <meyering@redhat.com>
6964             Bruno Haible  <bruno@clisp.org>
6965
6966         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
6967         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
6968         tests/randomd.c.
6969         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
6970         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
6971         tests/randoml.c.
6972         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
6973
6974 2012-03-07  Bruno Haible  <bruno@clisp.org>
6975
6976         expm1l: Avoid compilation error on AIX.
6977         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
6978         AIX 5.2..7.1.
6979
6980 2012-03-07  Bruno Haible  <bruno@clisp.org>
6981
6982         expm1l: Don't override undeclared system function on IRIX 6.5.
6983         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
6984         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
6985         it exists. Set HAVE_DECL_EXPM1L.
6986         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
6987         HAVE_EXPM1L.
6988         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
6989         HAVE_EXPM1L.
6990         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
6991
6992 2012-03-07  Bruno Haible  <bruno@clisp.org>
6993
6994         remainderl: Don't override undeclared system function on IRIX 6.5.
6995         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
6996         HAVE_REMAINDERL.
6997         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
6998         declared when it exists. Set HAVE_DECL_REMAINDERL.
6999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
7000         not HAVE_REMAINDERL.
7001         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
7002         HAVE_REMAINDERL.
7003         * doc/posix-functions/remainderl.texi: Mention missing declaration
7004         problem.
7005
7006 2012-03-07  Bruno Haible  <bruno@clisp.org>
7007
7008         rintf: Don't override undeclared system function on IRIX 6.5.
7009         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
7010         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
7011         exists. Set HAVE_DECL_RINTF.
7012         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
7013         HAVE_RINTF.
7014         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
7015         HAVE_RINTF.
7016         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
7017
7018 2012-03-07  Bruno Haible  <bruno@clisp.org>
7019
7020         roundl: Avoid compilation error on AIX.
7021         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
7022         AIX 5.2..7.1.
7023
7024 2012-03-07  Bruno Haible  <bruno@clisp.org>
7025
7026         roundl: Don't override undeclared system function on IRIX 6.5.
7027         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
7028         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
7029         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7030         * modules/roundl (configure.ac): For replacement code, test
7031         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7032         (Depends-on): Update conditions.
7033         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
7034
7035 2012-03-07  Bruno Haible  <bruno@clisp.org>
7036
7037         roundf: Don't override undeclared system function on IRIX 6.5.
7038         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
7039         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
7040         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7041         * modules/roundf (configure.ac): For replacement code, test
7042         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7043         (Depends-on): Update conditions.
7044         * modules/roundf-ieee (Depends-on): Update conditions.
7045         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
7046
7047 2012-03-07  Bruno Haible  <bruno@clisp.org>
7048
7049         round: Don't override undeclared system function on IRIX 6.5.
7050         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
7051         argument.
7052         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
7053         also when it is not declared. Set HAVE_ROUND. For replacement code,
7054         test HAVE_ROUND, not HAVE_DECL_ROUND.
7055         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
7056         not HAVE_DECL_ROUND.
7057         (Depends-on): Update conditions.
7058         * modules/round-ieee (Depends-on): Update conditions.
7059         * doc/posix-functions/round.texi: Mention the IRIX problem.
7060
7061 2012-03-07  Bruno Haible  <bruno@clisp.org>
7062
7063         copysignf: Don't override undeclared system function on IRIX 6.5.
7064         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
7065         HAVE_COPYSIGNF.
7066         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
7067         declared when it exists. Set HAVE_DECL_COPYSIGNF.
7068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
7069         not HAVE_COPYSIGNF.
7070         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
7071         HAVE_COPYSIGNF.
7072         * doc/posix-functions/copysignf.texi: Mention missing declaration
7073         problem.
7074
7075 2012-03-07  Jim Meyering  <meyering@redhat.com>
7076
7077         readtokens: add tests
7078         * modules/readtokens-tests: New file.
7079         * tests/test-readtokens.c: New file.
7080
7081 2012-03-07  Jim Meyering  <meyering@redhat.com>
7082
7083         quotearg: the module must now include quote.h
7084         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
7085         So must the module.
7086         * modules/quotearg (Files): Add quote.h.
7087
7088 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
7089
7090         readtokens: avoid core dumps with unusual calling patterns
7091         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
7092         * lib/readtokens.c: Include limits.h.
7093         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
7094         (readtoken): Don't cache the delimiters; the cache code was buggy
7095         if !delim && saved_delim, or if the new n_delim differs from the old.
7096         Also, it wasn't thread-safe.
7097
7098 2012-03-07  Bruno Haible  <bruno@clisp.org>
7099
7100         quote: Adhere to common module description layout.
7101         * modules/quote (Makefile.am): Add back empty section.
7102
7103 2012-03-06  Akim Demaille  <demaille@gostai.com>
7104
7105         quote: fuse into quotearg
7106         This patch is made for the benefit of Bison.
7107         quote does not leave the choice of the quoting style to the user.
7108         quoting_style provides poor customizability, yet quoting_options,
7109         which is very rich, is hidden inside quotearg.c.  So in order to
7110         allow quote customization, move its implementation to quotearg.c.
7111         * lib/quote.c: Remove.
7112         * modules/quote: Adjust.
7113         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
7114         warning: provide all the members of literal structs.
7115         (quote_quoting_options): New.
7116         (quote, quote_n): Import implementation from quote.c.
7117         * lib/quote.h: Import the comments from quote.c.
7118         (quote_quoting_options): New.
7119
7120 2012-03-06  Bruno Haible  <bruno@clisp.org>
7121
7122         Tests for module 'expm1l-ieee'.
7123         * modules/expm1l-ieee-tests: New file.
7124         * tests/test-expm1l-ieee.c: New file.
7125
7126         New module 'expm1l-ieee'.
7127         * modules/expm1l-ieee: New file.
7128
7129         Tests for module 'expm1f-ieee'.
7130         * modules/expm1f-ieee-tests: New file.
7131         * tests/test-expm1f-ieee.c: New file.
7132
7133         New module 'expm1f-ieee'.
7134         * modules/expm1f-ieee: New file.
7135
7136         Tests for module 'expm1-ieee'.
7137         * modules/expm1-ieee-tests: New file.
7138         * tests/test-expm1-ieee.c: New file.
7139         * tests/test-expm1-ieee.h: New file.
7140
7141         New module 'expm1-ieee'.
7142         * modules/expm1-ieee: New file.
7143         * m4/expm1-ieee.m4: New file.
7144         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
7145         whether expm1 works with a minus zero argument. Replace it if not.
7146         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
7147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
7148         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
7149         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
7150         (Depends-on): Update conditions.
7151         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
7152         AIX problem.
7153
7154 2012-03-06  Bruno Haible  <bruno@clisp.org>
7155
7156         Work around expm1f bug on IRIX 6.5.
7157         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
7158         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
7159         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
7160         not work.
7161         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
7162         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
7163         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
7164         (Depends-on): Update conditions.
7165         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
7166
7167 2012-03-06  Bruno Haible  <bruno@clisp.org>
7168
7169         Tests for module 'expm1l'.
7170         * modules/expm1l-tests: New file.
7171         * tests/test-expm1l.c: New file.
7172
7173         New module 'expm1l'.
7174         * lib/math.in.h (expm1l): New declaration.
7175         * lib/expm1l.c: New file.
7176         * m4/expm1l.m4: New file.
7177         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
7178         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
7179         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
7180         * modules/expm1l: New file.
7181         * tests/test-math-c++.cc: Check the declaration of expm1l.
7182         * doc/posix-functions/expm1l.texi: Mention the new module.
7183
7184 2012-03-06  Bruno Haible  <bruno@clisp.org>
7185
7186         Tests for module 'expm1f'.
7187         * modules/expm1f-tests: New file.
7188         * tests/test-expm1f.c: New file.
7189
7190         New module 'expm1f'.
7191         * lib/math.in.h (expm1f): New declaration.
7192         * lib/expm1f.c: New file.
7193         * m4/expm1f.m4: New file.
7194         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
7195         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
7196         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
7197         * modules/expm1f: New file.
7198         * tests/test-math-c++.cc: Check the declaration of expm1f.
7199         * doc/posix-functions/expm1f.texi: Mention the new module.
7200
7201 2012-03-06  Bruno Haible  <bruno@clisp.org>
7202
7203         Tests for module 'expm1'.
7204         * modules/expm1-tests: New file.
7205         * tests/test-expm1.c: New file.
7206         * tests/test-expm1.h: New file.
7207
7208         New module 'expm1'.
7209         * lib/math.in.h (expm1): New declaration.
7210         * lib/expm1.c: New file.
7211         * m4/expm1.m4: New file.
7212         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
7213         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
7214         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
7215         * modules/expm1: New file.
7216         * tests/test-math-c++.cc: Check the declaration of expm1.
7217         * doc/posix-functions/expm1.texi: Mention the new module.
7218
7219 2012-03-06  Bruno Haible  <bruno@clisp.org>
7220
7221         math: Ensure declarations of math functions.
7222         * modules/acosf (Depends-on): Add 'extensions'.
7223         * modules/asinf (Depends-on): Likewise.
7224         * modules/atan2f (Depends-on): Likewise.
7225         * modules/atanf (Depends-on): Likewise.
7226         * modules/cbrt (Depends-on): Likewise.
7227         * modules/cbrtf (Depends-on): Likewise.
7228         * modules/cbrtl (Depends-on): Likewise.
7229         * modules/copysignf (Depends-on): Likewise.
7230         * modules/copysignl (Depends-on): Likewise.
7231         * modules/cosf (Depends-on): Likewise.
7232         * modules/coshf (Depends-on): Likewise.
7233         * modules/expf (Depends-on): Likewise.
7234         * modules/fabsf (Depends-on): Likewise.
7235         * modules/fabsl (Depends-on): Likewise.
7236         * modules/fmaf (Depends-on): Likewise.
7237         * modules/fmal (Depends-on): Likewise.
7238         * modules/fmodf (Depends-on): Likewise.
7239         * modules/fmodl (Depends-on): Likewise.
7240         * modules/frexpf (Depends-on): Likewise.
7241         * modules/frexpl (Depends-on): Likewise.
7242         * modules/hypot (Depends-on): Likewise.
7243         * modules/hypotf (Depends-on): Likewise.
7244         * modules/hypotl (Depends-on): Likewise.
7245         * modules/ldexpf (Depends-on): Likewise.
7246         * modules/ldexpl (Depends-on): Likewise.
7247         * modules/log10f (Depends-on): Likewise.
7248         * modules/log10l (Depends-on): Likewise.
7249         * modules/log1p (Depends-on): Likewise.
7250         * modules/logb (Depends-on): Likewise.
7251         * modules/logf (Depends-on): Likewise.
7252         * modules/modff (Depends-on): Likewise.
7253         * modules/modfl (Depends-on): Likewise.
7254         * modules/powf (Depends-on): Likewise.
7255         * modules/remainderf (Depends-on): Likewise.
7256         * modules/remainderl (Depends-on): Likewise.
7257         * modules/rintf (Depends-on): Likewise.
7258         * modules/rintl (Depends-on): Likewise.
7259         * modules/sinf (Depends-on): Likewise.
7260         * modules/sinhf (Depends-on): Likewise.
7261         * modules/sqrtf (Depends-on): Likewise.
7262         * modules/tanf (Depends-on): Likewise.
7263         * modules/tanhf (Depends-on): Likewise.
7264         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
7265         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
7266         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
7267         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
7268         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
7269         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
7270         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
7271         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
7272         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
7273         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
7274         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
7275         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
7276         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
7277         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
7278         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
7279         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
7280         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
7281         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7282         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
7283         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
7284         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
7285         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
7286         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
7287         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
7288         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
7289         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
7290         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
7291         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
7292         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
7293         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
7294         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7295         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
7296         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
7297         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7298         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7299         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7300         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
7301         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
7302         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
7303         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
7304         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
7305
7306 2012-03-06  Bruno Haible  <bruno@clisp.org>
7307
7308         math: Update module names in warnings.
7309         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
7310         tanl): Use specific module name in warn-on-use warning.
7311
7312 2012-03-06  Bruno Haible  <bruno@clisp.org>
7313
7314         expl: Simplify computation.
7315         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
7316
7317 2012-03-05  Bruno Haible  <bruno@clisp.org>
7318
7319         exp* tests: More tests.
7320         * tests/test-exp.h: New file.
7321         * tests/test-exp.c: Include <float.h> and test-exp.h.
7322         (main): Invoke test_function.
7323         * tests/test-expf.c: Include <float.h> and test-exp.h.
7324         (main): Invoke test_function.
7325         * tests/test-expl.c: Include <float.h> and test-exp.h.
7326         (main): Invoke test_function.
7327         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
7328         (Makefile.am): Add randomd.c to test_exp_SOURCES.
7329         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
7330         (Makefile.am): Add randomf.c to test_expf_SOURCES.
7331         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
7332         (Depends-on): Add 'float'.
7333         (Makefile.am): Add randoml.c to test_expl_SOURCES.
7334
7335         expl: Fix precision of computed result.
7336         * lib/expl.c: Completely rewritten.
7337         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
7338         (Maintainer): Add me.
7339         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
7340
7341 2012-03-05  Bruno Haible  <bruno@clisp.org>
7342
7343         cbrt* tests: More tests.
7344         * tests/test-cbrt.h: New file.
7345         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
7346         (main): Invoke test_function.
7347         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
7348         (main): Invoke test_function.
7349         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
7350         (main): Invoke test_function.
7351         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
7352         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
7353         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
7354         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
7355         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
7356         (Depends-on): Add 'float'.
7357         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
7358
7359 2012-03-05  Bruno Haible  <bruno@clisp.org>
7360
7361         hypot* tests: More tests.
7362         * tests/test-hypot.h: New file, partially extracted from
7363         tests/test-hypotl.c.
7364         * tests/test-hypot.c: Include test-hypot.h.
7365         (main): Invoke test_function.
7366         * tests/test-hypotf.c: Include test-hypot.h.
7367         (main): Invoke test_function.
7368         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
7369         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
7370         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
7371         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
7372         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
7373         tests/randomf.c.
7374         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
7375         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
7376         tests/randoml.c.
7377         (Depends-on): Add 'fpucw', 'float'.
7378         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
7379
7380 2012-03-05  Bruno Haible  <bruno@clisp.org>
7381
7382         fpucw: Doc about FreeBSD.
7383         * lib/fpucw.h: Mention FreeBSD in comments.
7384
7385 2012-03-04  Bruno Haible  <bruno@clisp.org>
7386
7387         sqrt* tests: More tests.
7388         * tests/test-sqrt.h: New file.
7389         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
7390         (main): Invoke test_function.
7391         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
7392         (main): Invoke test_function.
7393         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
7394         (main): Invoke test_function.
7395         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
7396         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
7397         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
7398         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
7399         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
7400         (Depends-on): Add 'float'.
7401         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
7402
7403 2012-03-04  Bruno Haible  <bruno@clisp.org>
7404
7405         remainder* tests: More tests.
7406         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
7407         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
7408         (main): Invoke test_function.
7409         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
7410         (main): Invoke test_function.
7411         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
7412         (main): Invoke test_function.
7413         * modules/remainder-tests (Files): Add tests/test-remainder.h,
7414         tests/randomd.c.
7415         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
7416         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
7417         tests/randomf.c.
7418         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
7419         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
7420         tests/randoml.c.
7421         (Depends-on): Add 'float'.
7422         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
7423
7424 2012-03-04  Bruno Haible  <bruno@clisp.org>
7425
7426         remainder, remainderf, remainderl: Fix computation for large quotients.
7427         * lib/remainder.c: Completely rewritten.
7428         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
7429         USE_FLOAT.
7430         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
7431         USE_LONG_DOUBLE.
7432         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
7433         isnand, isinf. Remove round, fma.
7434         * modules/remainderf (Files): Add lib/remainder.c.
7435         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
7436         Remove roundf, fmaf.
7437         * modules/remainderl (Files): Add lib/remainder.c.
7438         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
7439         isinf. Remove roundl, fmal.
7440         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
7441         REMAINDER_LIBM.
7442         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
7443         REMAINDERF_LIBM.
7444         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
7445         REMAINDERL_LIBM.
7446
7447 2012-03-04  Bruno Haible  <bruno@clisp.org>
7448
7449         fmod* tests: More tests.
7450         * tests/test-fmod.h (my_ldexp): New function.
7451         (test_function): Reduce amount of random numbers to test. Add tests
7452         of very large quotients x / y.
7453         * tests/test-fmod.c (MAX_EXP): New macro.
7454         * tests/test-fmodf.c (MAX_EXP): Likewise.
7455         * tests/test-fmodl.c (MAX_EXP): Likewise.
7456
7457 2012-03-04  Bruno Haible  <bruno@clisp.org>
7458
7459         fmod, fmodl: Fix computation for large quotients x / y.
7460         * lib/fmod.c: Completely rewritten.
7461         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
7462         USE_LONG_DOUBLE.
7463         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
7464         isnand. Remove fma.
7465         * modules/fmodl (Files): Add lib/fmod.c.
7466         (Depends-on): Add float, isfinite, signbit, fabsl,
7467         frexpl, ldexpl, isnanl. Remove fma.
7468         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
7469         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
7470
7471 2012-03-03  Bruno Haible  <bruno@clisp.org>
7472
7473         fmod* tests: More tests.
7474         * tests/test-fmod.h: New file.
7475         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
7476         (main): Invoke test_function.
7477         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
7478         (main): Invoke test_function.
7479         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
7480         (main): Invoke test_function.
7481         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
7482         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
7483         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
7484         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
7485         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
7486         (Depends-on): Add 'float'.
7487         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
7488
7489 2012-03-03  Bruno Haible  <bruno@clisp.org>
7490
7491         rint* tests: More tests.
7492         * tests/test-rint.h: New file, partially extracted from
7493         tests/test-rintl.c.
7494         * tests/test-rint.c: Include test-rint.h.
7495         (main): Invoke test_function.
7496         * tests/test-rintf.c: Include test-rint.h.
7497         (main): Invoke test_function.
7498         * tests/test-rintl.c: Include test-rint.h.
7499         (main): Invoke test_function.
7500         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
7501         (Makefile.am): Add randomd.c to test_rint_SOURCES.
7502         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
7503         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
7504         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
7505         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
7506
7507 2012-03-03  Bruno Haible  <bruno@clisp.org>
7508
7509         modf* tests: More tests.
7510         * tests/test-modf.h: New file.
7511         * tests/test-modf.c: Include <float.h> and test-modf.h.
7512         (main): Invoke test_function.
7513         * tests/test-modff.c: Include <float.h> and test-modf.h.
7514         (main): Invoke test_function.
7515         * tests/test-modfl.c: Include <float.h> and test-modf.h.
7516         (main): Invoke test_function.
7517         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
7518         (Makefile.am): Add randomd.c to test_modf_SOURCES.
7519         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
7520         (Makefile.am): Add randomf.c to test_modff_SOURCES.
7521         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
7522         (Depends-on): Add 'float'.
7523         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
7524
7525 2012-03-03  Bruno Haible  <bruno@clisp.org>
7526
7527         fabs* tests: More tests.
7528         * tests/test-fabs.h: New file, partially extracted from
7529         tests/test-fabsl.c.
7530         * tests/test-fabs.c (RANDOM): New macro.
7531         * tests/test-fabsf.c (RANDOM): New macro.
7532         * tests/test-fabsl.c (RANDOM): New macro.
7533         * modules/fabs-tests (Files): Add tests/randomd.c.
7534         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
7535         * modules/fabsf-tests (Files): Add tests/randomf.c.
7536         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
7537         * modules/fabsl-tests (Files): Add tests/randoml.c.
7538         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
7539
7540 2012-03-03  Bruno Haible  <bruno@clisp.org>
7541
7542         ldexp* tests: More tests.
7543         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
7544         * tests/test-ldexp.c (RANDOM): New macro.
7545         * tests/test-ldexpf.c (RANDOM): New macro.
7546         * tests/test-ldexpl.c (RANDOM): New macro.
7547         * modules/ldexp-tests (Files): Add tests/randomd.c.
7548         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
7549         * modules/ldexpf-tests (Files): Add tests/randomf.c.
7550         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
7551         * modules/ldexpl-tests (Files): Add tests/randoml.c.
7552         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
7553
7554 2012-03-03  Bruno Haible  <bruno@clisp.org>
7555
7556         frexp* tests: More tests.
7557         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
7558         * tests/test-frexp.c (RANDOM): New macro.
7559         * tests/test-frexpf.c (RANDOM): New macro.
7560         * tests/test-frexpl.c (RANDOM): New macro.
7561         * modules/frexp-tests (Files): Add tests/randomd.c.
7562         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
7563         * modules/frexpf-tests (Files): Add tests/randomf.c.
7564         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
7565         * modules/frexpl-tests (Files): Add tests/randoml.c.
7566         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
7567
7568 2012-03-03  Bruno Haible  <bruno@clisp.org>
7569
7570         Support for pseudo-random numbers in tests.
7571         * tests/randomf.c: New file.
7572         * tests/randomd.c: New file.
7573         * tests/randoml.c: New file.
7574         * tests/macros.h (randomf, randomd, randoml): New declarations.
7575
7576 2012-03-03  Bruno Haible  <bruno@clisp.org>
7577
7578         frexp* tests: Refactor.
7579         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
7580         * tests/test-frexp.c: Include and use it.
7581         * tests/test-frexpf.c: Likewise.
7582         * tests/test-frexpl.c: Likewise.
7583         * modules/frexp-tests (Files): Add tests/test-frexp.h.
7584         * modules/frexpf-tests (Files): Likewise.
7585         * modules/frexpl-tests (Files): Likewise.
7586
7587 2012-03-02  Jim Meyering  <meyering@redhat.com>
7588
7589         maint: don't specify XZ_OPT=-9ev in dist-related rule
7590         Using xz's -9 option is warranted only if you have a very large
7591         tarball (see xz's documentation for the sizes vs. presets), and
7592         requires 64MiB of memory at decompression time.
7593         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
7594         Automake's default of just "-e" is fine.  Override on a
7595         per-package basis by setting XZ_OPT e.g., in cfg.mk.
7596
7597 2012-03-01  Eric Blake  <eblake@redhat.com>
7598
7599         maint.mk: allow announcement for non-gnulib project
7600         * maint.mk (announcement): Skip gnulib version if not used.
7601
7602 2012-03-01  Jim Meyering  <meyering@redhat.com>
7603
7604         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
7605         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
7606         envvar settings cannot interfere.  Otherwise, setting envvars like
7607         prohibit=foo require=bar, etc. would cause spurious test failures.
7608
7609 2012-03-01  Eric Blake  <eblake@redhat.com>
7610
7611         maint.mk: add per-line exclusions to prohibitions
7612         * maint.mk (_sc_search_regexp): Add $exclude parameter.
7613         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
7614         (sc_const_long_option): Use it.
7615
7616 2012-03-01  Bruno Haible  <bruno@clisp.org>
7617
7618         Tests for module 'expl-ieee'.
7619         * modules/expl-ieee-tests: New file.
7620         * tests/test-expl-ieee.c: New file.
7621
7622         New module 'expl-ieee'.
7623         * modules/expl-ieee: New file.
7624
7625         Tests for module 'exp-ieee'.
7626         * modules/exp-ieee-tests: New file.
7627         * tests/test-exp-ieee.c: New file.
7628
7629         New module 'exp-ieee'.
7630         * modules/exp-ieee: New file.
7631
7632         Tests for module 'expf-ieee'.
7633         * modules/expf-ieee-tests: New file.
7634         * tests/test-expf-ieee.c: New file.
7635         * tests/test-exp-ieee.h: New file.
7636
7637         New module 'expf-ieee'.
7638         * modules/expf-ieee: New file.
7639
7640 2012-02-29  Bruno Haible  <bruno@clisp.org>
7641
7642         cbrtl-ieee: Work around test failure on IRIX 6.5.
7643         * m4/cbrtl-ieee.m4: New file.
7644         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
7645         test whether cbrtl works with a minus zero argument. Replace it if not.
7646         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
7647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
7648         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
7649         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
7650         (Depends-on): Update conditions.
7651         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
7652         m4/signbit.m4.
7653         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
7654         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
7655         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
7656
7657         Tests for module 'cbrtl-ieee'.
7658         * modules/cbrtl-ieee-tests: New file.
7659         * tests/test-cbrtl-ieee.c: New file.
7660
7661         New module 'cbrtl-ieee'.
7662         * modules/cbrtl-ieee: New file.
7663
7664         Tests for module 'cbrt-ieee'.
7665         * modules/cbrt-ieee-tests: New file.
7666         * tests/test-cbrt-ieee.c: New file.
7667
7668         New module 'cbrt-ieee'.
7669         * modules/cbrt-ieee: New file.
7670
7671         Tests for module 'cbrtf-ieee'.
7672         * modules/cbrtf-ieee-tests: New file.
7673         * tests/test-cbrtf-ieee.c: New file.
7674         * tests/test-cbrt-ieee.h: New file.
7675
7676         New module 'cbrtf-ieee'.
7677         * modules/cbrtf-ieee: New file.
7678
7679 2012-02-29  Bruno Haible  <bruno@clisp.org>
7680
7681         cbrtf: Work around bug in IRIX 6.5 system function.
7682         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
7683         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
7684         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
7685         work.
7686         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
7687         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
7688         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
7689         (Depends-on): Update conditions.
7690         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
7691
7692 2012-02-29  Bruno Haible  <bruno@clisp.org>
7693
7694         Tests for module 'cbrtl'.
7695         * modules/cbrtl-tests: New file.
7696         * tests/test-cbrtl.c: New file.
7697
7698         New module 'cbrtl'.
7699         * lib/math.in.h (cbrtl): New declaration.
7700         * lib/cbrtl.c: New file.
7701         * m4/cbrtl.m4: New file.
7702         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
7703         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
7704         HAVE_DECL_CBRTL.
7705         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
7706         HAVE_DECL_CBRTL.
7707         * modules/cbrtl: New file.
7708         * tests/test-math-c++.cc: Check the declaration of cbrtl.
7709         * doc/posix-functions/cbrtl.texi: Mention the new module.
7710
7711 2012-02-29  Bruno Haible  <bruno@clisp.org>
7712
7713         Tests for module 'cbrtf'.
7714         * modules/cbrtf-tests: New file.
7715         * tests/test-cbrtf.c: New file.
7716
7717         New module 'cbrtf'.
7718         * lib/math.in.h (cbrtf): New declaration.
7719         * lib/cbrtf.c: New file.
7720         * m4/cbrtf.m4: New file.
7721         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
7722         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
7723         HAVE_DECL_CBRTF.
7724         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
7725         HAVE_DECL_CBRTF.
7726         * modules/cbrtf: New file.
7727         * tests/test-math-c++.cc: Check the declaration of cbrtf.
7728         * doc/posix-functions/cbrtf.texi: Mention the new module.
7729
7730 2012-02-29  Bruno Haible  <bruno@clisp.org>
7731
7732         cbrt: Provide replacement on MSVC and Minix.
7733         * lib/math.in.h (cbrt): New declaration.
7734         * lib/cbrt.c: New file.
7735         * m4/cbrt.m4: New file.
7736         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
7737         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
7738         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
7739         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
7740         (Depends-on): Add dependencies.
7741         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
7742         * tests/test-math-c++.cc: Check the declaration of cbrt.
7743         * doc/posix-functions/cbrt.texi: Mention that the module provides a
7744         replacement.
7745
7746 2012-02-29  Bruno Haible  <bruno@clisp.org>
7747
7748         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
7749         * m4/hypotl-ieee.m4: New file.
7750         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
7751         test whether hypotl works with mixed NaN and Infinity arguments.
7752         Replace it if not.
7753         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
7754         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
7755         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
7756         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
7757         (Depends-on): Update conditions.
7758         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
7759         (Depends-on): Add hypot-ieee.
7760         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
7761         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
7762
7763         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
7764         * m4/hypotf-ieee.m4: New file.
7765         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
7766         test whether hypotf works with mixed NaN and Infinity arguments.
7767         Replace it if not.
7768         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
7769         (Depends-on): Add hypot-ieee.
7770         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
7771         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
7772
7773         hypot-ieee: Work around test failure on OSF/1 and native Windows.
7774         * lib/math.in.h (hypot): New declaration.
7775         * lib/hypot.c: New file.
7776         * m4/hypot-ieee.m4: New file.
7777         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
7778         whether hypot works with mixed NaN and Infinity arguments. Replace it
7779         if not.
7780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
7781         REPLACE_HYPOT.
7782         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
7783         * modules/hypot (Files): Add lib/hypot.c.
7784         (Depends-on): Add dependencies.
7785         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
7786         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
7787         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
7788         * tests/test-math-c++.cc: Check the declaration of hypot.
7789         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
7790
7791         Tests for module 'hypotl-ieee'.
7792         * modules/hypotl-ieee-tests: New file.
7793         * tests/test-hypotl-ieee.c: New file.
7794
7795         New module 'hypotl-ieee'.
7796         * modules/hypotl-ieee: New file.
7797
7798         Tests for module 'hypot-ieee'.
7799         * modules/hypot-ieee-tests: New file.
7800         * tests/test-hypot-ieee.c: New file.
7801
7802         New module 'hypot-ieee'.
7803         * modules/hypot-ieee: New file.
7804
7805         Tests for module 'hypotf-ieee'.
7806         * modules/hypotf-ieee-tests: New file.
7807         * tests/test-hypotf-ieee.c: New file.
7808         * tests/test-hypot-ieee.h: New file.
7809
7810         New module 'hypotf-ieee'.
7811         * modules/hypotf-ieee: New file.
7812
7813 2012-02-29  Bruno Haible  <bruno@clisp.org>
7814
7815         Remove unused variables.
7816         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
7817         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7818         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
7819         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7820
7821 2012-02-29  Eric Blake  <eblake@redhat.com>
7822
7823         termios: fix pid_t always, not just for tcgetsid
7824         * doc/posix-headers/termios.texi (termios.h): Mention problem.
7825         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
7826         just when building tcgetsid.
7827
7828 2012-02-29  Bruno Haible  <bruno@clisp.org>
7829
7830         Tests for module 'hypotl'.
7831         * modules/hypotl-tests: New file.
7832         * tests/test-hypotl.c: New file.
7833
7834         New module 'hypotl'.
7835         * lib/math.in.h (hypotl): New declaration.
7836         * lib/hypotl.c: New file.
7837         * m4/hypotl.m4: New file.
7838         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
7840         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
7841         * modules/hypotl: New file.
7842         * tests/test-math-c++.cc: Check the hypotl declaration.
7843         * doc/posix-functions/hypotl.texi: Mention the new module.
7844
7845 2012-02-29  Eric Blake  <eblake@redhat.com>
7846
7847         tcgetsid: fix cygwin header bug
7848         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
7849
7850         docs: update cygwin progress
7851         * doc/posix-functions/llround.texi (llround): Added in cygwin
7852         1.7.8.
7853         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
7854         * doc/glibc-functions/program_invocation_name.texi
7855         (program_invocation_name): Likewise.
7856         * doc/glibc-functions/program_invocation_short_name.texi
7857         (program_invocation_short_name): Likewise.
7858         * doc/glibc-functions/madvise.texi (madvise): Likewise.
7859         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
7860         Likewise.
7861         * doc/posix-functions/pthread_spin_destroy.texi
7862         (pthread_spin_destroy): Added in cygwin 1.7.10.
7863         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
7864         Likewise.
7865         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
7866         Likewise.
7867         * doc/posix-functions/pthread_spin_trylock.texi
7868         (pthread_spin_trylock): Likewise.
7869         * doc/posix-functions/pthread_spin_unlock.texi
7870         (pthread_spin_unlock): Likewise.
7871         * doc/posix-functions/pthread_setschedprio.texi
7872         (pthread_setschedprio): Likewise.
7873         * doc/posix-functions/pthread_attr_getstack.texi
7874         (pthread_attr_getstack): Likewise.
7875         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
7876         (pthread_attr_getstackaddr): Likewise.
7877         * doc/glibc-functions/pthread_getattr_np.texi
7878         (pthread_getattr_np): Likewise.
7879         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
7880         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
7881         * doc/posix-functions/clock_settime.texi (clock_settime):
7882         Likewise.
7883         * doc/posix-functions/pthread_attr_getguardsize.texi
7884         (pthread_attr_getguardsize): Likewise.
7885         * doc/posix-functions/pthread_attr_setguardsize.texi
7886         (pthread_attr_setguardsize): Likewise.
7887         * doc/posix-functions/pthread_attr_setstack.texi
7888         (pthread_attr_setstack): Likewise.
7889         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
7890         (pthread_attr_setstackaddr): Likewise.
7891         * doc/posix-functions/clock_getcpuclockid.texi
7892         (clock_getcpuclockid): Likewise.
7893         * doc/posix-functions/pthread_getcpuclockid.texi
7894         (pthread_getcpuclockid): Likewise.
7895         * doc/glibc-functions/error.texi (error): Likewise.
7896         * doc/glibc-functions/error_at_line.texi (error_at_line):
7897         Likewise.
7898         * doc/glibc-functions/error_message_count.texi
7899         (error_message_count): Likewise.
7900         * doc/glibc-functions/error_one_per_line.texi
7901         (error_one_per_line): Likewise.
7902         * doc/glibc-functions/error_print_progname.texi
7903         (error_print_progname): Likewise.
7904         * doc/posix-functions/pthread_condattr_getclock.texi
7905         (pthread_condattr_getclock): Likewise.
7906         * doc/posix-functions/pthread_condattr_setclock.texi
7907         (pthread_condattr_setclock): Likewise.
7908         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
7909         Likewise.
7910         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
7911         * doc/glibc-functions/getpt.texi (getpt): Likewise.
7912         * doc/glibc-functions/get_current_dir_name.texi
7913         (get_current_dir_name): Likewise.
7914         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
7915         Likewise.
7916         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
7917         wrong return type.
7918         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
7919         1.7.11.
7920
7921 2012-02-29  Bruno Haible  <bruno@clisp.org>
7922
7923         Tests for module 'hypotf'.
7924         * modules/hypotf-tests: New file.
7925         * tests/test-hypotf.c: New file.
7926
7927         New module 'hypotf'.
7928         * lib/math.in.h (hypotf): New declaration.
7929         * lib/hypotf.c: New file.
7930         * m4/hypotf.m4: New file.
7931         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7932         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
7933         REPLACE_HYPOTF.
7934         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
7935         REPLACE_HYPOTF.
7936         * modules/hypotf: New file.
7937         * tests/test-math-c++.cc: Check the hypotf declaration.
7938         * doc/posix-functions/hypotf.texi: Mention the new module.
7939
7940         hypot: Prepare for hypotf module.
7941         * m4/hypot.m4: New file.
7942         * modules/hypot (Files): Add m4/hypot.m4.
7943         (configure.ac): Invoke gl_FUNC_HYPOT.
7944
7945 2012-02-29  Bruno Haible  <bruno@clisp.org>
7946
7947         hypot tests: More tests.
7948         * tests/test-hypot.c: Include <float.h>.
7949         (main): Add tests about overflow and underflow.
7950
7951 2012-02-29  Bruno Haible  <bruno@clisp.org>
7952
7953         math code: Add comments.
7954         * lib/acosl.c: Add comment about related glibc source files.
7955         * lib/asinl.c: Likewise.
7956         * lib/atanl.c: Likewise.
7957         * lib/expl.c: Likewise.
7958         * lib/logl.c: Likewise.
7959         * lib/sincosl.c: Likewise.
7960         * lib/sinl.c: Likewise.
7961         * lib/tanl.c: Likewise.
7962         * lib/trigl.c: Likewise.
7963         * lib/cosl.c: Likewise. Fix comments.
7964
7965 2012-02-28  Bruno Haible  <bruno@clisp.org>
7966
7967         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
7968         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
7969         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
7970         HUGE_VALL are defined.
7971         (numeric_equald): Renamed from numeric_equal.
7972         (numeric_equalf, numeric_equall): New functions.
7973         (main): Check also HUGE_VALF, HUGE_VALL.
7974         * modules/math-tests (Files): Add tests/macros.h.
7975         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
7976         HUGE_VALL.
7977
7978 2012-02-28  Bruno Haible  <bruno@clisp.org>
7979
7980         doc: Move ISO C11 feature notes into POSIX chapters.
7981         * doc/posix-functions/aligned_alloc.texi: Renamed from
7982         doc/glibc-functions/aligned_alloc.texi.
7983         * doc/posix-functions/quick_exit.texi: Renamed from
7984         doc/glibc-functions/quick_exit.texi.
7985         * doc/posix-headers/uchar.texi: Renamed from
7986         doc/glibc-headers/uchar.texi.
7987         * doc/posix-functions/c16rtomb.texi: Renamed from
7988         doc/glibc-functions/c16rtomb.texi.
7989         * doc/posix-functions/c32rtomb.texi: Renamed from
7990         doc/glibc-functions/c32rtomb.texi.
7991         * doc/posix-functions/mbrtoc16.texi: Renamed from
7992         doc/glibc-functions/mbrtoc16.texi.
7993         * doc/posix-functions/mbrtoc32.texi: Renamed from
7994         doc/glibc-functions/mbrtoc32.texi.
7995         * doc/gnulib.texi: Update.
7996         (Glibc uchar.h): Remove section.
7997         Suggested by Eric Blake.
7998
7999 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
8000
8001         stdnoreturn: port to MSVC better
8002         MSVC standard headers use __declspec(noreturn), so #define noreturn
8003         to empty on that platform.  Reported by Bruno Haible in
8004         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
8005         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
8006         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
8007
8008 2012-02-28  Bruno Haible  <bruno@clisp.org>
8009
8010         doc: Mention new glibc headers and functions.
8011         * doc/glibc-headers/uchar.texi: New file.
8012         * doc/glibc-functions/aligned_alloc.texi: New file.
8013         * doc/glibc-functions/c16rtomb.texi: New file.
8014         * doc/glibc-functions/c32rtomb.texi: New file.
8015         * doc/glibc-functions/clock_adjtime.texi: New file.
8016         * doc/glibc-functions/fanotify_init.texi: New file.
8017         * doc/glibc-functions/fanotify_mark.texi: New file.
8018         * doc/glibc-functions/inet6_opt_append.texi: New file.
8019         * doc/glibc-functions/inet6_opt_find.texi: New file.
8020         * doc/glibc-functions/inet6_opt_finish.texi: New file.
8021         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
8022         * doc/glibc-functions/inet6_opt_init.texi: New file.
8023         * doc/glibc-functions/inet6_opt_next.texi: New file.
8024         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
8025         * doc/glibc-functions/inet6_rth_add.texi: New file.
8026         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
8027         * doc/glibc-functions/inet6_rth_init.texi: New file.
8028         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
8029         * doc/glibc-functions/inet6_rth_segments.texi: New file.
8030         * doc/glibc-functions/inet6_rth_space.texi: New file.
8031         * doc/glibc-functions/login.texi: New file.
8032         * doc/glibc-functions/mbrtoc16.texi: New file.
8033         * doc/glibc-functions/mbrtoc32.texi: New file.
8034         * doc/glibc-functions/name_to_handle_at.texi: New file.
8035         * doc/glibc-functions/ntp_gettimex.texi: New file.
8036         * doc/glibc-functions/open_by_handle_at.texi: New file.
8037         * doc/glibc-functions/prlimit.texi: New file.
8038         * doc/glibc-functions/process_vm_readv.texi: New file.
8039         * doc/glibc-functions/process_vm_writev.texi: New file.
8040         * doc/glibc-functions/recvmmsg.texi: New file.
8041         * doc/glibc-functions/scandirat.texi: New file.
8042         * doc/glibc-functions/sendmmsg.texi: New file.
8043         * doc/glibc-functions/setns.texi: New file.
8044         * doc/glibc-functions/timespec_get.texi: New file.
8045         * doc/gnulib.texi: Include them.
8046         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
8047         sections.
8048         Reported by Eric Blake.
8049
8050 2012-02-28  Bruno Haible  <bruno@clisp.org>
8051
8052         Avoid compilation errors with MSVC option -fp:strict.
8053         * lib/floor.c: Use MSVC specific pragma fenv_access.
8054         * lib/ceil.c: Likewise.
8055         * lib/trunc.c: Likewise.
8056         * lib/round.c: Likewise.
8057         * lib/rint.c: Likewise.
8058         * lib/fma.c: Likewise.
8059         * lib/integer_length.c: Likewise.
8060         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8061         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8062         * tests/test-floor2.c: Likewise.
8063         * tests/test-floorf2.c: Likewise.
8064         * tests/test-ceil2.c: Likewise.
8065         * tests/test-ceilf2.c: Likewise.
8066         * tests/test-trunc2.c: Likewise.
8067         * tests/test-truncf2.c: Likewise.
8068         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8069
8070 2012-02-27  Bruno Haible  <bruno@clisp.org>
8071
8072         Tests for module 'sqrtl-ieee'.
8073         * modules/sqrtl-ieee-tests: New file.
8074         * tests/test-sqrtl-ieee.c: New file.
8075
8076         New module 'sqrtl-ieee'.
8077         * modules/sqrtl-ieee: New file.
8078
8079         Tests for module 'sqrt-ieee'.
8080         * modules/sqrt-ieee-tests: New file.
8081         * tests/test-sqrt-ieee.c: New file.
8082
8083         New module 'sqrt-ieee'.
8084         * modules/sqrt-ieee: New file.
8085
8086         Tests for module 'sqrtf-ieee'.
8087         * modules/sqrtf-ieee-tests: New file.
8088         * tests/test-sqrtf-ieee.c: New file.
8089         * tests/test-sqrt-ieee.h: New file.
8090
8091         New module 'sqrtf-ieee'.
8092         * modules/sqrtf-ieee: New file.
8093
8094 2012-02-27  Bruno Haible  <bruno@clisp.org>
8095
8096         remainderl-ieee: Work around test failure on OSF/1.
8097         * m4/remainderl-ieee.m4: New file.
8098         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
8099         present, test whether remainderl works with a zero second argument.
8100         Replace it if not.
8101         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
8102         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
8103         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
8104         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
8105         (Depends-on): Update conditions.
8106         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
8107         (Depends-on): Add remainder-ieee.
8108         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
8109         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
8110         module.
8111
8112         remainderf-ieee: Work around test failure on OSF/1.
8113         * m4/remainderf-ieee.m4: New file.
8114         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
8115         present, test whether remainderf works with a zero second argument.
8116         Replace it if not.
8117         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
8118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
8119         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
8120         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
8121         (Depends-on): Update conditions.
8122         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
8123         (Depends-on): Add remainder-ieee.
8124         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
8125         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
8126         module.
8127
8128         remainder-ieee: Work around test failure on OSF/1.
8129         * m4/remainder-ieee.m4: New file.
8130         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
8131         present, test whether remainder works with a zero second argument.
8132         Replace it if not.
8133         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
8134         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
8135         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
8136         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
8137         (Depends-on): Update dependencies.
8138         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
8139         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
8140         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
8141
8142         Tests for module 'remainderl-ieee'.
8143         * modules/remainderl-ieee-tests: New file.
8144         * tests/test-remainderl-ieee.c: New file.
8145
8146         New module 'remainderl-ieee'.
8147         * modules/remainderl-ieee: New file.
8148
8149         Tests for module 'remainder-ieee'.
8150         * modules/remainder-ieee-tests: New file.
8151         * tests/test-remainder-ieee.c: New file.
8152
8153         New module 'remainder-ieee'.
8154         * modules/remainder-ieee: New file.
8155
8156         Tests for module 'remainderf-ieee'.
8157         * modules/remainderf-ieee-tests: New file.
8158         * tests/test-remainderf-ieee.c: New file.
8159         * tests/test-remainder-ieee.h: New file.
8160
8161         New module 'remainderf-ieee'.
8162         * modules/remainderf-ieee: New file.
8163
8164 2012-02-27  Bruno Haible  <bruno@clisp.org>
8165
8166         modff, modfl: Fix configure syntax error.
8167         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
8168         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
8169
8170 2012-02-27  Bruno Haible  <bruno@clisp.org>
8171
8172         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
8173         * m4/fmodl-ieee.m4: New file.
8174         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
8175         whether fmodl works with zero arguments. Replace it if not.
8176         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
8177         (Depends-on): Add fmod-ieee.
8178         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
8179         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
8180
8181         fmodf-ieee: Work around test failure on OSF/1.
8182         * m4/fmodf-ieee.m4: New file.
8183         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
8184         whether fmodf works with zero arguments. Replace it if not.
8185         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
8186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
8187         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
8188         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
8189         (Depends-on): Update dependencies.
8190         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
8191         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
8192         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
8193
8194         fmodf-ieee: Work around test failure on MSVC 9.
8195         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
8196         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
8197
8198         fmod-ieee: Work around test failures on OSF/1, mingw.
8199         * m4/fmod-ieee.m4: New file.
8200         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
8201         whether fmod works with zero arguments. Replace it if not.
8202         * lib/math.in.h (fmod): New declaration.
8203         * lib/fmod.c: New file.
8204         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
8205         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
8206         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
8207         * modules/fmod (Files): Add lib/fmod.c.
8208         (Depends-on): Add math, isinf, trunc, fma.
8209         (configure.ac): Arrange to compile lib/fmod.c if needed.
8210         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
8211         m4/signbit.m4.
8212         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
8213         * tests/test-math-c++.cc: Check the declaration of fmod.
8214         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
8215
8216         fmodl-ieee: Fix test failures.
8217         * lib/fmodl.c (fmodl): Treat Inf specially.
8218         * modules/fmodl (Depends-on): Add isinf.
8219
8220         Tests for module 'fmodl-ieee'.
8221         * modules/fmodl-ieee-tests: New file.
8222         * tests/test-fmodl-ieee.c: New file.
8223
8224         New module 'fmodl-ieee'.
8225         * modules/fmodl-ieee: New file.
8226
8227         Tests for module 'fmod-ieee'.
8228         * modules/fmod-ieee-tests: New file.
8229         * tests/test-fmod-ieee.c: New file.
8230
8231         New module 'fmod-ieee'.
8232         * modules/fmod-ieee: New file.
8233
8234         Tests for module 'fmodf-ieee'.
8235         * modules/fmodf-ieee-tests: New file.
8236         * tests/test-fmodf-ieee.c: New file.
8237         * tests/test-fmod-ieee.h: New file.
8238
8239         New module 'fmodf-ieee'.
8240         * modules/fmodf-ieee: New file.
8241
8242 2012-02-27  Bruno Haible  <bruno@clisp.org>
8243
8244         Tests for module 'rintl-ieee'.
8245         * modules/rintl-ieee-tests: New file.
8246         * tests/test-rintl-ieee.c: New file.
8247
8248         New module 'rintl-ieee'.
8249         * modules/rintl-ieee: New file.
8250
8251         Tests for module 'rint-ieee'.
8252         * modules/rint-ieee-tests: New file.
8253         * tests/test-rint-ieee.c: New file.
8254
8255         New module 'rint-ieee'.
8256         * modules/rint-ieee: New file.
8257
8258         Tests for module 'rintf-ieee'.
8259         * modules/rintf-ieee-tests: New file.
8260         * tests/test-rintf-ieee.c: New file.
8261         * tests/test-rint-ieee.h: New file.
8262
8263         New module 'rintf-ieee'.
8264         * modules/rintf-ieee: New file.
8265
8266 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8267
8268         regex: re_search etc. should return -2 when memory exhausted
8269         This bug was uncovered when testing 'grep'.  Without the fix,
8270         re_search and friends return -1 when memory is exhausted, but -1
8271         means no match, and this causes grep to falsely report no-match
8272         instead of memory-exhaustion.  See
8273         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
8274         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
8275         trouble; this can occur if re_search_internal ran out of memory.
8276
8277 2012-02-26  Bruno Haible  <bruno@clisp.org>
8278
8279         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
8280         * m4/modfl-ieee.m4: New file.
8281         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
8282         whether modfl works with Inf. Replace it if not.
8283         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
8284         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
8285         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
8286         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
8287         (Depends-on): Update dependencies.
8288         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
8289         m4/signbit.m4.
8290         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
8291         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
8292
8293         modfl-ieee: Fix dependencies.
8294         * modules/modfl-ieee (Depends-on): Add modf-ieee.
8295
8296         modfl-ieee: Fix test failures.
8297         * lib/modfl.c (modfl): Treat NaN and Inf specially.
8298         * modules/modfl (Depends-on): Add isfinite, isinf.
8299
8300         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
8301         * m4/modff-ieee.m4: New file.
8302         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
8303         whether modff works with NaN and Inf. Replace it if not.
8304         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
8305         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
8306         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
8307         * modules/modff (configure.ac): Consider REPLACE_MODFF.
8308         (Depends-on): Update dependencies.
8309         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
8310         m4/signbit.m4.
8311         (Depends-on): Add modf-ieee.
8312         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
8313         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
8314
8315         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
8316         * m4/modf-ieee.m4: New file.
8317         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
8318         whether modf works with NaN and Inf. Replace it if not.
8319         * lib/math.in.h (modf): New declaration.
8320         * lib/modf.c: New file.
8321         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
8322         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
8323         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
8324         * modules/modf (Files): Add lib/modf.c.
8325         (Depends-on): Add math, isfinite, trunc, isinf.
8326         (configure.ac): Addrange to compile lib/modf.c if needed.
8327         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
8328         m4/signbit.m4.
8329         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
8330         * tests/test-math-c++.cc: Check the declaration of modf.
8331         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
8332
8333         Tests for module 'modfl-ieee'.
8334         * modules/modfl-ieee-tests: New file.
8335         * tests/test-modfl-ieee.c: New file.
8336
8337         New module 'modfl-ieee'.
8338         * modules/modfl-ieee: New file.
8339
8340         Tests for module 'modf-ieee'.
8341         * modules/modf-ieee-tests: New file.
8342         * tests/test-modf-ieee.c: New file.
8343
8344         New module 'modf-ieee'.
8345         * modules/modf-ieee: New file.
8346
8347         Tests for module 'modff-ieee'.
8348         * modules/modff-ieee-tests: New file.
8349         * tests/test-modff-ieee.c: New file.
8350         * tests/test-modf-ieee.h: New file.
8351
8352         New module 'modff-ieee'.
8353         * modules/modff-ieee: New file.
8354
8355 2012-02-26  Bruno Haible  <bruno@clisp.org>
8356
8357         Tests for module 'fabsl-ieee'.
8358         * modules/fabsl-ieee-tests: New file.
8359         * tests/test-fabsl-ieee.c: New file.
8360
8361         New module 'fabsl-ieee'.
8362         * modules/fabsl-ieee: New file.
8363
8364         Tests for module 'fabs-ieee'.
8365         * modules/fabs-ieee-tests: New file.
8366         * tests/test-fabs-ieee.c: New file.
8367
8368         New module 'fabs-ieee'.
8369         * modules/fabs-ieee: New file.
8370
8371         Tests for module 'fabsf-ieee'.
8372         * modules/fabsf-ieee-tests: New file.
8373         * tests/test-fabsf-ieee.c: New file.
8374         * tests/test-fabs-ieee.h: New file.
8375
8376         New module 'fabsf-ieee'.
8377         * modules/fabsf-ieee: New file.
8378
8379 2012-02-26  Bruno Haible  <bruno@clisp.org>
8380
8381         Tests for module 'fmal-ieee'.
8382         * modules/fmal-ieee-tests: New file.
8383         * tests/test-fmal-ieee.c: New file.
8384
8385         New module 'fmal-ieee'.
8386         * modules/fmal-ieee: New file.
8387
8388         Tests for module 'fma-ieee'.
8389         * modules/fma-ieee-tests: New file.
8390         * tests/test-fma-ieee.c: New file.
8391
8392         New module 'fma-ieee'.
8393         * modules/fma-ieee: New file.
8394
8395         Tests for module 'fmaf-ieee'.
8396         * modules/fmaf-ieee-tests: New file.
8397         * tests/test-fmaf-ieee.c: New file.
8398         * tests/test-fma-ieee.h: New file.
8399
8400         New module 'fmaf-ieee'.
8401         * modules/fmaf-ieee: New file.
8402
8403 2012-02-26  Bruno Haible  <bruno@clisp.org>
8404
8405         Tests for module 'ldexpl-ieee'.
8406         * modules/ldexpl-ieee-tests: New file.
8407         * tests/test-ldexpl-ieee.c: New file.
8408
8409         New module 'ldexpl-ieee'.
8410         * modules/ldexpl-ieee: New file.
8411
8412         Tests for module 'ldexp-ieee'.
8413         * modules/ldexp-ieee-tests: New file.
8414         * tests/test-ldexp-ieee.c: New file.
8415
8416         New module 'ldexp-ieee'.
8417         * modules/ldexp-ieee: New file.
8418
8419         Tests for module 'ldexpf-ieee'.
8420         * modules/ldexpf-ieee-tests: New file.
8421         * tests/test-ldexpf-ieee.c: New file.
8422         * tests/test-ldexp-ieee.h: New file.
8423
8424         New module 'ldexpf-ieee'.
8425         * modules/ldexpf-ieee: New file.
8426
8427 2012-02-26  Bruno Haible  <bruno@clisp.org>
8428
8429         Refactor frexp*-ieee tests.
8430         * tests/test-frexp-ieee.h: New file.
8431         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
8432         (main): Just call test_function.
8433         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
8434         (main): Just call test_function.
8435         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
8436         (main): Just call test_function.
8437         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
8438         * modules/frexp-ieee-tests (Files): Likewise.
8439         * modules/frexpl-ieee-tests (Files): Likewise.
8440
8441         Tests for module 'frexpl-ieee'.
8442         * modules/frexpl-ieee-tests: New file.
8443         * tests/test-frexpl-ieee.c: New file.
8444
8445         New module 'frexpl-ieee'.
8446         * modules/frexpl-ieee: New file.
8447
8448         Tests for module 'frexp-ieee'.
8449         * modules/frexp-ieee-tests: New file.
8450         * tests/test-frexp-ieee.c: New file.
8451
8452         New module 'frexp-ieee'.
8453         * modules/frexp-ieee: New file.
8454
8455         Tests for module 'frexpf-ieee'.
8456         * modules/frexpf-ieee-tests: New file.
8457         * tests/test-frexpf-ieee.c: New file.
8458
8459         New module 'frexpf-ieee'.
8460         * modules/frexpf-ieee: New file.
8461
8462 2012-02-26  Bruno Haible  <bruno@clisp.org>
8463
8464         roundl-ieee tests: More tests.
8465         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8466         (main): Add tests for [MX] shaded specification in POSIX.
8467         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8468         (Depends-on): Add isnanl-nolibm.
8469
8470         round-ieee tests: More tests.
8471         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8472         (main): Add tests for [MX] shaded specification in POSIX.
8473         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8474         (Depends-on): Add isnand-nolibm.
8475
8476         roundf-ieee tests: More tests.
8477         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8478         (main): Add tests for [MX] shaded specification in POSIX.
8479         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8480         (Depends-on): Add isnanf-nolibm.
8481
8482         truncl-ieee tests: More tests.
8483         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8484         (main): Add tests for [MX] shaded specification in POSIX.
8485         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8486         (Depends-on): Add isnanl-nolibm.
8487
8488         trunc-ieee tests: More tests.
8489         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8490         (main): Add tests for [MX] shaded specification in POSIX.
8491         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8492         (Depends-on): Add isnand-nolibm.
8493
8494         truncf-ieee tests: More tests.
8495         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8496         (main): Add tests for [MX] shaded specification in POSIX.
8497         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8498         (Depends-on): Add isnanf-nolibm.
8499
8500         ceill-ieee tests: More tests.
8501         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8502         (main): Add tests for [MX] shaded specification in POSIX.
8503         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8504         (Depends-on): Add isnanl-nolibm.
8505
8506         ceil-ieee tests: More tests.
8507         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8508         (main): Add tests for [MX] shaded specification in POSIX.
8509         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8510         (Depends-on): Add isnand-nolibm.
8511
8512         ceilf-ieee tests: More tests.
8513         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8514         (main): Add tests for [MX] shaded specification in POSIX.
8515         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8516         (Depends-on): Add isnanf-nolibm.
8517
8518         floorl-ieee tests: More tests.
8519         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8520         (main): Add tests for [MX] shaded specification in POSIX.
8521         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8522         (Depends-on): Add isnanl-nolibm.
8523
8524         floor-ieee tests: More tests.
8525         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8526         (main): Add tests for [MX] shaded specification in POSIX.
8527         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8528         (Depends-on): Add isnand-nolibm.
8529
8530         floorf-ieee tests: More tests.
8531         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8532         (main): Add tests for [MX] shaded specification in POSIX.
8533         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8534         (Depends-on): Add isnanf-nolibm.
8535
8536 2012-02-26  Bruno Haible  <bruno@clisp.org>
8537
8538         fpieee: More comments.
8539         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
8540
8541 2012-02-25  Bruno Haible  <bruno@clisp.org>
8542
8543         Tests for module 'log10l'.
8544         * modules/log10l-tests: New file.
8545         * tests/test-log10l.c: New file.
8546         * tests/test-math-c++.cc: Check the declaration of log10l.
8547
8548         New module 'log10l'.
8549         * lib/math.in.h (log10l): New declaration.
8550         * lib/log10l.c: New file.
8551         * m4/log10l.m4: New file.
8552         * modules/log10l: New file.
8553         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
8554         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
8555         HAVE_DECL_LOG10L.
8556         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
8557         HAVE_DECL_LOG10L.
8558         * doc/posix-functions/log10l.texi: Mention the new module.
8559
8560 2012-02-25  Bruno Haible  <bruno@clisp.org>
8561
8562         fmodl, remainder*: Avoid wrong results due to rounding errors.
8563         * lib/fmodl.c (fmodl): Correct the result if it is not within the
8564         expected bounds.
8565         * lib/remainderf.c (remainderf): Likewise.
8566         * lib/remainder.c (remainder): Likewise.
8567         * lib/remainderl.c (remainderl): Likewise.
8568
8569 2012-02-25  Bruno Haible  <bruno@clisp.org>
8570
8571         Tests for module 'remainderl'.
8572         * modules/remainderl-tests: New file.
8573         * tests/test-remainderl.c: New file.
8574         * tests/test-math-c++.cc: Check the declaration of remainderl.
8575
8576         New module 'remainderl'.
8577         * lib/math.in.h (remainderl): New declaration.
8578         * lib/remainderl.c: New file.
8579         * m4/remainderl.m4: New file.
8580         * modules/remainderl: New file.
8581         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
8582         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
8583         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
8584         HAVE_REMAINDERL.
8585         * doc/posix-functions/remainderl.texi: Mention the new module.
8586
8587 2012-02-25  Bruno Haible  <bruno@clisp.org>
8588
8589         Tests for module 'remainderf'.
8590         * modules/remainderf-tests: New file.
8591         * tests/test-remainderf.c: New file.
8592         * tests/test-math-c++.cc: Check the declaration of remainderf.
8593
8594         New module 'remainderf'.
8595         * lib/math.in.h (remainderf): New declaration.
8596         * lib/remainderf.c: New file.
8597         * m4/remainderf.m4: New file.
8598         * modules/remainderf: New file.
8599         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
8600         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
8601         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
8602         HAVE_REMAINDERF.
8603         * doc/posix-functions/remainderf.texi: Mention the new module.
8604
8605 2012-02-25  Bruno Haible  <bruno@clisp.org>
8606
8607         remainder: Support for MSVC.
8608         * lib/math.in.h (remainder): New declaration.
8609         * lib/remainder.c: New file.
8610         * m4/remainder.m4: New file.
8611         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
8612         (Depends-on): Add math, round, fma.
8613         (configure.ac): Use results of gl_FUNC_REMAINDER.
8614         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
8615         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
8616         HAVE_DECL_REMAINDER.
8617         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
8618         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
8619         * tests/test-math-c++.cc: Check the declaration of remainder.
8620         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
8621         problems are fixed.
8622
8623 2012-02-25  Bruno Haible  <bruno@clisp.org>
8624
8625         Tests for module 'fmodl'.
8626         * modules/fmodl-tests: New file.
8627         * tests/test-fmodl.c: New file.
8628         * tests/test-math-c++.cc: Check the declaration of fmodl.
8629
8630         New module 'fmodl'.
8631         * lib/math.in.h (fmodl): New declaration.
8632         * lib/fmodl.c: New file.
8633         * m4/fmodl.m4: New file.
8634         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
8635         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
8636         REPLACE_FMODL.
8637         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
8638         REPLACE_FMODL.
8639         * modules/fmodl: New file.
8640         * doc/posix-functions/fmodl.texi: Mention the new module.
8641
8642 2012-02-25  Bruno Haible  <bruno@clisp.org>
8643
8644         Tests for module 'modfl'.
8645         * modules/modfl-tests: New file.
8646         * tests/test-modfl.c: New file.
8647         * tests/test-math-c++.cc: Check the declaration of modfl.
8648
8649         New module 'modfl'.
8650         * lib/math.in.h (modfl): New declaration.
8651         * lib/modfl.c: New file.
8652         * m4/modfl.m4: New file.
8653         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
8654         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
8655         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
8656         * modules/modfl: New file.
8657         * doc/posix-functions/modfl.texi: Mention the new module.
8658
8659 2012-02-25  Bruno Haible  <bruno@clisp.org>
8660
8661         Tests for module 'fabsl'.
8662         * modules/fabsl-tests: New file.
8663         * tests/test-fabsl.c: New file.
8664         * tests/test-math-c++.cc: Check the declaration of fabsl.
8665
8666         New module 'fabsl'.
8667         * lib/math.in.h (fabsl): New declaration.
8668         * lib/fabsl.c: New file.
8669         * m4/fabsl.m4: New file.
8670         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
8671         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
8672         REPLACE_FABSL.
8673         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
8674         REPLACE_FABSL.
8675         * modules/fabsl: New file.
8676         * doc/posix-functions/fabsl.texi: Mention the new module.
8677
8678 2012-02-25  Bruno Haible  <bruno@clisp.org>
8679
8680         fabs tests: More tests.
8681         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
8682         (zero): New variable.
8683         (main): Add tests for signed zero.
8684         * modules/fabs-tests (Files): Add tests/minus-zero.h.
8685
8686         fabsf tests: More tests.
8687         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
8688         (zero): New variable.
8689         (main): Add tests for signed zero.
8690         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
8691
8692 2012-02-24  Bruno Haible  <bruno@clisp.org>
8693
8694         atanl: Provide function definition on MSVC.
8695         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
8696         function pointer.
8697         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
8698
8699 2012-02-24  Bruno Haible  <bruno@clisp.org>
8700
8701         acosl: Provide function definition on MSVC.
8702         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
8703         function pointer.
8704         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
8705
8706 2012-02-24  Bruno Haible  <bruno@clisp.org>
8707
8708         asinl: Provide function definition on MSVC.
8709         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
8710         function pointer.
8711         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
8712
8713 2012-02-24  Bruno Haible  <bruno@clisp.org>
8714
8715         tanl: Provide function definition on MSVC.
8716         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
8717         function pointer.
8718         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
8719
8720 2012-02-24  Bruno Haible  <bruno@clisp.org>
8721
8722         cosl: Provide function definition on MSVC.
8723         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
8724         function pointer.
8725         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
8726
8727 2012-02-24  Bruno Haible  <bruno@clisp.org>
8728
8729         sinl: Provide function definition on MSVC.
8730         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
8731         function pointer.
8732         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
8733
8734 2012-02-24  Bruno Haible  <bruno@clisp.org>
8735
8736         logl: Provide function definition on MSVC.
8737         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
8738         function pointer.
8739         * lib/math.in.h (logl): Undefine if it does not exist as a function.
8740
8741 2012-02-24  Bruno Haible  <bruno@clisp.org>
8742
8743         expl: Provide function definition on MSVC.
8744         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
8745         function pointer.
8746         * lib/math.in.h (expl): Undefine if it does not exist as a function.
8747
8748 2012-02-24  Bruno Haible  <bruno@clisp.org>
8749
8750         sqrtl: Provide function definition on MSVC.
8751         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
8752         a function pointer.
8753         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
8754
8755 2012-02-24  Bruno Haible  <bruno@clisp.org>
8756
8757         ceill: Provide function definition on MSVC.
8758         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
8759         used as a function pointer.
8760         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
8761
8762 2012-02-24  Bruno Haible  <bruno@clisp.org>
8763
8764         floorl: Provide function definition on MSVC.
8765         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
8766         used as a function pointer.
8767         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
8768
8769 2012-02-24  Bruno Haible  <bruno@clisp.org>
8770
8771         ceilf: Provide function definition on MSVC.
8772         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
8773         used as a function pointer.
8774         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
8775
8776 2012-02-24  Bruno Haible  <bruno@clisp.org>
8777
8778         floorf: Provide function definition on MSVC.
8779         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
8780         used as a function pointer.
8781         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
8782
8783 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8784
8785         stdnoreturn: new module
8786         This implements a replacement for C11's <stdnoreturn.h>.
8787         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
8788         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
8789         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8790         * tests/test-stdnoreturn.c: New files.
8791
8792 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
8793
8794         regex: fix false multibyte matches in some regular expressions
8795         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
8796         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
8797         * lib/regex_internal.c (re_string_skip_chars):
8798         Fix miscomputation of remain_len that may cause incomplete
8799         multi-byte character and false match.
8800
8801 2012-02-24  Jim Meyering  <meyering@redhat.com>
8802
8803         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
8804         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
8805         uses with "==" *before* the call, e.g., 0 == strcmp (...)
8806         Remove now-unnecessary str''cmp obfuscation.
8807         Suggested by Akim Demaille.
8808
8809 2012-02-24  Bruno Haible  <bruno@clisp.org>
8810
8811         streq: Rename macro.
8812         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
8813         * NEWS: Mention the change.
8814         * lib/mbrtowc.c (mbrtowc): Update.
8815         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
8816         * lib/wcwidth.c (wcwidth): Update.
8817         Suggested by Akim Demaille and Jim Meyering.
8818
8819 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8820
8821         regex: fix typo in definition of MIN
8822         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
8823         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
8824
8825 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8826             Bruno Haible  <bruno@clisp.org>
8827
8828         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
8829         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
8830         entries into a stack-allocated buffer directly.
8831         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
8832
8833 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8834             Bruno Haible  <bruno@clisp.org>
8835
8836         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
8837
8838          - There were several instances of this pattern:
8839
8840              for (;;) {
8841                n = acl (f, GETACLCNT, 0, NULL);
8842                [ allocate an array A of size N ]
8843                if (acl (f, GETACL, n, a) == n)
8844                  break;
8845              }
8846
8847            This loop might never terminate if some other process is constantly
8848            manipulating the file's ACL.  The loop should be rewritten to
8849            terminate.
8850
8851          - The acl (... GETACLNT ...) call is merely an optimization; its value
8852            is merely a hint as to how big to make the array.  A better
8853            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
8854            and just guess a reasonably-big size, growing the size and trying
8855            again if it's not large enough.  This guarantees termination, and
8856            saves a system call.
8857
8858         * lib/acl-internal.h: Include <limits.h>.
8859         (MIN, SIZE_MAX): New macros.
8860         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
8861         a stack-allocated buffer, and use malloc if it does not fit. Don't
8862         use GETACLCNT.
8863         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8864
8865 2012-02-19  Bruno Haible  <bruno@clisp.org>
8866
8867         acl: Fix endless loop on Solaris with vxfs.
8868         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
8869         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
8870         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8871         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
8872         * tests/test-sameacls.c (main)[Solaris]: Likewise.
8873         Reported by Bill Jones in
8874         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
8875
8876 2012-02-19  Bruno Haible  <bruno@clisp.org>
8877
8878         acl: Fix copy-acl test failure on Solaris 11 2011-11.
8879         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
8880         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
8881         that this function returns 0 in some more cases.
8882
8883 2012-02-19  Bruno Haible  <bruno@clisp.org>
8884
8885         acl: Update doc references.
8886         * doc/acl-resources.txt: Update links to Solaris documentation.
8887
8888 2012-02-19  Bruno Haible  <bruno@clisp.org>
8889
8890         Fix test failure in many locales on Solaris 11.
8891         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
8892         'tr' arguments.
8893         * tests/test-pipe-filter-ii1.c (main): Likewise.
8894         * build-aux/bootstrap (check_versions): Run 'tr' command with range
8895         expressions in the C locale.
8896         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8897         * m4/host-os.m4 (gl_HOST_OS): Likewise.
8898
8899 2012-02-19  Bruno Haible  <bruno@clisp.org>
8900
8901         gnulib-tool: Improve usage message.
8902         * gnulib-tool (func_usage): Move doc of --help and --version to the
8903         section "Operation modes".
8904
8905 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
8906
8907         README-release: make it easier to execute commands
8908         * top/README-release: break commands out on to separate lines.
8909
8910 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
8911
8912         GNUmakefile: simplify detection of unconfigured trees
8913         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
8914         whether the tree make is being run from is already configured or
8915         not.  Related simplifications.
8916
8917 2012-02-13  Simon Josefsson  <simon@josefsson.org>
8918
8919         * gnulib-tool (func_usage): Document --help and --version.
8920
8921 2012-02-11  Jim Meyering  <meyering@redhat.com>
8922
8923         bootstrap: don't exit 0 upon gnulib-tool failure
8924         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
8925         its exit status, not 0.
8926
8927 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
8928
8929         README-release: various improvements
8930         * top/README-release: Give a command to push changes for the
8931         release.  Add "distcheck" to list of other pre-release checks.
8932         Fix instance of "make stable" which should be "make TYPE".
8933
8934 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8935
8936         maint: replace FSF snail-mail addresses with URLs
8937         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
8938         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
8939         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
8940         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
8941         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
8942         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
8943         * lib/check-version.c, lib/check-version.h, lib/config.charset:
8944         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
8945         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
8946         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
8947         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
8948         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
8949         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
8950         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
8951         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
8952         * lib/glthread/thread.c, lib/glthread/thread.h:
8953         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
8954         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
8955         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
8956         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
8957         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
8958         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
8959         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
8960         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
8961         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
8962         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
8963         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
8964         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
8965         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
8966         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
8967         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
8968         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
8969         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
8970         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
8971         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
8972         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
8973         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
8974         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
8975         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
8976         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
8977         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
8978         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
8979         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
8980         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
8981         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
8982         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
8983         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
8984         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
8985         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
8986         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
8987         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
8988         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
8989         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
8990         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
8991         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
8992         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
8993         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
8994         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
8995         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
8996         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
8997         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
8998         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
8999         * tests/test-poll.c, tests/test-quotearg-simple.c:
9000         * tests/test-quotearg.c, tests/test-quotearg.h:
9001         * tests/test-round-ieee.c, tests/test-round1.c:
9002         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
9003         * tests/test-roundl-ieee.c, tests/test-roundl.c:
9004         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
9005         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
9006         * tests/test-strerror.c, tests/test-strerror_r.c:
9007         * tests/test-strsignal.c, tests/test-strverscmp.c:
9008         * tests/test-xmemdup0.c:
9009         Replace FSF snail mail addresses with URLs, as per GNU coding
9010         standards.  See glibc bug
9011         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
9012
9013 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9014
9015         README-release: capitalize a word and split a line
9016         * top/README-release: Fix punctuation and spacing.
9017
9018 2012-02-08  Akim Demaille  <demaille@gostai.com>
9019
9020         fatal-signal: use C prototypes (with explicit void).
9021         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
9022         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
9023
9024 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9025
9026         regex: spelling fix
9027         * lib/regexec.c: spelling fix
9028
9029         regex: rely on stdint.h for SIZE_MAX
9030         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
9031
9032 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9033
9034         regex: merge glibc changes
9035
9036         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
9037         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
9038         (init_word_char): Work even if bitset words are not exactly 32 or
9039         64 bits wide.  Don't assume there are no padding bits.
9040         * lib/regex.c [_LIBC]: Do not include <config.h>.
9041         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
9042         and -Wtype-limits.
9043         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
9044         needless disagreement with glibc.  All uses changed.  Define it to
9045         1 only if _GNU_SOURCE, to match glibc.
9046         (_REG_RM_NAME): Remove; no longer needed, since the names in
9047         question are now all protected by __USE_GNU.
9048         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
9049         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
9050         * lib/regex_internal.h (MIN): New macro.
9051
9052         2012-01-03 Ulrich Drepper <drepper@gmail.com>
9053         * lib/regcomp.c (init_word_char): Optimize regex a bit.
9054
9055         2011-12-30 Jakub Jelinek <jakub@redhat.com>
9056         * lib/regex_internal.c (re_string_fetch_byte_case):
9057         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
9058         is miscompiled, and it turns out it is because of an incorrect
9059         attribute on re_string_fetch_byte_case.  Unlike
9060         re_string_peek_byte_case, this one is really not pure, it modifies
9061         memory (increments pstr->cur_idx), and with the pure attribute GCC
9062         assumed it doesn't and it cached the presumed value of
9063         regexp->cur_idx in a variable across the
9064          for (;; ++i)
9065            {
9066              if (i >= BRACKET_NAME_BUF_SIZE)
9067                return REG_EBRACK;
9068              if (token->type == OP_OPEN_CHAR_CLASS)
9069                ch = re_string_fetch_byte_case (regexp);
9070              else
9071                ch = re_string_fetch_byte (regexp);
9072              if (re_string_eoi(regexp))
9073                return REG_EBRACK;
9074              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
9075                break;
9076              elem->opr.name[i] = ch;
9077            }
9078
9079         2011-11-29 Andreas Schwab <schwab@redhat.com>
9080         * lib/regcomp.c (build_equiv_class):
9081         Fix access after end of search string in regex matcher.
9082
9083         2011-11-12 Ulrich Drepper <drepper@redhat.com>
9084         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
9085
9086         2011-10-12 Ulrich Drepper <drepper@redhat.com>
9087         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
9088
9089         2011-10-11 Ulrich Drepper <drepper@redhat.com>
9090         * lib/regcomp.c (parse_branch, parse_sub_exp):
9091         More regex memory leak fixes and tests.
9092         (parse_sub_exp, parse_bracket_exp):
9093         Fix memory leak for some invalid regular expressions.
9094
9095         2011-05-28 Ulrich Drepper <drepper@gmail.com>
9096         * lib/regex_internal.c, lib/regexec.c:
9097         Fix unnecessary overallocation due to incomplete character.  When
9098         incomplete characters are found at the end of a string the code
9099         ran amok and allocated lots of memory.  Stricter limits are now in
9100         place.
9101
9102         2011-05-20 Reuben Thomas <rrt@sc3d.org>
9103         * lib/regex.h: Update documentation.
9104
9105         2011-05-16 Aharon Robbins <arnold@skeeve.com>
9106         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
9107
9108         2010-05-05 Andreas Schwab <schwab@redhat.com>
9109         * lib/regexec.c (find_collation_sequence_value):
9110         Fix lookup of collation sequence value during regexp matching.
9111
9112         2010-01-22 Ulrich Drepper <drepper@redhat.com>
9113         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
9114
9115         2008-01-16 Ulrich Drepper <drepper@redhat.com>
9116         * lib/regex.h: Cleanup namespace.
9117
9118         2007-11-26 Ulrich Drepper <drepper@redhat.com>
9119         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
9120
9121         2007-08-26 Ulrich Drepper <drepper@redhat.com>
9122         * lib/regex_internal.h: Prevent some declarations and definitions
9123         to be seen when used in tests.
9124
9125         2005-05-06 Ulrich Drepper <drepper@redhat.com>
9126         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
9127         __libc_lock_* macros if not _LIBC.
9128         (struct re_dfa_t): Add lock.
9129
9130 2012-02-07  Eric Blake  <eblake@redhat.com>
9131
9132         maint.mk: also prohibit lower-case @var@
9133         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
9134         lower case, like @top_srcdir@.
9135
9136 2012-02-04  Eric Blake  <eblake@redhat.com>
9137
9138         canonicalize: avoid uninitialized memory use
9139         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
9140         random '/' left in dest.
9141         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
9142
9143 2012-02-04  Bruno Haible  <bruno@clisp.org>
9144
9145         isatty: Fix test failure of ptsname_r on native Windows.
9146         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
9147         and don't set errno.
9148         (isatty): Test first whether fd is valid. Set errno when returning 0.
9149
9150 2012-02-04  Bruno Haible  <bruno@clisp.org>
9151
9152         spawn-pipe tests: Fix a NULL program name in a diagnostic.
9153         * tests/test-spawn-pipe-main.c: Include progname.h.
9154         (main): Invoke set_program_name.
9155         * modules/spawn-pipe-tests (Depends-on): Add progname.
9156
9157         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
9158         * tests/test-nonblocking-socket-main.c: Include progname.h.
9159         (main): Invoke set_program_name.
9160         * modules/nonblocking-socket-tests (Depends-on): Add progname.
9161
9162         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
9163         * tests/test-nonblocking-pipe-main.c: Include progname.h.
9164         (main): Invoke set_program_name.
9165         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
9166
9167 2012-02-04  Eric Blake  <eblake@redhat.com>
9168
9169         canonicalize-lgpl: fix // handling
9170         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
9171
9172         canonicalize: fix // handling
9173         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
9174         /// to //, since only // is special.
9175
9176 2012-02-04  Bruno Haible  <bruno@clisp.org>
9177
9178         ioctl: Fix test failure on native Windows.
9179         * lib/ioctl.c: Include msvc-nothrow.h.
9180         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
9181
9182 2012-02-04  Bruno Haible  <bruno@clisp.org>
9183
9184         fsync: Avoid test failure on native Windows.
9185         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
9186         read-only.
9187
9188 2012-02-04  Bruno Haible  <bruno@clisp.org>
9189
9190         sys_select: Avoid syntax error on OpenBSD 5.0.
9191         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
9192         currently being included, just include the system's <sys/select.h>.
9193
9194 2012-02-04  Bruno Haible  <bruno@clisp.org>
9195
9196         sys_select: Avoid syntax error on OpenBSD 5.0.
9197         * lib/sys_select.in.h: Include <signal.h> only after the include_next
9198         <sys/select.h>, not before.
9199         Reported by Jiri B <jirib@devio.us>.
9200
9201 2012-02-04  Bruno Haible  <bruno@clisp.org>
9202
9203         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
9204         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
9205         global variables.
9206         * tests/test-get-rusage-data.c (main): Likewise.
9207         Reported by Jim Meyering.
9208
9209 2012-02-04  Bruno Haible  <bruno@clisp.org>
9210
9211         stdioext: Fix last commit.
9212         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
9213
9214 2012-02-03  Bruno Haible  <bruno@clisp.org>
9215
9216         stdioext: Add tentative support for Plan9.
9217         * lib/stdio-impl.h: Include <errno.h>.
9218         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
9219         * lib/freadable.c (freadable): Likewise.
9220         * lib/fwritable.c (fwritable): Likewise.
9221         * lib/fbufmode.c (fbufmode): Likewise.
9222         * lib/freading.c (freading): Likewise.
9223         * lib/fwriting.c (fwriting): Likewise.
9224         * lib/freadptr.c (freadptr): Likewise.
9225         * lib/freadseek.c (freadptrinc): Likewise.
9226         * lib/freadahead.c (freadahead): Likewise.
9227         * lib/fpurge.c (fpurge): Likewise.
9228         * lib/fseeko.c (rpl_fseeko): Likewise.
9229         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
9230         Reported by Jens Staal <staal1978@gmail.com>.
9231
9232 2012-02-02  Jim Meyering  <meyering@redhat.com>
9233
9234         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
9235         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
9236         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
9237         not even to try to add the attribute.  Instead, add a pragma to suppress
9238         the suggestion/warning.
9239
9240 2012-01-31  Karl Berry  <karl@gnu.org>
9241
9242         setstate doc: typo.
9243         * doc/posix-functions/setstate.texi (setstate): { not (.
9244
9245 2012-01-31  Bruno Haible  <bruno@clisp.org>
9246
9247         popen: Make more robust on Windows.
9248         * lib/popen.c: On native Windows, use the _popen based code even if
9249         HAVE_POPEN is set.
9250         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
9251         environment variable on native Windows.
9252
9253 2012-01-30  Bruno Haible  <bruno@clisp.org>
9254
9255         pclose: Fix typo.
9256         * lib/stdio.in.h (pclose): Fix typo in warning message.
9257
9258 2012-01-30  Bruno Haible  <bruno@clisp.org>
9259
9260         doc about getlogin_r, setstate.
9261         * doc/posix-functions/getlogin_r.texi: List the incompatible
9262         declaration problem under "not fixed by gnulib".
9263         * doc/posix-functions/setstate.texi: Mention incompatible declaration
9264         problem on Solaris 11 and other platforms.
9265
9266 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
9267             Bruno Haible  <bruno@clisp.org>
9268
9269         poll tests: Make test more robust.
9270         * tests/test-poll.c: Include macros.h.
9271         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
9272         return value of various I/O operations.
9273         * modules/poll-tests (Files): Add tests/macros.h.
9274
9275 2012-01-30  Bruno Haible  <bruno@clisp.org>
9276
9277         sys_stat: Fix support for mingw64 and MSVC.
9278         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
9279         header files already do it.
9280         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
9281         stat itself.
9282         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9283
9284 2012-01-30  Bruno Haible  <bruno@clisp.org>
9285
9286         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
9287         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
9288         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
9289
9290 2012-01-29  Bruno Haible  <bruno@clisp.org>
9291
9292         quotearg: Fix test failure on MacOS X 10.5.
9293         * tests/test-quotearg-simple.c: Include localcharset.h.
9294         (main): If the locale encoding is not ASCII, bypass the tests of
9295         locale_quoting_style and clocale_quoting_style.
9296         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
9297
9298 2012-01-29  Jim Meyering  <meyering@redhat.com>
9299
9300         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
9301         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
9302         detect uses of canonicalize_file_name.
9303
9304 2012-01-28  Bruno Haible  <bruno@clisp.org>
9305
9306         test-framework-sh: Fix test failure with AIX 7.1 diff.
9307         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
9308         in column 1, like 'diff -c' does.
9309         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
9310         whether 'diff -u' is used. Instead, test whether the output contains
9311         some '@' character.
9312
9313 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9314
9315         strtoimax: eliminate need for stdint.h, inttypes.h checks
9316         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
9317         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
9318         the prerequisites for a recently-introduced strtoimax test.
9319         I guess this might cause strtoimax to be replaced when not
9320         strictly necessary on older hosts, but this shouldn't introduce
9321         any bugs and it should make Emacs 'configure' faster on typical
9322         modern hosts.  Problem discovered when importing the latest gnulib
9323         to an Emacs test version.
9324         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
9325
9326 2012-01-28  Bruno Haible  <bruno@clisp.org>
9327
9328         sys_time: Override 'struct timeval' on some native Windows platforms.
9329         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
9330         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
9331         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
9332         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
9333         needs to be overridden.
9334         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
9335         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
9336         * tests/test-sys_select.c: Check that the tv_sec member has the same
9337         size as a 'time_t'.
9338         * tests/test-sys_time.c: Likewise.
9339         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
9340         is set, set also REPLACE_GETTIMEOFDAY.
9341         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
9342         convert the resulting 'struct timeval' before returning.
9343         * lib/select.c: Include <sys/time.h>.
9344         (select, timeval): Undefine at the right place.
9345         * modules/select (Depends-on): Add sys_time.
9346         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
9347         some Windows platforms.
9348         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9349
9350 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9351
9352         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
9353         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
9354         an integer.
9355         * lib/fcntl.c (dupfd): Likewise.
9356         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
9357
9358 2012-01-28  Bruno Haible  <bruno@clisp.org>
9359
9360         fcntl: Avoid compilation error on native Windows.
9361         * modules/fcntl (Depends-on): Add 'close'.
9362
9363 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9364
9365         select, poll, isatty: Avoid warnings on x86_64 mingw64.
9366         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
9367         pointer to an integer.
9368         * lib/poll.c (IsConsoleHandle): Likewise.
9369         * lib/isatty.c (IsConsoleHandle): Likewise.
9370
9371 2012-01-28  Jim Meyering  <meyering@redhat.com>
9372
9373         doc: clarify README-release
9374         * top/README-release: Clarify: you should make a point to have
9375         the latest stable versions of build tools in your PATH, and the
9376         reference to buildreq is solely for its list of tool names, not
9377         for its minimal-functional version numbers.
9378         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
9379
9380         maint.mk: use more readable (yet functionally equivalent) quoting
9381         It is common to quote a single quote in a single quoted string like
9382         this:  '...'\''...'.  Unless you know the idiom, that looks like
9383         gibberish, so prefer to double-quote the string when possible.
9384         Then you can use a more readable, lone single quote: "...'..."
9385         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
9386         "don't" is more readable than the equivalent 'don'\''t'.
9387         (sc_cast_of_x_alloc_return_value): Likewise.
9388         (sc_cast_of_alloca_return_value): Likewise.
9389         (sc_makefile_path_separator_check): Similar: use ":" in '...',
9390         rather than '\'':'\''.
9391
9392 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9393
9394         stdalign: relax _Alignof and tighten _Alignas test
9395         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
9396         as it was too strict: alignof must divide offsetof, but it need
9397         not equal offsetof.  Inspired by Joseph S. Myers's comment
9398         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
9399         Conversely, tighten the _Alignas test a bit, as the resulting
9400         alignment must be exactly 8.
9401
9402 2012-01-27  Bruno Haible  <bruno@clisp.org>
9403
9404         stdalign: Document the last change.
9405         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
9406
9407 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9408
9409         stdalign: check that alignof and offsetof are consistent
9410         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
9411         Problem reported for gnulib by Richard W.M. Jones in
9412         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
9413
9414 2012-01-27  Jim Meyering  <meyering@redhat.com>
9415
9416         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
9417         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
9418         convert a sequence with gaps to the minimal containing range.
9419         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
9420         * tests/test-update-copyright.sh: Test for this.
9421         The FSF confirmed it is ok to do this, assuming there is at
9422         least one significant change per year in the affected range:
9423         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
9424
9425 2012-01-26  Bruno Haible  <bruno@clisp.org>
9426
9427         pipe2: refine doc about thread-safety
9428         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
9429         multithread-safety problem.
9430         * doc/glibc-functions/accept4.texi: Likewise.
9431
9432 2012-01-26  Bruno Haible  <bruno@clisp.org>
9433
9434         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
9435         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
9436         In the test program, include <fcntl.h>, for O_RDONLY.
9437
9438 2012-01-26  Eric Blake  <eblake@redhat.com>
9439
9440         pipe2: document lack of thread-safety in replacement
9441         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
9442         issue in replacement.
9443         * doc/glibc-functions/accept4.texi (accept4): Likewise.
9444         Based on a report by Eric Wong.
9445
9446 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9447             Bruno Haible  <bruno@clisp.org>
9448
9449         malloca: Avoid warnings on x86_64 mingw64.
9450         * lib/malloca.c: Include <stdint.h>.
9451         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
9452         * modules/malloca (Depends-on): Add stdint.
9453         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
9454
9455 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9456
9457         obstack: remove __STDC__ conditionals
9458         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
9459         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
9460         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
9461         m4/include_next.m4 as the only gnulib-maintained places that still
9462         refer to __STDC__.
9463
9464 2012-01-24  Bruno Haible  <bruno@clisp.org>
9465
9466         havelib: Modern quoting.
9467         * build-aux/config.rpath: Quote 'like this', not `like this', as per
9468         the recent change to the GNU coding standards.
9469
9470 2012-01-24  Bruno Haible  <bruno@clisp.org>
9471
9472         stdint: Improve support for Android.
9473         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
9474         Reported by Simon Josefsson <simon@josefsson.org>.
9475
9476 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9477
9478         doc: omit trailing empty lines from INSTALL etc.
9479         * doc/Makefile (INSTALL): Omit trailing empty lines.
9480         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
9481         omit trailing empty lines.  This simplifies the build procedure.
9482
9483 2012-01-23  Jim Meyering  <meyering@redhat.com>
9484
9485         tests: avoid spurious warnings about gl_sockets_startup
9486         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
9487         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
9488         reporting a "statement with no effect".
9489         * tests/test-accept.c (main): Mark as "(void)".
9490         * tests/test-accept4.c (main): Likewise.
9491         * tests/test-bind.c (main): Likewise.
9492         * tests/test-connect.c (main): Likewise.
9493         * tests/test-getpeername.c (main): Likewise.
9494         * tests/test-getsockname.c (main): Likewise.
9495         * tests/test-getsockopt.c (main): Likewise.
9496         * tests/test-listen.c (main): Likewise.
9497         * tests/test-recv.c (main): Likewise.
9498         * tests/test-recvfrom.c (main): Likewise.
9499         * tests/test-send.c (main): Likewise.
9500         * tests/test-sendto.c (main): Likewise.
9501         * tests/test-setsockopt.c (main): Likewise.
9502         * tests/test-shutdown.c (main): Likewise.
9503
9504 2012-01-21  Bruno Haible  <bruno@clisp.org>
9505
9506         locale-fr.m4: Fix for Android.
9507         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
9508         failure of the test program on Bionic libc.
9509
9510 2012-01-21  Jim Meyering  <meyering@redhat.com>
9511
9512         bootstrap: fail when bootstrap_post_import_hook fails
9513         Otherwise, it's far too easy to miss diagnostics emitted
9514         between gnulib-tool's output and that of running configure.
9515         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
9516
9517 2012-01-17  Jim Meyering  <meyering@redhat.com>
9518
9519         maint: enable sc_trailing_blank
9520         * build-aux/pmccabe.css: Remove trailing blanks.
9521         * doc/acl-cygwin.txt: Likewise.
9522         * doc/gnu-oids.texi: Likewise
9523         * cfg.mk: Enable sc_trailing_blank.
9524         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
9525
9526 2012-01-17  Jim Meyering  <meyering@redhat.com>
9527
9528         maint: enable sc_prohibit_openat_without_use
9529         * cfg.mk: Enable sc_prohibit_openat_without_use.
9530         Exempt lib/selinux-at.c.
9531
9532 2012-01-17  Jim Meyering  <meyering@redhat.com>
9533
9534         maint: enable sc_prohibit_cloexec_without_use
9535         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
9536         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
9537
9538 2012-01-17  Jim Meyering  <meyering@redhat.com>
9539
9540         maint: enable sc_prohibit_intprops_without_use
9541         * cfg.mk: Enable sc_prohibit_intprops_without_use
9542         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
9543
9544 2012-01-17  Jim Meyering  <meyering@redhat.com>
9545
9546         maint: enable sc_prohibit_hash_pjw_without_use
9547         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
9548         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
9549         to match any use of \<hash_pjw\>, i.e., not necessarily with a
9550         following " (".
9551
9552 2012-01-17  Jim Meyering  <meyering@redhat.com>
9553
9554         maint: enable double-word-prohibiting rule
9555         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
9556         Exempt three files.
9557
9558 2012-01-17  Jim Meyering  <meyering@redhat.com>
9559
9560         maint: remove empty lines at EOF, but excluding modules/*
9561         Apply syntax rules at home as well as abroad.  Most changes
9562         were induced by running this:
9563           make srcdir=. _build-aux=build-aux -f top/maint.mk \
9564             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
9565             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
9566         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
9567         Exempt modules/* and two binary files.
9568         Also exempt doc/INSTALL*, per request from Bruno Haible.
9569         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
9570         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
9571         * doc/Copyright/request-assign.future: Likewise.
9572         * doc/Copyright/request-disclaim.changes: Likewise.
9573         * doc/INSTALL: Likewise.
9574         * doc/INSTALL.ISO: Likewise.
9575         * doc/INSTALL.UTF-8: Likewise.
9576         * doc/acl-cygwin.txt: Likewise.
9577         * doc/acl-resources.txt: Likewise.
9578         * doc/fdl-1.2.texi: Likewise.
9579         * doc/fdl-1.3.texi: Likewise.
9580         * doc/fdl.texi: Likewise.
9581         * lib/argp-pin.c: Likewise.
9582         * lib/round.c: Likewise.
9583         * lib/unicase/u16-totitle.c: Likewise.
9584         * lib/unictype/block_test.c: Likewise.
9585         * lib/uninorm/canonical-decomposition.c: Likewise.
9586         * m4/README: Likewise.
9587         * m4/relocatable-lib.m4: Likewise.
9588         * tests/test-isnand-nolibm.c: Likewise.
9589         * tests/test-isnand.c: Likewise.
9590         * tests/uninorm/NormalizationTest.txt: Likewise.
9591
9592 2012-01-17  Jim Meyering  <meyering@redhat.com>
9593
9594         maint: add framework to run syntax-check rules against gnulib sources
9595         * cfg.mk: New file, to disable all currently-failing tests.
9596         We'll enable them one by one, as they are made to pass.
9597         * Makefile (sc_maint): New rule.
9598
9599 2012-01-21  Bruno Haible  <bruno@clisp.org>
9600
9601         stdint: Add support for Android.
9602         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
9603         include the system's <stdint.h>.
9604         Reported by Simon Josefsson <simon@josefsson.org>.
9605
9606 2012-01-19  Jim Meyering  <meyering@redhat.com>
9607
9608         bootstrap: add bootstrap_post_import_hook
9609         Bison does still need something like the gnulib_mk_hook whose
9610         invocation I had to remove along with slurp in commit 767ccd40.
9611         Technically, we could get along without it, but doing so would
9612         have required living with a warning and a mandatory post-bootstrap
9613         automake rerun.
9614         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
9615         (bootstrap_post_import_hook): New function.
9616         Invoke it after gnulib-tool --import and before autoreconf.
9617
9618 2012-01-18  Jim Meyering  <meyering@redhat.com>
9619
9620         gitlog-to-changelog: don't use "no_"-prefixed variable name
9621         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
9622         to enable both --cluster and --no-cluster.  Change variable name,
9623         s/\$no_cluster/$cluster/, and reverse usage to match.
9624
9625         gitlog-to-changelog: use "||", not "or" in expressions
9626         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
9627         expressions.
9628
9629 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
9630
9631         gitlog-to-changelog: new option --no-cluster
9632         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
9633         clustering of adjacent commit messages.
9634
9635 2012-01-17  Jim Meyering  <meyering@redhat.com>
9636
9637         maint: spell file systems with two words, not one
9638         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
9639         two words, not one.
9640
9641 2012-01-16  Jim Meyering  <meyering@redhat.com>
9642
9643         bootstrap: add a FIXME comment to ensure we eventually remove the hack
9644         * build-aux/bootstrap (gnulib_tool_options): Add comment.
9645
9646 2012-01-16  Eric Blake  <eblake@redhat.com>
9647
9648         bootstrap: cater to autoconf 2.59
9649         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
9650         is not available.
9651
9652         bootstrap: properly check for libtool
9653         * build-aux/bootstrap (libtoolize): Also run libtool when older
9654         usage is detected.
9655
9656 2012-01-15  Bruno Haible  <bruno@clisp.org>
9657
9658         Improve support for MSVC 9.
9659         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
9660         clashes on MSVC.
9661         * lib/fcntl.in.h: Likewise.
9662         * lib/stdlib.in.h: Likewise.
9663         * lib/sys_stat.in.h: Likewise.
9664
9665 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
9666
9667         gnupload: we hold the master copy of this script now
9668         For motivation and more information, see:
9669         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
9670         * build-aux/gnupload: Make it clear in the heading comments that the
9671         master copy of this file is maintained by gnulib.  Since we are at
9672         it, bump its copyright year and ...
9673         ($scriptversion): ... the date in its version.
9674         ($usage): Patches and bug reports should be sent to the gnulib list,
9675         not the automake one.
9676         * config/srclist.txt: Don't try to sync 'gnupload' from automake
9677         anymore.
9678
9679 2012-01-15  Bruno Haible  <bruno@clisp.org>
9680
9681         Fix module 'random'.
9682         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
9683         initstate, setstate are declared.
9684
9685 2012-01-14  Bruno Haible  <bruno@clisp.org>
9686
9687         Tests for module 'random'.
9688         * modules/random-tests: New file.
9689         * tests/test-random.c: New file, based on tests/test-random_r.c.
9690
9691         New module 'random'.
9692         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
9693         declarations.
9694         * lib/random.c: New file, based on glibc/stdlib/random.c.
9695         * m4/random.m4: New file.
9696         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
9697         HAVE_RANDOM.
9698         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
9699         * modules/random: New file.
9700         * config/srclist.txt: Add an entry for random.c.
9701         * doc/posix-functions/random.texi: Mention the 'random' module.
9702         * doc/posix-functions/initstate.texi: Likewise.
9703         * doc/posix-functions/setstate.texi: Likewise.
9704         * doc/posix-functions/srandom.texi: Likewise.
9705
9706 2012-01-12  Bruno Haible  <bruno@clisp.org>
9707
9708         random_r: Use common idioms.
9709         * lib/random_r.c: Include <stdlib.h> first.
9710
9711         random_r: Override incompatible API on AIX, OSF/1.
9712         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
9713         Override the system function if REPLACE_RANDOM_R is 1.
9714         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
9715         and OSF/1, set REPLACE_RANDOM_R.
9716         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
9717         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
9718         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
9719         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
9720         * doc/glibc-functions/random_r.texi: Likewise.
9721         * doc/glibc-functions/setstate_r.texi: Likewise.
9722
9723         random_r: Support for MSVC 9.
9724         * lib/random_r.c: Include stdint.h, not inttypes.h.
9725
9726 2012-01-12  Eric Blake  <eblake@redhat.com>
9727
9728         inet_ntop: guard extra work by IF_LINT
9729         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
9730         better code generation when not checking for warnings.
9731         Suggested by Paul Eggert and Jim Meyering.
9732
9733         strptime: fix regression on mingw
9734         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
9735         Fix regression.  Reported by Bruno Haible.
9736
9737 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
9738             Bruno Haible  <bruno@clisp.org>
9739
9740         copy-file: add error-code-returning variant.
9741         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
9742         (qcopy_file_preserving): New declaration.
9743         * lib/copy-file.c (qcopy_file_preserving): Renamed from
9744         copy_file_preserving. Change return type to 'int'. Don't emit an error
9745         message here.
9746         (copy_file_preserving): New function.
9747         * tests/test-copy-file.c: Include <stdlib.h>.
9748         (main): Test qcopy_file_preserving if the environment variable
9749         NO_STDERR_OUTPUT is set.
9750         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
9751         with NO_STDERR_OUTPUT
9752         * tests/test-copy-file-2.sh: Likewise.
9753
9754 2012-01-10  Bruno Haible  <bruno@clisp.org>
9755
9756         copy-file: Use 'quote' module consistently.
9757         * lib/copy-file.c (copy_file_preserving): Use quote().
9758
9759         copy-file: Refactor.
9760         * lib/copy-file.c: Include quote.h.
9761         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
9762         message here.
9763         * modules/copy-file (Depends-on): Add quote.
9764
9765         acl: Export qcopy_acl.
9766         * lib/acl.h (qcopy_acl): New declaration.
9767         * lib/copy-acl.c (qcopy_acl): Make non-static.
9768
9769         acl: Rename a local variable.
9770         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
9771
9772         acl: Align return values of copy_acl and qcopy_acl.
9773         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
9774         maybe < -1.
9775
9776 2012-01-11  Eric Blake  <eblake@redhat.com>
9777
9778         strptime: silence gcc warnings
9779         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
9780         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
9781         Reported by Daniel P. Berrange.
9782
9783         inet_ntop: silence gcc warning
9784         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
9785         Reported by Daniel P. Berrange.
9786
9787 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
9788
9789         getloadavg test: skip the test on GNU/Linux without /proc mounted
9790         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
9791         file.  When /proc is not mounted, it always fails with ENOENT.
9792         * tests/test-getloadavg.c (main): Treat ENOENT return code from
9793         getloadavg(3) the same way as ENOSYS and ENOTSUP.
9794
9795 2012-01-10  Bruno Haible  <bruno@clisp.org>
9796
9797         regex: Avoid link error on MSVC 9.
9798         * modules/regex (Depends-on): Add wctype.
9799
9800 2012-01-10  Bruno Haible  <bruno@clisp.org>
9801
9802         doc: Mention --with-tests option.
9803         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
9804         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
9805         --with-tests.
9806         Reported by Reuben Thomas.
9807
9808 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
9809
9810         users.txt: order package names lexicographically.
9811         * users.txt: Order package names lexicographically.
9812
9813 2012-01-10  Jim Meyering  <meyering@redhat.com>
9814
9815         maint.mk: fix description in comment
9816         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
9817
9818         ignore-value: remove deprecated ignore_ptr function
9819         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
9820         * NEWS: Note this.
9821
9822 2012-01-09  Jim Meyering  <meyering@redhat.com>
9823
9824         test-init.sh: avoid a subshell
9825         * tests/test-init.sh: Remove protective subshell.
9826         Suggested by Bernhard Voelker.  While a subshell is normally
9827         required to protect against older shells (Solaris, FreeBSD) that
9828         warn about a missing program before performing redirection, the
9829         shell-selection tests performed by init.sh probably exclude any
9830         offending shell.
9831
9832 2012-01-08  Bruno Haible  <bruno@clisp.org>
9833
9834         setlocale tests: Avoid test failure on Solaris 11 2011-11.
9835         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
9836         variable.
9837
9838 2012-01-08  Bruno Haible  <bruno@clisp.org>
9839
9840         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
9841         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9842         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9843         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
9844         macro.
9845         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
9846         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9847         * lib/spawn_faction_addopen.c: Add workaround implementation if
9848         HAVE_WORKING_POSIX_SPAWN.
9849         * modules/spawn (Makefile): Substitute
9850         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9851         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
9852         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
9853         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9854         (Depends-on): Update conditions.
9855         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
9856         the Solaris 11 bug.
9857
9858 2012-01-08  Bruno Haible  <bruno@clisp.org>
9859
9860         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
9861         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9862         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9863         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
9864         macro.
9865         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
9866         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9867         * lib/spawn_faction_adddup2.c: Add workaround implementation if
9868         HAVE_WORKING_POSIX_SPAWN.
9869         * modules/spawn (Makefile): Substitute
9870         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9871         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
9872         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
9873         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9874         (Depends-on): Update conditions.
9875         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
9876         the Solaris 11 bug.
9877
9878 2012-01-08  Bruno Haible  <bruno@clisp.org>
9879
9880         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
9881         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9882         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9883         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
9884         HAVE_WORKING_POSIX_SPAWN.
9885         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
9886         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
9887         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9888         * lib/spawn_faction_addclose.c: Add workaround implementation if
9889         HAVE_WORKING_POSIX_SPAWN.
9890         * modules/spawn (Makefile): Substitute
9891         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9892         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
9893         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
9894         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9895         (Depends-on): Update conditions.
9896         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
9897         the Solaris 11 bug.
9898
9899 2012-01-08  Bruno Haible  <bruno@clisp.org>
9900
9901         doc: Update for Solaris 11 2011-11.
9902         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
9903         * m4/printf.m4: Update comments.
9904
9905 2012-01-08  Bruno Haible  <bruno@clisp.org>
9906
9907         mktime: Avoid compilation error on Solaris 11.
9908         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
9909
9910 2012-01-08  Bruno Haible  <bruno@clisp.org>
9911
9912         doc: Small fix.
9913         * doc/posix-headers/nl_types.texi: Correct platforms list.
9914
9915 2012-01-08  Simon Josefsson  <simon@josefsson.org>
9916
9917         Add lgpl-3.0 module.
9918         * MODULES.html.sh (Support for building documentation): Add
9919         lgpl-3.0.
9920         * modules/lgpl-3.0: New file.
9921
9922 2012-01-08  Jim Meyering  <meyering@redhat.com>
9923
9924         select.c: indent with spaces, not TABs
9925         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
9926
9927 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9928
9929         quotearg: do not use grave accent for left quote
9930         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
9931         locale_quoting_style.
9932         (quotearg_buffer_restyled): Fix example.
9933         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
9934
9935 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9936
9937         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
9938         Most programs do not have translation catalogs for English and much
9939         less separate catalogs for British and American English.  Drop the
9940         suggestion to translators about these two, and provide it
9941         automatically for Unicode locales.  Like most programs, even those
9942         using American English, we use single quotation marks.  This conflicts
9943         with the American typographic convention, but works better when you
9944         cite the entire error message within double quotes.  It also tries not
9945         to clash with established practice and with what non-gnulib programs
9946         will usually do.
9947         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
9948         using an UTF-8 or GB-18030 locale.  The list of other locales with
9949         quotes was provided by Bruno Haible.
9950         (quotearg_buffer_restyled): Adjust instructions to translators.
9951         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
9952         text, since this would be wrong when using Unicode.
9953         * modules/quotearg: Depend on c-strcaseeq.
9954
9955 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9956
9957         quotearg: fix Wikipedia link
9958         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
9959
9960 2012-01-07  Simon Josefsson  <simon@josefsson.org>
9961
9962         Fix for mingw with MSVC9.
9963         * m4/ld-version-script.m4: Check that compiler rejects version
9964         scripts with syntax errors.  Reported by Bruno Haible
9965         <bruno@clisp.org>.
9966
9967 2012-01-06  Bruno Haible  <bruno@clisp.org>
9968
9969         Talk about "native Windows API", not "Woe32".
9970         * lib/accept4.c: Update comments to mention native Windows.
9971         * lib/execute.c: Likewise.
9972         * lib/fatal-signal.c: Likewise.
9973         * lib/localcharset.c: Likewise.
9974         * lib/nanosleep.c: Likewise.
9975         * lib/nl_langinfo.c: Likewise.
9976         * lib/pclose.c: Likewise.
9977         * lib/pipe-filter-gi.c: Likewise.
9978         * lib/pipe-filter-ii.c: Likewise.
9979         * lib/pipe.c: Likewise.
9980         * lib/pipe2.c: Likewise.
9981         * lib/popen.c: Likewise.
9982         * lib/progreloc.c: Likewise.
9983         * lib/relocatable.c: Likewise.
9984         * lib/sigaction.c: Likewise.
9985         * lib/sigprocmask.c: Likewise.
9986         * lib/spawn-pipe.h: Likewise.
9987         * lib/spawn-pipe.c: Likewise.
9988         * lib/spawni.c: Likewise.
9989         * lib/stat-time.h: Likewise.
9990         * lib/w32spawn.h: Likewise.
9991         * tests/test-isatty.c: Likewise.
9992         * lib/config.charset: More comments.
9993         * doc/gnulib-intro.texi: Mention native Windows.
9994         * doc/posix-functions/_Exit_C99.texi: Likewise.
9995         * doc/posix-headers/fcntl.texi: Likewise.
9996
9997 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
9998
9999         argp: Avoid crash if translator uses % characters in a translation.
10000         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
10001         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10002
10003 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
10004
10005         doc: C11 and C++11 are now official
10006         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
10007         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
10008         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
10009         * modules/stdalign:
10010         Replace references to draft C1X to C11, and to draft C++0X to C++11.
10011
10012 2012-01-06  Bruno Haible  <bruno@clisp.org>
10013
10014         uc-is-grapheme-break tests: Tweak.
10015         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
10016         message.
10017
10018 2012-01-06  Bruno Haible  <bruno@clisp.org>
10019
10020         test-init.sh: correct the test for diff -u
10021         * tests/test-init.sh: Also redirect stdout to /dev/null.
10022
10023 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
10024
10025         Use ', not `, for quoting output.
10026         * build-aux/announce-gen (usage, sizes, print_news_deltas)
10027         (print_changelog_deltas, get_tool_versions, main program):
10028         * build-aux/git-version-gen:
10029         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
10030         * build-aux/move-if-change (help):
10031         * build-aux/useless-if-before-free (usage, main program):
10032         * check-module (parse_module_file, usage)
10033         (find_included_lib_files, check_module):
10034         * lib/argmatch.c (main) [TEST]:
10035         * lib/argp-help.c (_help):
10036         * lib/getopt1.c (main) [TEST]:
10037         * lib/git-merge-changelog.c (usage):
10038         * lib/xstrtol-error.c (xstrtol_error):
10039         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
10040         * m4/argz.m4 (gl_FUNC_ARGZ):
10041         * m4/bison.m4 (gl_BISON):
10042         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
10043         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
10044         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
10045         * m4/fpending.m4 (gl_PREREQ_FPENDING):
10046         * m4/gc-random.m4 (gl_GC_RANDOM):
10047         * m4/intl.m4 (gt_CHECK_DECL):
10048         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
10049         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
10050         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
10051         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
10052         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
10053         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
10054         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
10055         * tests/test-dirname.c (main):
10056         * tests/test-getpass.c (main):
10057         * tests/test-iconvme.c (main):
10058         * tests/test-parse-datetime.c (LOG):
10059         * tests/test-xstrtoimax.sh:
10060         * tests/test-xstrtol.sh:
10061         * tests/test-xstrtoll.sh:
10062         * tests/test-xstrtoumax.sh:
10063         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
10064         * top/GNUmakefile (abort-due-to-no-makefile):
10065         Quote 'like this', not `like this', as per the recent change to
10066         the GNU coding standards.
10067
10068 2012-01-05  Bruno Haible  <bruno@clisp.org>
10069
10070         strtoimax: Don't force a replacement on systems where intmax_t is int.
10071         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
10072         'intmax_t' is not larger than 'int'.
10073         Reported by Pádraig Brady <P@draigBrady.com>.
10074
10075 2012-01-05  Bruno Haible  <bruno@clisp.org>
10076
10077         doc: Mention NetBSD bugs.
10078         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
10079         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
10080
10081 2012-01-05  Bruno Haible  <bruno@clisp.org>
10082
10083         strtoumax tests: Enhance tests.
10084         * tests/test-strtoumax.c (main): Add tests for large values.
10085
10086 2012-01-05  Bruno Haible  <bruno@clisp.org>
10087
10088         strtoimax: Work around AIX 5.1 bug.
10089         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
10090         definition.
10091         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
10092         Set HAVE_STRTOIMAX.
10093         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
10094         REPLACE_STRTOIMAX.
10095         * modules/inttypes-incomplete (Makefile.am): Substitute
10096         REPLACE_STRTOIMAX.
10097         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
10098         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
10099         (Depends-on): Update conditions.
10100         * tests/test-strtoimax.c (main): Add tests for large values.
10101         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
10102
10103 2012-01-05  Bruno Haible  <bruno@clisp.org>
10104
10105         inttypes: Modernize.
10106         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
10107         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
10108         (Makefile.am): Update inttypes.h rule.
10109
10110 2012-01-05  Jim Meyering  <meyering@redhat.com>
10111
10112         init.sh: don't waste a subshell just to redirect stderr
10113         * tests/init.sh: In testing for diff -u and diff -c, use a
10114         stderr-redirecting exec inside `...` rather than a subshell.
10115
10116         test-init.sh: avoid failure on HP-UX 11.00
10117         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
10118         resolves to diff -c or cmp.  Reported by Bruno Haible.
10119
10120 2012-01-05  Bruno Haible  <bruno@clisp.org>
10121
10122         Tests for module 'strtoull'.
10123         * modules/strtoull-tests: New file.
10124         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
10125
10126 2012-01-05  Bruno Haible  <bruno@clisp.org>
10127
10128         Tests for module 'strtoll'.
10129         * modules/strtoll-tests: New file.
10130         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
10131
10132 2012-01-05  Bruno Haible  <bruno@clisp.org>
10133
10134         Tests for module 'strtoul'.
10135         * modules/strtoul-tests: New file.
10136         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
10137
10138 2012-01-05  Bruno Haible  <bruno@clisp.org>
10139
10140         Tests for module 'strtol'.
10141         * modules/strtol-tests: New file.
10142         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
10143
10144 2012-01-04  Jim Meyering  <meyering@redhat.com>
10145
10146         test-init.sh: accommodate Solaris 5.10's different diff -u output
10147         * tests/test-init.sh: Also exempt @@ lines from the comparison
10148         of diff output, since Solaris 5.10 and GNU diff formats differ.
10149         Reported by Stefano Lattarini.
10150
10151 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
10152
10153         test-posixtm: don't assume signed integer wraparound
10154         * tests/test-posixtm.c (main): Don't assume wraparound semantics
10155         after signed integer overflow.  Inspired by (though it may not
10156         fix) Bruno Haible's bug report in
10157         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
10158
10159         Spell out "Windows 9x" and "Windows XP".
10160         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
10161         "Windows 9x" and "WinXP" with "Windows XP".
10162
10163 2012-01-04  Jim Meyering  <meyering@redhat.com>
10164
10165         test-vc-list-files-cvs.sh: remove obsolete comment
10166         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
10167         double exit.  Now that's all encapsulated via skip_ and Exit.
10168
10169 2012-01-04  Bruno Haible  <bruno@clisp.org>
10170
10171         Talk about "native Windows API", not "Win32".
10172         * lib/classpath.c: Update comments to mention native Windows.
10173         * lib/csharpexec.c: Likewise.
10174         * lib/dup2.c: Likewise.
10175         * lib/error.c: Likewise.
10176         * lib/fcntl.c: Likewise.
10177         * lib/filename.h: Likewise.
10178         * lib/findprog.c: Likewise.
10179         * lib/get-rusage-as.c: Likewise.
10180         * lib/get-rusage-data.c: Likewise.
10181         * lib/getpagesize.c: Likewise.
10182         * lib/javaexec.c: Likewise.
10183         * lib/msvc-inval.c: Likewise.
10184         * lib/msvc-nothrow.c: Likewise.
10185         * lib/nanosleep.c: Likewise.
10186         * lib/nonblocking.c: Likewise.
10187         * lib/printf-parse.c: Likewise.
10188         * lib/setlocale.c: Likewise.
10189         * lib/sigaction.c: Likewise.
10190         * lib/strerror_r.c: Likewise.
10191         * lib/tmpdir.c: Likewise.
10192         * lib/vasnprintf.c: Likewise.
10193         * lib/w32spawn.h: Likewise.
10194         * lib/waitpid.c: Likewise.
10195         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
10196         * m4/locale-ar.m4: Likewise.
10197         * m4/locale-fr.m4: Likewise.
10198         * m4/locale-ja.m4: Likewise.
10199         * m4/locale-tr.m4: Likewise.
10200         * m4/locale-zh.m4: Likewise.
10201         * m4/printf.m4: Likewise.
10202         * tests/test-cloexec.c: Likewise.
10203         * tests/test-copy-acl.sh: Likewise.
10204         * tests/test-copy-file.sh: Likewise.
10205         * tests/test-file-has-acl.sh: Likewise.
10206         * tests/test-set-mode-acl.sh: Likewise.
10207         * tests/test-dup-safer.c: Likewise.
10208         * tests/test-dup2.c: Likewise.
10209         * tests/test-dup3.c: Likewise.
10210         * tests/test-fcntl.c: Likewise.
10211         * tests/test-nonblocking-pipe.h: Likewise.
10212         * tests/test-nonblocking-socket.h: Likewise.
10213         * tests/test-pipe.c: Likewise.
10214         * tests/test-pipe2.c: Likewise.
10215         * tests/test-spawn-pipe-child.c: Likewise.
10216         * doc/acl-resources.txt: Likewise.
10217         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10218         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
10219         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
10220         * lib/localcharset.c: Update comments to mention native Windows.
10221         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10222         * lib/localename.c: Likewise.
10223         * lib/progreloc.c: Likewise.
10224         * lib/relocatable.c: Likewise.
10225         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10226         (windows_compute_revents): Renamed from win32_compute_revents.
10227         (windows_compute_revents_socket): Renamed from
10228         win32_compute_revents_socket.
10229         * lib/select.c: Update comments to mention native Windows.
10230         (windows_poll_handle): Renamed from win32_poll_handle.
10231         * m4/threadlib.m4: Update comments to mention native Windows.
10232         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
10233         --enable-threads=windows instead of --enable-threads=win32. Set
10234         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
10235         * lib/glthread/lock.h: Update comments to mention native Windows.
10236         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
10237         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
10238         USE_WIN32_THREADS.
10239         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
10240         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
10241         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
10242         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
10243         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
10244         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
10245         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
10246         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
10247         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
10248         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
10249         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
10250         * tests/test-tls.c: Likewise.
10251         Rationale:
10252         Microsoft renamed the "Win32 API" to "Windows API", as it is available
10253         on both 32-bit and 64-bit Windows systems.
10254         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
10255         line of distinction is between "native Windows" on one side and Unix/
10256         POSIX systems on the other side. More details in
10257         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
10258         Suggested by Paul Eggert.
10259
10260 2012-01-03  Bruno Haible  <bruno@clisp.org>
10261
10262         isatty: Support for MSVC 9.
10263         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
10264         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
10265         (_isatty_nothrow): New function.
10266         (isatty): Use it instead of _isatty.
10267         (IsConsoleHandle): Add comment, from Paolo Bonzini.
10268         * lib/poll.c (IsConsoleHandle): Likewise.
10269         * lib/select.c (IsConsoleHandle): Likewise.
10270         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
10271         (gl_PREREQ_ISATTY): New macro.
10272         * modules/isatty (Depends-on): Add msvc-inval.
10273         (configure.ac): Invoke gl_PREREQ_ISATTY.
10274
10275 2012-01-03  Jim Meyering  <meyering@redhat.com>
10276
10277         maint.mk: remove temporary transition aid from over 1.5 years ago
10278         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
10279         purpose was to aid in the transition (avoiding silent malfunction)
10280         from that old name to the new _sc_search_regexp.  This shim was
10281         added by commit 219c504b.
10282
10283         init.sh: do not try to accommodate compare arguments starting with "-"
10284         * tests/init.sh (compare_dev_null_): Do not try to accommodate
10285         compare arguments that start with "-".  Besides, we do not worry
10286         about this when invoking diff or cmp; why start now with sed?
10287         Using "--" to separate options from argument would trigger sed
10288         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
10289         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
10290
10291 2012-01-02  Bruno Haible  <bruno@clisp.org>
10292
10293         Enhance tests for module 'isatty'.
10294         * modules/isatty-tests (Depends-on): Add pipe-posix.
10295         * tests/test-isatty.c: Include <fcntl.h>.
10296         (DEV_NULL): New macro.
10297         (main): Test the resut of isatty() also on regular files, pipes, and
10298         /dev/null.
10299
10300         New module 'isatty'.
10301         * lib/unistd.in.h (isatty): New declaration.
10302         * lib/isatty.c: New file, based on an idea of
10303         Bastien Roucariès <roucaries.bastien@gmail.com>.
10304         * m4/isatty.m4: New file.
10305         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
10306         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
10307         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
10308         REPLACE_ISATTY.
10309         * modules/isatty: New file.
10310         * doc/posix-functions/isatty.texi: Mention the new module.
10311         Suggested by Paolo Bonzini.
10312
10313 2012-01-02  Bruno Haible  <bruno@clisp.org>
10314
10315         canonicalize: Tweak 2011-12-29 commit.
10316         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
10317         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
10318
10319 2012-01-02  Jim Meyering  <meyering@redhat.com>
10320
10321         gitlog-to-changelog: describe input syntax in --help output
10322         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
10323
10324         gitlog-to-changelog: fix typo in --help: show backslash before email @
10325         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
10326         in sources, but not in actual output.
10327
10328 2011-12-30  Jim Meyering  <meyering@redhat.com>
10329
10330         gitlog-to-changelog: don't malfunction when name contains %-directive
10331         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
10332         in a name string cause trouble.  E.g., with a user name of "%s",
10333         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
10334
10335 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
10336
10337         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
10338         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
10339         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
10340         the "  (tiny change)" notation that is appended to the standard
10341         ChangeLog "date  name  email" header line.
10342
10343 2012-01-01  Jim Meyering  <meyering@redhat.com>
10344
10345         test-framework-sh: init.sh: fix "make dist" failure
10346         When using gnulib-tool's --with-tests option and any module that
10347         depends on test-framework-sh, "make dist" would fail due to the
10348         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
10349         in the gltests directory, and not in the gllib/ directory.
10350         One way to work around that is to move the EXTRA_DIST += init.sh
10351         from the primary module to the -tests one:
10352         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
10353         * modules/test-framework-sh (Makefile.am): ...not here.
10354         Reported by Tom G. Christensen in
10355         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
10356
10357         version-etc: update copyright year reported by --version
10358         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
10359
10360 2011-12-31  Pádraig Brady  <P@draigBrady.com>
10361
10362         canonicalize: only stat() if required
10363         * lib/canonicalize.c (canonicalize_filename_mode):
10364         Avoid calling l?stat() when both CAN_MISSING,
10365         and CAN_NOLINKS are set, as we neither need
10366         to resolve symlinks or test component existence.
10367
10368 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10369
10370         doc: cover st_ino issues once; add OpenVMS etc.
10371         * doc/posix-functions/stat.texi (stat):
10372         * doc/posix-functions/lstat.texi (lstat):
10373         * doc/posix-functions/fstatat.texi (fstatat):
10374         * doc/posix-functions/fstat.texi (fstat):
10375         Move general 'struct stat' stuff to sys_stat.texi,
10376         leaving behind a pointer.
10377         * doc/posix-headers/sys_stat.texi (sys/stat.h):
10378         Merge duplicate info about 'struct stat' problems into here.
10379         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
10380         and suggest partial workarounds.
10381
10382         same-inode: port to OpenVMS
10383         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
10384         three st_ino values.
10385
10386 2011-12-30  Pádraig Brady  <P@draigBrady.com>
10387
10388         canonicalize: fix references to stat() and lstat()
10389         * lib/canonicalize.c (canonicalize_filename_mode):
10390         Ensure references always resolve to a replacement
10391         function if required (even via a macro).
10392
10393 2011-12-30  Jim Meyering  <meyering@redhat.com>
10394
10395         gitlog-to-changelog: remove a little duplication
10396         * build-aux/gitlog-to-changelog (main): Grep @lines once,
10397         rather than twice.
10398
10399 2011-12-29  Pádraig Brady  <P@draigBrady.com>
10400
10401         canonicalize: add support for not resolving symlinks
10402         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
10403         indicate we don't want to follow symlinks.  Also
10404         provide CAN_MODE_MASK to aid setting these existing
10405         mutually exclusive values.
10406         * lib/canonicalize.c (canonicalize_filename_mode):
10407         Extract the flags from can_mode parameter, which
10408         are currently just used to select between stat()
10409         and lstat().  Also ensure that mutually exclusive
10410         values are flagged immediately as invalid.
10411         * tests/test-canonicalize.c: Verify symlinks are
10412         not followed, and that invalid flag combinations
10413         are diagnosed.
10414
10415 2011-12-25  Jim Meyering  <meyering@redhat.com>
10416
10417         gitlog-to-changelog: do not clump multi-paragraph entries
10418         Identical header lines (date,name,email+coauthors) are suppressed,
10419         thus putting all entries with those same characteristics under
10420         a single header.  However, when a log entry consists of two or
10421         more paragraphs, it may not be clear where it starts and ends.
10422         This change makes it so that such an entry is always separated
10423         from others by a header line, even when that header would
10424         otherwise be suppressed.
10425         * build-aux/gitlog-to-changelog: Implement the above.
10426         Inspired by a related request from Stefano Lattarini in
10427         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
10428
10429 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10430
10431         announce-gen: fix `cmd' typo in diagnostic
10432         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
10433         diagnostic: a missing '$' meant that the command was not output.
10434
10435 2011-12-23  Jim Meyering  <meyering@redhat.com>
10436
10437         test-framework-sh: distribute init.sh
10438         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
10439         Otherwise, "make -C gnulib-tests check" (at least in grep) would
10440         fail due to the lack of init.sh.
10441
10442         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
10443         * modules/atexit-tests: Rather than listing tests/init.sh,
10444         now that there's a module for it, simply depend on that new module.
10445         * modules/closein-tests: Likewise.
10446         * modules/exclude-tests: Likewise.
10447         * modules/getcwd-tests: Likewise.
10448         * modules/perror-tests: Likewise.
10449         * modules/pread-tests: Likewise.
10450         * modules/pwrite-tests: Likewise.
10451         * modules/vc-list-files-tests: Likewise.
10452         * modules/verify-tests: Likewise.
10453         * modules/xalloc-die-tests: Likewise.
10454         * modules/xstrtoimax-tests: Likewise.
10455         * modules/xstrtol-tests: Likewise.
10456         * modules/xstrtoll-tests: Likewise.
10457         * modules/xstrtoumax-tests: Likewise.
10458         * modules/yesno-tests: Likewise.
10459
10460 2011-12-22  Jim Meyering  <meyering@redhat.com>
10461
10462         test-framework-sh: add minimal tests of init.sh's compare function
10463         * modules/test-framework-sh-tests: New file.
10464         * tests/test-init.sh: New file.
10465
10466         test-framework-sh: new module
10467         * modules/test-framework-sh: New file.
10468         * MODULES.html.sh (Support for maintaining and releasing projects):
10469         List it.
10470
10471         init.sh: do not emit simulated diff output to stderr
10472         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
10473
10474 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
10475
10476         .gitignore: ignore gnulib.dvi and regex.info
10477         * doc/.gitignore:add gnulib.dvi and regex.info
10478
10479 2011-12-22  Jim Meyering  <meyering@redhat.com>
10480
10481         init.sh: correct previous change
10482         * tests/init.sh (compare): My previous change was wrong.
10483         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
10484
10485         init.sh: avoid unwarranted test failure when using "set -e"
10486         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
10487         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
10488         a use like "compare exp out" would get evoke an unconditional failure.
10489
10490 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
10491
10492         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
10493         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
10494         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
10495         autoreconf that did not.
10496         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
10497         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10498
10499 2011-12-17  Jim Meyering  <meyering@redhat.com>
10500
10501         bootstrap: remove some now-unneeded code
10502         This script arose back when gnulib-tool was young.
10503         Since then, it has seen improvements that render much of this
10504         script unnecessary.  In particular, it can now make symlinks
10505         to the files it uses.  Also, I no longer see as much value in
10506         marking files as read-only via comments.
10507         If you relied on the symlink-creation feature of the preceding
10508         version of this script, you can get most of that functionality
10509         by adding the --symlink option to the definition of
10510         gnulib_tool_option_extras in your bootstrap.conf file.
10511         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
10512         Run autopoint and libtoolize *before* gnulib-tool.
10513         After it, run an abbreviated autoreconf, rather than a loop around
10514         all tools.
10515         (slirp, bt_mark_as_generated): Remove functions.
10516
10517 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10518
10519         ftoastr: fix typo
10520         * lib/ftoastr.h: Fix misspelling in comment.
10521
10522 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
10523
10524         * top/README-release: fix punctuation.
10525
10526 2011-12-17  Jim Meyering  <meyering@redhat.com>
10527
10528         bootstrap: correct the recent buildreq change
10529         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
10530         had no effect.
10531         * build-aux/bootstrap (buildreq): Bracket each search term with
10532         "*...*", so that the shell "case" statement works as intended.
10533         Add comments.
10534
10535 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
10536
10537         build: let bootstrap resort to wget when downloading .po files
10538         * build-aux/bootstrap (download_po_files): Fallback to wget when
10539         downloading the .po files via rsync fails.  This is necessary to
10540         bootstrap from behind a strict firewall.
10541
10542 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10543
10544         stdint: don't assume C++11 when compiling with g++
10545         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
10546         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
10547         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
10548         work also in C++ before C++11, as that improperly inhibits
10549         generating a substitute stdint.h for that case.
10550
10551 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10552
10553         alloca: protect comment from gnulib-tool
10554         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
10555         that gnulib-tool doesn't think it's a license, and munge it to
10556         say "GCC version 3".
10557
10558 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
10559
10560         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
10561         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
10562         $(abs_top_builddir) instead of $(top_builddir).
10563
10564 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
10565
10566         strftime-tests: also test nanoseconds
10567         * tests/test-strftime.c (T): Add a test of %N.
10568
10569 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
10570
10571         inttypes, stdint: add C++11 support
10572         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
10573         when including inttypes.h and stdint.h.  Support this change to
10574         the standard.
10575         * doc/posix-headers/inttypes.texi (inttypes.h):
10576         * doc/posix-headers/stdint.texi (stdint.h): Document this.
10577         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
10578         Define if not defined already, for the benefit of pre-C++11 hosts.
10579         Define the standard format macros (e.g., PRId8) always.
10580         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
10581         Likewise, if __cpluspus.  Define the standard constant and limit
10582         macros (e.g., INT8_C, INT8_MAX) always.
10583         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
10584         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
10585         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
10586         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
10587         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
10588         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
10589         Likewise.
10590
10591 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10592
10593         nonblocking tests: Fix test failure on Linux/PPC.
10594         Suggested by Prerna Saxena in
10595         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
10596         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
10597         Set to 1100000.
10598
10599 2011-12-12  Jim Meyering  <meyering@redhat.com>
10600
10601         argmatch: don't hard-code `' when listing valid option arguments
10602         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
10603         use the quote function to add quotes.  Use fputs rather than
10604         fprintf for the format string with no format directive.
10605
10606 2011-12-07  Eric Blake  <eblake@redhat.com>
10607
10608         bootstrap: detect tools required by gnulib-tool
10609         * build-aux/bootstrap (buildreq): Provide minimum implicit
10610         dependencies.
10611         * DEPENDENCIES: Mention patch as a prereq.
10612
10613 2011-12-04  Bruno Haible  <bruno@clisp.org>
10614
10615         sethostname: Port to Windows platforms.
10616         * lib/sethostname.c: Provide an alternate implementation for Windows
10617         platforms.
10618         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
10619         (main): Skip the test if sethostname() fails with EPERM. On Windows
10620         platforms, don't check the result of gethostname().
10621
10622 2011-12-04  Bruno Haible  <bruno@clisp.org>
10623             Jim Meyering  <meyering@redhat.com>
10624
10625         tests: Avoid spurious error message on platforms without mktemp program.
10626         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
10627
10628 2011-12-04  Bruno Haible  <bruno@clisp.org>
10629
10630         sethostname: Fix documentation.
10631         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
10632         "not fixed" section.
10633
10634 2011-12-03  Bruno Haible  <bruno@clisp.org>
10635
10636         gnulib-tool: Verify that the License field is present and non-empty.
10637         * gnulib-tool (func_get_license_raw): New function, extracted from
10638         func_get_license.
10639         (func_get_license): Use it. Warn if the module is not a test module and
10640         has no license.
10641         Suggested by Jim Meyering.
10642
10643 2011-12-03  Bruno Haible  <bruno@clisp.org>
10644
10645         sethostname tests: Fix link error on mingw.
10646         * tests/test-sethostname1.c: New file, extracted from
10647         tests/test-sethostname.c.
10648         * tests/test-sethostname2.c: New file, extracted from
10649         tests/test-sethostname.c.
10650         * tests/test-sethostname.c: Remove file.
10651         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
10652         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
10653         (Depends-on): Add gethostname.
10654         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
10655         Link the latter with $(GETHOSTNAME_LIB).
10656
10657         sethostname tests: Fix compilation error on mingw.
10658         * tests/test-sethostname.c: Don't include <sys/types.h>.
10659         (geteuid): Use a dummy value without uid_t.
10660         * modules/sethostname-tests (Depends-on): Remove sys_types.
10661
10662         sethostname tests: Avoid a gcc warning.
10663         * tests/test-sethostname.c (main): Remove an unused variable.
10664
10665         Tweak last commit.
10666         * modules/sethostname-tests (Files): Sort by decreasing importance.
10667         (configure.ac): Check for geteuid.
10668         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
10669         the test when there's nothing to test. Drop an unnecessary cast.
10670         Improve an error message. Verify that the final sethostname() call
10671         succeeds.
10672
10673 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10674
10675         Add a test suite for the sethostname module.
10676         * modules/sethostname-tests: New file.  A test program
10677         for the sethostname module.
10678         * tests/test-sethostname.c: Likewise.
10679
10680 2011-12-03  Bruno Haible  <bruno@clisp.org>
10681
10682         Tweak last commit.
10683         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
10684         Fix preprocessor directives indentation. Fix typos.
10685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
10686         * modules/unistd (Makefile): Likewise.
10687
10688 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10689
10690         Integrate the sethostname module into unistd.
10691         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
10692         into the unistd.h header.
10693         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
10694         preprocessor directives.
10695         * modules/unistd: Setup the Makefile substitutions of the
10696         SETHOSTNAME preprocessor directives.
10697
10698 2011-12-03  Bruno Haible  <bruno@clisp.org>
10699
10700         Tweak last commit.
10701         * lib/sethostname.c: Don't include <string.h>.
10702         (sethostname): No need to copy the argument string to the stack. Don't
10703         call clearerr. Preserve errno when fprintf failed.
10704         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
10705         Don't invoke AC_REPLACE_FUNCS.
10706         * modules/sethostname (Link): Remove empty section.
10707         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
10708         failure problem.
10709
10710 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10711
10712         New module 'sethostname'.
10713         * lib/sethostname.c (sethostname): New file.  Provide sethostname
10714         for systems that lack it.
10715         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
10716         sethostname declaration and function.
10717         * modules/sethostname: New file.  Define the sethostname module.
10718
10719 2011-12-03  Bruno Haible  <bruno@clisp.org>
10720
10721         Tweak last commit.
10722         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
10723
10724 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10725
10726         Split the HOST_NAME_MAX detection into a separate m4 macro.
10727         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
10728         macro so it can be used by the pending sethostname module.
10729
10730 2011-12-03  Bruno Haible  <bruno@clisp.org>
10731
10732         Fix module descriptions syntax.
10733         * modules/argv-iter (License): Fix syntax.
10734         * modules/di-set (License): Likewise.
10735         * modules/ino-map (License): Likewise.
10736         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
10737
10738 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10739
10740         stdalign: port to Clang 3.0
10741         Problem reported by Simon Josefsson in
10742         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
10743         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
10744         which has <stdalign.h> but which does not define alignof.
10745         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
10746
10747 2011-12-01  Eric Blake  <eblake@redhat.com>
10748
10749         mktempd: silence dd usage
10750         * build-aux/mktempd (rand_bytes): Silence dd.
10751
10752 2011-11-30  Simon Josefsson  <simon@josefsson.org>
10753
10754         manywarnings: Don't mention gcc version in docstring.
10755         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
10756         Jim Meyering <meyering@redhat.com>.
10757
10758 2011-11-30  Jim Meyering  <meyering@redhat.com>
10759
10760         hash: mark a few floating point constants with "f" suffix
10761         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
10762         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
10763         floating point constants with "f", since they're destined to be
10764         saved/used as "float"s.
10765
10766 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
10767
10768         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
10769         * tests/test-float.c (test_long_double): Correct and re-enable the
10770         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
10771
10772 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
10773
10774         Avoid subtracting two pointers that don't point into the same block.
10775         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
10776         only pointers into the same memory block are subtracted. We cannot
10777         assume that sizeof (ptrdiff_t) == sizeof (void *).
10778
10779 2011-11-29  Eric Blake  <eblake@redhat.com>
10780
10781         maint.mk: add syntax check for use of compare from init.sh
10782         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
10783         moved here from coreutils.
10784
10785         manywarnings: drop -Wunsuffixed-float-constants
10786         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
10787         '1.0D', which is the only way to silence this warning for 'double'.
10788
10789 2011-11-29  Jim Meyering  <meyering@redhat.com>
10790
10791         hash: mark compute_bucket_size with the pure attribute
10792         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
10793
10794         quotearg, propername: correct pragma guard expression
10795         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
10796         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
10797
10798 2011-11-28  Jim Meyering  <meyering@redhat.com>
10799
10800         propername: do not mark proper_name with the const attribute
10801         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
10802         since it examines data pointed to by its parameter.
10803         * lib/propername.c (proper_name): Instead, add a pragma to suppress
10804         the suggestion from -Wsuggest-attribute=const.
10805
10806         propername: mark one more function as const
10807         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
10808
10809 2011-11-27  Jim Meyering  <meyering@redhat.com>
10810
10811         mark functions with const and pure attributes
10812
10813         Mark functions per suggestions from gcc-4.6 when using these options:
10814         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
10815         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
10816         Follow these guidelines: when possible, apply the attribute to
10817         an extern declaration, not to its definition.  Apply it to the
10818         definition only when the definition is static.
10819         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
10820         * lib/argv-iter.h (argv_iter_n_args): Likewise.
10821         * lib/base64.h (isbase64): Likewise.
10822         * lib/basename-lgpl.c (last_component, base_len): Likewise.
10823         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
10824         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
10825         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
10826         (c_tolower, c_toupper): Likewise.
10827         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
10828         * lib/chdir-long.c (find_non_slash): Likewise.
10829         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
10830         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
10831         * lib/file-type.h (file_type): Likewise.
10832         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
10833         * lib/filevercmp.c (verrevcmp): Likewise.
10834         * lib/freadahead.h (freadahead): Likewise.
10835         * lib/fts.c (fts_maxarglen): Likewise.
10836         * lib/hash-pjw.h (hash_pjw): Likewise.
10837         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
10838         * lib/hash.c (is_prime, next_prime): Likewise.
10839         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
10840         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
10841         (hash_table_ok, hash_get_first, hash_string): Likewise.
10842         (compute_bucket_size): Likewise.
10843         * lib/i-ring.h (i_ring_empty): Likewise.
10844         * lib/isnan.c (isnanl): Likewise.
10845         * lib/math.h (isnanl, rpl_isnanl): Likewise.
10846         * lib/memcasecmp.h (memcasecmp): Likewise.
10847         * lib/memchr2.h (memchr2): Likewise.
10848         * lib/memcmp2.h (memcmp2): Likewise.
10849         * lib/parse-datetime.y (lookup_zone): Likewise.
10850         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
10851         [!WINDOWS_SOCKETS]: Likewise.
10852         * lib/strnlen1.h (strnlen1): Likewise.
10853         * lib/uniwidth.in.h (uc_width): Likewise.
10854         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
10855         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
10856         (quoting_options_from_style): Add a comment.
10857         * lib/propername.h (proper_name): Add a comment.
10858
10859 2011-11-27  Bruno Haible  <bruno@clisp.org>
10860
10861         Remove unused macros from !_LIBC code in glibc-borrowed files.
10862         * lib/fnmatch.c (STRCOLL): Remove macro.
10863         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
10864         * lib/glob.c (__stat, __readdir64): Remove macros.
10865         * lib/tempname.c (__open64, __xstat64): Remove macros.
10866         Suggested by Paul Eggert.
10867
10868 2011-11-27  Bruno Haible  <bruno@clisp.org>
10869
10870         getcwd: Fix link error on MSVC 9.
10871         * modules/getcwd (Depends-on): Add readdir, rewinddir.
10872
10873 2011-11-27  Bruno Haible  <bruno@clisp.org>
10874
10875         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
10876         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
10877         HAVE_OPENDIR is 0.
10878         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
10879         HAVE_CLOSEDIR is 0.
10880         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
10881         is 0.
10882         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
10883
10884 2011-11-27  Bruno Haible  <bruno@clisp.org>
10885
10886         getcwd: Fix bug from 2011-08-17.
10887         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
10888         platforms that need it.
10889         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
10890         code of 4 to be a failure, not a success. This ensures that
10891         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
10892
10893 2011-11-27  Bruno Haible  <bruno@clisp.org>
10894
10895         binary-io tests: Avoid test failure on mingw when libtool is used.
10896         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
10897         Don't verify the size of t-bin-out1.tmp here.
10898         * tests/test-binary-io.sh: Verify it here.
10899         Reported by Simon Josefsson.
10900
10901 2011-11-26  Bruno Haible  <bruno@clisp.org>
10902
10903         Fix conflict between two instantiations of module 'unistd'.
10904         * gnulib-tool (func_emit_autoconf_snippet): Substitute
10905         ${include_guard_prefix} also in the autoconf snippet.
10906         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
10907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
10908         GNULIB_UNISTD_H_GETOPT.
10909         * modules/getopt-posix (configure.ac): Set the
10910         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
10911         * modules/getopt-gnu (configure.ac): Likewise.
10912         * modules/unistd (Makefile.am): Change the substitution value of
10913         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
10914         Reported by Simon Josefsson.
10915
10916 2011-11-25  Bruno Haible  <bruno@clisp.org>
10917
10918         pagealign_alloc: Doc and comments.
10919         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
10920         module.
10921         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
10922
10923 2011-11-25  Jim Meyering  <meyering@redhat.com>
10924
10925         test-update-copyright.sh: avoid false-positive failure
10926         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
10927         around false positive failure on Cygwin/Windows.  The latter was
10928         matching erroneously-created files with names like
10929         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
10930
10931 2011-11-25  Simon Josefsson  <simon@josefsson.org>
10932
10933         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
10934         * m4/valgrind-tests.m4: Check that the parameters that will be
10935         used works, not just a subset of them.  Reported by Bruno Haible
10936         <bruno@clisp.org>.
10937
10938 2011-11-24  Jim Meyering  <meyering@redhat.com>
10939
10940         test-stdalign.c: comment out long double tests
10941         * tests/test-stdalign.c: Don't try to reduce alignment of long double
10942         variables.  That provokes errors like this from gcc-4.7.0 20111124:
10943         error: '_Alignas' specifiers cannot reduce alignment of \
10944         'static_longdouble_alignas'.
10945
10946 2011-11-22  Jim Meyering  <meyering@redhat.com>
10947
10948         init.sh: make "compare /dev/null FILE" output more readable
10949         * tests/init.sh (compare_): Document the preferred order of arguments.
10950         (emit_diff_u_header_): New function.
10951         (compare_dev_null_): Emit a simulated diff, rather than just the
10952         contents of the unexpected file.  Suggestion from Bruno Haible.
10953
10954 2011-11-21  Jim Meyering  <meyering@redhat.com>
10955             Eric Blake  <eblake@redhat.com>
10956
10957         init.sh: work around OSF/1 5.1's mishandling of /dev/null
10958         * tests/init.sh: Make our compare function slightly more portable.
10959         Reported by Bruno Haible in
10960         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
10961
10962 2011-11-21  Simon Josefsson  <simon@josefsson.org>
10963
10964         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
10965         before using it, in code that ends up in config.h.
10966
10967 2011-11-20  Bruno Haible  <bruno@clisp.org>
10968
10969         getcwd: Work around getcwd bug on AIX 5..7.
10970         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
10971         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
10972         Use a different value for gl_cv_func_getcwd_path_max. Move the
10973         definition of HAVE_PARTLY_WORKING_GETCWD from here...
10974         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
10975         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
10976         Define HAVE_MINIMALLY_WORKING_GETCWD.
10977         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
10978         where it is not even minimally working, that is, on AIX.
10979         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
10980         m4/getcwd-path-max.m4.
10981         (main): Update exit code computation.
10982         * doc/posix-functions/getcwd.texi: Mention list of platforms where
10983         getcwd does not handle long file names.
10984
10985 2011-11-20  Bruno Haible  <bruno@clisp.org>
10986
10987         getcwd: Fix bug from 2009-09-10.
10988         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
10989         like "no".
10990
10991 2011-11-20  Simon Josefsson  <simon@josefsson.org>
10992
10993         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
10994
10995 2011-11-20  Bruno Haible  <bruno@clisp.org>
10996
10997         fma tests: Avoid shadowing local variables.
10998         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
10999         expected.
11000
11001 2011-11-20  Bruno Haible  <bruno@clisp.org>
11002
11003         copysignf tests: Fix.
11004         * tests/test-copysignf.c: Fix signature check.
11005
11006 2011-11-20  Bruno Haible  <bruno@clisp.org>
11007
11008         fma: Remove unused code.
11009         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
11010         unused macros.
11011
11012 2011-11-20  Bruno Haible  <bruno@clisp.org>
11013
11014         sethostname: Fix doc about AIX.
11015         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
11016         sethostname; it has it.
11017
11018         sethostname: Mention more portability problems.
11019         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
11020         problem.
11021         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11022
11023 2011-11-19  Bruno Haible  <bruno@clisp.org>
11024
11025         Depend on module fcntl-h when AT_FDCWD is used.
11026         * modules/utimens (Depends-on): Add fcntl-h.
11027         * modules/areadlinkat (Depends-on): Likewise.
11028         * modules/areadlinkat-with-size (Depends-on): Likewise.
11029         * modules/faccessat (Depends-on): Likewise.
11030         * modules/fchmodat (Depends-on): Likewise.
11031         * modules/fchownat (Depends-on): Likewise.
11032         * modules/getcwd (Depends-on): Likewise.
11033         * modules/mkdirat (Depends-on): Likewise.
11034         * modules/mkfifoat (Depends-on): Likewise.
11035         * modules/readlinkat (Depends-on): Likewise.
11036         * modules/symlinkat (Depends-on): Likewise.
11037         * modules/dup2-tests (Depends-on): Likewise.
11038         * modules/fdutimensat-tests (Depends-on): Likewise.
11039         * modules/futimens-tests (Depends-on): Likewise.
11040
11041 2011-11-19  Bruno Haible  <bruno@clisp.org>
11042
11043         euidaccess: Update a comment.
11044         * lib/euidaccess.c: Update comment about platforms with faccessat.
11045
11046 2011-11-19  Bruno Haible  <bruno@clisp.org>
11047
11048         openat: Fix file list.
11049         * modules/openat (Files): Remove lib/at-func.c.
11050
11051 2011-11-19  Bruno Haible  <bruno@clisp.org>
11052
11053         fstatat: Simplify.
11054         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
11055         gnulib should define rpl_fstatat, there is a
11056         "#define fstatat rpl_fstatat" in <sys/stat.h>.
11057
11058 2011-11-19  Bruno Haible  <bruno@clisp.org>
11059
11060         Ensure 'inline' can be used in tests/test-utimens-common.h.
11061         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
11062         * modules/futimens-tests (configure.ac): Likewise.
11063         * modules/utimens-tests (configure.ac): Likewise.
11064         * modules/utimensat-tests (configure.ac): Likewise.
11065
11066 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11067
11068         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
11069         not hash_insert0.
11070         (hash_insert_if_absent): Doc fix.
11071
11072 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11073
11074         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
11075
11076 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11077
11078         test-getcwd: disambiguate exit status
11079         * tests/test-getcwd.c (test_long_name): Return 0..7.
11080         (main): Exit with an unambiguous exit status.  The old
11081         code yielded a mysterious mixture of two failure codes.
11082
11083         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
11084         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
11085         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
11086         rpl_fstatat or fstatat.  This should fix the other problem
11087         reported by Kai Habel in
11088         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11089         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
11090         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
11091         and I reproduced it on a Solaris 8 host we still have in production.
11092
11093 2011-11-18  Jim Meyering  <meyering@redhat.com>
11094
11095         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
11096         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
11097         Add a sentence to the comment.
11098         (hash_insert0): New function that simply calls hash_insert_if_absent.
11099         * lib/hash.h (hash_insert_if_absent): Declare it.
11100         (hash_insert0): Add deprecation attribute.
11101         (_GL_ATTRIBUTE_DEPRECATED): Define.
11102         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
11103         not hash_insert0.
11104         * NEWS: Mention it, even though it's not really an incompatible change.
11105
11106 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
11107
11108         openat: avoid compilation failure due to lack of <errno.h> inclusion
11109         * lib/openat.c: Include <errno.h>.
11110
11111 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11112
11113         * modules/getcwd (Depends-on): Add fdopendir.
11114         This fixes one of the two problems reported by Kai Habel in
11115         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11116
11117         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
11118         stdalign problem reported by Ian Beckwith in
11119         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
11120         * modules/crypto/gc-arcfour (Depends-on):
11121         Depend conditionally on crypto/arcfour.
11122         * modules/crypto/gc-arctwo (Depends-on):
11123         Depend conditionally on crypto/arctwo.
11124         * modules/crypto/gc-des (Depends-on):
11125         Depend conditionally on crypto/des.
11126         * modules/crypto/gc-hmac-md5 (Depends-on):
11127         Depend conditionally on crypto/hmac-md5.
11128         * modules/crypto/gc-hmac-sha1 (Depends-on):
11129         Depend conditionally on crypto/hmac-sha1.
11130         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
11131         * modules/crypto/gc-md4 (Depends-on):
11132         Depend conditionally on crypto/md4.
11133         * modules/crypto/gc-md5 (Depends-on):
11134         Depend conditionally on crypto/md5.
11135         * modules/crypto/gc-rijndael (Depends-on):
11136         Depend conditionally on crypto/rijndael.
11137         * modules/crypto/gc-sha1 (Depends-on):
11138         Depend conditionally on crypto/sha1.
11139         * modules/crypto/gc-arcfour:
11140         * modules/crypto/gc-arctwo:
11141         * modules/crypto/gc-des:
11142         * modules/crypto/gc-hmac-md5:
11143         * modules/crypto/gc-hmac-sha1:
11144         * modules/crypto/gc-md2:
11145         * modules/crypto/gc-md4:
11146         * modules/crypto/gc-md5:
11147         * modules/crypto/gc-rijndael:
11148         * modules/crypto/gc-sha1:
11149         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
11150         now that the conditional dependencies do the work for us.
11151
11152 2011-11-17  Jim Meyering  <meyering@redhat.com>
11153
11154         tests: factor st_ctime-comparison out of two headers
11155         * tests/test-utimens-common.h (ctime_compare): Define.
11156         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
11157         * tests/test-lutimens.h (test_lutimens): Likewise.
11158         * tests/test-utimens.h (test_utimens): Likewise.
11159
11160         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
11161         Invoke the test program via an init.sh-using wrapper.
11162         * tests/test-getcwd.sh: New file.
11163         * modules/getcwd-tests (Files): Add it.
11164         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
11165
11166 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
11167
11168         gitlog-to-changelog: support multi-author commits.
11169         The FSF cares about keeping track of all authors of patches to its
11170         projects, but Git doesn't provide obvious support for multi-author
11171         changesets. Consensus seems to be forming around the use of extra
11172         Signed-off-by inspired lines in the log message formatted as
11173         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
11174         multi-author commits between version control systems.
11175         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
11176         log message and output in standard ChangeLog multi-author format.
11177         Reported by Peter Rosin <peda@lysator.liu.se>
11178
11179 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
11180             Bruno Haible  <bruno@clisp.org>
11181
11182         Fix some modules' file list.
11183         * modules/fstatat (Files): Add m4/lstat.m4.
11184         * modules/openat (Files): Likewise.
11185         * modules/unlinkat (Files): Likewise.
11186
11187 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
11188
11189         maint.mk: fix tight-scope.mk generation in VPATH builds.
11190         * top/maint.mk (tight-scope.mk): Make sure to prefix file
11191         reference with $(srcdir) so that the file is found correctly even
11192         when running `make syntax-check' in a VPATH build.
11193
11194 2011-11-13  Bruno Haible  <bruno@clisp.org>
11195             Jim Meyering  <meyering@redhat.com>
11196
11197         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
11198         * tests/init.sh (compare): Remove "No differences encountered" or
11199         synonymous output from the 'diff' program.
11200
11201 2011-11-13  Bruno Haible  <bruno@clisp.org>
11202
11203         Makefile: Tweak indentation.
11204         * Makefile: Use tab as first character in every line that contains rule
11205         commands.
11206
11207 2011-11-13  Bruno Haible  <bruno@clisp.org>
11208
11209         Syntax check for copyright statements.
11210         * check-copyright: New file.
11211         * Makefile (sc_check_copyright): New rule.
11212
11213 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11214
11215         * build-aux/git-version-gen: Add --prefix to configure the tag
11216         match string.
11217
11218 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11219
11220         * build-aux/git-version-gen: Add --help and --version.
11221
11222 2011-11-12  Jim Meyering  <meyering@redhat.com>
11223
11224         revamp the other test-exclude?.sh scripts to use init.sh, too
11225         * tests/test-exclude1.sh: Use init.sh.
11226         * tests/test-exclude2.sh: Likewise.
11227         * tests/test-exclude3.sh: Likewise.
11228         * tests/test-exclude4.sh: Likewise.
11229         * tests/test-exclude5.sh: Likewise.
11230         * tests/test-exclude6.sh: Likewise.
11231         * tests/test-exclude7.sh: Likewise.
11232         * tests/test-exclude8.sh: Likewise.
11233         * modules/exclude-tests (Files): List init.sh.
11234
11235         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
11236         These shell scripts ignored failure of the binary test-exclude,
11237         so making the latter return 77 didn't cause them to be skipped.
11238         * tests/test-exclude5.sh: Exit with test-exclude's error status
11239         when that program fails.  Revamp to use init.sh.
11240         * tests/test-exclude2.sh: Likewise.
11241
11242         test-exclude: fix a typo
11243         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
11244
11245 2011-11-11  Bruno Haible  <bruno@clisp.org>
11246
11247         obstack: Fix compilation error on MSVC 9.
11248         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
11249
11250 2011-11-11  Jim Meyering  <meyering@redhat.com>
11251
11252         test-exclude: skip tests rather than failing on deficient systems
11253         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
11254         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
11255         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
11256         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
11257
11258 2011-11-10  Bruno Haible  <bruno@clisp.org>
11259
11260         ptsname_r test: Avoid gcc warning on glibc systems.
11261         * tests/test-ptsname_r.c (null_ptr): New function.
11262         (test_errors): Use it.
11263
11264 2011-11-10  Bruno Haible  <bruno@clisp.org>
11265
11266         ptsname_r: Avoid compilation error on OSF/1 5.1.
11267         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
11268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
11269         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
11270         function is not declared or incompatibly declared.
11271         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
11272         * modules/ptsname_r (Depends-on, configure.ac): Update.
11273         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
11274
11275 2011-11-10  Bruno Haible  <bruno@clisp.org>
11276
11277         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
11278         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
11279         When cross-compiling, guess yes on all platforms except AIX.
11280         Reported by Ludovic Courtès <ludo@gnu.org>.
11281
11282 2011-11-09  Bruno Haible  <bruno@clisp.org>
11283
11284         ptsname_r tests: Fix bugs.
11285         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
11286         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
11287
11288 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11289
11290         fstatat: work with cross-compilation
11291         Problem reported by Ludovic Courtès in
11292         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
11293         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
11294         "cross-compiling" and assume the bug is present.  Replace
11295         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
11296         an inverted sense, to be more conservative about our assumptions.
11297         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
11298
11299 2011-11-09  Bruno Haible  <bruno@clisp.org>
11300
11301         Improve MODULES.html output.
11302         * modules/mkfifoat (Description): Use the word "function".
11303         * modules/readlinkat (Description): Likewise.
11304         * modules/symlinkat (Description): Likewise.
11305
11306 2011-11-09  Eric Blake  <eblake@redhat.com>
11307
11308         ptsname_r-tests: new test module
11309         * modules/ptsname_r-tests: New module.
11310         * tests/test-ptsname_r.c: New file.
11311
11312         ptsname_r: new module
11313         * modules/ptsname_r: New module.
11314         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
11315         * lib/ptsname.c (__ptsname_r): Split...
11316         * lib/ptsname_r.c: ...into new file.
11317         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11318         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
11319         * modules/stdlib (Makefile.am): Substitute witnesses.
11320         * lib/stdlib.in.h (ptsname_r): Declare it.
11321         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
11322         * MODULES.html.sh (Misc): Likewise.
11323         * modules/ptsname (Depends-on): Alter dependency.
11324         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
11325
11326 2011-11-09  Jim Meyering  <meyering@redhat.com>
11327
11328         announce-gen: be more concise when there's only one URL+tarball
11329         * build-aux/announce-gen (get_tool_versions): When you distribute
11330         only one type of tarball, combine the first two "Here are..."
11331         sections and make the key-checking grammar independent of
11332         how many tarballs there are.
11333
11334 2011-11-09  Eric Blake  <eblake@redhat.com>
11335
11336         openpty: provide a stub on mingw
11337         * lib/pty.in.h (includes): Provide forward declarations.
11338         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
11339
11340         raise: fix mingw handling of SIGPIPE
11341         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
11342
11343 2011-11-08  Bruno Haible  <bruno@clisp.org>
11344
11345         More conditional dependencies.
11346         * modules/faccessat (Depends-on): Add conditions.
11347         * modules/fchmodat (Depends-on): Likewise.
11348         * modules/fchownat (Depends-on): Likewise.
11349         * modules/fstatat (Depends-on): Likewise.
11350         * modules/mkfifoat (Depends-on): Likewise.
11351         * modules/readlinkat (Depends-on): Likewise.
11352         * modules/symlinkat (Depends-on): Likewise.
11353         * modules/unlinkat (Depends-on): Likewise.
11354         * modules/utimensat (Depends-on): Likewise.
11355         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
11356         * modules/linkat (Depends-on): Refine the conditions.
11357         * modules/renameat (Depends-on): Likewise.
11358
11359 2011-11-08  Bruno Haible  <bruno@clisp.org>
11360
11361         faccessat: Move AC_LIBOBJ invocation to module description.
11362         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
11363         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
11364         invocation from here...
11365         * modules/faccessat (configure.ac): ... to here. Invoke
11366         gl_PREREQ_FACCESSAT.
11367
11368 2011-11-08  Bruno Haible  <bruno@clisp.org>
11369
11370         faccessat: Simplify autoconf macro.
11371         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
11372         gl_FUNC_EUIDACCESS.
11373
11374 2011-11-08  Bruno Haible  <bruno@clisp.org>
11375
11376         renameat: Fix dependencies.
11377         * modules/renameat (Depends-on): Add stdbool.
11378
11379 2011-11-08  Bruno Haible  <bruno@clisp.org>
11380
11381         mkfifoat: Fix module description.
11382         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
11383         not gl_UNISTD_MODULE_INDICATOR.
11384
11385 2011-11-08  Bruno Haible  <bruno@clisp.org>
11386
11387         fstatat: Remove unused dependency.
11388         * modules/fstatat (Depends-on): Remove fstat.
11389
11390 2011-11-08  Simon Josefsson  <simon@josefsson.org>
11391
11392         GNUmakefile: behave when Makefile is missing.
11393         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
11394
11395 2011-11-08  Bruno Haible  <bruno@clisp.org>
11396
11397         openat: Conditionalize dependencies.
11398         * lib/openat.c: Reduce the scope of some #includes.
11399         * modules/openat (Depends-on): Add conditions.
11400
11401 2011-11-07  Jim Meyering  <meyering@redhat.com>
11402
11403         maint.mk: extract GPG key ID without using a temporary file
11404         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
11405         without using a temporary file.  Based on a suggestion from Werner Koch
11406         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
11407
11408 2011-11-07  Eric Blake  <eblake@redhat.com>
11409
11410         grantpt: fix typo
11411         * lib/stdlib.in.h (grantpt): Check correct function.
11412
11413         maint.mk: silence new syntax check
11414         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
11415
11416 2011-11-06  Bruno Haible  <bruno@clisp.org>
11417
11418         Doc about floating-point and math API.
11419         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
11420         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
11421
11422 2011-11-06  Bruno Haible  <bruno@clisp.org>
11423
11424         stdalign tests: Skip the test when compiled by Sun C.
11425         * tests/test-stdalign.c (main): Skip the test on Sun C.
11426
11427 2011-11-06  Bruno Haible  <bruno@clisp.org>
11428
11429         ansi-c++-opt: Complete the 2011-06-05 change.
11430         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
11431         does not support namespaces, set the variable to "no", not to ":".
11432
11433 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11434
11435         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
11436
11437 2011-11-06  Bruno Haible  <bruno@clisp.org>
11438
11439         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
11440         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
11441         (minus_zerol) [HP-UX]: New macro.
11442         (unary_minus) [HP-UX]: New function.
11443         (copysignl) [HP-UX]: Use unary_minus function.
11444
11445 2011-11-06  Bruno Haible  <bruno@clisp.org>
11446
11447         ldexp, ldexpf, ldexpl: Enhance tests.
11448         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
11449         and tests/test-ldexpl.c.
11450         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
11451         LDEXP, MIN_EXP, MAX_EXP): New macros.
11452         Include test-ldexp.h.
11453         (main): Just call test_function.
11454         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
11455         infinity.h, nan.h.
11456         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11457         MAX_EXP): New macros.
11458         Include test-ldexp.h.
11459         (x, y): Remove variables.
11460         (main): Just call test_function.
11461         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
11462         infinity.h, nan.h.
11463         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11464         MAX_EXP): New macros.
11465         Include test-ldexp.h.
11466         (x, y): Remove variables.
11467         (main): Just call test_function.
11468         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
11469         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
11470         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11471         (Depends-on): Add isnand-nolibm, signbit, float.
11472         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
11473         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11474         (Depends-on): Add isnanf-nolibm, signbit, float.
11475
11476 2011-11-06  Bruno Haible  <bruno@clisp.org>
11477
11478         math tests: Cosmetics.
11479         * tests/test-math-c++.cc: Reorder declarations.
11480
11481 2011-11-05  Bruno Haible  <bruno@clisp.org>
11482
11483         fma*: Simplify test.
11484         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
11485         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
11486
11487         Tests for module 'fmal'.
11488         * modules/fmal-tests: New file.
11489         * tests/test-fmal1.c: New file.
11490         * tests/test-fmal2.c: New file.
11491
11492         New module 'fmal'.
11493         * lib/math.in.h (fmal): New declaration.
11494         * lib/fmal.c: New file.
11495         * m4/fmal.m4: New file.
11496         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
11497         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
11498         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
11499         REPLACE_FMAL.
11500         * modules/fmal: New file.
11501         * doc/posix-functions/fmal.texi: Mention the new module and the various
11502         bugs.
11503
11504         Tests for module 'fmaf'.
11505         * modules/fmaf-tests: New file.
11506         * tests/test-fmaf1.c: New file.
11507         * tests/test-fmaf2.c: New file.
11508
11509         New module 'fmaf'.
11510         * lib/math.in.h (fmaf): New declaration.
11511         * lib/fmaf.c: New file.
11512         * m4/fmaf.m4: New file.
11513         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
11514         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
11515         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
11516         REPLACE_FMAF.
11517         * modules/fmaf: New file.
11518         * doc/posix-functions/fmaf.texi: Mention the new module and the various
11519         bugs.
11520
11521         Tests for module 'fma'.
11522         * modules/fma-tests: New file.
11523         * tests/test-fma1.c: New file.
11524         * tests/test-fma1.h: New file.
11525         * tests/test-fma2.c: New file.
11526         * tests/test-fma2.h: New file.
11527
11528         New module 'fma'.
11529         * lib/math.in.h (fma): New declaration.
11530         * lib/fma.c: New file.
11531         * m4/fma.m4: New file.
11532         * m4/fegetround.m4: New file.
11533         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
11534         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
11535         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
11536         REPLACE_FMA.
11537         * modules/fma: New file.
11538         * doc/posix-functions/fma.texi: Mention the new module and the various
11539         bugs.
11540
11541         Extend gl_MATHFUNC.
11542         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
11543         Support 'void' as argument type.
11544         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
11545
11546 2011-11-05  Jim Meyering  <meyering@redhat.com>
11547
11548         maint.mk: also prohibit inclusion of dirent.h without use
11549         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
11550
11551 2011-11-05  Bruno Haible  <bruno@clisp.org>
11552
11553         ldexpl tests: Avoid test failure on MSVC 9.
11554         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
11555         value. Needed in order to enforce the conversion from a value greater
11556         than LDBL_MAX to Infinity.
11557
11558 2011-11-05  Bruno Haible  <bruno@clisp.org>
11559
11560         New modules 'at-internal', 'openat-h', split off from module 'openat'.
11561         * modules/at-internal: New file, extracted from modules/openat.
11562         * modules/openat-h: New file.
11563         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
11564         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
11565         * modules/openat (Description): Add reference to POSIX function.
11566         (Files): Remove lib/openat.h, lib/openat-proc.c.
11567         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
11568         intprops, unistd.
11569         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
11570         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
11571         gl_FCNTL_MODULE_INDICATOR.
11572         (Include): Remove unistd.h, openat.h.
11573         * modules/areadlinkat (Files): Add lib/at-func.c.
11574         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11575         openat-die, openat-h, save-cwd.
11576         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
11577         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11578         openat-die, openat-h, save-cwd, unistd.
11579         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
11580         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11581         openat-h, save-cwd. Remove fcntl-h, openat.
11582         * modules/fchmodat (Files): Remove lib/openat.h.
11583         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11584         openat, stdbool, unistd.
11585         * modules/fchownat (Files): Remove lib/openat.h.
11586         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11587         openat, stdbool, sys_stat.
11588         * modules/fdopendir (Files): Remove lib/openat-priv.h,
11589         lib/openat-proc.c.
11590         (Depends-on): Add at-internal.
11591         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
11592         * modules/fstatat (Files): Remove lib/openat.h.
11593         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11594         stdbool, unistd.
11595         * modules/fts (Depends-on): Add openat-h.
11596         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
11597         openat.
11598         * modules/mkdirat (Files): Remove lib/openat.h.
11599         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11600         openat, stdbool, sys_stat.
11601         * modules/mkfifoat (Files): Add lib/at-func.c.
11602         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11603         openat-h, save-cwd. Remove fcntl-h, openat.
11604         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
11605         * modules/readlinkat (Files): Add lib/at-func.c.
11606         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11607         openat-h, save-cwd. Remove fcntl-h, openat.
11608         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
11609         openat.
11610         * modules/selinux-at (Files): Add lib/at-func.c.
11611         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11612         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
11613         * modules/symlinkat (Files): Add lib/at-func.c.
11614         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11615         openat-h, save-cwd. Remove fcntl-h, openat.
11616         * modules/unlinkat (Files): Remove lib/openat.h.
11617         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11618         stdbool.
11619         * modules/utimensat (Files): Add lib/at-func.c.
11620         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
11621         openat-die, openat-h, save-cwd.
11622         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
11623         * modules/fdutimensat-tests (Depends-on): Add openat.
11624         * modules/fstatat-tests (Depends-on): Add openat-h.
11625         * modules/readlinkat-tests (Depends-on): Add openat.
11626         * modules/symlinkat-tests (Depends-on): Add openat.
11627
11628 2011-11-05  Bruno Haible  <bruno@clisp.org>
11629
11630         openat: Include <stdbool.h>.
11631         * lib/openat.c: Include <stdbool.h>.
11632
11633 2011-11-04  Bruno Haible  <bruno@clisp.org>
11634
11635         fchownat, renameat, unlinkat: Fix dependencies.
11636         * modules/fchownat (Depends-on): Add fstatat.
11637         * modules/renameat (Depends-on): Likewise.
11638         * modules/unlinkat (Depends-on): Likewise.
11639
11640 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11641
11642         openat: remove direct dependency on dirent
11643         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
11644         and hasn't been needed ever since fdopendir was split into its own
11645         module on 2009-08-31.
11646         * modules/openat (Depends-on): Remove dirent.
11647
11648 2011-11-04  Bruno Haible  <bruno@clisp.org>
11649
11650         renameat: Optimize code size.
11651         * modules/renameat (configure.ac): Don't compile at-func2.c if
11652         REPLACE_RENAMEAT is 1.
11653
11654 2011-11-04  Bruno Haible  <bruno@clisp.org>
11655
11656         openat tests: Fix file list.
11657         * modules/openat-tests (Files): Add tests/test-open.h.
11658
11659 2011-11-04  Bruno Haible  <bruno@clisp.org>
11660
11661         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
11662         * modules/fchmodat (Depends-on): Add openat-die.
11663         * modules/fchownat (Depends-on): Likewise.
11664         * modules/linkat (Depends-on): Likewise.
11665         * modules/renameat (Depends-on): Likewise.
11666         * modules/openat (Depends-on): Add dirent.
11667
11668 2011-11-04  Jim Meyering  <meyering@redhat.com>
11669
11670         at-func*.c: fix comments
11671         * lib/at-func2.c: Correct/improve first-line comment.
11672         * lib/at-func.c: Correct grammar in first-line comment.
11673
11674 2011-11-04  Bruno Haible  <bruno@clisp.org>
11675
11676         New module 'mkdirat', split off from module 'openat'.
11677         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
11678         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
11679         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
11680         * modules/mkdirat: New file, extracted from modules/openat.
11681         * modules/openat (Files): Remove lib/mkdirat.c.
11682         (Depends-on): Remove mkdir.
11683         (configure.ac): Remove AC_LIBOBJ of mkdirat.
11684         (Include): Remove <sys/stat.h>.
11685         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
11686         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
11687         tests/test-mkdir.h.
11688         (Depends-on): Remove ignore-value.
11689         (Makefile.am): Remove rules for test-mkdirat.
11690         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
11691         of module 'openat'.
11692         * NEWS: Mention the change.
11693
11694 2011-11-04  Bruno Haible  <bruno@clisp.org>
11695
11696         closedir: Avoid warning on mingw.
11697         * lib/closedir.c: Include <unistd.h>.
11698
11699 2011-11-04  Bruno Haible  <bruno@clisp.org>
11700
11701         New module 'fstatat', split off from module 'openat'.
11702         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
11703         defined.
11704         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
11705         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
11706         gl_FUNC_FSTATAT.
11707         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
11708         * modules/fstatat: New file, extracted from modules/openat.
11709         * modules/openat (Files): Remove lib/fstatat.c.
11710         (Depends-on): Remove lstat.
11711         (configure.ac): Remove AC_LIBOBJ of fstatat.
11712         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
11713         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
11714         tests/test-lstat.h, tests/test-stat.h.
11715         (Depends-on): Remove getcwd-lgpl.
11716         (Makefile.am): Remove rules for test-fstatat.
11717         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
11718         of module 'openat'.
11719         * NEWS: Mention the change.
11720         * modules/getcwd (Depends-on): Add fstatat.
11721         * modules/linkat (Depends-on): Likewise.
11722         * modules/mkfifoat-tests (Depends-on): Likewise.
11723         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
11724
11725 2011-11-03  Bruno Haible  <bruno@clisp.org>
11726
11727         New module 'unlinkat', split off from module 'openat'.
11728         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
11729         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
11730         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
11731         * modules/unlinkat: New file, extracted from modules/openat. Correct
11732         the dependency conditions.
11733         * modules/openat (Files): Remove lib/unlinkat.c.
11734         (Depends-on): Remove rmdir, unlink.
11735         (configure.ac): Remove AC_LIBOBJ of unlinkat.
11736         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
11737         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
11738         tests/test-rmdir.h, tests/test-unlink.h.
11739         (Depends-on): Remove unlinkdir.
11740         (Makefile.am): Remove rules for test-unlinkat.
11741         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
11742         of module 'openat'.
11743         * NEWS: Mention the change.
11744         * modules/linkat-tests (Depends-on): Add unlinkat.
11745         * modules/mkfifoat-tests (Depends-on): Likewise.
11746         * modules/readlinkat-tests (Depends-on): Likewise.
11747
11748 2011-11-02  Bruno Haible  <bruno@clisp.org>
11749
11750         New module 'fchmodat', split off from module 'openat'.
11751         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
11752         defined.
11753         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
11754         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
11755         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
11756         * modules/fchmodat: New file, extracted from modules/openat.
11757         * modules/openat (Files): Remove lib/fchmodat.c.
11758         (configure.ac): Remove AC_LIBOBJ of fchmodat.
11759         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
11760         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
11761         (Makefile.am): Remove rules for test-fchmodat.
11762         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
11763         of module 'openat'.
11764         * NEWS: Mention the change.
11765
11766 2011-11-02  Jim Meyering  <meyering@redhat.com>
11767
11768         putenv: indent #definition of "environ" to placate cppi
11769         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
11770
11771         gitlog-to-changelog: provide a ChangeLog-repair mechanism
11772         Git logs are often treated as immutable, because editing them
11773         changes the SHA1 checksums of all descendants.  Thus, errors in
11774         git logs tend to stay there forever.  However, when we generate
11775         a ChangeLog file -- typically for distribution -- from that git log,
11776         we can actually make corrections in the generated file.  The key
11777         lies in recording in machine-readable/applicable form the desired
11778         corrections.  See --help for description and an example.
11779         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
11780         (usage): Describe it; alphabetize option descriptions.
11781         (main): Honor the new option, carefully.
11782
11783 2011-11-01  Jim Meyering  <meyering@redhat.com>
11784
11785         gitlog-to-changelog: avoid an infloop
11786         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
11787         that ends up being empty.
11788
11789 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11790
11791         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
11792         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
11793         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
11794         contains (possibly-quoted) backslashes.  This should avoid
11795         all-too-common shell bugs if COMPLICATED contains backslashes in
11796         the "wrong" places.  Reported by David Evans in
11797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
11798         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
11799         because we want ASCII ranges.  Is there some reason we don't use
11800         the C locale everywhere in this script?
11801         (func_module, top level): Avoid unwanted pathname expansion when
11802         $repo_url_prefix or $repo_url_suffix_repl contain shell
11803         metacharacters like '?' and '*'.
11804
11805 2011-11-01  Bruno Haible  <bruno@clisp.org>
11806
11807         fchownat: Improve description.
11808         * modules/fchownat (Description): Add link to function.
11809
11810 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11811
11812         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
11813         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
11814         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
11815         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
11816
11817 2011-11-01  Bruno Haible  <bruno@clisp.org>
11818
11819         alignof: Avoid collision with stdalign module.
11820         * lib/alignof.h (alignof): Remove macro.
11821         * NEWS: Mention the change.
11822         Reported by Paul Eggert.
11823
11824 2011-11-01  Bruno Haible  <bruno@clisp.org>
11825
11826         New module 'fchownat', split off from module 'openat'.
11827         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
11828         defined.
11829         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
11830         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
11831         invoke gl_FUNC_FCHOWNAT.
11832         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
11833         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
11834         * modules/fchownat: New file, extracted from modules/openat.
11835         * modules/openat (Files): Remove lib/fchownat.c.
11836         (Depends-on): Remove lchown.
11837         (configure.ac): Remove AC_LIBOBJ of fchownat.
11838         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
11839         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
11840         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
11841         (Depends-on): Remove mgetgroups, usleep, stat-time.
11842         (configure.ac): Remove test for getegid.
11843         (Makefile.am): Remove rules for test-fchownat.
11844         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
11845         of module 'openat'.
11846         * NEWS: Mention the change.
11847
11848 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
11849
11850         stdalign: port better to MSVC and to Sun C 5.11
11851         This fixes some of the problems reported by Bruno Haible in
11852         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
11853         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
11854         shortcomings of MSVC and of Sun C 5.11.
11855         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
11856         around __declspec arg.
11857         * modules/stdalign-tests (Files): Add tests/macros.h.
11858         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
11859         Include macros.h, for ASSERT.
11860         (DECLARE_ALIGNED): Remove.
11861         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
11862         to catch bug), and to 1 if not (simplifies the rest of the code).
11863         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
11864         (CHECK_AUTO): Remove.
11865         (CHECK_ALIGNED): Check only the alignment of the static vars,
11866         since auto var alignment isn't supported by Sun C 5.11.
11867         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
11868         ASSERT failures are easier to diagnose.
11869
11870 2011-10-31  Bruno Haible  <bruno@clisp.org>
11871
11872         doc about some IRIX 5.3 problems.
11873         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
11874         on IRIX 5.3.
11875         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
11876         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
11877         5.3.
11878         * doc/posix-functions/grantpt.texi: Likewise.
11879         * doc/posix-functions/unlockpt.texi: Likewise.
11880         * doc/posix-functions/lgamma.texi: Likewise.
11881         * doc/posix-functions/nextafter.texi: Likewise.
11882         * doc/posix-functions/remainder.texi: Likewise.
11883         * doc/posix-functions/select.texi: Mention misplaced declaration on
11884         IRIX 5.3.
11885         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11886
11887 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
11888
11889         gitlog-to-changelog: fix git-log invocation.
11890         git-log mishandles date strings before 1970-01-01 UTC, and there is
11891         no use to specify --since=1970-01-01 by default anyway.
11892         * build-aux/gitlog-to-changelog: By default, when no --since option
11893         was given, do not specify explicit --since option to git-log.
11894
11895 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
11896
11897         gitlog-to-changelog: new option --append-dot.
11898         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
11899         first non-blank line of each commit message terminated with a dot.
11900
11901 2011-10-30  Bruno Haible  <bruno@clisp.org>
11902
11903         ffsl, ffsll: Avoid compilation error due to 'restrict'.
11904         * lib/ffsl.h: Include <config.h>.
11905         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
11906
11907 2011-10-30  Jim Meyering  <meyering@redhat.com>
11908
11909         GNUmakefile: reenable "make syntax-check" for most projects
11910         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
11911         build-aux variable", "syntax-check" would do nothing but succeed with
11912         the "No version control files detected..." diagnostic (unless you
11913         happened to override _build-aux via cfg.mk).
11914         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
11915         to precede inclusion of maint.mk.  Otherwise, these variables would
11916         be used undefined in any project that does not override the default.
11917
11918 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
11919
11920         gitlog-to-changelog: treat a message with only blank lines as empty.
11921         * build-aux/gitlog-to-changelog: Move the code that removes leading and
11922         trailing blank lines before the code that issues a warning about an
11923         empty commit message.
11924
11925 2011-10-30  Jim Meyering  <meyering@redhat.com>
11926
11927         test-parse-datetime.c: avoid new DST-related false positive test failure
11928         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
11929         based on the time/date we'll convert, not the current time.
11930         Otherwise, the moment we cross a DST boundary like today's in
11931         Europe, (CEST to CET), that offset ends up being one hour off.
11932
11933 2011-10-27  Bruno Haible  <bruno@clisp.org>
11934
11935         fstat: Tweak documentation.
11936         * modules/fstat (Description): More precise description.
11937
11938 2011-10-27  Bruno Haible  <bruno@clisp.org>
11939
11940         Update documentation regarding 'largefile' module.
11941         * doc/posix-functions/fstat.texi: Tweak wording.
11942         * doc/posix-functions/opendir.texi: Mention that the module fixes the
11943         problems with huge directories and/or small ino_t types.
11944         * doc/posix-functions/readdir.texi: Likewise.
11945         * doc/posix-functions/rewinddir.texi: Likewise.
11946
11947 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
11948
11949         maint.mk: don't maintain a second build-aux variable.
11950         * maint.mk (build_aux): Removed.  The maintainer-makefile module
11951         depends on GNUmakefile, which already maintains a cfg.mk
11952         overridable $(_build-aux) for projects with a non-standard
11953         build-aux directory location, although without the $(srcdir)
11954         prefix.  Use that variable consistently instead of introducing a
11955         second one.  Adjust all call sites.
11956
11957 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
11958
11959         Add stdalign module and use it in other modules.
11960         This is based on a previous proposal by Bruno Haible
11961         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
11962
11963         stdalign: new module
11964         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
11965         * modules/stdalign: New files.
11966         * MODULES.html.sh (c1x_core_properties): Add stdalign.
11967         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
11968
11969         stdalign-tests: new module
11970         * modules/stdalign-tests, tests/test-stdalign.c: New files.
11971
11972         argp: use stdalign
11973         * lib/argp-parse.c: Include <stdalign.h>.
11974         (alignof): Remove.
11975         * modules/argp (Depends-on): Add stdalign.
11976
11977         crypto libraries: use stdalign
11978         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
11979         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
11980         Do not include <stdlib.h> twice, in md4.c.
11981         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
11982         because we are accessing a pointer's bit-pattern, not a size.
11983         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
11984         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
11985         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
11986         * modules/crypto/sha512: Likewise.
11987
11988         sys_socket: use stdalign, not alignof
11989         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
11990         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
11991
11992 2011-10-27  Bruno Haible  <bruno@clisp.org>
11993
11994         raise test: Avoid a test failure on Linux/MIPS.
11995         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
11996         because 99 is a valid signal on Linux/MIPS.
11997
11998 2011-10-27  Bruno Haible  <bruno@clisp.org>
11999
12000         nonblocking tests: Fix test failure on Linux/MIPS.
12001         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
12002         Set to 270000.
12003
12004 2011-10-27  Bruno Haible  <bruno@clisp.org>
12005
12006         utimensat: Work around problem on Linux/hppa.
12007         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
12008         values.
12009         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
12010
12011 2011-10-25  Jim Meyering  <meyering@redhat.com>
12012
12013         maint.mk: fix a bug in sc_prohibit_stddef_without_use
12014         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
12015         after symbols like NULL, size_t, etc.
12016         Reported by Alfred M. Szmidt.
12017
12018         maint.mk: exempt ENODATA from a syntax-check rule
12019         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
12020         from the sc_prohibit_always-defined_macros syntax-check rule.
12021         Add a comment.  See this for more details:
12022         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
12023
12024 2011-10-23  Jim Meyering  <meyering@redhat.com>
12025
12026         fts: close parent dir FD before returning from post-traversal fts_read
12027         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
12028         unlink A, even though an FD open on A remained.  This is suboptimal
12029         (holding a file descriptor open longer than needed), but otherwise not
12030         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
12031         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
12032         that represents a real problem: it causes the removal of A to fail
12033         with e.g., "rm: cannot remove `A': Device or resource busy"
12034
12035         fts visits each directory twice and keeps a cache (fts_fd_ring) of
12036         directory file descriptors.  After completing the final, FTS_DP,
12037         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
12038         cache, but then proceeded to add a new FD to it via the subsequent
12039         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
12040         final file descriptor would be closed only via fts_close's call to
12041         fd_ring_clear.  Now, it is usually closed earlier, via the final
12042         FTS_DP-returning fts_read call.
12043         * lib/fts.c (restore_initial_cwd): New function, converted from
12044         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
12045         Update callers.
12046         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
12047         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
12048
12049 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
12050             Bruno Haible  <bruno@clisp.org>
12051             Jim Meyering  <jim@meyering.net>
12052
12053         readme-release: improve safety of release prep instructions.
12054         * README-release: Don't git pull all branches when only master
12055         is needed for the release process.
12056         Run make maintainer-clean before changing trees and merging.
12057         Don't try to run ./configure right after git pull in case files
12058         that influence the bootstrap process have changed, move the
12059         ./configure step to after running ./bootstrap.
12060         Don't bootstrap "one last time"... it's the first time!
12061
12062 2011-10-22  Bruno Haible  <bruno@clisp.org>
12063
12064         errno, strerror-override: Support for MSVC 10.
12065         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
12066         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
12067         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
12068         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
12069         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
12070         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
12071         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
12072         Assign values compatible with MSVC 10.
12073         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
12074         New macros.
12075         (GNULIB_defined_EWINSOCK): New macro.
12076         * lib/strerror-override.c (strerror_override): Update accordingly.
12077         * lib/strerror-override.h: Likewise.
12078         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
12079         longer equal to the corresponding errno value.
12080         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12081
12082 2011-10-22  Bruno Haible  <bruno@clisp.org>
12083
12084         perror: Recognize when test program crashes.
12085         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
12086         strerror, set gl_cv_func_perror_works to no.
12087         Reported by Daniel Richard G. <skunk@iskunk.org>.
12088
12089         perror: Fix indentation.
12090         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
12091
12092 2011-10-22  Bruno Haible  <bruno@clisp.org>
12093
12094         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
12095         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
12096         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
12097         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
12098         functions, not as a macro.
12099         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
12100         macros.
12101         (isfinite, isinf, isnan, signbit): Check overloaded functions and
12102         absence of macro.
12103         Suggested by Eric Blake.
12104         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12105
12106 2011-10-21  Bruno Haible  <bruno@clisp.org>
12107
12108         relocatable-prog-wrapper: Don't leave object files behind.
12109         * build-aux/install-reloc: Re-synchronize list of .o files to be
12110         removed with list of compilation units.
12111
12112 2011-10-20  Bruno Haible  <bruno@clisp.org>
12113
12114         openpty, posix_openpt: Remove code duplication.
12115         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
12116         * lib/openpty.c: Include <stdlib.h>.
12117         (openpty): Use posix_openpt on all platforms except IRIX.
12118         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
12119
12120 2011-10-20  Bruno Haible  <bruno@clisp.org>
12121
12122         unlockpt: Detect invalid argument.
12123         * lib/unlockpt.c: Include <fcntl.h>.
12124         (unlockpt): Check whether fd is valid, using fcntl().
12125         * modules/unlockpt (Depends-on): Add fcntl-h.
12126
12127 2011-10-20  Bruno Haible  <bruno@clisp.org>
12128
12129         openpty: Avoid compilation error on AIX 6.1.
12130         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
12131
12132 2011-10-20  Bruno Haible  <bruno@clisp.org>
12133
12134         posix_openpt: Support for OpenBSD.
12135         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
12136         (posix_openpt) [OpenBSD]: New code.
12137         * lib/grantpt.c: Include <fcntl.h>.
12138         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
12139         * modules/grantpt (Depends-on): Add fcntl-h.
12140
12141 2011-10-20  Bruno Haible  <bruno@clisp.org>
12142
12143         posix_openpt test: Coding style.
12144         * tests/test-posix_openpt.c: Use GNU coding style.
12145
12146 2011-10-20  Bruno Haible  <bruno@clisp.org>
12147
12148         grantpt: Support --avoid=pt_chown.
12149         * modules/grantpt (Files): Add lib/pty-private.h.
12150
12151 2011-10-20  Bruno Haible  <bruno@clisp.org>
12152
12153         posix_openpt: Fix autoconf macro.
12154         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
12155         unneeded check for _getpty.
12156
12157 2011-10-20  Bruno Haible  <bruno@clisp.org>
12158
12159         openpty: Update comments.
12160         * lib/openpty.c: Add comments about Minix.
12161
12162 2011-10-19  Eric Blake  <eblake@redhat.com>
12163
12164         openpty: relax license
12165         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
12166
12167         pt_chown: use configmake to simplify build
12168         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
12169
12170         ptsname and others: relax license
12171         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
12172         * modules/unlockpt (License): Likewise.
12173         * modules/pt_chown (License): Likewise.
12174         * modules/ptsname (License): Likewise.
12175         * modules/ttyname_r (License): Likewise.
12176
12177 2011-10-19  Jim Meyering  <meyering@redhat.com>
12178
12179         posix_openpt: remove spurious #endif
12180         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
12181
12182 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
12183
12184         maint.mk: Respect $(build_aux) in web-manual rule.
12185         * top/maint.mk (web-manual): Find gen-announce script in user's
12186         $(build_aux) directory instead of hard-coding 'build-aux'.
12187
12188 2011-10-19  Bruno Haible  <bruno@clisp.org>
12189
12190         posix_openpt: Fix compilation error.
12191         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
12192         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
12193         Mention the openpty module as an alternative.
12194
12195 2011-10-19  Bruno Haible  <bruno@clisp.org>
12196
12197         Support for old NeXTstep 3.3 frexp().
12198         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
12199         execution time of the test to 5 seconds.
12200         Reported by Daniel Richard G. <skunk@iskunk.org>.
12201
12202 2011-10-19  Bruno Haible  <bruno@clisp.org>
12203
12204         Support for old NeXTstep 3.3 sed.
12205         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
12206         part, use /.../, not \|...|. Escape periods in the header file name.
12207         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12208         Reported by Daniel Richard G. <skunk@iskunk.org>.
12209
12210 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12211
12212         Support for old NeXTstep 3.3 gcc.
12213         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
12214         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
12215         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
12216         * lib/spawn.in.h (_Restrict_arr_): Likewise.
12217         * lib/regex.h (_Restrict_arr_): Likewise.
12218         * lib/regex_internal.h (re_token_t): Likewise.
12219         * lib/regexec.c (check_node_accept_bytes): Likewise.
12220         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
12221
12222 2011-10-18  Eric Blake  <eblake@redhat.com>
12223
12224         posix_openpt: new module
12225         * modules/posix_openpt: New module.
12226         * m4/posix_openpt.m4: New file.
12227         * lib/posix_openpt.c: Likewise.
12228         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
12229         (gl_STDLIB_H_DEFAULTS): Set defaults.
12230         * modules/stdlib (Makefile.am): Substitute macros.
12231         * lib/stdlib.in.h (posix_openpt): Declare.
12232         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
12233         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
12234         * modules/posix_openpt-tests: New test module.
12235         * tests/test-posix_openpt.c: New test.
12236
12237 2011-10-15  Bruno Haible  <bruno@clisp.org>
12238
12239         xstrtoll: Fix compilation failure.
12240         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
12241         from lib/strtol.c.
12242         * doc/posix-headers/limits.texi: Mention missing numerical limits on
12243         some platforms.
12244         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12245
12246 2011-10-15  Bruno Haible  <bruno@clisp.org>
12247
12248         vasnprintf: Optimize bit search operation.
12249         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
12250         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
12251         gl_DOUBLE_EXPONENT_LOCATION.
12252         * modules/vasnprintf (Files): Add m4/exponentd.m4.
12253         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12254         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12255         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12256         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12257         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12258         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12259         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12260         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
12261
12262 2011-10-15  Bruno Haible  <bruno@clisp.org>
12263
12264         vasnprintf: Fix comments.
12265         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
12266
12267 2011-10-14  Bruno Haible  <bruno@clisp.org>
12268
12269         Tests for module 'integer_length_ll'.
12270         * modules/integer_length_ll-tests: New file.
12271         * tests/test-integer_length_ll.c: New file.
12272
12273         New module 'integer_length_ll'.
12274         * lib/integer_length_ll.c: New file.
12275         * modules/integer_length_ll: New file.
12276
12277 2011-10-14  Bruno Haible  <bruno@clisp.org>
12278
12279         Tests for module 'integer_length_l'.
12280         * modules/integer_length_l-tests: New file.
12281         * tests/test-integer_length_l.c: New file.
12282
12283         New module 'integer_length_l'.
12284         * lib/integer_length_l.c: New file.
12285         * modules/integer_length_l: New file.
12286
12287 2011-10-14  Bruno Haible  <bruno@clisp.org>
12288
12289         Tests for module 'integer_length'.
12290         * modules/integer_length-tests: New file.
12291         * tests/test-integer_length.c: New file.
12292
12293         New module 'integer_length'.
12294         * lib/integer_length.h: New file.
12295         * lib/integer_length.c: New file.
12296         * modules/integer_length: New file.
12297
12298 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12299
12300         popen: Fix dependency conditions.
12301         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
12302
12303 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12304
12305         perror: Fix autoconf test.
12306         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
12307         <stdlib.h> and <string.h>.
12308
12309 2011-10-14  Bruno Haible  <bruno@clisp.org>
12310
12311         ffsl: Optimize on 64-bit platforms.
12312         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
12313         unrolling.
12314
12315 2011-10-13  Bruno Haible  <bruno@clisp.org>
12316
12317         ffsl: Optimize on 32-bit platforms.
12318         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
12319         use ffs() without a loop.
12320
12321         ffsl, ffsll: Optimize for GCC.
12322         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
12323         * lib/ffsl.c (GCC_BUILTIN): New macro.
12324         * lib/ffsll.c (GCC_BUILTIN): Likewise.
12325
12326 2011-10-13  Bruno Haible  <bruno@clisp.org>
12327
12328         ffs, bcopy, memset: Support symbol renaming via config.h.
12329         * lib/ffs.c: Include <config.h>.
12330         * lib/bcopy.c: Likewise.
12331         * lib/memset.c: Likewise.
12332
12333 2011-10-10  Bruno Haible  <bruno@clisp.org>
12334
12335         atanl: Simplify for platforms where 'long double' == 'double'.
12336         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12337         alternative implementation.
12338         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12339         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12340         * modules/atanl (Depends-on): Add atan. Update conditions.
12341
12342 2011-10-10  Bruno Haible  <bruno@clisp.org>
12343
12344         acosl: Simplify for platforms where 'long double' == 'double'.
12345         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12346         alternative implementation.
12347         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12348         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12349         * modules/acosl (Depends-on): Add acos. Update conditions.
12350
12351 2011-10-10  Bruno Haible  <bruno@clisp.org>
12352
12353         asinl: Simplify for platforms where 'long double' == 'double'.
12354         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12355         alternative implementation.
12356         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12357         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12358         * modules/asinl (Depends-on): Add asin. Update conditions.
12359
12360 2011-10-10  Bruno Haible  <bruno@clisp.org>
12361
12362         tanl: Simplify for platforms where 'long double' == 'double'.
12363         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12364         implementation.
12365         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12366         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12367         * modules/tanl (Depends-on): Add tan. Update conditions.
12368         (configure.ac): Don't compile trigl.c if
12369         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12370
12371 2011-10-10  Bruno Haible  <bruno@clisp.org>
12372
12373         cosl: Simplify for platforms where 'long double' == 'double'.
12374         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12375         implementation.
12376         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12377         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12378         * modules/cosl (Depends-on): Add cos. Update conditions.
12379         (configure.ac): Don't compile sincosl.c and trigl.c if
12380         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12381
12382 2011-10-10  Bruno Haible  <bruno@clisp.org>
12383
12384         sinl: Simplify for platforms where 'long double' == 'double'.
12385         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12386         implementation.
12387         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12388         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12389         * modules/sinl (Depends-on): Add sin. Update conditions.
12390         (configure.ac): Don't compile sincosl.c and trigl.c if
12391         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12392
12393 2011-10-10  Bruno Haible  <bruno@clisp.org>
12394
12395         logl: Simplify for platforms where 'long double' == 'double'.
12396         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12397         implementation.
12398         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12399         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12400         * modules/logl (Depends-on): Add log. Update conditions.
12401
12402 2011-10-10  Bruno Haible  <bruno@clisp.org>
12403
12404         expl: Simplify for platforms where 'long double' == 'double'.
12405         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12406         implementation.
12407         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12408         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12409         * modules/expl (Depends-on): Add exp. Update conditions.
12410
12411 2011-10-10  Bruno Haible  <bruno@clisp.org>
12412
12413         sqrtl: Simplify for platforms where 'long double' == 'double'.
12414         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12415         alternative implementation.
12416         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12417         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12418         * modules/sqrtl (Depends-on): Update conditions.
12419
12420 2011-10-10  Bruno Haible  <bruno@clisp.org>
12421
12422         ldexpl: Simplify for platforms where 'long double' == 'double'.
12423         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12424         alternative implementation.
12425         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12426         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12427         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
12428
12429 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
12430
12431         ffsll: set correct witness
12432         * modules/ffsll (configure.ac): Fix typo.
12433
12434 2011-10-10  Bruno Haible  <bruno@clisp.org>
12435
12436         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
12437         * lib/printf-frexpl.c: Include <config.h>.
12438         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12439         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
12440         second time.
12441         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
12442         gl_LONG_DOUBLE_VS_DOUBLE.
12443         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
12444         conditions.
12445
12446 2011-10-10  Bruno Haible  <bruno@clisp.org>
12447
12448         frexpl: Simplify for platforms where 'long double' == 'double'.
12449         * lib/frexpl.c: Include <config.h>.
12450         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12451         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12452         time.
12453         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12454         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12455         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
12456         * modules/frexpl (Depends-on): Add frexp. Update conditions.
12457         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
12458         conditions.
12459
12460 2011-10-10  Jim Meyering  <meyering@redhat.com>
12461
12462         test-renameat: don't leave behind a temporary file
12463         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
12464           ERROR: files left in build directory after distclean:
12465           ./gltests/test-renameat.too
12466           make[1]: *** [distcleancheck] Error 1
12467         Reported by Tom G. Christensen.
12468
12469 2011-10-09  Bruno Haible  <bruno@clisp.org>
12470
12471         rint: Determine RINT_LIBM correctly on AIX 7.
12472         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
12473         directly, not only through a function pointer. Also accept an optional
12474         4th argument with extra code.
12475         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
12476         rintf() call by gcc when optimizing.
12477
12478         mathfunc.m4: Refactor.
12479         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
12480         m4 variable.
12481
12482 2011-10-09  Bruno Haible  <bruno@clisp.org>
12483
12484         rintl: Simplify for platforms where 'long double' == 'double'.
12485         * lib/rintl.c: Include <config.h>.
12486         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12487         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12488         time.
12489         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12490         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12491         * modules/rintl (Depends-on): Add rint. Update conditions.
12492
12493 2011-10-09  Bruno Haible  <bruno@clisp.org>
12494
12495         roundl: Simplify for platforms where 'long double' == 'double'.
12496         * lib/roundl.c: Include <config.h>.
12497         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12498         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12499         time.
12500         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12501         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12502         * modules/roundl (Depends-on): Add round. Update conditions.
12503
12504 2011-10-09  Bruno Haible  <bruno@clisp.org>
12505
12506         truncl: Simplify for platforms where 'long double' == 'double'.
12507         * lib/truncl.c: Include <config.h>.
12508         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12509         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12510         time.
12511         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12512         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12513         * modules/truncl (Depends-on): Add trunc. Update conditions.
12514
12515 2011-10-09  Bruno Haible  <bruno@clisp.org>
12516
12517         ceill: Simplify for platforms where 'long double' == 'double'.
12518         * lib/ceill.c: Include <config.h>.
12519         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12520         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12521         time.
12522         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12523         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12524         * modules/ceill (Depends-on): Add ceil. Update conditions.
12525
12526 2011-10-09  Bruno Haible  <bruno@clisp.org>
12527
12528         floorl: Simplify for platforms where 'long double' == 'double'.
12529         * lib/floorl.c: Include <config.h>.
12530         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12531         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12532         time.
12533         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12534         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12535         * modules/floorl (Depends-on): Add floor. Update conditions.
12536
12537 2011-10-09  Bruno Haible  <bruno@clisp.org>
12538
12539         rint: Fix ordering constraints.
12540         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
12541         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
12542         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
12543
12544 2011-10-09  Bruno Haible  <bruno@clisp.org>
12545
12546         copysignl: Simplify for platforms where 'long double' == 'double'.
12547         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12548         alternative.
12549         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12550         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12551         * modules/copysignl (Depends-on): Add copysign. Update conditions.
12552
12553 2011-10-09  Bruno Haible  <bruno@clisp.org>
12554
12555         Tests for module 'rintl'.
12556         * modules/rintl-tests: New file.
12557         * tests/test-rintl.c: New file.
12558
12559         New module 'rintl'.
12560         * lib/math.in.h (rintl): New declaration.
12561         * lib/rintl.c: New file.
12562         * m4/rintl.m4: New file.
12563         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
12564         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
12565         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
12566         * modules/rintl: New file.
12567         * tests/test-math-c++.cc: Check the declaration of rintl.
12568         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12569         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
12570         * doc/posix-functions/rintl.texi: Mention the new module.
12571
12572 2011-10-09  Bruno Haible  <bruno@clisp.org>
12573
12574         Tests for module 'rintf'.
12575         * modules/rintf-tests: New file.
12576         * tests/test-rintf.c: New file.
12577
12578         New module 'rintf'.
12579         * lib/math.in.h (rintf): New declaration.
12580         * lib/rintf.c: New file.
12581         * m4/rintf.m4: New file.
12582         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
12583         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
12584         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
12585         * modules/rintf: New file.
12586         * tests/test-math-c++.cc: Check the declaration of rintf.
12587         * doc/posix-functions/rintf.texi: Mention the new module.
12588
12589 2011-10-09  Bruno Haible  <bruno@clisp.org>
12590
12591         rint: Support for MSVC.
12592         * lib/math.in.h (rint): New declaration.
12593         * lib/rint.c: New file.
12594         * m4/rint.m4: New file.
12595         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
12596         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
12597         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
12598         * modules/rint (Description): Fix.
12599         (Files): Add lib/rint.c, m4/rint.m4.
12600         (Depends-on): Add math.
12601         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
12602         gl_MATH_MODULE_INDICATOR.
12603         * tests/test-math-c++.cc: Check the declaration of rint.
12604         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12605         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
12606         * doc/posix-functions/rint.texi: Mention the replacement provided by
12607         the module.
12608
12609         rint tests: More tests.
12610         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
12611         minus-zero.h, infinity.h, nan.h.
12612         (main): Skip the test if the current rounding mode is not standard. Add
12613         tests for negative numbers, minus zero, infinity, NaN.
12614         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
12615         tests/nan.h.
12616         (Depends-on): Add isnand-nolibm.
12617
12618 2011-10-09  Bruno Haible  <bruno@clisp.org>
12619
12620         Tests for module 'copysignl'.
12621         * modules/copysignl-tests: New file.
12622         * tests/test-copysignl.c: New file.
12623
12624         New module 'copysignl'.
12625         * lib/math.in.h (copysignl): New declaration.
12626         * lib/copysignl.c: New file.
12627         * m4/copysignl.m4: New file.
12628         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
12629         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
12630         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
12631         HAVE_COPYSIGNL.
12632         * modules/copysignl: New file.
12633         * tests/test-math-c++.cc: Check the declaration of copysignl.
12634         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12635         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
12636         * doc/posix-functions/copysignl.texi: Mention the new module.
12637
12638 2011-10-09  Bruno Haible  <bruno@clisp.org>
12639
12640         Tests for module 'copysignf'.
12641         * modules/copysignf-tests: New file.
12642         * tests/test-copysignf.c: New file.
12643
12644         New module 'copysignf'.
12645         * lib/math.in.h (copysignf): New declaration.
12646         * lib/copysignf.c: New file.
12647         * m4/copysignf.m4: New file.
12648         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
12649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
12650         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
12651         HAVE_COPYSIGNF.
12652         * modules/copysignf: New file.
12653         * tests/test-math-c++.cc: Check the declaration of copysignf.
12654         * doc/posix-functions/copysignf.texi: Mention the new module.
12655
12656 2011-10-09  Bruno Haible  <bruno@clisp.org>
12657
12658         Ensure that HAVE_* variables are set to 1 before they are set to 0.
12659         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
12660         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
12661         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12662         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
12663         gl_SIGNAL_H_DEFAULTS.
12664
12665 2011-10-09  Bruno Haible  <bruno@clisp.org>
12666
12667         poll: Make macro safer.
12668         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
12669         ac_cv_header_poll_h is not set.
12670
12671 2011-10-09  Bruno Haible  <bruno@clisp.org>
12672
12673         copysign: Provide replacement.
12674         * lib/math.in.h (copysign): New declaration.
12675         * lib/copysign.c: New file.
12676         * m4/copysign.m4: New file.
12677         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
12678         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
12679         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
12680         HAVE_COPYSIGN.
12681         * modules/copysign (Description): Clarify.
12682         (Files): Add lib/copysign.c, m4/copysign.m4.
12683         (Depends-on): Add math, signbit.
12684         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
12685         gl_MATH_MODULE_INDICATOR.
12686         * tests/test-math-c++.cc: Check the declaration of copysign.
12687         * doc/posix-functions/copysign.texi: Mention the effects of the module
12688         on Minix and MSVC.
12689
12690 2011-10-09  Bruno Haible  <bruno@clisp.org>
12691
12692         isinf: Ensure macro on AIX 5.1.
12693         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
12694         macro.
12695         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
12696
12697 2011-10-09  Bruno Haible  <bruno@clisp.org>
12698
12699         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
12700         * modules/snprintf-posix-tests (configure.ac): Require
12701         gl_LONG_DOUBLE_VS_DOUBLE.
12702         * modules/sprintf-posix-tests (configure.ac): Likewise.
12703         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
12704         * modules/vasprintf-posix-tests (configure.ac): Likewise.
12705         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
12706         * modules/vsprintf-posix-tests (configure.ac): Likewise.
12707         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
12708         tests on platforms where 'long double' is the same as 'double'.
12709         * tests/test-sprintf-posix.h (test_function): Likewise.
12710         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12711         * tests/test-vasprintf-posix.c (test_function): Likewise.
12712
12713         *printf: Fix for platforms where 'long double' == 'double'.
12714         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12715         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
12716         * modules/dprintf-posix (Files): Add m4/math_h.m4.
12717         * modules/fprintf-posix (Files): Likewise.
12718         * modules/obstack-printf-posix (Files): Likewise.
12719         * modules/snprintf-posix (Files): Likewise.
12720         * modules/sprintf-posix (Files): Likewise.
12721         * modules/vasnprintf (Files): Likewise.
12722         * modules/vasnprintf-posix (Files): Likewise.
12723         * modules/vasprintf-posix (Files): Likewise.
12724         * modules/vdprintf-posix (Files): Likewise.
12725         * modules/vfprintf-posix (Files): Likewise.
12726         * modules/vsnprintf-posix (Files): Likewise.
12727         * modules/vsprintf-posix (Files): Likewise.
12728         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12729         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12730         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12731         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12732         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12733         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12734         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12735
12736         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
12737         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
12738         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12739         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
12740         'long double'.
12741         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
12742
12743         isinf: Fix for platforms where 'long double' == 'double'.
12744         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12745         Don't blindly assume 80-bit 'long double'.
12746
12747         isfinite: Fix for platforms where 'long double' == 'double'.
12748         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12749         Don't blindly assume 80-bit 'long double'.
12750
12751         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
12752         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
12753         * modules/isfinite-tests (configure.ac): Require
12754         gl_LONG_DOUBLE_VS_DOUBLE.
12755         * modules/isinf-tests (configure.ac): Likewise.
12756         * modules/isnan-tests (configure.ac): Likewise.
12757         * modules/isnanl-tests (configure.ac): Likewise.
12758         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
12759         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
12760         tests on platforms where 'long double' is the same as 'double'.
12761         * tests/test-isinf.c (test_isinfl): Likewise.
12762         * tests/test-isnan.c (test_long_double): Likewise.
12763         * tests/test-isnanl.h (main): Likewise.
12764
12765 2011-10-08  Bruno Haible  <bruno@clisp.org>
12766
12767         Tests for module 'tanhf'.
12768         * modules/tanhf-tests: New file.
12769         * tests/test-tanhf.c: New file.
12770
12771         New module 'tanhf'.
12772         * lib/math.in.h (tanhf): New declaration.
12773         * lib/tanhf.c: New file.
12774         * m4/tanhf.m4: New file.
12775         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
12776         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
12777         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
12778         * modules/tanhf: New file.
12779         * tests/test-math-c++.cc: Check the declaration of tanhf.
12780         * doc/posix-functions/tanhf.texi: Mention the new module.
12781
12782         tanh: Use a .m4 file.
12783         * m4/tanh.m4: New file.
12784         * modules/tanh (Files): Add it.
12785         (configure.ac): Just invoke gl_FUNC_TANH.
12786
12787 2011-10-08  Bruno Haible  <bruno@clisp.org>
12788
12789         Tests for module 'coshf'.
12790         * modules/coshf-tests: New file.
12791         * tests/test-coshf.c: New file.
12792
12793         New module 'coshf'.
12794         * lib/math.in.h (coshf): New declaration.
12795         * lib/coshf.c: New file.
12796         * m4/coshf.m4: New file.
12797         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
12798         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
12799         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
12800         * modules/coshf: New file.
12801         * tests/test-math-c++.cc: Check the declaration of coshf.
12802         * doc/posix-functions/coshf.texi: Mention the new module.
12803
12804         cosh: Use a .m4 file.
12805         * m4/cosh.m4: New file.
12806         * modules/cosh (Files): Add it.
12807         (configure.ac): Just invoke gl_FUNC_COSH.
12808
12809 2011-10-08  Bruno Haible  <bruno@clisp.org>
12810
12811         Tests for module 'sinhf'.
12812         * modules/sinhf-tests: New file.
12813         * tests/test-sinhf.c: New file.
12814
12815         New module 'sinhf'.
12816         * lib/math.in.h (sinhf): New declaration.
12817         * lib/sinhf.c: New file.
12818         * m4/sinhf.m4: New file.
12819         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
12820         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
12821         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
12822         * modules/sinhf: New file.
12823         * tests/test-math-c++.cc: Check the declaration of sinhf.
12824         * doc/posix-functions/sinhf.texi: Mention the new module.
12825
12826         sinh: Use a .m4 file.
12827         * m4/sinh.m4: New file.
12828         * modules/sinh (Files): Add it.
12829         (configure.ac): Just invoke gl_FUNC_SINH.
12830
12831 2011-10-08  Bruno Haible  <bruno@clisp.org>
12832
12833         Tests for module 'atan2f'.
12834         * modules/atan2f-tests: New file.
12835         * tests/test-atan2f.c: New file.
12836
12837         New module 'atan2f'.
12838         * lib/math.in.h (atan2f): New declaration.
12839         * lib/atan2f.c: New file.
12840         * m4/atan2f.m4: New file.
12841         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
12842         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
12843         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
12844         * modules/atan2f: New file.
12845         * tests/test-math-c++.cc: Check the declaration of atan2f.
12846         * doc/posix-functions/atan2f.texi: Mention the new module.
12847
12848         atan2: Use a .m4 file.
12849         * m4/atan2.m4: New file.
12850         * modules/atan2 (Files): Add it.
12851         (configure.ac): Just invoke gl_FUNC_ATAN2.
12852
12853 2011-10-08  Bruno Haible  <bruno@clisp.org>
12854
12855         Tests for module 'atanf'.
12856         * modules/atanf-tests: New file.
12857         * tests/test-atanf.c: New file.
12858
12859         New module 'atanf'.
12860         * lib/math.in.h (atanf): New declaration.
12861         * lib/atanf.c: New file.
12862         * m4/atanf.m4: New file.
12863         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
12864         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
12865         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
12866         * modules/atanf: New file.
12867         * tests/test-math-c++.cc: Check the declaration of atanf.
12868         * doc/posix-functions/atanf.texi: Mention the new module.
12869
12870         atan: Use a .m4 file.
12871         * m4/atan.m4: New file.
12872         * modules/atan (Files): Add it.
12873         (configure.ac): Just invoke gl_FUNC_ATAN.
12874
12875 2011-10-08  Bruno Haible  <bruno@clisp.org>
12876
12877         Tests for module 'acosf'.
12878         * modules/acosf-tests: New file.
12879         * tests/test-acosf.c: New file.
12880
12881         New module 'acosf'.
12882         * lib/math.in.h (acosf): New declaration.
12883         * lib/acosf.c: New file.
12884         * m4/acosf.m4: New file.
12885         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
12886         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
12887         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
12888         * modules/acosf: New file.
12889         * tests/test-math-c++.cc: Check the declaration of acosf.
12890         * doc/posix-functions/acosf.texi: Mention the new module.
12891
12892         acos: Use a .m4 file.
12893         * m4/acos.m4: New file.
12894         * modules/acos (Files): Add it.
12895         (configure.ac): Just invoke gl_FUNC_ACOS.
12896
12897 2011-10-08  Bruno Haible  <bruno@clisp.org>
12898
12899         Tests for module 'asinf'.
12900         * modules/asinf-tests: New file.
12901         * tests/test-asinf.c: New file.
12902
12903         New module 'asinf'.
12904         * lib/math.in.h (asinf): New declaration.
12905         * lib/asinf.c: New file.
12906         * m4/asinf.m4: New file.
12907         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
12908         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
12909         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
12910         * modules/asinf: New file.
12911         * tests/test-math-c++.cc: Check the declaration of asinf.
12912         * doc/posix-functions/asinf.texi: Mention the new module.
12913
12914         asin: Use a .m4 file.
12915         * m4/asin.m4: New file.
12916         * modules/asin (Files): Add it.
12917         (configure.ac): Just invoke gl_FUNC_ASIN.
12918
12919 2011-10-08  Bruno Haible  <bruno@clisp.org>
12920
12921         Tests for module 'tanf'.
12922         * modules/tanf-tests: New file.
12923         * tests/test-tanf.c: New file.
12924
12925         New module 'tanf'.
12926         * lib/math.in.h (tanf): New declaration.
12927         * lib/tanf.c: New file.
12928         * m4/tanf.m4: New file.
12929         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
12930         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
12931         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
12932         * modules/tanf: New file.
12933         * tests/test-math-c++.cc: Check the declaration of tanf.
12934         * doc/posix-functions/tanf.texi: Mention the new module.
12935
12936         tan: Use a .m4 file.
12937         * m4/tan.m4: New file.
12938         * modules/tan (Files): Add it.
12939         (configure.ac): Just invoke gl_FUNC_TAN.
12940
12941 2011-10-08  Bruno Haible  <bruno@clisp.org>
12942
12943         Tests for module 'cosf'.
12944         * modules/cosf-tests: New file.
12945         * tests/test-cosf.c: New file.
12946
12947         New module 'cosf'.
12948         * lib/math.in.h (cosf): New declaration.
12949         * lib/cosf.c: New file.
12950         * m4/cosf.m4: New file.
12951         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
12952         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
12953         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
12954         * modules/cosf: New file.
12955         * tests/test-math-c++.cc: Check the declaration of cosf.
12956         * doc/posix-functions/cosf.texi: Mention the new module.
12957
12958         cos: Use a .m4 file.
12959         * m4/cos.m4: New file.
12960         * modules/cos (Files): Add it.
12961         (configure.ac): Just invoke gl_FUNC_COS.
12962
12963 2011-10-08  Bruno Haible  <bruno@clisp.org>
12964
12965         Tests for module 'sinf'.
12966         * modules/sinf-tests: New file.
12967         * tests/test-sinf.c: New file.
12968
12969         New module 'sinf'.
12970         * lib/math.in.h (sinf): New declaration.
12971         * lib/sinf.c: New file.
12972         * m4/sinf.m4: New file.
12973         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
12974         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
12975         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
12976         * modules/sinf: New file.
12977         * tests/test-math-c++.cc: Check the declaration of sinf.
12978         * doc/posix-functions/sinf.texi: Mention the new module.
12979
12980         sin: Use a .m4 file.
12981         * m4/sin.m4: New file.
12982         * modules/sin (Files): Add it.
12983         (configure.ac): Just invoke gl_FUNC_SIN.
12984
12985 2011-10-08  Bruno Haible  <bruno@clisp.org>
12986
12987         Tests for module 'powf'.
12988         * modules/powf-tests: New file.
12989         * tests/test-powf.c: New file.
12990
12991         New module 'powf'.
12992         * lib/math.in.h (powf): New declaration.
12993         * lib/powf.c: New file.
12994         * m4/powf.m4: New file.
12995         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
12996         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
12997         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
12998         * modules/powf: New file.
12999         * tests/test-math-c++.cc: Check the declaration of powf.
13000         * doc/posix-functions/powf.texi: Mention the new module.
13001
13002         pow: Use a .m4 file.
13003         * m4/pow.m4: New file.
13004         * modules/pow (Files): Add it.
13005         (configure.ac): Just invoke gl_FUNC_POW.
13006
13007 2011-10-08  Bruno Haible  <bruno@clisp.org>
13008
13009         Tests for module 'log10f'.
13010         * modules/log10f-tests: New file.
13011         * tests/test-log10f.c: New file.
13012
13013         New module 'log10f'.
13014         * lib/math.in.h (log10f): New declaration.
13015         * lib/log10f.c: New file.
13016         * m4/log10f.m4: New file.
13017         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
13018         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
13019         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
13020         * modules/log10f: New file.
13021         * tests/test-math-c++.cc: Check the declaration of log10f.
13022         * doc/posix-functions/log10f.texi: Mention the new module.
13023
13024         log10: Use a .m4 file.
13025         * m4/log10.m4: New file.
13026         * modules/log10 (Files): Add it.
13027         (configure.ac): Just invoke gl_FUNC_LOG10.
13028
13029 2011-10-08  Bruno Haible  <bruno@clisp.org>
13030
13031         Tests for module 'logf'.
13032         * modules/logf-tests: New file.
13033         * tests/test-logf.c: New file.
13034
13035         New module 'logf'.
13036         * lib/math.in.h (logf): New declaration.
13037         * lib/logf.c: New file.
13038         * m4/logf.m4: New file.
13039         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
13040         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
13041         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
13042         * modules/logf: New file.
13043         * tests/test-math-c++.cc: Check the declaration of logf.
13044         * doc/posix-functions/logf.texi: Mention the new module.
13045
13046         log: Use a .m4 file.
13047         * m4/log.m4: New file.
13048         * modules/log (Files): Add it.
13049         (configure.ac): Just invoke gl_FUNC_LOG.
13050
13051 2011-10-08  Bruno Haible  <bruno@clisp.org>
13052
13053         Tests for module 'expf'.
13054         * modules/expf-tests: New file.
13055         * tests/test-expf.c: New file.
13056
13057         New module 'expf'.
13058         * lib/math.in.h (expf): New declaration.
13059         * lib/expf.c: New file.
13060         * m4/expf.m4: New file.
13061         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
13062         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
13063         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
13064         * modules/expf: New file.
13065         * tests/test-math-c++.cc: Check the declaration of expf.
13066         * doc/posix-functions/expf.texi: Mention the new module.
13067
13068         exp: Use a .m4 file.
13069         * m4/exp.m4: New file.
13070         * modules/exp (Files): Add it.
13071         (configure.ac): Just invoke gl_FUNC_EXP.
13072
13073 2011-10-08  Bruno Haible  <bruno@clisp.org>
13074
13075         Tests for module 'sqrtf'.
13076         * modules/sqrtf-tests: New file.
13077         * tests/test-sqrtf.c: New file.
13078
13079         New module 'sqrtf'.
13080         * lib/math.in.h (sqrtf): New declaration.
13081         * lib/sqrtf.c: New file.
13082         * m4/sqrtf.m4: New file.
13083         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
13084         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
13085         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
13086         * modules/sqrtf: New file.
13087         * tests/test-math-c++.cc: Check the declaration of sqrtf.
13088         * doc/posix-functions/sqrtf.texi: Mention the new module.
13089
13090 2011-10-08  Bruno Haible  <bruno@clisp.org>
13091
13092         Tests: Avoid link failures w.r.t. libintl.
13093         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
13094         $(LIBINTL).
13095         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
13096         $(LIBINTL).
13097         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
13098         against $(LIBINTL).
13099         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
13100         $(LIBINTL).
13101         * modules/openat-tests (Makefile.am): Link test-fchmodat against
13102         $(LIBINTL).
13103         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
13104
13105 2011-10-08  Bruno Haible  <bruno@clisp.org>
13106
13107         pow tests: Defeat compiler optimizations.
13108         * tests/test-pow.c (main): Assign arguments to x and y before use.
13109
13110 2011-10-08  Bruno Haible  <bruno@clisp.org>
13111
13112         gnulib-tool: Improve last commit.
13113         * gnulib-tool (func_modules_transitive_closure): Simplify code.
13114         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
13115         ignore dependencies that are not among the modules list.
13116
13117 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
13118
13119         gnulib-tool: don't follow dependencies to avoided modules
13120         This fixes a bug that is related to the previous one.
13121         * gnulib-tool (func_modules_transitive_closure)
13122         (func_emit_autoconf_snippets):
13123         Check whether a dependency is acceptable before using it.
13124         (--extract-dependencies): Report an error if --avoid is also used,
13125         since this combination of options is not yet supported.
13126
13127         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
13128         Problem reported by Peter Dyballa in
13129         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
13130         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
13131         when echoing "$condition".
13132
13133 2011-10-07  Bruno Haible  <bruno@clisp.org>
13134
13135         Fix documentation about math functions on MacOS X.
13136         * doc/posix-functions/exp2.texi: Don't say the function is missing on
13137         MacOS X 10.5.
13138         * doc/posix-functions/fdim.texi: Likewise.
13139         * doc/posix-functions/feclearexcept.texi: Likewise.
13140         * doc/posix-functions/fegetenv.texi: Likewise.
13141         * doc/posix-functions/fegetround.texi: Likewise.
13142         * doc/posix-functions/feholdexcept.texi: Likewise.
13143         * doc/posix-functions/feraiseexcept.texi: Likewise.
13144         * doc/posix-functions/fesetenv.texi: Likewise.
13145         * doc/posix-functions/fesetround.texi: Likewise.
13146         * doc/posix-functions/fetestexcept.texi: Likewise.
13147         * doc/posix-functions/feupdateenv.texi: Likewise.
13148         * doc/posix-functions/fmax.texi: Likewise.
13149         * doc/posix-functions/fmin.texi: Likewise.
13150         * doc/posix-functions/log2.texi: Likewise.
13151         * doc/posix-functions/modff.texi: Likewise.
13152         * doc/posix-functions/nan.texi: Likewise.
13153         * doc/posix-functions/nanf.texi: Likewise.
13154         * doc/posix-functions/nextafterf.texi: Likewise.
13155         * doc/posix-functions/remquo.texi: Likewise.
13156
13157 2011-10-07  Bruno Haible  <bruno@clisp.org>
13158
13159         modff: Drop assumption about library that defines modff.
13160         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
13161         AC_CHECK_FUNCS.
13162         * modules/modff (Files): Add m4/mathfunc.m4.
13163
13164 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
13165
13166         raise tests: Avoid a GCC warning.
13167         * tests/test-raise.c (handler): Use _Noreturn.
13168
13169 2011-10-07  Bruno Haible  <bruno@clisp.org>
13170
13171         Tests for module 'ldexpf'.
13172         * modules/ldexpf-tests: New file.
13173         * tests/test-ldexpf.c: New file.
13174
13175         New module 'ldexpf'.
13176         * lib/math.in.h (ldexpf): New declaration.
13177         * lib/ldexpf.c: New file.
13178         * m4/ldexpf.m4: New file.
13179         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
13180         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
13181         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
13182         * modules/ldexpf: New file.
13183         * tests/test-math-c++.cc: Check the declaration of ldexpf.
13184         * doc/posix-functions/ldexpf.texi: Mention the new module.
13185
13186 2011-10-06  Bruno Haible  <bruno@clisp.org>
13187
13188         frexpf: Work around problems on IRIX and mingw.
13189         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
13190         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
13191         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
13192         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
13193         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
13194         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
13195         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
13196
13197 2011-10-06  Bruno Haible  <bruno@clisp.org>
13198
13199         fabsf: Drop assumption about library that defines fabsf.
13200         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
13201         AC_CHECK_FUNCS.
13202         * modules/fabsf (Files): Add m4/mathfunc.m4.
13203
13204 2011-10-06  Bruno Haible  <bruno@clisp.org>
13205
13206         frexpf: Drop assumption about library that defines frexpf.
13207         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
13208         'int *', 'float *', 'long double *', 'float', 'long double'.
13209         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
13210         AC_CHECK_FUNCS.
13211         * modules/frexpf (Files): Add m4/mathfunc.m4.
13212
13213         Tests for module 'frexpf'.
13214         * modules/frexpf-tests: New file.
13215         * tests/test-frexpf.c: New file.
13216
13217         New module 'frexpf'.
13218         * lib/math.in.h (frexpf): New declaration.
13219         * lib/frexpf.c: New file.
13220         * m4/frexpf.m4: New file.
13221         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
13222         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
13223         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
13224         * modules/frexpf: New file.
13225         * tests/test-math-c++.cc: Check the declaration of frexpf.
13226         * doc/posix-functions/frexpf.texi: Mention the new module.
13227
13228 2011-10-06  Bruno Haible  <bruno@clisp.org>
13229
13230         math: Sort function declarations of math.in.h.
13231         * lib/math.in.h (frexp, logb): Move declarations.
13232
13233 2011-10-05  Bruno Haible  <bruno@clisp.org>
13234
13235         Tests for module 'modff'.
13236         * modules/modff-tests: New file.
13237         * tests/test-modff.c: New file.
13238
13239         New module 'modff'.
13240         * lib/math.in.h (modff): New declaration.
13241         * lib/modff.c: New file.
13242         * m4/modff.m4: New file.
13243         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
13244         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
13245         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
13246         * modules/modff: New file.
13247         * tests/test-math-c++.cc: Check the declaration of modff.
13248         * doc/posix-functions/modff.texi: Mention the new module.
13249
13250         modf tests: Make test sharper.
13251         * tests/test-modf.c (main): Strengthen upper bound.
13252
13253         modf: Use a .m4 file.
13254         * m4/modf.m4: New file.
13255         * modules/modf (Files): Add it.
13256         (configure.ac): Just invoke gl_FUNC_MODF.
13257
13258 2011-10-05  Bruno Haible  <bruno@clisp.org>
13259
13260         Tests for module 'fmodf'.
13261         * modules/fmodf-tests: New file.
13262         * tests/test-fmodf.c: New file.
13263
13264         New module 'fmodf'.
13265         * lib/math.in.h (fmodf): New declaration.
13266         * lib/fmodf.c: New file.
13267         * m4/fmodf.m4: New file.
13268         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
13269         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
13270         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
13271         * modules/fmodf: New file.
13272         * tests/test-math-c++.cc: Check the declaration of fmodf.
13273         * doc/posix-functions/fmodf.texi: Mention the new module.
13274
13275         fmod: Use a .m4 file.
13276         * m4/fmod.m4: New file.
13277         * modules/fmod (Files): Add it.
13278         (configure.ac): Just invoke gl_FUNC_FMOD.
13279
13280 2011-10-05  Bruno Haible  <bruno@clisp.org>
13281
13282         Tests for module 'fabsf'.
13283         * modules/fabsf-tests: New file.
13284         * tests/test-fabsf.c: New file.
13285
13286         New module 'fabsf'.
13287         * lib/math.in.h (fabsf): New declaration.
13288         * lib/fabsf.c: New file.
13289         * m4/fabsf.m4: New file.
13290         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
13291         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
13292         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
13293         * modules/fabsf: New file.
13294         * tests/test-math-c++.cc: Check the declaration of fabsf.
13295         * doc/posix-functions/fabsf.texi: Mention the new module.
13296
13297         fabs: Use a .m4 file.
13298         * m4/fabs.m4: New file.
13299         * modules/fabs (Files): Add it.
13300         (configure.ac): Just invoke gl_FUNC_FABS.
13301
13302 2011-10-05  Jim Meyering  <meyering@redhat.com>
13303
13304         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
13305         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
13306         ls -lL regression introduced in coreutils-8.12, it does so at the
13307         cost of an additional stat call in the common case.  Besides, now
13308         that the kernel change that prompted commit 95f7c57f has been reverted
13309         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
13310         we have no use for commit 95f7c57f, "file-has-acl: use
13311         acl_extended_file_nofollow if available".
13312
13313 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
13314
13315         file-has-acl: revert unintended change in behavior of ls -L
13316         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
13317         derived from...
13318         (file_has_acl): ...code here.  Call it.
13319         This problem was introduced with 2011-07-22 commit 95f7c57f,
13320         "file-has-acl: use acl_extended_file_nofollow if available".
13321         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
13322
13323 2011-10-03  Bruno Haible  <bruno@clisp.org>
13324
13325         poll: Avoid link errors on MSVC.
13326         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
13327         * modules/poll (Depends-on): Add sockets.
13328         (Link): New section.
13329         * NEWS: Mention the change.
13330         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
13331         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
13332         $(LIB_POLL) instead of $(LIBSOCKET).
13333
13334 2011-10-03  Bruno Haible  <bruno@clisp.org>
13335
13336         sys_select tests: Fix link error on MSVC 9.
13337         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
13338         with $(LIB_SELECT) instead of $(LIBSOCKET).
13339
13340 2011-10-03  Bruno Haible  <bruno@clisp.org>
13341
13342         sys_select: Fix compilation error on mingw.
13343         * lib/sys_select.in.h: On native Windows, include <io.h>.
13344
13345 2011-10-03  Bruno Haible  <bruno@clisp.org>
13346
13347         wmemset: Support for MSVC.
13348         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
13349         whether wmemset() exists.
13350
13351 2011-10-03  Bruno Haible  <bruno@clisp.org>
13352
13353         wmemmove: Support for MSVC.
13354         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
13355         whether wmemmove() exists.
13356
13357 2011-10-03  Bruno Haible  <bruno@clisp.org>
13358
13359         wmemcpy: Support for MSVC.
13360         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
13361         whether wmemcpy() exists.
13362
13363 2011-10-03  Bruno Haible  <bruno@clisp.org>
13364
13365         wmemcmp: Support for MSVC.
13366         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
13367         whether wmemcmp() exists.
13368
13369 2011-10-03  Bruno Haible  <bruno@clisp.org>
13370
13371         wmemchr: Support for MSVC.
13372         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
13373         whether wmemchr() exists.
13374
13375 2011-10-03  Bruno Haible  <bruno@clisp.org>
13376
13377         glthread/*, strsignal: Support for MSVC.
13378         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
13379         including <winsock.h> on MSVC 9.
13380         * lib/glthread/lock.h: Likewise.
13381         * lib/glthread/thread.h: Likewise.
13382         * lib/glthread/tls.h: Likewise.
13383         * lib/glthread/yield.h: Likewise.
13384         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
13385         if HAVE_UNISTD_H is false.
13386         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
13387
13388 2011-10-03  Bruno Haible  <bruno@clisp.org>
13389
13390         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
13391         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
13392         Set to 100000.
13393
13394 2011-10-03  Bruno Haible  <bruno@clisp.org>
13395
13396         acl: Fix specification.
13397         * lib/file-has-acl.c (file_has_acl): Fix specification.
13398
13399 2011-10-03  Bruno Haible  <bruno@clisp.org>
13400
13401         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
13402         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
13403         (compute_curr_prefix, shared_library_fullname,
13404         find_shared_library_fullname, get_shared_library_fullname, relocate):
13405         Use it together with PIC && INSTALLDIR.
13406         Reported by <jojelino@gmail.com>
13407         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
13408
13409 2011-10-01  Jim Meyering  <meyering@redhat.com>
13410
13411         maint.mk: adjust a release-related rule not to require use of gzip
13412         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
13413         Instead, check each file in $(DIST_ARCHIVES).  This is better for
13414         projects that build only .tar.xz files.  Also fix an erroneous test.
13415
13416         test-linkat: don't leave behind a temporary file
13417         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
13418         Otherwise, coreutils' "make distcheck" would fail with this:
13419           Only in /c/cu/tests/torture/coreutils/test/\
13420             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
13421           make[2]: *** [my-distcheck] Error 1
13422
13423         float, math: add omitted file
13424         * lib/itold.c: Add file, required for yesterday's float change.
13425
13426 2011-10-01  Bruno Haible  <bruno@clisp.org>
13427
13428         isinf: Fix for OpenBSD/x86.
13429         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
13430         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
13431         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
13432
13433 2011-10-01  Bruno Haible  <bruno@clisp.org>
13434
13435         isfinite: Fix syntax error in configure test.
13436         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
13437
13438         isfinite: Fix typo.
13439         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
13440         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
13441
13442 2011-10-01  Bruno Haible  <bruno@clisp.org>
13443
13444         nonblocking tests: Fix test failure on Linux/IA-64.
13445         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
13446         Set to 270000.
13447
13448 2011-10-01  Bruno Haible  <bruno@clisp.org>
13449
13450         mkfifoat tests: Fix a test failure on mingw.
13451         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
13452         with error ENOSYS.
13453
13454 2011-09-30  Bruno Haible  <bruno@clisp.org>
13455
13456         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
13457         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
13458         'long double'. Set REPLACE_ITOLD.
13459         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
13460         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
13461         * lib/itold.c: New file.
13462         * modules/float (Files): Add lib/itold.c.
13463         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
13464         (Makefile.am): Substitute REPLACE_ITOLD.
13465         * modules/math (Depends-on): Add float.
13466         (Makefile.am): Substitute REPLACE_ITOLD.
13467         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
13468         * doc/posix-headers/math.texi: Likewise.
13469         * doc/posix-functions/logl.texi: Likewise.
13470
13471 2011-09-30  Bruno Haible  <bruno@clisp.org>
13472
13473         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
13474         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
13475         Set to 140000.
13476
13477 2011-09-30  Bruno Haible  <bruno@clisp.org>
13478
13479         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
13480         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
13481         invocation, say "right after AC_PROG_CC_STDC", not "right after
13482         AC_PROG_CC".
13483         Reported by Gary V. Vaughan <gary@gnu.org>.
13484
13485 2011-09-30  Bruno Haible  <bruno@clisp.org>
13486
13487         Centralize C99 requirement.
13488         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
13489         * modules/stdarg (configure.ac-early): Invoke it instead of
13490         AC_PROG_CC_STDC.
13491         Reported by Gary V. Vaughan and Paul Eggert.
13492
13493 2011-09-29  Bruno Haible  <bruno@clisp.org>
13494
13495         float: Fix LDBL_MAX value on Linux/PowerPC.
13496         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
13497         on Linux/PowerPC.
13498         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
13499         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
13500         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
13501         platform.
13502         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
13503
13504 2011-09-29  Bruno Haible  <bruno@clisp.org>
13505
13506         doc: Improve doc about gl_EARLY.
13507         * doc/gnulib-tool.texi (Initial import): Mention where to place an
13508         AC_PROG_CC_STDC invocation.
13509         Reported by Gary V. Vaughan <gary@gnu.org>.
13510
13511 2011-09-28  Bruno Haible  <bruno@clisp.org>
13512
13513         fgetc, fputc, fread, fwrite tests: Fix link error.
13514         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
13515         on non-MSVC platforms.
13516         * tests/test-fputc.c (main): Likewise.
13517         * tests/test-fread.c (main): Likewise.
13518         * tests/test-fwrite.c (main): Likewise.
13519         Reported by Jim Meyering.
13520
13521 2011-09-27  Bruno Haible  <bruno@clisp.org>
13522
13523         fputc, fwrite tests: Avoid test failure on MSVC.
13524         * tests/test-fgetc.c: Include msvc-inval.h.
13525         (main): Invoke gl_msvc_inval_ensure_handler.
13526         * tests/test-fputc.c: Include msvc-inval.h.
13527         (main): Invoke gl_msvc_inval_ensure_handler.
13528         * tests/test-fread.c: Include msvc-inval.h.
13529         (main): Invoke gl_msvc_inval_ensure_handler.
13530         * tests/test-fwrite.c: Include msvc-inval.h.
13531         (main): Invoke gl_msvc_inval_ensure_handler.
13532         * modules/fgetc-tests (Depends-on): Add msvc-inval.
13533         * modules/fputc-tests (Depends-on): Likewise.
13534         * modules/fread-tests (Depends-on): Likewise.
13535         * modules/fwrite-tests (Depends-on): Likewise.
13536
13537 2011-09-27  Bruno Haible  <bruno@clisp.org>
13538
13539         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
13540         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
13541         (raise): Remove older, duplicated declaration.
13542         (_gl_raise_SIGPIPE): New declaration.
13543         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
13544         (rpl_raise): Remove function.
13545         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
13546         a gnulib-defined SIGPIPE here.
13547         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
13548         'sigprocmask' has detected missing signal-blocking and the module
13549         'sigpipe' is enabled.
13550         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13551
13552 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
13553
13554         base64-tests: avoid memory leak
13555         * tests/test-base64.c (main): Plug memory leak.
13556
13557         base32: new module
13558         * modules/base32: New module.
13559         * lib/base32.c: New file.
13560         * lib/base32.h: Likewise.
13561         * m4/base32.m4: Likewise.
13562         * modules/base32-tests: New test.
13563         * tests/test-base32.c: Likewise.
13564         * MODULES.html.sh (Misc): Mention it.
13565
13566 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13567
13568         gnulib: use more-standard license notice wording
13569         * gnulib-tool (func_emit_copyright_notice): When emitting a
13570         license notice into a file, use the standard wording as suggested
13571         by the current information for GNU maintainers, except say "file"
13572         rather than "program".  The new wording gives a license version
13573         number, which addresses an issue raised by Glenn Morris in
13574         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
13575         * m4/onceonly.m4: Use that same wording here, too.
13576
13577         dup2: minor simplification
13578         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
13579         as lib/dup2.c no longer uses 'inline'.
13580
13581 2011-09-25  Bruno Haible  <bruno@clisp.org>
13582
13583         strings: Fix compilation error on MSVC.
13584         * lib/strings.in.h: Include <stddef.h> for size_t.
13585
13586 2011-09-25  Bruno Haible  <bruno@clisp.org>
13587
13588         fflush et al.: Document limitation on MSVC.
13589         * doc/posix-functions/fflush.texi: Document possible crash in handling
13590         mode other than DEFAULT_HANDLING.
13591         * doc/posix-functions/fgetc.texi: Likewise.
13592         * doc/posix-functions/fputc.texi: Likewise.
13593         * doc/posix-functions/fread.texi: Likewise.
13594         * doc/posix-functions/fwrite.texi: Likewise.
13595
13596 2011-09-25  Bruno Haible  <bruno@clisp.org>
13597
13598         msvc-inval: Allow three invalid parameter handling modes.
13599         * lib/msvc-inval.h: Don't include <stdlib.h> here.
13600         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
13601         macros.
13602         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
13603         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
13604         SANE_LIBRARY_HANDLING as a no-op.
13605         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
13606         <stdlib.h>.
13607         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
13608
13609 2011-09-25  Bruno Haible  <bruno@clisp.org>
13610
13611         msvc-inval: Make handler multithread-safe.
13612         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
13613         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
13614         declarations.
13615         (gl_msvc_inval_current): New declaration.
13616         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13617         Operate on the structure returned by gl_msvc_inval_current().
13618         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
13619         Remove varaiables.
13620         (tls_index, tls_initialized): New variables.
13621         (not_per_thread): New variable.
13622         (gl_msvc_inval_current): New function.
13623         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
13624         returned by gl_msvc_inval_current().
13625
13626 2011-09-25  Bruno Haible  <bruno@clisp.org>
13627
13628         msvc-inval: Install handler globally.
13629         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
13630         !_MSC_VER.
13631         (gl_msvc_invalid_parameter_handler): Remove declaration.
13632         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
13633         declarations.
13634         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13635         Install the handler globally, don't uninstall it.
13636         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
13637         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
13638         currently valid, call RaiseException instead.
13639         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
13640         for !_MSC_VER.
13641
13642 2011-09-25  Bruno Haible  <bruno@clisp.org>
13643
13644         strerror_r-posix: Fix for MSVC 9.
13645         * lib/strerror_r.c (local_snprintf): New function.
13646         (snprintf): Define to local_snprintf, not to _snprintf.
13647
13648 2011-09-25  Bruno Haible  <bruno@clisp.org>
13649
13650         ftruncate: Support for MSVC 9.
13651         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
13652         (chsize_nothrow): New function.
13653         (chsize): Redefine as a macro.
13654         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
13655         * modules/ftruncate (Depends-on): Add msvc-inval.
13656
13657 2011-09-25  Bruno Haible  <bruno@clisp.org>
13658
13659         New module 'fstat'.
13660         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
13661         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
13662         * lib/fchdir.c (rpl_fstat): Remove function.
13663         * m4/fstat.m4: New file.
13664         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
13665         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
13666         declared.
13667         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
13668         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
13669         * modules/fstat: New file.
13670         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
13671         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
13672         is set.
13673         * doc/posix-functions/fstat.texi: Mention the new module and the
13674         problem on MSVC.
13675         * NEWS: Mention the change.
13676         * modules/acl (Depends-on): Add fstat.
13677         * modules/chdir-safer (Depends-on): Likewise.
13678         * modules/chown (Depends-on): Likewise.
13679         * modules/copy-file (Depends-on): Likewise.
13680         * modules/fchdir (Depends-on): Likewise.
13681         * modules/fdopendir (Depends-on): Likewise.
13682         * modules/fopen (Depends-on): Likewise.
13683         * modules/fts (Depends-on): Likewise.
13684         * modules/getcwd (Depends-on): Likewise.
13685         * modules/isapipe (Depends-on): Likewise.
13686         * modules/linkat (Depends-on): Likewise.
13687         * modules/lseek (Depends-on): Likewise.
13688         * modules/mkdir-p (Depends-on): Likewise.
13689         * modules/open (Depends-on): Likewise.
13690         * modules/openat (Depends-on): Likewise.
13691         * modules/read-file (Depends-on): Likewise.
13692         * modules/renameat (Depends-on): Likewise.
13693         * modules/utimens (Depends-on): Likewise.
13694
13695 2011-09-25  Bruno Haible  <bruno@clisp.org>
13696
13697         linkat: Fix compilation on MSVC 9.
13698         * lib/linkat.c: Don't include <stdint.h>.
13699
13700 2011-09-25  Bruno Haible  <bruno@clisp.org>
13701
13702         fclose: Support for MSVC 9.
13703         * lib/fclose.c: Include msvc-inval.h.
13704         (fclose_nothrow): New function.
13705         (rpl_fclose): Use it.
13706         * modules/fclose (Depends-on): Add msvc-inval.
13707         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
13708
13709 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
13710
13711         dup2: minor simplifications
13712         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
13713         that it's a performance win.
13714         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
13715         ! defined __CYGWIN__)" to "ifdef F_GETFL".
13716
13717 2011-09-24  Jim Meyering  <meyering@redhat.com>
13718
13719         test-futimens: avoid a warning from gcc -Wshadow
13720         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
13721         to avoid a shadowing warning.
13722
13723 2011-09-24  Bruno Haible  <bruno@clisp.org>
13724
13725         fdopen: Support for MSVC 9.
13726         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
13727         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
13728         * lib/fdopen.c: Include msvc-inval.h.
13729         (fdopen_nothrow): New function.
13730         (rpl_fdopen): Use it.
13731         * modules/fdopen (Depends-on): Add msvc-inval.
13732         * modules/fclose-tests (Depends-on): Add fdopen.
13733         * modules/fflush-tests (Depends-on): Likewise.
13734         * modules/fgetc-tests (Depends-on): Likewise.
13735         * modules/fputc-tests (Depends-on): Likewise.
13736         * modules/fread-tests (Depends-on): Likewise.
13737         * modules/freopen-tests (Depends-on): Likewise.
13738         * modules/fseeko-tests (Depends-on): Likewise.
13739         * modules/ftello-tests (Depends-on): Likewise.
13740         * modules/fwrite-tests  (Depends-on): Likewise.
13741         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
13742
13743 2011-09-24  Bruno Haible  <bruno@clisp.org>
13744
13745         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
13746         * modules/fgetc-tests (Depends-on): Add unistd.
13747         * modules/fputc-tests (Depends-on): Likewise.
13748         * modules/fread-tests (Depends-on): Likewise.
13749         * modules/fwrite-tests (Depends-on): Likewise.
13750
13751 2011-09-24  Bruno Haible  <bruno@clisp.org>
13752
13753         dup: Simplify autoconf test.
13754         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
13755         on gl_MSVC_INVAL's result.
13756
13757 2011-09-24  Bruno Haible  <bruno@clisp.org>
13758
13759         Tests for function fwrite().
13760         * modules/fwrite-tests: New file.
13761         * tests/test-fwrite.c: New file.
13762         * modules/stdio-tests (Depends-on): Add fwrite-tests.
13763
13764         Tests for function fread().
13765         * modules/fread-tests: New file.
13766         * tests/test-fread.c: New file.
13767         * modules/stdio-tests (Depends-on): Add fread-tests.
13768
13769         Activate fputc tests.
13770         * modules/stdio-tests (Depends-on): Add fputc-tests.
13771
13772         Enhance fgetc, fputc tests.
13773         * tests/test-fgetc.c (main): Also test the stream's error indicator.
13774         * tests/test-fputc.c (main): Likewise.
13775
13776 2011-09-24  Bruno Haible  <bruno@clisp.org>
13777
13778         write: Support for MSVC 9.
13779         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13780         is not 1.
13781         * lib/write.c (write_nothrow): New function.
13782         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
13783         not 1. Use write_nothrow.
13784         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
13785         invalid parameter handler.
13786         (gl_PREREQ_WRITE): New macro.
13787         * modules/write (Depends-on): Add msvc-inval.
13788         (configure.ac): Invoke gl_PREREQ_WRITE.
13789         * doc/posix-functions/write.texi: Mention the problem on MSVC.
13790
13791 2011-09-24  Bruno Haible  <bruno@clisp.org>
13792
13793         read: Fix last commit.
13794         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
13795
13796 2011-09-24  Bruno Haible  <bruno@clisp.org>
13797
13798         dup2: Fix last commit.
13799         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
13800         (rpl_dup2): Disable fcntl workaround on native Windows.
13801
13802         sigprocmask: Make code safer.
13803         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
13804         section that changes macro definitions for this compilation unit.
13805
13806 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13807
13808         dup2: clarify by coalescing Windows-specific material
13809         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
13810         "msvc-nothrow.h"' to the Windows-specific section, so that the
13811         Emacs source need not contain these include files.
13812         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
13813         Windows-specific fixes into this function rather than just the
13814         nothrow fix, as this shortens and clarifies the code.  Always
13815         define as a function, as that's a bit cleaner than having it be
13816         sometimes a function and sometimes a macro.
13817         (rpl_dup2): Move the Windows-specific stuff out of here and into
13818         ms_windows_dup2.  Don't protect the Haiku-related fix with
13819         "#if !defined __linux__", as the same code also works around
13820         a Linux kernel bug, and it doesn't add any system calls on any
13821         platform.  Add comment about FreeBSD 6.1.
13822
13823         sigprocmask: move #include directive
13824         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
13825         Windows-specific section, so that the Emacs source need not
13826         contain msvc-inval.h.
13827
13828 2011-09-23  Bruno Haible  <bruno@clisp.org>
13829
13830         read: Support for MSVC 9.
13831         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13832         is not 1.
13833         * lib/read.c (read_nothrow): New function.
13834         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
13835         read_nothrow.
13836         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
13837         invalid parameter handler.
13838         (gl_PREREQ_READ): New macro.
13839         * modules/read (Depends-on): Add msvc-inval.
13840         (configure.ac): Invoke gl_PREREQ_READ.
13841         * doc/posix-functions/read.texi: Mention the problem on MSVC.
13842
13843 2011-09-23  Bruno Haible  <bruno@clisp.org>
13844
13845         close: Support for MSVC 9.
13846         * lib/close.c: Include <errno.h>, msvc-inval.h.
13847         (close_nothrow): New function.
13848         (rpl_close): Use it.
13849         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
13850         invalid parameter handler.
13851         * modules/close (Depends-on): Add msvc-inval.
13852         * modules/dup2-tests (Depends-on): Add close.
13853         * modules/dup3-tests (Depends-on): Likewise.
13854         * modules/fcntl-tests (Depends-on): Likewise.
13855         * modules/spawn-pipe-tests (Depends-on): Likewise.
13856         * modules/unistd-safer-tests (Depends-on): Likewise.
13857         * doc/posix-functions/close.texi: Mention the problem on MSVC.
13858
13859 2011-09-23  Bruno Haible  <bruno@clisp.org>
13860
13861         New module 'dup'.
13862         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
13863         Allow replacement.
13864         * lib/dup.c: New file.
13865         * lib/fchdir.c (rpl_dup): Remove function.
13866         * m4/dup.m4: New file.
13867         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
13868         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
13869         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
13870         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
13871         * modules/dup: New file.
13872         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
13873         'dup' module is in use.
13874         * modules/fdopendir (Depends-on): Add dup.
13875         * modules/fdutimensat-tests (Depends-on): Likewise.
13876         * modules/fts (Depends-on): Likewise.
13877         * modules/futimens-tests (Depends-on): Likewise.
13878         * modules/posix_spawnp-tests (Depends-on): Likewise.
13879         * modules/unistd-safer-tests (Depends-on): Likewise.
13880         * modules/utimens-tests (Depends-on): Likewise.
13881         * doc/posix-functions/dup.texi: Mention the new module and the problem
13882         on MSVC.
13883
13884 2011-09-23  Bruno Haible  <bruno@clisp.org>
13885
13886         getdtablesize: Support for MSVC 9.
13887         * lib/getdtablesize.c: Include msvc-inval.h.
13888         (_setmaxstdio_nothrow): New function.
13889         (_setmaxstdio): Redefine it.
13890         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
13891         * modules/getdtablesize (Depends-on): Add msvc-inval.
13892         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
13893
13894 2011-09-23  Bruno Haible  <bruno@clisp.org>
13895
13896         signal-h: Rename from signal.
13897         * modules/signal-h: Renamed from modules/signal.
13898         * modules/pthread_sigmask (Depends-on): Update.
13899         * modules/raise (Depends-on): Likewise.
13900         * modules/sigaction (Depends-on): Likewise.
13901         * modules/sigpipe (Depends-on): Likewise.
13902         * modules/sigprocmask (Depends-on): Likewise.
13903         * modules/sys_select (Depends-on): Likewise.
13904         * modules/signal-h-tests: Renamed from modules/signal-tests.
13905         (Files, Depends-on, Makefile.am): Update.
13906         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
13907         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
13908         (Files, Makefile.am): Update.
13909         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
13910         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
13911         * modules/signal: New placeholder file.
13912         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
13913         * doc/posix-headers/signal.texi: Update.
13914         * NEWS: Mention the change.
13915
13916 2011-09-23  Bruno Haible  <bruno@clisp.org>
13917
13918         sigprocmask: Avoid crashes through signal() on MSVC 9.
13919         * lib/sigprocmask.c: Include msvc-inval.h.
13920         (signal_nothrow): New function.
13921         (signal): Redefine it.
13922         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
13923         * modules/sigprocmask (Depends-on): Add msvc-inval.
13924         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
13925
13926 2011-09-23  Bruno Haible  <bruno@clisp.org>
13927
13928         Tests for module 'raise'.
13929         * modules/raise-tests: New file.
13930         * tests/test-raise.c: New file.
13931
13932         raise: Support for MSVC.
13933         * lib/signal.in.h (raise): New declaration.
13934         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
13935         for native Windows platforms.
13936         * m4/raise.m4: New file.
13937         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
13938         HAVE_RAISE, REPLACE_RAISE.
13939         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
13940         REPLACE_RAISE.
13941         * modules/raise (Status, Notice): Remove fields.
13942         (Files): Add m4/raise.m4.
13943         (Depends-on): Add signal, msvc-inval.
13944         (configure.ac): Use the common idioms.
13945         (Maintainer): Add me.
13946         * tests/test-signal-c++.cc: Check the signature of raise.
13947         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
13948
13949 2011-09-23  Bruno Haible  <bruno@clisp.org>
13950
13951         pipe2: Fix compilation on pre-C99 compilers.
13952         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
13953
13954 2011-09-23  Bruno Haible  <bruno@clisp.org>
13955
13956         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
13957         * lib/msvc-nothrow.h: New file.
13958         * lib/msvc-nothrow.c: New file.
13959         * m4/msvc-nothrow.m4: New file.
13960         * modules/msvc-nothrow: New file.
13961         * lib/dup2.c: Include msvc-nothrow.h.
13962         (rpl_dup2): No need to protect _get_osfhandle call here.
13963         * lib/accept4.c: Include msvc-nothrow.h.
13964         * lib/error.c: Likewise.
13965         * lib/fcntl.c: Likewise.
13966         * lib/lseek.c: Likewise.
13967         * lib/nonblocking.c: Likewise.
13968         * lib/poll.c: Likewise.
13969         * lib/read.c: Likewise.
13970         * lib/select.c: Likewise.
13971         * lib/sockets.h: Likewise.
13972         * lib/sockets.c: Likewise.
13973         * lib/stdio-read.c: Likewise.
13974         * lib/stdio-write.c: Likewise.
13975         * lib/write.c: Likewise.
13976         * lib/w32sock.h: Likewise.
13977         * lib/w32spawn.h: Likewise.
13978         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
13979         * lib/fsync.c: Likewise.
13980         * lib/isapipe.c: Likewise.
13981         * modules/dup2 (Depends-on): Add msvc-nothrow.
13982         * modules/accept4 (Depends-on): Likewise.
13983         * modules/error (Depends-on): Likewise.
13984         * modules/fcntl (Depends-on): Likewise.
13985         * modules/lseek (Depends-on): Likewise.
13986         * modules/nonblocking (Depends-on): Likewise.
13987         * modules/poll (Depends-on): Likewise.
13988         * modules/read (Depends-on): Likewise.
13989         * modules/select (Depends-on): Likewise.
13990         * modules/sockets (Depends-on): Likewise.
13991         * modules/sigpipe (Depends-on): Likewise.
13992         * modules/write (Depends-on): Likewise.
13993         * modules/accept (Depends-on): Likewise.
13994         * modules/bind (Depends-on): Likewise.
13995         * modules/connect (Depends-on): Likewise.
13996         * modules/gethostname (Depends-on): Likewise.
13997         * modules/getpeername (Depends-on): Likewise.
13998         * modules/getsockname (Depends-on): Likewise.
13999         * modules/getsockopt (Depends-on): Likewise.
14000         * modules/ioctl (Depends-on): Likewise.
14001         * modules/listen (Depends-on): Likewise.
14002         * modules/recv (Depends-on): Likewise.
14003         * modules/recvfrom (Depends-on): Likewise.
14004         * modules/send (Depends-on): Likewise.
14005         * modules/sendto (Depends-on): Likewise.
14006         * modules/setsockopt (Depends-on): Likewise.
14007         * modules/shutdown (Depends-on): Likewise.
14008         * modules/socket (Depends-on): Likewise.
14009         * modules/execute (Depends-on): Likewise.
14010         * modules/spawn-pipe (Depends-on): Likewise.
14011         * modules/flock (Depends-on): Likewise.
14012         * modules/fsync (Depends-on): Likewise.
14013         * modules/isapipe (Depends-on): Likewise.
14014         * tests/test-cloexec.c: Include msvc-nothrow.h.
14015         * tests/test-dup-safer.c: Likewise.
14016         * tests/test-dup2.c: Likewise.
14017         * tests/test-dup3.c: Likewise.
14018         * tests/test-fcntl.c: Likewise.
14019         * tests/test-pipe.c: Likewise.
14020         * tests/test-pipe2.c: Likewise.
14021         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
14022         * modules/unistd-safer-tests (Depends-on): Likewise.
14023         * modules/dup2-tests (Depends-on): Likewise.
14024         * modules/dup3-tests (Depends-on): Likewise.
14025         * modules/fcntl-tests (Depends-on): Likewise.
14026         * modules/pipe-posix-tests (Depends-on): Likewise.
14027         * modules/pipe2-tests (Depends-on): Likewise.
14028
14029 2011-09-23  Bruno Haible  <bruno@clisp.org>
14030
14031         dup2: Make code more maintainable.
14032         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
14033         (rpl_dup2): Use it.
14034         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
14035         * modules/dup2 (configure.ac): Invoke it.
14036         Reported by Paul Eggert.
14037
14038 2011-09-23  Bruno Haible  <bruno@clisp.org>
14039
14040         msvc-inval: Fix compilation error.
14041         * lib/msvc-inval.h: Include <excpt.h>.
14042
14043 2011-09-23  Bruno Haible  <bruno@clisp.org>
14044
14045         mkdir: Tweak for MSVC 9.
14046         * lib/sys_stat.in.h: Update comments.
14047         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
14048
14049         Tests for module 'chdir'.
14050         * modules/chdir-tests: New file.
14051         * tests/test-chdir.c: New file.
14052
14053         New module 'chdir'.
14054         * modules/chdir: New file.
14055         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
14056         (chdir): New declaration.
14057         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
14058         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
14059         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
14060         * tests/test-unistd-c++.cc: Check signature of chdir.
14061         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
14062         * modules/chdir-long (Depends-on): Add chdir.
14063         * modules/fchdir (Depends-on): Likewise.
14064         * modules/rename (Depends-on): Likewise.
14065         * modules/savewd (Depends-on): Likewise.
14066
14067         rmdir: Support for mingw, MSVC 9.
14068         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
14069         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
14070
14071         getcwd: Tweak for MSVC 9.
14072         * lib/unistd.in.h: Update comments.
14073         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
14074
14075 2011-09-22  Bruno Haible  <bruno@clisp.org>
14076
14077         strerror_r-posix: Avoid a link error on MSVC.
14078         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
14079         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
14080
14081 2011-09-22  Bruno Haible  <bruno@clisp.org>
14082
14083         select: Avoid link errors on MSVC.
14084         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
14085         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
14086         * modules/pselect (Link): Likewise.
14087         * NEWS: Mention the change.
14088         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
14089         test-select-stdin against $(LIB_SELECT).
14090         * modules/pselect-tests (Makefile.am): Link test-pselect against
14091         $(LIB_SELECT).
14092
14093 2011-09-22  Bruno Haible  <bruno@clisp.org>
14094
14095         select: Avoid compilation error on MSVC.
14096         * lib/select.c: Don't include <stdbool.h>.
14097
14098 2011-09-21  Bruno Haible  <bruno@clisp.org>
14099
14100         Consolidate all uses of PATH_MAX in *.m4 files.
14101         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
14102         macros.
14103         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
14104         and gl_PATHMAX_SNIPPET.
14105         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14106         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14107         * modules/chdir-long (Files): Add m4/pathmax.m4.
14108         * modules/getcwd (Files): Likewise.
14109
14110 2011-09-21  Bruno Haible  <bruno@clisp.org>
14111
14112         ftruncate: Un-deprecate, concentrate on Win32 support.
14113         * modules/ftruncate (Status, Notice): Remove sections.
14114         (Depends-on): Add largefile.
14115         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
14116         non-mingw platforms.
14117         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
14118         include <io.h>.
14119         * modules/perror-tests (Depends-on): Add ftruncate.
14120         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
14121         'ftruncate' module.
14122
14123 2011-09-21  Bruno Haible  <bruno@clisp.org>
14124
14125         Add dependencies to new dirent related modules.
14126         * modules/opendir (Depends-on): Add closedir.
14127         * modules/getcwd (Depends-on): Add opendir, closedir.
14128         * modules/dirent-safer-tests (Depends-on): Likewise.
14129         * modules/fdopendir-tests (Depends-on): Likewise.
14130         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
14131         * modules/renameat-tests (Depends-on): Likewise.
14132
14133 2011-09-21  Bruno Haible  <bruno@clisp.org>
14134
14135         opendir: Avoid compilation error on mingw.
14136         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
14137         * modules/opendir (Depends-on): Add unistd.
14138
14139 2011-09-21  Bruno Haible  <bruno@clisp.org>
14140
14141         ftruncate tests: Avoid a test failure on mingw.
14142         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
14143
14144 2011-09-21  Bruno Haible  <bruno@clisp.org>
14145
14146         select tests: Avoid test failures on OSF/1 5.1 and mingw.
14147         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
14148         native Windows.
14149
14150 2011-09-21  Bruno Haible  <bruno@clisp.org>
14151
14152         New module 'fdopen'.
14153         * lib/stdio.in.h (fdopen): New declaration.
14154         * lib/fdopen.c: New file.
14155         * m4/fdopen.m4: New file.
14156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
14157         REPLACE_FDOPEN.
14158         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
14159         REPLACE_FDOPEN.
14160         * modules/fdopen: New file.
14161         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
14162         * tests/test-stdio-c++.cc: Check signature of fdopen.
14163         * doc/posix-functions/fdopen.texi: Mention the new module.
14164
14165 2011-09-21  Bruno Haible  <bruno@clisp.org>
14166
14167         unlockpt tests: Avoid test failure on NetBSD 5.1.
14168         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
14169         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
14170
14171 2011-09-21  Bruno Haible  <bruno@clisp.org>
14172
14173         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
14174         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
14175         * tests/test-getlogin_r.c (main): Likewise.
14176
14177 2011-09-20  Bruno Haible  <bruno@clisp.org>
14178
14179         time tests: Don't require pid_t.
14180         * doc/posix-headers/time.texi: Revert last change.
14181         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
14182         * tests/test-time.c: Comment out the check for pid_t.
14183
14184 2011-09-20  Bruno Haible  <bruno@clisp.org>
14185
14186         fsync tests: Avoid a test failure on mingw.
14187         * tests/test-fsync.c (main): Allow a failure with EIO.
14188
14189 2011-09-20  Bruno Haible  <bruno@clisp.org>
14190
14191         euidaccess: Update comments.
14192         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
14193
14194 2011-09-20  Bruno Haible  <bruno@clisp.org>
14195
14196         Ensure EBADF returns for socket functions on mingw.
14197         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
14198         descriptor is invalid.
14199         * lib/bind.c (rpl_bind): Likewise.
14200         * lib/connect.c (rpl_connect): Likewise.
14201         * lib/getpeername.c (rpl_getpeername): Likewise.
14202         * lib/getsockname.c (rpl_getsockname): Likewise.
14203         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14204         * lib/listen.c (rpl_listen): Likewise.
14205         * lib/recv.c (rpl_recv): Likewise.
14206         * lib/recvfrom.c (rpl_recvfrom): Likewise.
14207         * lib/send.c (rpl_send): Likewise.
14208         * lib/sendto.c (rpl_sendto): Likewise.
14209         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14210         * lib/shutdown.c (rpl_shutdown): Likewise.
14211
14212 2011-09-20  Bruno Haible  <bruno@clisp.org>
14213
14214         select tests: EBADF tests.
14215         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
14216         test_bad_fd): New functions.
14217         (test_function): Invoke also test_bad_fd.
14218
14219 2011-09-20  Bruno Haible  <bruno@clisp.org>
14220
14221         Tests for module 'posix_spawn_file_actions_addopen.
14222         * modules/posix_spawn_file_actions_addopen-tests: New file.
14223         * tests/test-posix_spawn_file_actions_addopen.c: New file.
14224
14225         Tests for module 'posix_spawn_file_actions_adddup2'.
14226         * modules/posix_spawn_file_actions_adddup2-tests: New file.
14227         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
14228
14229         Tests for module 'posix_spawn_file_actions_addclose'.
14230         * modules/posix_spawn_file_actions_addclose-tests: New file.
14231         * tests/test-posix_spawn_file_actions_addclose.c: New file.
14232
14233 2011-09-20  Bruno Haible  <bruno@clisp.org>
14234
14235         Tests for module 'unlockpt'.
14236         * modules/unlockpt-tests: New file.
14237         * tests/test-unlockpt.c: New file.
14238         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
14239
14240         Tests for module 'grantpt'.
14241         * modules/grantpt-tests: New file.
14242         * tests/test-grantpt.c: New file.
14243         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
14244
14245 2011-09-20  Bruno Haible  <bruno@clisp.org>
14246
14247         freopen tests: EBADF tests.
14248         * tests/test-freopen.c: Include errno.h, unistd.h.
14249         (main): Add tests for EBADF, commented out for the moment.
14250
14251         fclose tests: EBADF tests.
14252         * tests/test-fclose.c (main): Add tests for EBADF.
14253
14254         fflush tests: EBADF tests.
14255         * tests/test-fflush.c: Include errno.h, macros.h.
14256         (main): Add tests for EBADF.
14257
14258         ftello tests: EBADF tests.
14259         * tests/test-ftello4.sh: New file.
14260         * tests/test-ftello4.c: New file.
14261         * modules/ftello-tests (Files): Add them.
14262         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
14263
14264         fseeko tests: EBADF tests.
14265         * tests/test-fseeko4.sh: New file.
14266         * tests/test-fseeko4.c: New file.
14267         * modules/fseeko-tests (Files): Add them.
14268         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
14269
14270         Tests for function fputc().
14271         * modules/fputc-tests: New file.
14272         * tests/test-fputc.c: New file.
14273         * modules/stdio-tests (Depends-on): Add fputc-tests.
14274
14275         Tests for function fgetc().
14276         * modules/fgetc-tests: New file.
14277         * tests/test-fgetc.c: New file.
14278         * modules/stdio-tests (Depends-on): Add fgetc-tests.
14279
14280         Tests for function fdopen().
14281         * modules/fdopen-tests: New file.
14282         * tests/test-fdopen.c: New file.
14283         * modules/stdio-tests (Depends-on): Add fdopen-tests.
14284
14285         Tests for module 'vdprintf'.
14286         * modules/vdprintf-tests: New file.
14287         * tests/test-vdprintf.c: New file.
14288
14289         Tests for module 'dprintf'.
14290         * modules/dprintf-tests: New file.
14291         * tests/test-dprintf.c: New file.
14292
14293 2011-09-20  Bruno Haible  <bruno@clisp.org>
14294
14295         Tests for module 'ioctl'.
14296         * modules/ioctl-tests: New file.
14297         * tests/test-ioctl.c: New file.
14298
14299 2011-09-20  Bruno Haible  <bruno@clisp.org>
14300
14301         fcntl tests: EBADF tests.
14302         * tests/test-fcntl.c (main): Add more tests for EBADF.
14303
14304 2011-09-20  Bruno Haible  <bruno@clisp.org>
14305
14306         utimensat tests: EBADF tests.
14307         * tests/test-utimensat.c (main): Add tests for EBADF.
14308
14309         renameat tests: EBADF tests.
14310         * tests/test-renameat.c (main): Add tests for EBADF.
14311
14312         mkfifoat tests: EBADF tests.
14313         * tests/test-mkfifoat.c (main): Add tests for EBADF.
14314
14315         readlinkat tests: EBADF tests.
14316         * tests/test-readlinkat.c (main): Add tests for EBADF.
14317
14318         symlinkat tests: EBADF tests.
14319         * tests/test-symlinkat.c (main): Add tests for EBADF.
14320
14321         linkat tests: EBADF tests.
14322         * tests/test-linkat.c (main): Add tests for EBADF.
14323
14324         Tests for module 'faccessat'.
14325         * modules/faccessat-tests: New file.
14326         * tests/test-faccessat.c: New file.
14327
14328         fdopendir tests: EBADF tests.
14329         * tests/test-fdopendir.c (main): Add more tests for EBADF.
14330
14331         openat tests: EBADF tests.
14332         * tests/test-fchownat.c (main): Add tests for EBADF.
14333         * tests/test-fstatat.c (main): Likewise.
14334         * tests/test-mkdirat.c (main): Likewise.
14335         * tests/test-openat.c (main): Likewise.
14336         * tests/test-unlinkat.c (main): Likewise.
14337         * tests/test-fchmodat.c: New file.
14338         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
14339         (Makefile.am): Also run 'test-fchmodat'.
14340
14341 2011-09-20  Bruno Haible  <bruno@clisp.org>
14342
14343         utimens, futimens, fdutimensat tests: EBADF tests.
14344         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
14345
14346         Tests for function fstat().
14347         * modules/fstat-tests: New file.
14348         * tests/test-fstat.c: New file.
14349         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
14350
14351 2011-09-20  Bruno Haible  <bruno@clisp.org>
14352
14353         test-ttyname_r tests: EBADF tests.
14354         * tests/test-ttyname_r.c (main): Add tests for EBADF.
14355
14356         Tests for module 'isatty'.
14357         * modules/isatty-tests: New file.
14358         * tests/test-isatty.c: New file.
14359
14360         Tests for module 'write'.
14361         * modules/write-tests: New file.
14362         * tests/test-write.c: New file.
14363
14364         Tests for module 'read'.
14365         * modules/read-tests: New file.
14366         * tests/test-read.c: New file.
14367
14368         pwrite tests: EBADF tests.
14369         * tests/test-pwrite.c (main): Add tests for EBADF.
14370
14371         pread tests: EBADF tests.
14372         * tests/test-pread.c (main): Add tests for EBADF.
14373
14374         lseek tests: EBADF tests.
14375         * tests/test-lseek.c (main): Add more tests for EBADF.
14376
14377         Tests for module 'ftruncate'.
14378         * modules/ftruncate-tests: New file.
14379         * tests/test-ftruncate.sh: New file.
14380         * tests/test-ftruncate.c: New file.
14381
14382         fsync tests: EBADF tests.
14383         * tests/test-fsync.c (main): Add more tests for EBADF.
14384
14385         fdatasync tests: EBADF tests.
14386         * tests/test-fdatasync.c (main): Add more tests for EBADF.
14387
14388         Tests for module 'fchown'.
14389         * modules/fchown-tests: New file.
14390         * tests/test-fchown.c: New file.
14391
14392         Tests for module 'fchmod'.
14393         * modules/fchmod-tests: New file.
14394         * tests/test-fchmod.c: New file.
14395
14396         fchdir tests: EBADF tests.
14397         * tests/test-fchdir.c (main): Add more tests for EBADF.
14398
14399         dup2 tests: EBADF tests.
14400         * tests/test-dup2.c (main): Add more tests for EBADF.
14401
14402         Tests for module 'dup'.
14403         * modules/dup-tests: New file.
14404         * tests/test-dup.c: New file.
14405
14406         Tests for module 'close'.
14407         * modules/close-tests: New file.
14408         * tests/test-close.c: New file.
14409
14410 2011-09-20  Bruno Haible  <bruno@clisp.org>
14411
14412         Tests for module 'shutdown'.
14413         * modules/shutdown-tests: New file.
14414         * tests/test-shutdown.c: New file.
14415
14416         Tests for module 'setsockopt'.
14417         * modules/setsockopt-tests: New file.
14418         * tests/test-setsockopt.c: New file.
14419
14420         Tests for module 'sendto'.
14421         * modules/sendto-tests: New file.
14422         * tests/test-sendto.c: New file.
14423
14424         Tests for module 'send'.
14425         * modules/send-tests: New file.
14426         * tests/test-send.c: New file.
14427
14428         Tests for module 'recvfrom'.
14429         * modules/recvfrom-tests: New file.
14430         * tests/test-recvfrom.c: New file.
14431
14432         Tests for module 'recv'.
14433         * modules/recv-tests: New file.
14434         * tests/test-recv.c: New file.
14435
14436         Tests for module 'listen'.
14437         * modules/listen-tests: New file.
14438         * tests/test-listen.c: New file.
14439
14440         Tests for module 'getsockopt'.
14441         * modules/getsockopt-tests: New file.
14442         * tests/test-getsockopt.c: New file.
14443
14444         Tests for module 'getsockname'.
14445         * modules/getsockname-tests: New file.
14446         * tests/test-getsockname.c: New file.
14447
14448         Tests for module 'getpeername'.
14449         * modules/getpeername-tests: New file.
14450         * tests/test-getpeername.c: New file.
14451
14452         Tests for module 'connect'.
14453         * modules/connect-tests: New file.
14454         * tests/test-connect.c: New file.
14455
14456         Tests for module 'bind'.
14457         * modules/bind-tests: New file.
14458         * tests/test-bind.c: New file.
14459
14460         accept4 tests: Fix for native Windows.
14461         * tests/test-accept4.c: Include sockets.h.
14462         (main): Invoke gl_sockets_startup.
14463         * modules/accept4-tests (Depends-on): Add sockets.
14464
14465         accept tests: Fix for native Windows.
14466         * tests/test-accept.c: Include sockets.h.
14467         (main): Invoke gl_sockets_startup.
14468         * modules/accept-tests (Depends-on): Add sockets.
14469
14470 2011-09-19  Bruno Haible  <bruno@clisp.org>
14471
14472         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
14473         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
14474         do...while(0).
14475         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
14476         Suggested by Paul Eggert.
14477
14478 2011-09-19  Bruno Haible  <bruno@clisp.org>
14479
14480         sched: Ensure pid_t is defined.
14481         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
14482         not define pid_t.
14483         * lib/sched.in.h: Include <sys/types.h>.
14484         * doc/posix-headers/sched.texi: Mention the pid_t problem.
14485         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14486
14487 2011-09-19  Bruno Haible  <bruno@clisp.org>
14488
14489         msvc-inval: Ensure the entire expansion is a single statement.
14490         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
14491         of braces.
14492
14493 2011-09-19  Jim Meyering  <meyering@redhat.com>
14494
14495         tests: use printf, not echo in init.sh's warn_ function
14496         * tests/init.sh (warn_): Use printf, not echo.  The latter would
14497         misbehave when given strings containing a backslash or starting
14498         with e.g., -n.  James Youngman suggested setting IFS.
14499
14500 2011-09-19  Eric Blake  <eblake@redhat.com>
14501
14502         futimens: enhance test
14503         * tests/test-futimens.h (test_futimens): Also check for EBADF on
14504         closed non-negative fd.
14505
14506         date: accept 'hence' as opposite of 'ago'
14507         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
14508         * tests/test-parse-datetime.c (main): Enhance test.
14509         Suggested by Jesse Wilson.
14510
14511 2011-09-19  Jim Meyering  <meyering@redhat.com>
14512
14513         getcwd: don't fail in a deep directory on a system without openat
14514         Before this change, getcwd would fail when called from a directory
14515         of depth PATH_MAX / 3 or greater.  That was due to the fact that
14516         the non-openat implementation used "..", "../..", "../../..", etc.
14517         to access ancestor directories.  With too many, that string would
14518         be longer than PATH_MAX.
14519         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
14520         using gnulib's openat replacement.
14521         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
14522         we're using the replacement function.
14523
14524 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
14525
14526         maint.mk: avoid warnings from perl about missing files
14527         * top/maint.mk (def_sym_regex): Ignore files listed in
14528         $(gl_other_headers_) that do not exist, say because a project
14529         does not use a corresponding module.
14530
14531 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14532
14533         stat: use pathmax.h only if needed
14534         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
14535         This is better for Emacs, which does not have a mingw port and
14536         therefore can avoid the pathmax module.
14537
14538         utimens: remove dependency on dup2
14539         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
14540         to work around the Linux kernel bug.
14541         * modules/utimens (Depends-on): Remove dup2.
14542
14543 2011-09-18  Bruno Haible  <bruno@clisp.org>
14544
14545         inet_ntop, inet_pton: Look for it also in libresolv.
14546         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
14547         libnsl, search for it in libresolv.
14548         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14549         Needed on Solaris 7.
14550
14551 2011-09-18  Bruno Haible  <bruno@clisp.org>
14552
14553         accept, accept4 tests: Avoid link error on Solaris.
14554         * modules/accept-tests (Makefile.am): Link test-accept against
14555         $(LIBSOCKET).
14556         * modules/accept4-tests (Makefile.am): Link test-accept4 against
14557         $(LIBSOCKET).
14558
14559         accept4: Avoid link error on Solaris.
14560         * modules/accept4 (Link): New section.
14561
14562         socket functions: Avoid link errors on Solaris.
14563         * modules/accept (Depends-on): Add socketlib.
14564         (Link): New section.
14565         * modules/bind (Depends-on): Add socketlib.
14566         (Link): New section.
14567         * modules/connect (Depends-on): Add socketlib.
14568         (Link): New section.
14569         * modules/getpeername (Depends-on): Add socketlib.
14570         (Link): New section.
14571         * modules/getsockname (Depends-on): Add socketlib.
14572         (Link): New section.
14573         * modules/getsockopt (Depends-on): Add socketlib.
14574         (Link): New section.
14575         * modules/listen (Depends-on): Add socketlib.
14576         (Link): New section.
14577         * modules/recv (Depends-on): Add socketlib.
14578         (Link): New section.
14579         * modules/recvfrom (Depends-on): Add socketlib.
14580         (Link): New section.
14581         * modules/send (Depends-on): Add socketlib.
14582         (Link): New section.
14583         * modules/sendto (Depends-on): Add socketlib.
14584         (Link): New section.
14585         * modules/setsockopt (Depends-on): Add socketlib.
14586         (Link): New section.
14587         * modules/shutdown (Depends-on): Add socketlib.
14588         (Link): New section.
14589         * modules/socket (Depends-on): Add socketlib.
14590         (Link): New section.
14591
14592 2011-09-18  Bruno Haible  <bruno@clisp.org>
14593
14594         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
14595         * tests/test-ptsname.c (main): Terminate the test if it takes longer
14596         than 5 seconds.
14597         * modules/ptsname-tests (configure.ac): Test for alarm.
14598
14599 2011-09-18  Bruno Haible  <bruno@clisp.org>
14600
14601         posix_spawn_file_actions_add*: Fix module dependencies.
14602         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
14603         posix_spawn_file_actions_init.
14604         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
14605         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
14606
14607 2011-09-18  Bruno Haible  <bruno@clisp.org>
14608
14609         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
14610         * tests/test-rename.h (test_rename): Allow error code EEXIST.
14611         * tests/test-renameat.c (main): Likewise.
14612
14613 2011-09-18  Bruno Haible  <bruno@clisp.org>
14614
14615         Tests for module 'accept4'.
14616         * modules/accept4-tests: New file.
14617         * tests/test-accept4.c: New file.
14618
14619 2011-09-18  Bruno Haible  <bruno@clisp.org>
14620
14621         Tests for module 'accept'.
14622         * modules/accept-tests: New file.
14623         * tests/test-accept.c: New file.
14624
14625 2011-09-18  Bruno Haible  <bruno@clisp.org>
14626
14627         dup2: Support for MSVC.
14628         * lib/dup2.c: Include msvc-inval.h.
14629         (rpl_dup2): Handle invalid parameter notifications during dup2 and
14630         _get_osfhandle calls.
14631         * modules/dup2 (Depends-on): Add msvc-inval.
14632         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
14633
14634         New module 'msvc-inval'.
14635         * lib/msvc-inval.h: New file.
14636         * lib/msvc-inval.c: New file.
14637         * m4/msvc-inval.m4: New file.
14638         * modules/msvc-inval: New file.
14639
14640 2011-09-17  Bruno Haible  <bruno@clisp.org>
14641
14642         Tests for module 'pclose'.
14643         * modules/pclose-tests: New file.
14644
14645         New module 'pclose'.
14646         * lib/stdio.in.h (pclose): New declaration.
14647         * lib/pclose.c: New file.
14648         * m4/pclose.m4: New file.
14649         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
14650         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
14651         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
14652         * modules/pclose: New file.
14653         * modules/popen-tests (Depends-on): Add pclose.
14654         * modules/popen-safer-tests (Depends-on): Likewise.
14655         * doc/posix-functions/pclose.texi: Mention the new module.
14656
14657 2011-09-17  Bruno Haible  <bruno@clisp.org>
14658
14659         popen: Support for MSVC.
14660         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
14661         * lib/popen.c (popen): Provide alternate definition for native Windows.
14662         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
14663         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
14664         * modules/popen (Depends-on, configure.ac): Update condition.
14665         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
14666         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
14667         fixed.
14668
14669 2011-09-17  Bruno Haible  <bruno@clisp.org>
14670
14671         isnanl, isnand, isnanf: Work around MSVC bug.
14672         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
14673
14674 2011-09-17  Bruno Haible  <bruno@clisp.org>
14675
14676         sys_socket tests: Fix recent mistake.
14677         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
14678
14679 2011-09-17  Bruno Haible  <bruno@clisp.org>
14680
14681         putenv: Support for MSVC.
14682         * modules/putenv (Depends-on): Add environ.
14683         * lib/putenv.c (environ): Disable declaration.
14684         * lib/unistd.in.h: Update comment.
14685
14686 2011-09-17  Bruno Haible  <bruno@clisp.org>
14687
14688         math: Avoid macro redefinition warnings on MSVC.
14689         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
14690         Undefine before redefining.
14691
14692 2011-09-17  Bruno Haible  <bruno@clisp.org>
14693
14694         doc: Mention functions which are declared as macros.
14695         * doc/posix-functions/*[fl].texi: Mention that some functions are
14696         defined as macros with arguments only.
14697
14698 2011-09-17  Bruno Haible  <bruno@clisp.org>
14699
14700         Add dependencies to new dirent related modules.
14701         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
14702         * modules/fts (Depends-on): Likewise.
14703         * modules/glob (Depends-on): Likewise.
14704         * modules/savedir (Depends-on): Likewise.
14705         * modules/scandir (Depends-on): Likewise.
14706         * modules/dirent-safer (Depends-on): Add opendir, closedir.
14707         * modules/fdopendir (Depends-on): Add opendir.
14708
14709 2011-09-17  Bruno Haible  <bruno@clisp.org>
14710
14711         inet_pton: Support for MSVC on Windows Vista or newer.
14712         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
14713         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
14714         HAVE_DECL_INET_PTON is defined.
14715         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14716         On platforms with <winsock2.h>, test whether inet_pton is declared in
14717         <ws2tcpip.h>. If so, arrange to replace it.
14718         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14719         REPLACE_INET_PTON.
14720         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
14721         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
14722         (Depends-on, configure.ac): Update condition.
14723         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
14724
14725 2011-09-17  Bruno Haible  <bruno@clisp.org>
14726
14727         inet_ntop: Support for MSVC on Windows Vista or newer.
14728         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
14729         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
14730         HAVE_DECL_INET_NTOP is defined.
14731         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14732         On platforms with <winsock2.h>, test whether inet_ntop is declared in
14733         <ws2tcpip.h>. If so, arrange to replace it.
14734         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14735         REPLACE_INET_NTOP.
14736         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
14737         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
14738         (Depends-on, configure.ac): Update condition.
14739         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
14740
14741 2011-09-16  Eric Blake  <eblake@redhat.com>
14742
14743         test-fsync: yet another enhancement
14744         * tests/test-fsync.c (main): Also test behavior on read-only text
14745         file.
14746
14747 2011-09-16  Bruno Haible  <bruno@clisp.org>
14748
14749         Enhance fsync, fdatasync tests.
14750         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
14751         * tests/test-fdatasync.c (main): Likewise.
14752
14753 2011-09-16  Bruno Haible  <bruno@clisp.org>
14754
14755         Support for MSVC compiler: Ensure mode_t gets defined.
14756         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
14757         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14758         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14759         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
14760         * tests/test-fcntl-h.c: Check that mode_t is defined.
14761         * tests/test-sys_stat.c: Likewise.
14762         * tests/test-sys_types.c: Likewise.
14763         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
14764         * doc/posix-headers/sys_stat.texi: Likewise.
14765         * doc/posix-headers/sys_types.texi: Likewise.
14766
14767 2011-09-16  Bruno Haible  <bruno@clisp.org>
14768
14769         sys_stat: Support for MSVC.
14770         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
14771         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
14772         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
14773         MSVC.
14774
14775 2011-09-16  Bruno Haible  <bruno@clisp.org>
14776
14777         Support for MSVC compiler: Ensure off_t gets defined.
14778         * lib/unistd.in.h: Include <sys/types.h>.
14779         * tests/test-fcntl-h.c: Check that off_t is defined.
14780         * tests/test-sys_stat.c: Likewise.
14781         * tests/test-sys_types.c: Likewise.
14782
14783 2011-09-16  Eric Blake  <eblake@redhat.com>
14784
14785         fdatasync: port to Solaris
14786         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
14787         * modules/fdatasync (Link): Document it.
14788         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
14789
14790         fdatasync: port to MacOS X 10.7
14791         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
14792         declared.
14793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
14794         * modules/unistd (Makefile.am): Substitute it.
14795         * lib/unistd.in.h (fdatasync): Declare on MacOS.
14796         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
14797
14798         fdatasync: minor improvements
14799         * modules/fdatasync (Depends-on): Add condition for fsync.
14800         * lib/fdatasync.c (fdatasync): Add comment.
14801         * tests/test-unistd-c++.cc: Test fdatasync.
14802
14803         unistd: update refs to newer POSIX
14804         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
14805         Suggested by Bruno Haible.
14806
14807         fdatasync: new module
14808         * modules/fsync (Description): Document difference to fdatasync.
14809         * modules/fdatasync: New module.
14810         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
14811         * lib/fdatasync.c (fdatasync): Likewise.
14812         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
14813         defaults.
14814         * modules/unistd (Makefile.am): Set witnesses.
14815         * lib/unistd.in.h (fdatasync): Declare.
14816         * MODULES.html.sh: Document it.
14817         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
14818         * modules/fdatasync-tests: New test.
14819         * tests/test-fdatasync.c: Likewise.
14820
14821 2011-09-16  Eric Blake  <eblake@redhat.com>
14822
14823         test-fsync: enhance tests
14824         * modules/fsync-tests (Depends-on): Add errno, for mingw.
14825         * tests/test-fsync.c (main): Enhance test.
14826
14827 2011-09-15  Bruno Haible  <bruno@clisp.org>
14828
14829         Support for MSVC compiler: Ensure ssize_t gets defined.
14830         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
14831         * doc/posix-headers/stdio.texi: Likewise.
14832         * modules/stdio (Depends-on): Add ssize_t.
14833         * modules/sys_socket (Depends-on): Likewise.
14834         * modules/sys_types (Depends-on): Likewise.
14835         * modules/sys_uio (Depends-on): Likewise.
14836         * modules/unistd (Depends-on): Likewise.
14837         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
14838         * tests/test-sys_types.c: Check that ssize_t is defined.
14839
14840 2011-09-14  Bruno Haible  <bruno@clisp.org>
14841
14842         Avoid using #, the m4 comment starter character, near brackets.
14843         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
14844         delimiter character in sed expressions.
14845         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
14846         Suggested by Eric Blake.
14847
14848         Properly quote AC_CHECK_DECLS' 4th argument.
14849         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
14850         argument.
14851         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14852         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14853         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14854         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14855         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14856         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
14857         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
14858         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
14859         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
14860         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14861         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
14862         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14863         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14864         * m4/isinf.m4 (gl_ISINF): Likewise.
14865         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
14866         * m4/readutmp.m4 (gl_READUTMP): Likewise.
14867         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14868         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14869         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14870         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14871         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14872         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14873         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
14874         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14875         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14876         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14877         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
14878         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14879         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14880         Reported by Eric Blake.
14881
14882         Properly quote AC_CHECK_DECL's 4th argument.
14883         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
14884         argument.
14885         * m4/argp.m4 (gl_ARGP): Likewise.
14886         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14887         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14888         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14889         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14890         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
14891         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
14892         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
14893         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14894         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14895         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14896         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14897         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14898         Reported by Eric Blake.
14899
14900 2011-09-14  Eric Blake  <eblake@redhat.com>
14901
14902         opendir: avoid compile warning
14903         * lib/opendir.c (includes): Always include errno.h.
14904         Reported by Tatsuro MATSUOKA.
14905
14906 2011-09-14  Jim Meyering  <meyering@redhat.com>
14907
14908         maint.mk: sc_tight_scope: propagate failure from sub-make
14909         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
14910         Reported by Martin von Gagern.
14911
14912 2011-09-13  Bruno Haible  <bruno@clisp.org>
14913
14914         tempname: Support for MSVC.
14915         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
14916         MSVC.
14917         * modules/tempname (Depends-on): Add fcntl-h.
14918
14919 2011-09-13  Bruno Haible  <bruno@clisp.org>
14920
14921         sys_time: Support for MSVC.
14922         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
14923         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
14924         include <winsock2.h>.
14925         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
14926         function declarations that collide with POSIX.
14927         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
14928         (Makefile.am): Substitute HAVE_WINSOCK2_H.
14929
14930 2011-09-13  Bruno Haible  <bruno@clisp.org>
14931
14932         stat: Support for MSVC.
14933         * lib/stat.c: Include pathmax.h.
14934         * modules/stat (Depends-on): Add pathmax.
14935
14936         pathmax: Support for native Windows.
14937         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
14938
14939 2011-09-12  Bruno Haible  <bruno@clisp.org>
14940
14941         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
14942         * lib/dirent.in.h (struct dirent): New type.
14943         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
14944         DT_WHT): New macros.
14945         (DIR): New type.
14946         (opendir, closedir): Declare only if the module 'opendir' is enabled.
14947         (readdir, rewinddir): New declarations.
14948         * lib/dirent-private.h: New file.
14949         * lib/opendir.c: New file.
14950         * lib/readdir.c: New file.
14951         * lib/rewinddir.c: New file.
14952         * lib/closedir.c: New file.
14953         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
14954         * m4/opendir.m4: New file.
14955         * m4/readdir.m4: New file.
14956         * m4/rewinddir.m4: New file.
14957         * m4/closedir.m4: New file.
14958         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
14959         REPLACE_CLOSEDIR here.
14960         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
14961         readdir, rewinddir are declared.
14962         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
14963         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
14964         HAVE_REWINDDIR, HAVE_CLOSEDIR.
14965         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
14966         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
14967         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
14968         * modules/opendir: New file.
14969         * modules/readdir: New file.
14970         * modules/rewinddir: New file.
14971         * modules/closedir: New file.
14972         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
14973         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
14974         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
14975         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
14976         * NEWS: Mention the 'fchdir' change.
14977
14978 2011-09-11  Bruno Haible  <bruno@clisp.org>
14979
14980         asm-underscore.m4: Support for MSVC.
14981         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
14982         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
14983
14984 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
14985
14986         Doc about crypt functions.
14987         * doc/posix-functions/crypt.texi: Expand range of glibc versions
14988         needing for _GNU_SOURCE to get crypt.
14989         * doc/posix-functions/encrypt.texi: Likewise.
14990         * doc/posix-functions/setkey.texi: Likewise.
14991
14992 2011-09-11  Bruno Haible  <bruno@clisp.org>
14993
14994         doc: Update regarding MSVC 9.
14995         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
14996         tested".
14997         * doc/posix-functions/*.texi: Update with info about MSVC 9.
14998         * doc/posix-headers/*.texi: Likewise.
14999         * doc/pastposix-functions/*.texi: Likewise.
15000         * doc/glibc-functions/*.texi: Likewise.
15001         * doc/glibc-headers/*.texi: Likewise.
15002
15003 2011-09-11  Bruno Haible  <bruno@clisp.org>
15004
15005         unistd et al.: Don't assume <unistd.h> exists.
15006         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
15007         does not exist.
15008         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
15009         exist. But include <stdlib.h>.
15010         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
15011         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
15012         symlink() does not exist.
15013         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
15014         include <io.h> instead.
15015         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
15016         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
15017         include <direct.h> instead.
15018         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
15019         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15020         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
15021         <io.h> instead.
15022         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
15023         correctly if the system does not have hard links.
15024         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
15025         <direct.h> instead.
15026         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
15027         it when looking for function declarations.
15028         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
15029         <direct.h> and <io.h> instead.
15030         * doc/posix-headers/unistd.texi: More details about MSVC problem.
15031
15032 2011-09-11  Bruno Haible  <bruno@clisp.org>
15033
15034         strcase: Support for MSVC.
15035         * modules/strcase (Status, Notice): Remove obsoletion mark.
15036         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
15037         * doc/posix-functions/strncasecmp.texi: Likewise.
15038
15039         strings: Don't assume <strings.h> exists.
15040         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
15041         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
15042         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
15043         * doc/posix-headers/strings.texi: Mention the MSVC problem.
15044
15045 2011-09-11  Bruno Haible  <bruno@clisp.org>
15046
15047         dirent: Don't assume <dirent.h> exists.
15048         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
15049         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
15050         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
15051         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
15052
15053 2011-09-11  Bruno Haible  <bruno@clisp.org>
15054
15055         Fix wint_t on MSVC.
15056         * lib/wchar.in.h (wint_t): On MSVC, override it.
15057         * lib/wctype.in.h (wint_t): Likewise.
15058         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
15059         MSVC.
15060         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
15061         * doc/posix-headers/wctype.texi: Likewise.
15062
15063 2011-09-11  Bruno Haible  <bruno@clisp.org>
15064
15065         sys_types: Fix typo.
15066         * lib/sys_types.in.h: Fix typo in comment.
15067         Reported by Paul Eggert.
15068
15069         Support for MSVC compiler: Ensure size_t gets defined.
15070         * modules/strings (Depends-on): Add 'sys_types'.
15071         * modules/sys_uio (Depends-on): Likewise.
15072         * lib/sys_uio.in.h: Update comment.
15073
15074         C++ tests for module 'sys_types'.
15075         * modules/sys_types-c++-tests: New file.
15076         * tests/test-sys_types-c++.cc: New file.
15077
15078         Tests for module 'sys_types'.
15079         * modules/sys_types-tests: New file.
15080         * tests/test-sys_types.c: New file.
15081
15082         New module 'sys_types'.
15083         * lib/sys_types.in.h: New file.
15084         * m4/sys_types_h.m4: New file.
15085         * modules/sys_types: New file.
15086         * doc/posix-headers/sys_types.texi: Mention the new module and the
15087         size_t problem on MSVC 9.
15088
15089 2011-09-11  Bruno Haible  <bruno@clisp.org>
15090
15091         Support for MSVC compiler: Avoid division by a literal 0.
15092         * lib/math.in.h (NAN): Define through a function call also on MSVC.
15093         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
15094         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
15095         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
15096         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
15097         * tests/infinity.h: New file.
15098         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
15099         on MSVC.
15100         * tests/test-ceilf1.c: Include infinity.h.
15101         (main): Use Infinityf.
15102         * tests/test-ceil1.c: Include infinity.h.
15103         (main): Use Infinityd.
15104         * tests/test-ceill.c: Include infinity.h.
15105         (main): Use Infinityl.
15106         * tests/test-dprintf-posix.c: Include infinity.h.
15107         (test_function): Use Infinityd.
15108         * tests/test-floorf1.c: Include infinity.h.
15109         (main): Use Infinityf.
15110         * tests/test-floor1.c: Include infinity.h.
15111         (main): Use Infinityd.
15112         * tests/test-floorl.c: Include infinity.h.
15113         (main): Use Infinityl.
15114         * tests/test-fprintf-posix.c: Include infinity.h.
15115         (test_function): Use Infinityd.
15116         * tests/test-frexp.c: Include infinity.h.
15117         (main): Use Infinityd.
15118         * tests/test-frexpl.c: Include infinity.h.
15119         (main): Use Infinityl.
15120         * tests/test-isfinite.c: Include infinity.h.
15121         (test_isfinitef): Use Infinityf.
15122         (test_isfinited): Use Infinityd.
15123         (test_isfinitel): Use Infinityl.
15124         * tests/test-isinf.c: Include infinity.h.
15125         (test_isinff): Use Infinityf.
15126         (test_isinfd): Use Infinityd.
15127         (test_isinfl): Use Infinityl.
15128         * tests/test-isnan.c: Include infinity.h.
15129         (test_float): Use Infinityf.
15130         (test_double): Use Infinityd.
15131         (test_long_double): Use Infinityl.
15132         * tests/test-isnanf.h: Include infinity.h.
15133         (main): Use Infinityf.
15134         * tests/test-isnand.h: Include infinity.h.
15135         (main): Use Infinityd.
15136         * tests/test-isnanl.h: Include infinity.h.
15137         (main): Use Infinityl.
15138         * tests/test-ldexpl.c: Include infinity.h.
15139         (main): Use Infinityl.
15140         * tests/test-printf-posix.h: Include infinity.h.
15141         (test_function): Use Infinityd.
15142         * tests/test-roundf1.c: Include infinity.h.
15143         (main): Use Infinityf.
15144         * tests/test-round1.c: Include infinity.h.
15145         (main): Use Infinityd.
15146         * tests/test-roundl.c: Include infinity.h.
15147         (main): Use Infinityl.
15148         * tests/test-signbit.c: Include infinity.h.
15149         (test_signbitf): Use Infinityf.
15150         (test_signbitd): Use Infinityd.
15151         (test_signbitl): Use Infinityl.
15152         * tests/test-snprintf-posix.h: Include infinity.h.
15153         (test_function): Use Infinityd, Infinityl.
15154         * tests/test-sprintf-posix.h: Include infinity.h.
15155         (test_function): Use Infinityd, Infinityl.
15156         * tests/test-truncf1.c: Include infinity.h.
15157         (main): Use Infinityf.
15158         * tests/test-trunc1.c: Include infinity.h.
15159         (main): Use Infinityd.
15160         * tests/test-truncl.c: Include infinity.h.
15161         (main): Use Infinityl.
15162         * tests/test-vasnprintf-posix.c: Include infinity.h.
15163         (test_function): Use Infinityd, Infinityl.
15164         * tests/test-vasprintf-posix.c: Include infinity.h.
15165         (test_function): Use Infinityd, Infinityl.
15166         * modules/ceilf-tests (Files): Add tests/infinity.h.
15167         * modules/ceil-tests (Files): Likewise.
15168         * modules/ceill-tests (Files): Likewise.
15169         * modules/dprintf-posix-tests (Files): Likewise.
15170         * modules/floorf-tests (Files): Likewise.
15171         * modules/floor-tests (Files): Likewise.
15172         * modules/floorl-tests (Files): Likewise.
15173         * modules/fprintf-posix-tests (Files): Likewise.
15174         * modules/frexp-tests (Files): Likewise.
15175         * modules/frexp-nolibm-tests (Files): Likewise.
15176         * modules/frexpl-tests (Files): Likewise.
15177         * modules/frexpl-nolibm-tests (Files): Likewise.
15178         * modules/isfinite-tests (Files): Likewise.
15179         * modules/isinf-tests (Files): Likewise.
15180         * modules/isnan-tests (Files): Likewise.
15181         * modules/isnanf-tests (Files): Likewise.
15182         * modules/isnanf-nolibm-tests (Files): Likewise.
15183         * modules/isnand-tests (Files): Likewise.
15184         * modules/isnand-nolibm-tests (Files): Likewise.
15185         * modules/isnanl-tests (Files): Likewise.
15186         * modules/isnanl-nolibm-tests (Files): Likewise.
15187         * modules/ldexpl-tests (Files): Likewise.
15188         * modules/printf-posix-tests (Files): Likewise.
15189         * modules/roundf-tests (Files): Likewise.
15190         * modules/round-tests (Files): Likewise.
15191         * modules/roundl-tests (Files): Likewise.
15192         * modules/signbit-tests (Files): Likewise.
15193         * modules/snprintf-posix-tests (Files): Likewise.
15194         * modules/sprintf-posix-tests (Files): Likewise.
15195         * modules/truncf-tests (Files): Likewise.
15196         * modules/trunc-tests (Files): Likewise.
15197         * modules/truncl-tests (Files): Likewise.
15198         * modules/vasnprintf-posix-tests (Files): Likewise.
15199         * modules/vasprintf-posix-tests (Files): Likewise.
15200         * modules/vdprintf-posix-tests (Files): Likewise.
15201         * modules/vfprintf-posix-tests (Files): Likewise.
15202         * modules/vprintf-posix-tests (Files): Likewise.
15203         * modules/vsnprintf-posix-tests (Files): Likewise.
15204         * modules/vsprintf-posix-tests (Files): Likewise.
15205         * modules/xprintf-posix-tests (Files): Likewise.
15206
15207 2011-09-11  Bruno Haible  <bruno@clisp.org>
15208
15209         Ensure pid_t gets defined.
15210         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
15211         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15212         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
15213         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15214         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15215         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15216         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
15217         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15218         * tests/test-fcntl-h.c: Check that pid_t is defined.
15219         * tests/test-sched.c: Likewise.
15220         * tests/test-termios.c: Likewise.
15221         * tests/test-time.c: Likewise.
15222         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
15223         * doc/posix-headers/signal.texi: Likewise.
15224         * doc/posix-headers/sys_types.texi: Likewise.
15225         * doc/posix-headers/time.texi: Likewise.
15226
15227 2011-09-11  Bruno Haible  <bruno@clisp.org>
15228
15229         acl: Fix compilation on Solaris 10 (older version).
15230         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
15231         of ACE_EVERYONE.
15232         * lib/set-mode-acl.c (qset_acl): Likewise.
15233         Reported by Christian Jullien <eligis@orange.fr>.
15234
15235 2011-09-10  Bruno Haible  <bruno@clisp.org>
15236
15237         iconv, unsetenv: Add support for MSVC compiler.
15238         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
15239         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
15240
15241 2011-09-10  Bruno Haible  <bruno@clisp.org>
15242
15243         *printf: Add support for MSVC compiler.
15244         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
15245         handles the exception caused by the %n directive. When cross-compiling,
15246         guess no on native Windows.
15247         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15248         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
15249         emulate it through vsnprintf.
15250         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
15251         * doc/posix-functions/dprintf.texi: Update documentation regarding
15252         MSVC 9.
15253         * doc/posix-functions/fprintf.texi: Likewise.
15254         * doc/posix-functions/printf.texi: Likewise.
15255         * doc/posix-functions/snprintf.texi: Likewise.
15256         * doc/posix-functions/sprintf.texi: Likewise.
15257         * doc/posix-functions/swprintf.texi: Likewise.
15258         * doc/posix-functions/vdprintf.texi: Likewise.
15259         * doc/posix-functions/vfprintf.texi: Likewise.
15260         * doc/posix-functions/vprintf.texi: Likewise.
15261         * doc/posix-functions/vsnprintf.texi: Likewise.
15262         * doc/posix-functions/vsprintf.texi: Likewise.
15263         * doc/glibc-functions/asprintf.texi: Likewise.
15264         * doc/glibc-functions/obstack_printf.texi: Likewise.
15265         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15266         * doc/glibc-functions/vasprintf.texi: Likewise.
15267
15268 2011-09-10  Bruno Haible  <bruno@clisp.org>
15269
15270         nocrash: Add support for native Windows.
15271         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
15272
15273 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
15274             Bruno Haible  <bruno@clisp.org>
15275
15276         absolute-header, include-next: Add support for MSVC compiler.
15277         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
15278         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
15279         directory separator in #line directives.
15280         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
15281         recognize also backslash as directory separator in #line directives.
15282
15283 2011-09-08  Jim Meyering  <meyering@redhat.com>
15284
15285         maint.mk: mark the post-release commit log with "maint: " prefix
15286         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
15287         one-line commit-log summary.
15288
15289 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
15290             Bruno Haible  <bruno@clisp.org>
15291
15292         Doc about crypt functions.
15293         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
15294         systems.
15295         * doc/posix-functions/encrypt.texi: Likewise.
15296         * doc/posix-functions/setkey.texi: Likewise.
15297
15298 2011-09-08  Simon Josefsson  <simon@josefsson.org>
15299
15300         * lib/gc.h: Fix copyright header.
15301
15302 2011-09-07  Bruno Haible  <bruno@clisp.org>
15303
15304         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
15305         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
15306         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
15307
15308 2011-09-07  Bruno Haible  <bruno@clisp.org>
15309
15310         openat: Work around compilation error with OSF/1 5.1 DTK cc.
15311         * lib/fopen.c: Use different syntax for include of <stdio.h>.
15312         * lib/freopen.c: Likewise.
15313         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
15314         * lib/lstat.c: Likewise.
15315         * lib/stat.c: Likewise.
15316         * lib/open.c: Use different syntax for include of <fcntl.h>.
15317         * lib/openat.c: Include fcntl.h again, explicitly.
15318
15319 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
15320
15321         parse-datetime: document the newly accepted format
15322         * doc/parse-datetime.texi (Combined date and time of day items):
15323         New section.
15324
15325 2011-09-06  Bruno Haible  <bruno@clisp.org>
15326
15327         acl: Fix a test failure on newer Solaris 10 with ZFS.
15328         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
15329         ENOSYS as no ACL.
15330         Reported by Jim Meyering.
15331
15332 2011-09-06  Bruno Haible  <bruno@clisp.org>
15333
15334         acl: Update for AIX >= 5.3 with NFS.
15335         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
15336         ENOSYS as no ACL.
15337
15338         acl: Fix a test failure on AIX >= 5.3 with NFS.
15339         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
15340         as no ACL.
15341
15342 2011-09-06  Bruno Haible  <bruno@clisp.org>
15343
15344         acl: Fix a test failure on IRIX 6.5 with NFS.
15345         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
15346         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
15347         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
15348         * lib/copy-acl.c (qcopy_acl): Likewise.
15349
15350 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
15351
15352         openat: port to AIX 7.1 with large files
15353         AIX 7.1 does a "#define openat open64at" if large files are in use,
15354         so we can't simply #undef openat.  Use the orig_openat trick (similar
15355         to orig_open in lib/open.c) to work around the problem.  Problem
15356         reported by Kevin Brott for GNU tar, in the thread containing
15357         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
15358         * lib/openat.c (__need_system_fcntl_h): Define first.
15359         Include <fcntl.h> and <sys/types.h> before undefining.
15360         (orig_openat) [HAVE_OPENAT]: New inline function.
15361         (openat) [HAVE_OPENAT]: Do not undef.
15362         (rpl_openat): Use orig_openat, not openat.
15363
15364 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15365             Bruno Haible  <bruno@clisp.org>
15366
15367         acl: Avoid errors on NonStop Kernel.
15368         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
15369         ENOTSUP errors.
15370
15371 2011-09-05  Bruno Haible  <bruno@clisp.org>
15372
15373         acl: Clean up Solaris code.
15374         * lib/acl-internal.h: Remove no-op #if.
15375         * lib/file-has-acl.c: Likewise.
15376         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
15377         * lib/copy-acl.c (qcopy_acl): Likewise.
15378
15379 2011-09-05  Bruno Haible  <bruno@clisp.org>
15380
15381         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
15382         binaries built on the original Solaris 10.
15383         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
15384         trivial.
15385
15386 2011-09-05  Bruno Haible  <bruno@clisp.org>
15387
15388         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15389         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
15390         10.
15391         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
15392         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
15393         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
15394         instead of acl_get, facl_get, acl_set, facl_set.
15395
15396 2011-09-05  Bruno Haible  <bruno@clisp.org>
15397
15398         copy-file: Try unit tests on more file systems.
15399         * tests/test-copy-file-1.sh: New file.
15400         * tests/test-copy-file-2.sh: New file.
15401         * modules/copy-file-tests (Files): Add them.
15402         (Makefile.am): Add them to TESTS.
15403
15404         acl: Try unit tests on more file systems.
15405         * tests/test-file-has-acl-1.sh: New file.
15406         * tests/test-file-has-acl-2.sh: New file.
15407         * tests/test-set-mode-acl-1.sh: New file.
15408         * tests/test-set-mode-acl-2.sh: New file.
15409         * tests/test-copy-acl-1.sh: New file.
15410         * tests/test-copy-acl-2.sh: New file.
15411         * modules/acl-tests (Files): Add them.
15412         (Makefile.am): Add them to TESTS.
15413
15414 2011-09-04  Bruno Haible  <bruno@clisp.org>
15415
15416         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15417         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
15418         10.
15419         (OLD_ALLOW, OLD_DENY): New macros.
15420         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
15421         ACE_ACCESS_ALLOWED_ACE_TYPE.
15422         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
15423         ACE_ACCESS_DENIED_ACE_TYPE.
15424         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
15425         (NEW_ACE_EXECUTE): Fix value.
15426         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
15427         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
15428         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
15429         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
15430         NEW_ACE_SYNCHRONIZE): New macros.
15431         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
15432         instead of acl_fromtext, acl_set, facl_set.
15433         Fixes a coreutils/tests/cp/perm failure.
15434
15435 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
15436
15437         openat: test for fstatat (..., 0) bug
15438         Further testing with tar suggests that fstatat (..., 0)
15439         does not work in general, on AIX 7.1; see
15440         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
15441         So, give up entirely on AIX 7.1's fstatat, and fall back on our
15442         replacement fstatat (which is what older AIX releases were using
15443         anyway).
15444         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
15445         use is now changed to orig_fstatat.  This was probably the right
15446         thing to do anyway.
15447         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
15448         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
15449         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
15450         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
15451         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
15452         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
15453         if the bug is found.
15454
15455         openat: test for fstatat (AT_FDCWD, ..., 0) bug
15456         This tests for another fstatat bug on AIX 7.1:
15457         fstatat (AT_FDCWD, ..., 0) does not work.  See
15458         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
15459         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
15460         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
15461         (rpl_fstatat): Adjust so that it works around either (or both)
15462         bugs if present.
15463         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
15464
15465 2011-09-03  Karl Berry  <karl@gnu.org>
15466
15467         * doc/regex.texi (Character Class Operators): Avoid literal ":"
15468         in index entries.
15469
15470 2011-09-02  Bruno Haible  <bruno@clisp.org>
15471
15472         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
15473         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
15474         values of AR, ARFLAGS, RANLIB.
15475         Reported by John W. Eaton <jwe@gnu.org> for Octave.
15476
15477 2011-09-02  Bruno Haible  <bruno@clisp.org>
15478
15479         Find 'ar' program that fits with --host argument.
15480         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
15481
15482 2011-09-02  Bruno Haible  <bruno@clisp.org>
15483
15484         tests: init.sh: Support any non-GNU diff.
15485         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
15486         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
15487         Solaris 8.
15488
15489 2011-09-02  Bruno Haible  <bruno@clisp.org>
15490
15491         tests: init.sh: work also with any non-GNU diff that supports -u
15492         * tests/init.sh: Relax check for diff -u support.
15493         Rather than checking for GNU diff via --version, simply check
15494         for support for -u itself.  Useful at least on OpenBSD 4.9,
15495         AIX 7.1, IRIX 6.5, and Solaris 10.
15496
15497 2011-09-01  Bruno Haible  <bruno@clisp.org>
15498
15499         strtoimax, strtoumax: Document problem on HP-UX 11.
15500         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
15501         * doc/posix-functions/strtoumax.texi: Likewise.
15502
15503 2011-09-01  Bruno Haible  <bruno@clisp.org>
15504
15505         strtoumax: Avoid link error on OSF/1 with DTK cc.
15506         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
15507         defined as a function.
15508         * modules/strtoumax (Depends-on, configure.ac): Test only whether
15509         strtoumax is defined, not whether it is declared.
15510
15511 2011-09-01  Bruno Haible  <bruno@clisp.org>
15512
15513         strtoimax: Avoid link error on OSF/1 with DTK cc.
15514         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
15515         defined as a function.
15516         * modules/strtoimax (Depends-on, configure.ac): Test only whether
15517         strtoimax is defined, not whether it is declared.
15518
15519 2011-09-01  Bruno Haible  <bruno@clisp.org>
15520
15521         imaxdiv: Avoid link error on OSF/1 with DTK cc.
15522         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
15523         as a function.
15524         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
15525         whether it is declared.
15526
15527 2011-09-01  Bruno Haible  <bruno@clisp.org>
15528
15529         imaxabs: Avoid link error on OSF/1 with DTK cc.
15530         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
15531         as a function.
15532         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
15533         whether it is declared.
15534
15535 2011-09-01  Bruno Haible  <bruno@clisp.org>
15536
15537         Tests for module 'strtoumax'.
15538         * modules/strtoumax-tests: New file.
15539         * tests/test-strtoumax.c: New file.
15540
15541         Tests for module 'strtoimax'.
15542         * modules/strtoimax-tests: New file.
15543         * tests/test-strtoimax.c: New file.
15544
15545         Tests for module 'imaxdiv'.
15546         * modules/imaxdiv-tests: New file.
15547         * tests/test-imaxdiv.c: New file.
15548
15549         Tests for module 'imaxabs'.
15550         * modules/imaxabs-tests: New file.
15551         * tests/test-imaxabs.c: New file.
15552
15553 2011-09-01  Bruno Haible  <bruno@clisp.org>
15554
15555         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
15556         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
15557         pthread_create.
15558
15559 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15560
15561         openat: work around AIX 7.1 fstatat issue
15562         This should fix the problem that was not properly fixed
15563         in the previous change, dated 2011-08-30.
15564         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
15565         __need_system_stat_h defined.
15566         (orig_fstatat) [HAVE_FSTATAT]: New function.
15567         (rpl_fstatat): Go back to the old way of doing things,
15568         except call orig_fstatat instead of fstatat.
15569         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
15570         Remove unnecessary check whether fstatat fills in st_size etc.
15571
15572 2011-09-01  Bruno Haible  <bruno@clisp.org>
15573
15574         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
15575         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
15576         just include the system's header.
15577
15578 2011-08-31  Jim Meyering  <meyering@redhat.com>
15579
15580         tests: avoid spurious assertion failure in test-float.c on ppc64
15581         * tests/test-float.c (test_long_double): Comment out an assertion,
15582         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
15583         with gcc-4.4.4.
15584
15585         maint: indent with spaces, not TABs
15586         I need to get in the habit of running gnulib's "make check".
15587         Both of these would have been caught.
15588         * m4/largefile.m4: Indent with spaces, not TABs.
15589         * lib/parse-datetime.y (iso_8601_time): Likewise.
15590         Spotted by Pádraig Brady.
15591
15592         test-parse-datetime.c: accommodate a relatively strict gcc warning
15593         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
15594         to avoid a warning from gcc's -Werror=missing-declarations.
15595         Insert a few spaces-before-funcall-parenthesis.
15596
15597 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
15598
15599         parse-datetime: accept ISO 8601 date and time rep with "T" separator
15600         The parser now accepts ISO 8601 date-time strings with "T" as the
15601         separator.  It has long parsed dates like "2004-02-29 16:21:42"
15602         with a space between the date and time strings.  Now it also parses
15603         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
15604         variants like "2004-02-29T16:21:42.333-07:00"
15605         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
15606         of day representation using the 'T' separator character.
15607         * doc/parse-datetime.texi (General date syntax): replace use of
15608         deprecated --iso-8601 option with --rfc-3339 in example of date
15609         command output formats that can be parsed.
15610         * tests/test-parse-datetime.c (tm_diff): New function, taken from
15611         lib/parse-datetime.y.
15612         (gmt_offset): New function.
15613         (main): Add additional test cases to validate ISO8601 extended
15614         date and time of day parsing.
15615
15616 2011-08-31  Bruno Haible  <bruno@clisp.org>
15617
15618         freopen: Documentation.
15619         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
15620         name.
15621         Reported by Claudio Bley <claudio.bley@gmail.com>.
15622
15623 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
15624
15625         freopen: Don't crash if the filename argument is NULL.
15626         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
15627         NULL.
15628
15629 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15630
15631         openat: work around AIX 7.1 fstatat bug
15632         Problem reported by Kevin Brott for GNU tar, in the thread containing
15633         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
15634         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
15635         FSTATAT_ST_SIZE_ETC_BROKEN.
15636         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
15637         rpl_fstatat.
15638         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
15639         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
15640         AC_CHECK_FUNCS_ONCE for fstatat.
15641         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
15642         fchmodat, mkdirat, openat and unlinkat.
15643
15644 2011-08-30  Bruno Haible  <bruno@clisp.org>
15645
15646         Avoid endless recursions if config.h includes some header files.
15647         * lib/fopen.c (__need_FILE): Define already before including config.h.
15648         * lib/freopen.c (__need_FILE): Likewise.
15649         * lib/open.c (__need_system_fcntl_h): Likewise.
15650         * lib/stat.c (__need_system_sys_stat_h): Likewise.
15651         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
15652         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
15653
15654 2011-08-25  Karl Berry  <karl@gnu.org>
15655
15656         * config/srclist.txt (ylwrap): new try.
15657         * build-aux/ylwrap: new file.
15658
15659 2011-08-23  Bruno Haible  <bruno@clisp.org>
15660
15661         tmpdir: Use a good default directory on native Windows.
15662         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
15663         (P_tmpdir): Default to _P_tmpdir on native Windows.
15664         (path_search): On native Windows, try the value returned by GetTempPath
15665         before trying P_tmpdir.
15666         * modules/tmpdir (Depends-on): Add pathmax.
15667         Suggested by John Darrington <john@darrington.wattle.id.au>.
15668
15669 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
15670
15671         doc: fix typo in README-release
15672         * top/README-release: Capitalize first word of a sentence.
15673
15674 2011-08-19  Jim Meyering  <meyering@redhat.com>
15675
15676         fts: do not exhaust memory when processing million-entry directories
15677         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
15678         directory would require about 256*N bytes of memory.  Thus, it was
15679         easy to construct a directory too large to be processed by any of
15680         those tools.  With this change, fts' maximum memory utilization is
15681         now limited to around 30MB.
15682         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
15683         (fts_read): When we've processed the final entry (i.e., when
15684         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
15685         using the parent entry to read any remaining entries.  Dispatch
15686         depending on what fts_build returns:
15687         - NULL+stop, aka failure: stop
15688         - NULL otherwise: move up in the dir hierarchy
15689         - non-NULL: handle this new entry
15690         (fts_build): Declare and use new local, continue_readdir.
15691         Prepare to be called from fts_read, when the entries
15692         from a partially-read directory have just been exhausted.
15693         In that case, we'll skip the opendir and instead use the parent's
15694         fts_dirp and derive dir_fd from that.
15695         Finally, in the readdir loop, if we read max_entries entries,
15696         exit the loop ensuring *not* to call closedir.  This is required
15697         so that fts_dirp can be reused on a subsequent call.
15698         Prompted by Ben England's report of memory exhaustion in find
15699         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
15700
15701         maint: fts: move decl of `dp' down into while loop; split a long line
15702         * lib/fts.c (fts_build): No semantic change.
15703
15704         fts: add/use new struct member, fts_dirp
15705         We are about to use this to manage any directory with
15706         too many entries to read all of them into memory at once.
15707         To do that, we'll need to save the DIR* pointer in each
15708         affected FTSENT struct.
15709         * lib/fts_.h: Include <dirent.h>.
15710         (struct FTSENT) [fts_dirp]: New member.
15711         * lib/fts.c (closedir_and_clear): Define.
15712         Use it in place of closedir so that we are sure to
15713         clear the new fts_dirp member when done with it.
15714         (fts_alloc): Initialize the new member.
15715         (fts_lfree): Free, if needed.
15716
15717         maint: fts: give __opendir2 a new parameter and rename
15718         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
15719         than surreptitiously using sole caller's "dir_fd".
15720         (fts_opendir): Rename from __opendir2.
15721
15722         maint: fts.c: remove __opendir2's now-unused parameter, oflag
15723         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
15724
15725         maint: fts.c: correct off-by-one indentation
15726         * lib/fts.c (fts_build): Correct indentation, change style
15727         of a couple of block comments, and bracing style.
15728
15729         maint: fts.c: move __opendir2 #define "up" out of function body
15730         * lib/fts.c (__opendir2): Move "up".  No semantic change.
15731
15732         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
15733         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
15734         out for a long time and besides was useful only on BSD systems.
15735
15736 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15737
15738         regex: port to Stratus OpenVOS
15739         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
15740         define to empty, rather than attempting nonportable optimizations.
15741         Problem reported by Paul Green in:
15742         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
15743         and fix suggested by Eric Blake in:
15744         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
15745
15746 2011-08-17  Eric Blake  <eblake@redhat.com>
15747
15748         getcwd: fix test failures on mingw
15749         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
15750         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
15751         test if long directory cannot be created, and allow mingw errno.
15752
15753         getcwd-lgpl: fix m4 to match relaxed test for BSD
15754         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
15755         (gl_FUNC_GETCWD_SIGNATURE): New macro.
15756         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
15757         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
15758         signature problem.
15759
15760         getcwd: fix compilation on mingw64
15761         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
15762         getcwd.
15763         Reported by Marc-André Lureau.
15764
15765         pipe2: silence compiler warning
15766         * lib/pipe2.c (pipe2): Hide label if it is not used.
15767
15768 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
15769
15770         relocatable-prog: fix link error
15771         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
15772         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
15773         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
15774         into modules/relocatable-lib without noticing that
15775         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
15776         also needs to build relocatable.c.
15777
15778 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15779
15780         getaddrinfo: fix sh typo in gai_strerrorA decl checking
15781         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
15782         shell code: it contained a 'break' that was not in a loop.
15783         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
15784         via a shell-language loop; this may have been true in old Autoconf
15785         versions, but it's not true in Autoconf 2.68.  I found this bug
15786         when testing coreutils git on Solaris 8, whose shell complains
15787         about the syntax error.
15788
15789 2011-08-12  Simon Josefsson  <simon@josefsson.org>
15790
15791         * lib/base64.c: Fix comment to reference RFC 4648.
15792         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
15793         <gvtulder@gmail.com>.
15794
15795 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15796
15797         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
15798
15799         po/Makefile.in.in: fix make -q problem
15800         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
15801         rule, since there's no file named 'check-macro-version' and its
15802         use as a file breaks make -q.
15803         (all): Don't depend on check-macro-version.
15804         (CHECK_MACRO_VERSION): New macro.
15805         (stamp-po): Use it.
15806
15807         configmake: fix make -q problem
15808         * modules/configmake (configmake.h): Update configmake.h's time stamp
15809         even if the file does not change.  Otherwise, 'make -q' fails.
15810         Problem reported by Simon Josefsson in
15811         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
15812
15813 2011-08-11  Jim Meyering  <meyering@redhat.com>
15814
15815         git-version-gen: correct the advice in a comment
15816         * build-aux/git-version-gen: Correct comment.
15817         Don't recommend to list .tarball-version in .gitignore.
15818
15819 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15820
15821         base64: fix off-by-one buffer size bug
15822         Problem and (trivial) fix reported by Gijs van Tulder in
15823         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
15824         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
15825         * tests/test-base64.c (main): Catch the bug.
15826
15827 2011-08-10  Eric Blake  <eblake@redhat.com>
15828
15829         closein: correct comments
15830         * lib/closein.c (close_stdin): Improve comments.
15831
15832 2011-08-09  Bruno Haible  <bruno@clisp.org>
15833
15834         More tests for 'fseeko'.
15835         * tests/test-fseeko3.c: New file, from Eric Blake.
15836         * tests/test-fseeko3.sh: New file.
15837         * modules/fseeko-tests (Files): Add them.
15838         (TESTS): Add test-fseeko3.sh.
15839         (check_PROGRAMS): Add test-fseeko3.
15840
15841 2011-08-09  Eric Blake  <eblake@redhat.com>
15842
15843         fseeko: remove unneeded hack
15844         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
15845
15846         fseeko: fix bug on glibc
15847         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
15848         Reported by John W. Eaton.
15849
15850 2011-08-08  Bruno Haible  <bruno@clisp.org>
15851
15852         unictype/base: Fix interoperability with preinstalled libunistring.
15853         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
15854         Reported by Simon Josefsson.
15855
15856 2011-08-08  Bruno Haible  <bruno@clisp.org>
15857
15858         iswblank: Detect declaration correctly.
15859         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
15860         AC_CHECK_DECLS invocation.
15861
15862 2011-08-08  Bruno Haible  <bruno@clisp.org>
15863
15864         tcgetsid: Detect declaration correctly.
15865         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
15866         AC_CHECK_DECLS invocation.
15867         Reported by Simon Josefsson.
15868
15869 2011-08-08  Eric Blake  <eblake@redhat.com>
15870
15871         largefile: fix typo that regressed large file support
15872         * modules/largefile (configure.ac-early): Fix section name.
15873
15874 2011-08-06  Karl Berry  <karl@gnu.org>
15875
15876         * MODULES.html.sh (func_all_files): _Noreturn is no longer
15877         a separate module.
15878
15879 2011-08-05  Simon Josefsson  <simon@josefsson.org>
15880
15881         openat: Fix warnings and commens when building unlinkat.c on Hurd.
15882         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
15883         get prototype for free.
15884
15885 2011-08-04  Bruno Haible  <bruno@clisp.org>
15886
15887         Tests for module 'pathmax'.
15888         * modules/pathmax-tests: New file.
15889         * tests/test-pathmax.c: New file.
15890
15891         canonicalize-lgpl: Support larger filenames on the Hurd.
15892         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
15893         Reported by Paul Eggert.
15894
15895         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
15896         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
15897         * lib/chdir-long.h: Include pathmax.h.
15898         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
15899         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
15900         (PATH_MAX): Remove code that is done by pathmax.h.
15901         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
15902         * lib/tmpfile.c: Add a comment.
15903         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
15904         * modules/chdir-long (Depends-on): Add pathmax.
15905         * modules/getcwd (Depends-on): Add pathmax.
15906         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
15907         is not defined.
15908         * doc/posix-headers/limits.texi: Mention the pathmax module.
15909         * NEWS: Mention the change.
15910
15911 2011-08-02  Bruno Haible  <bruno@clisp.org>
15912
15913         pthread_sigmask: Actually use results of gl_THREADLIB.
15914         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
15915         gl_THREADLIB, not gl_[]THREADLIB.
15916         Reported by Eric Blake.
15917
15918 2011-08-02  Jim Meyering  <meyering@redhat.com>
15919
15920         maint.mk: relax the default _gl_TS_function_match regexp
15921         * top/maint.mk (_gl_TS_function_match): Don't require at least one
15922         space between function name and "(" in an "extern" declaration.
15923         That would fail to match a decl with no space there: extern void foo();
15924
15925 2011-07-31  Iain Nicol  <iain@thenicols.net>
15926
15927         git-version-gen: document that EXTRA_DIST must include .version
15928         * build-aux/git-version-gen: In the how-to-use comment, document
15929         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
15930         will fail when run from an unpacked distribution tarball.
15931
15932 2011-08-01  Bruno Haible  <bruno@clisp.org>
15933
15934         wctype-h: Fix last change.
15935         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
15936         REPLACE_TOWLOWER to 0.
15937         Reported by Sam Steingold <sds@gnu.org>.
15938
15939 2011-07-31  Bruno Haible  <bruno@clisp.org>
15940
15941         frexpl: Update autoconf test.
15942         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
15943         according to changes of 2011-06-20.
15944
15945 2011-07-31  Bruno Haible  <bruno@clisp.org>
15946
15947         sys_utsname: Add support for Minix.
15948         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
15949         <sys/utsname.h>.
15950         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15951         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
15952
15953 2011-07-31  Bruno Haible  <bruno@clisp.org>
15954
15955         strings: Add support for Minix.
15956         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
15957         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
15958         * doc/posix-headers/strings.texi: Document the Minix problem.
15959
15960 2011-07-31  Bruno Haible  <bruno@clisp.org>
15961
15962         wctype-h: Add support for Minix.
15963         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
15964         REPLACE_TOWLOWER.
15965         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
15966         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
15967         REPLACE_ISWCNTRL.
15968
15969 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
15970
15971         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
15972         This is a performance improvement for 64-bit hosts: it causes the
15973         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
15974
15975 2011-07-31  Bruno Haible  <bruno@clisp.org>
15976
15977         stdioext: Add support for Minix.
15978         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
15979         * lib/fpurge.c (fpurge): Likewise.
15980         * lib/freadahead.c (freadahead): Likewise.
15981         * lib/freadable.c (freadable): Likewise.
15982         * lib/freading.c (freading): Likewise.
15983         * lib/freadptr.c (freadptr): Likewise.
15984         * lib/freadseek.c (freadptrinc): Likewise.
15985         * lib/fseeko.c (rpl_fseeko): Likewise.
15986         * lib/fseterr.c (fseterr): Likewise.
15987         * lib/fwritable.c (fwritable): Likewise.
15988         * lib/fwriting.c (fwriting): Likewise.
15989         * lib/fflush.c (clear_ungetc_buffer): Update comment.
15990         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
15991
15992 2011-07-31  Bruno Haible  <bruno@clisp.org>
15993
15994         errno: Port to Minix.
15995         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
15996         ECONNABORTED are defined.
15997         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
15998         GNULIB_defined_ECONNABORTED): New macros.
15999         * lib/strerror-override.h (strerror_override): Test also
16000         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
16001         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
16002         ECONNABORTED.
16003         * doc/posix-headers/errno.texi: Mention the Minix problem.
16004
16005 2011-07-31  Bruno Haible  <bruno@clisp.org>
16006
16007         Work around declaration collisions on Minix.
16008         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
16009         defined, set REPLACE_MBSINIT.
16010         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
16011         defined, set REPLACE_MBRTOWC.
16012         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
16013         set REPLACE_MBRLEN.
16014         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
16015         defined, set REPLACE_MBSRTOWCS.
16016         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
16017         defined, set REPLACE_WCRTOMB.
16018         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
16019         defined, set REPLACE_WCSRTOMBS.
16020
16021 2011-07-31  Bruno Haible  <bruno@clisp.org>
16022
16023         Add support for Minix with ACK compiler.
16024         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
16025         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
16026         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
16027
16028 2011-07-31  Bruno Haible  <bruno@clisp.org>
16029
16030         Documentation about Minix.
16031         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
16032         * doc/glibc-headers/*.texi: Likewise.
16033         * doc/posix-functions/*.texi: Likewise.
16034         * doc/glibc-functions/*.texi: Likewise.
16035
16036 2011-07-31  Bruno Haible  <bruno@clisp.org>
16037
16038         snippet/warn-on-use: Fix indentation.
16039         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
16040
16041 2011-07-25  Jim Meyering  <meyering@redhat.com>
16042
16043         tests: test-update-copyright.sh: remove unnecessary "rm" commands
16044         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
16045         commands.
16046
16047 2011-07-27  Jim Meyering  <meyering@redhat.com>
16048
16049         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
16050         * top/maint.mk (gl_extract_significant_defines_): Now that
16051         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
16052         gnulib/lib/signal.in.h, and now that we recommend to
16053         define-if-undefined those two symbols in application code,
16054         we must filter them out of the "significant" list.
16055         This avoids a "make syntax-check" failure in coreutils.
16056
16057 2011-07-26  Eric Blake  <eblake@redhat.com>
16058
16059         warnings: add comments about previous patch
16060         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
16061         * m4/include_next.m4: Likewise.
16062         * m4/warn-on-use.m4: Likewise.
16063         * m4/warnings.m4: Likewise, and simplify use.
16064         Suggested by Stefano Lattarini.
16065
16066         include-next, warnings: support older autoconf
16067         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
16068         AS_VAR_PUSHDEF in a way that works with older autoconf.
16069         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
16070         Reported by Daniel P. Berrange.
16071
16072 2011-07-25  Bruno Haible  <bruno@clisp.org>
16073
16074         fseek, ftell: Fix doc.
16075         * doc/posix-functions/fseek.texi: Reword statement about
16076         AC_SYS_LARGEFILE.
16077         * doc/posix-functions/ftell.texi: Likewise.
16078
16079 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16080             Bruno Haible  <bruno@clisp.org>
16081
16082         Add dependencies to the 'largefile' module.
16083         * modules/fopen (Depends-on): Add 'largefile'.
16084         * modules/freopen (Depends-on): Likewise.
16085         * modules/fseeko (Depends-on): Likewise.
16086         * modules/ftello (Depends-on): Likewise.
16087         * modules/glob (Depends-on): Likewise.
16088         * modules/lseek (Depends-on): Likewise.
16089         * modules/lstat (Depends-on): Likewise.
16090         * modules/mkostemp (Depends-on): Likewise.
16091         * modules/mkostemps (Depends-on): Likewise.
16092         * modules/mkstemp (Depends-on): Likewise.
16093         * modules/mkstemps (Depends-on): Likewise.
16094         * modules/open (Depends-on): Likewise.
16095         * modules/openat (Depends-on): Likewise.
16096         * modules/pread (Depends-on): Likewise.
16097         * modules/pwrite (Depends-on): Likewise.
16098         * modules/scandir (Depends-on): Likewise.
16099         * modules/stat (Depends-on): Likewise.
16100         * modules/tmpfile (Depends-on): Likewise.
16101         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
16102         since the containing module now depends on the largefile module.
16103         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
16104         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
16105         off_t is fixed by gnulib.
16106         * doc/posix-functions/freopen.texi: Likewise.
16107         * doc/posix-functions/fseeko.texi: Likewise.
16108         * doc/posix-functions/fstatat.texi: Likewise.
16109         * doc/posix-functions/ftello.texi: Likewise.
16110         * doc/posix-functions/glob.texi: Likewise.
16111         * doc/posix-functions/lseek.texi: Likewise.
16112         * doc/posix-functions/lstat.texi: Likewise.
16113         * doc/posix-functions/mkstemp.texi: Likewise.
16114         * doc/posix-functions/open.texi: Likewise.
16115         * doc/posix-functions/openat.texi: Likewise.
16116         * doc/posix-functions/pread.texi: Likewise.
16117         * doc/posix-functions/pwrite.texi: Likewise.
16118         * doc/posix-functions/scandir.texi: Likewise.
16119         * doc/posix-functions/stat.texi: Likewise.
16120         * doc/posix-functions/tmpfile.texi: Likewise.
16121         * doc/glibc-functions/mkostemp.texi: Likewise.
16122         * doc/glibc-functions/mkostemps.texi: Likewise.
16123         * doc/glibc-functions/mkstemps.texi: Likewise.
16124
16125 2011-07-25  Bruno Haible  <bruno@clisp.org>
16126
16127         fcntl: Move AC_LIBOBJ invocation to module description.
16128         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
16129         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
16130
16131         fcntl: Remove call-in from fchdir.m4.
16132         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
16133         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
16134
16135         dup3: Remove potential call-in from fchdir.m4.
16136         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
16137         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
16138
16139         dup2: Move AC_LIBOBJ invocation to module description.
16140         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
16141         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
16142         Don't invoke AC_LIBOBJ.
16143         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
16144
16145         dup2: Remove call-in from fchdir.m4.
16146         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
16147         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
16148
16149         fclose: Move AC_LIBOBJ invocation to module description.
16150         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
16151         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
16152         to 1.
16153         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
16154
16155         fclose: Remove call-in from close.m4.
16156         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
16157         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
16158
16159         close: Move AC_LIBOBJ invocation to module description.
16160         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
16161         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
16162         1.
16163         * modules/close (configure.ac): Invoke AC_LIBOBJ.
16164
16165         close: Remove call-in from fchdir.m4.
16166         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
16167         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
16168
16169         open: Move AC_LIBOBJ invocation to module description.
16170         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
16171         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
16172         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
16173
16174         open: Remove call-in from fchdir.m4.
16175         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
16176         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
16177
16178         fchdir: Start to remove gl_REPLACE_* idiom.
16179         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
16180         (gl_FUNC_FCHDIR): Invoke it.
16181
16182 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16183
16184         * lib/ftell.c (ftell): Comment out cast.
16185
16186         close: use gl_REPLACE_FCLOSE only if defined
16187         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
16188         is defined.  The close module doesn't depend on the fclose module
16189         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
16190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
16191         I reproduced the problem with "./gnulib-tool --test close sys_socket".
16192
16193 2011-07-24  Jim Meyering  <meyering@redhat.com>
16194
16195         test-select.h: avoid warning when using gcc's -Wmissing-declarations
16196         * tests/test-select.h (test_function): Declare as "static".
16197
16198 2011-07-24  Bruno Haible  <bruno@clisp.org>
16199
16200         doc: Mention the effects of AC_SYS_LARGEFILE.
16201         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
16202         on this function.
16203         * doc/posix-functions/aio_error.texi: Likewise.
16204         * doc/posix-functions/aio_fsync.texi: Likewise.
16205         * doc/posix-functions/aio_read.texi: Likewise.
16206         * doc/posix-functions/aio_return.texi: Likewise.
16207         * doc/posix-functions/aio_suspend.texi: Likewise.
16208         * doc/posix-functions/aio_write.texi: Likewise.
16209         * doc/posix-functions/fgetpos.texi: Likewise.
16210         * doc/posix-functions/fopen.texi: Likewise.
16211         * doc/posix-functions/freopen.texi: Likewise.
16212         * doc/posix-functions/fsetpos.texi: Likewise.
16213         * doc/posix-functions/fstatvfs.texi: Likewise.
16214         * doc/posix-functions/ftruncate.texi: Likewise.
16215         * doc/posix-functions/ftw.texi: Likewise.
16216         * doc/posix-functions/getrlimit.texi: Likewise.
16217         * doc/posix-functions/glob.texi: Likewise.
16218         * doc/posix-functions/lio_listio.texi: Likewise.
16219         * doc/posix-functions/lockf.texi: Likewise.
16220         * doc/posix-functions/mkstemp.texi: Likewise.
16221         * doc/posix-functions/mmap.texi: Likewise.
16222         * doc/posix-functions/nftw.texi: Likewise.
16223         * doc/posix-functions/openat.texi: Likewise.
16224         * doc/posix-functions/opendir.texi: Likewise.
16225         * doc/posix-functions/posix_fadvise.texi: Likewise.
16226         * doc/posix-functions/posix_fallocate.texi: Likewise.
16227         * doc/posix-functions/pread.texi: Likewise.
16228         * doc/posix-functions/pwrite.texi: Likewise.
16229         * doc/posix-functions/readdir.texi: Likewise.
16230         * doc/posix-functions/readdir_r.texi: Likewise.
16231         * doc/posix-functions/rewinddir.texi: Likewise.
16232         * doc/posix-functions/scandir.texi: Likewise.
16233         * doc/posix-functions/seekdir.texi: Likewise.
16234         * doc/posix-functions/setrlimit.texi: Likewise.
16235         * doc/posix-functions/statvfs.texi: Likewise.
16236         * doc/posix-functions/telldir.texi: Likewise.
16237         * doc/posix-functions/tmpfile.texi: Likewise.
16238         * doc/posix-functions/truncate.texi: Likewise.
16239         * doc/glibc-functions/fallocate.texi: Likewise.
16240         * doc/glibc-functions/fstatfs.texi: Likewise.
16241         * doc/glibc-functions/fts_children.texi: Likewise.
16242         * doc/glibc-functions/fts_read.texi: Likewise.
16243         * doc/glibc-functions/getdirentries.texi: Likewise.
16244         * doc/glibc-functions/mkostemp.texi: Likewise.
16245         * doc/glibc-functions/mkostemps.texi: Likewise.
16246         * doc/glibc-functions/mkstemps.texi: Likewise.
16247         * doc/glibc-functions/preadv.texi: Likewise.
16248         * doc/glibc-functions/pwritev.texi: Likewise.
16249         * doc/glibc-functions/sendfile.texi: Likewise.
16250         * doc/glibc-functions/statfs.texi: Likewise.
16251
16252 2011-07-24  Bruno Haible  <bruno@clisp.org>
16253
16254         doc: Fix typo.
16255         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
16256
16257 2011-07-24  Bruno Haible  <bruno@clisp.org>
16258
16259         doc: Mention fsusage.
16260         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
16261
16262 2011-07-24  Bruno Haible  <bruno@clisp.org>
16263
16264         doc: Mention new glibc headers and functions.
16265         * doc/glibc-headers/gshadow.texi: New file.
16266         * doc/glibc-functions/endsgent.texi: New file.
16267         * doc/glibc-functions/fgetsgent.texi: New file.
16268         * doc/glibc-functions/fgetsgent_r.texi: New file.
16269         * doc/glibc-functions/getsgent.texi: New file.
16270         * doc/glibc-functions/getsgent_r.texi: New file.
16271         * doc/glibc-functions/getsgnam.texi: New file.
16272         * doc/glibc-functions/getsgnam_r.texi: New file.
16273         * doc/glibc-functions/putsgent.texi: New file.
16274         * doc/glibc-functions/setsgent.texi: New file.
16275         * doc/glibc-functions/sgetsgent.texi: New file.
16276         * doc/glibc-functions/sgetsgent_r.texi: New file.
16277         * doc/glibc-functions/malloc_info.texi: New file.
16278         * doc/glibc-functions/preadv.texi: New file.
16279         * doc/glibc-functions/pwritev.texi: New file.
16280         * doc/glibc-functions/register_printf_modifier.texi: New file.
16281         * doc/glibc-functions/register_printf_specifier.texi: New file.
16282         * doc/glibc-functions/register_printf_type.texi: New file.
16283         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
16284         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
16285         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
16286         * doc/glibc-functions/pthread_getname_np.texi: New file.
16287         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
16288         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
16289         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
16290         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
16291         * doc/glibc-functions/pthread_setname_np.texi: New file.
16292         * doc/glibc-functions/pthread_sigqueue.texi: New file.
16293         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
16294         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
16295         * doc/glibc-functions/qsort_r.texi: New file.
16296         * doc/glibc-functions/quick_exit.texi: New file.
16297         * doc/glibc-functions/syncfs.texi: New file.
16298         * doc/gnulib.texi: Include them.
16299         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
16300         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
16301         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
16302         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
16303         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
16304         * doc/glibc-functions/execvpe.texi: Likewise.
16305
16306 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16307
16308         ftell: don't include <unistd.h>
16309         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
16310         guaranteed to define off_t, and the ftell module depends on the
16311         stdio module.
16312
16313         ftell: do not assume wraparound signed arithmetic
16314         * lib/ftell.c: Include <limits.h>.
16315         (ftell): Don't assume wraparound signed arithmetic.
16316
16317 2011-07-24  Bruno Haible  <bruno@clisp.org>
16318
16319         close: No longer depend on module 'fclose'.
16320         * modules/close (Depends-on): Remove fclose.
16321         * NEWS: Mention the change.
16322         Suggested by Sam Steingold <sds@gnu.org>.
16323
16324 2011-07-24  Bruno Haible  <bruno@clisp.org>
16325
16326         fsusage: Enable large volume support on AIX >= 5.2.
16327         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
16328         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
16329         instead of STAT_STATVFS.
16330         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
16331
16332         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
16333         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
16334         f_blocks field only on MacOS X.
16335
16336         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
16337         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
16338         * modules/fsusage (Depends-on): Add largefile.
16339
16340 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16341
16342         * README: Modernize discussion of signed integers.
16343         Assuming overflow wraparound is no longer safe.
16344         Mention ones' complement and signed magnitude.
16345
16346 2011-07-22  Bruno Haible  <bruno@clisp.org>
16347
16348         select tests, pselect tests: Refactor.
16349         * tests/test-select.h: New file, extracted from tests/test-select.c.
16350         (select_fn): New type.
16351         (test, do_select, do_select_nowait, do_select_wait, test_tty,
16352         test_connect_first, test_accept_first, test_pair, test_socket_pair,
16353         test_pipe): Add my_select argument.
16354         (test_function): Renamed from main. Add my_select argument.
16355         * tests/test-select.c: Move most code to tests/test-select.h. Include
16356         test-select.h.
16357         * modules/select-tests (Files): Add tests/test-select.h.
16358         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
16359         (my_select, main): New functions.
16360         * modules/pselect-tests (Files): Add tests/test-select.h,
16361         tests/macros.h, tests/signature.h.
16362         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
16363         (configure.ac): Check for <sys/wait.h>.
16364
16365 2011-07-22  Bruno Haible  <bruno@clisp.org>
16366
16367         sys_select tests: Check the signature of FD_*.
16368         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
16369         signature tests from here...
16370         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
16371         here.
16372         * modules/sys_select-tests (Files): Add tests/signature.h.
16373
16374 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
16375
16376         largefile: new module, replacing large-inode
16377         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
16378         * MODULES.html.sh: Add largefile, remove large-inode.
16379         * modules/largefile, m4/largefile.m4: New files.
16380         * modules/large-inode, m4/large-inode.m4: Remove.
16381
16382         fsusage: port to MacOS X 10.7 with 4 TiB file systems
16383         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
16384         implementations that use only 32 bits to count blocks.
16385         On typical hosts with 1024-byte blocks, this fails with file
16386         systems as small as 4 TiB.  Problem reported by Herb Wartens
16387         <http://debbugs.gnu.org/9140> and this should also fix a similar
16388         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
16389
16390         large-inode: New module
16391         * MODULES.html.sh: Add it.
16392         * modules/large-inode, m4/large-inode.m4: New files.
16393
16394         extensions: Enable extensions on MacOS X 10.5 and later.
16395         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
16396
16397 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
16398
16399         file-has-acl: use acl_extended_file_nofollow if available
16400         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
16401         (acl_extended_file): New macro.
16402         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
16403         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
16404
16405 2011-07-21  Bruno Haible  <bruno@clisp.org>
16406
16407         Declare system functions in a way that works with C++.
16408         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
16409         declare fdopendir as extern "C".
16410         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
16411         declare frexpl as extern "C".
16412         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
16413         declare gai_strerror as extern "C".
16414         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
16415         programs, declare gai_strerror as extern "C".
16416         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
16417         declare getlogin_r as extern "C".
16418         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
16419         as extern "C".
16420         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
16421         declare ldexpl as extern "C".
16422         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
16423         as extern "C".
16424         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
16425         program, declare getmntinfo as extern "C".
16426         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
16427         stpncpy as extern "C".
16428         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
16429         program, declare __xpg_strerror_r as extern "C".
16430         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
16431         strndup as extern "C".
16432         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
16433         declare memset and bzero as extern "C".
16434         Reported by Sam Steingold <sds@gnu.org>.
16435
16436 2011-07-12  Jim Meyering  <meyering@redhat.com>
16437
16438         maint.mk: prohibit inclusion of "verify.h" without use
16439         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
16440
16441 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16442
16443         timer-time: A new module to check for timer_settime()
16444         * m4/timer_time.m4: Check for the posix function.
16445         * modules/timer-time: Add the new module.
16446         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
16447         Mention it.
16448
16449 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
16450             Bruno Haible  <bruno@clisp.org>
16451
16452         pthread_sigmask: assume POSIX threads if --avoid=threadlib
16453         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
16454         not defined, assume POSIX threads and look for pthread_sigmask in
16455         $LIBS, without changing $CPPFLAGS.
16456
16457 2011-07-19  Bruno Haible  <bruno@clisp.org>
16458
16459         strstr: Update cross-compilation guess.
16460         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
16461         CPUs, guess no, in view of glibc
16462         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
16463         Suggested by Eric Blake. Reported by Reuben Thomas.
16464
16465 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16466
16467         getopt-gnu: suppress core dumps from detection code
16468         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
16469         to suppress core dumps that may well occur on glibc systems.
16470         * modules/getopt-gnu: Depend on nocrash.
16471
16472 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
16473
16474         pthread_sigmask: ensure usleep is declared
16475         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
16476         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
16477
16478 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16479
16480         doc: Document NonStop portability issues.
16481         * doc/posix-functions/sigaction.texi (sigaction):
16482         * doc/posix-headers/signal.texi (signal.h):
16483         Document NonStop.  See Joachim Schmitz in
16484         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
16485
16486 2011-07-15  Bruno Haible  <bruno@clisp.org>
16487
16488         ffsl, ffsll: Avoid unportable behaviour.
16489         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
16490
16491 2011-07-15  Bruno Haible  <bruno@clisp.org>
16492
16493         ffs: More tests.
16494         * tests/test-ffs.c (NBITS): New macro.
16495         (main): Add more tests.
16496         * tests/test-ffsl.c (NBITS): New macro.
16497         (main): Add more tests.
16498         * tests/test-ffsll.c (NBITS): New macro.
16499         (main): Add more tests.
16500
16501 2011-07-15  Eric Blake  <eblake@redhat.com>
16502
16503         ffsl, ffsll: new modules
16504         * modules/ffsl: New file.
16505         * modules/ffsll: Likewise.
16506         * m4/ffsl.m4: Likewise.
16507         * m4/ffsll.m4: Likewise.
16508         * lib/ffsl.c: Likewise.
16509         * lib/ffsl.h: Likewise.
16510         * lib/ffsll.c: Likewise.
16511         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
16512         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
16513         * modules/string (Makefile.am): Substitute witnesses.
16514         * lib/strings.in.h (ffsl, ffsll): Declare.
16515         * modules/ffsl-tests: New test file.
16516         * modules/ffsll-tests: Likewise.
16517         * tests/test-ffsl.c: Likewise.
16518         * tests/test-ffsll.c: Likewise.
16519         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16520         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
16521         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
16522
16523         ffs: fix m4 prerequisite
16524         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
16525
16526         ffs: avoid undefined behavior
16527         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
16528         * tests/test-ffs.c (naive, main): Avoid signed shifts.
16529         Reported by Bruno Haible.
16530
16531 2011-07-12  Bruno Haible  <bruno@clisp.org>
16532
16533         pthread_sigmask: Rely on module 'threadlib'.
16534         * modules/pthread_sigmask (Depends-on): Add threadlib.
16535         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
16536         is defined.
16537
16538 2011-07-12  Bruno Haible  <bruno@clisp.org>
16539
16540         regex: Depend on module 'strcase'.
16541         * modules/regex (Depends-on): Add strcase, for strcasecmp().
16542
16543 2011-07-12  Jim Meyering  <meyering@redhat.com>
16544
16545         warn-on-use: fix typo in file name
16546         * modules/snippet/warn-on-use (Files): Correct file name:
16547         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
16548
16549 2011-07-12  Bruno Haible  <bruno@clisp.org>
16550
16551         strings: Document module.
16552         * doc/posix-headers/strings.texi: Mention module 'strings'.
16553
16554 2011-07-12  Bruno Haible  <bruno@clisp.org>
16555
16556         Rename module '_Noreturn' to 'snippet/_Noreturn'.
16557         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
16558         (Files, Makefile.am): Update.
16559         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
16560         * modules/stdlib (Depends-on): Update.
16561
16562 2011-07-12  Bruno Haible  <bruno@clisp.org>
16563
16564         * NEWS: Mention the changes.
16565
16566         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
16567         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
16568         (Files, Makefile.am): Update.
16569         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
16570         * modules/arpa_inet (Depends-on): Update.
16571         * modules/ctype (Depends-on): Update.
16572         * modules/dirent (Depends-on): Update.
16573         * modules/fcntl-h (Depends-on): Update.
16574         * modules/glob (Depends-on): Update.
16575         * modules/iconv-h (Depends-on): Update.
16576         * modules/inttypes-incomplete (Depends-on): Update.
16577         * modules/langinfo (Depends-on): Update.
16578         * modules/locale (Depends-on): Update.
16579         * modules/math (Depends-on): Update.
16580         * modules/netdb (Depends-on): Update.
16581         * modules/poll-h (Depends-on): Update.
16582         * modules/pty (Depends-on): Update.
16583         * modules/search (Depends-on): Update.
16584         * modules/signal (Depends-on): Update.
16585         * modules/spawn (Depends-on): Update.
16586         * modules/stdio (Depends-on): Update.
16587         * modules/stdlib (Depends-on): Update.
16588         * modules/string (Depends-on): Update.
16589         * modules/strings (Depends-on): Update.
16590         * modules/sys_file (Depends-on): Update.
16591         * modules/sys_ioctl (Depends-on): Update.
16592         * modules/sys_select (Depends-on): Update.
16593         * modules/sys_socket (Depends-on): Update.
16594         * modules/sys_stat (Depends-on): Update.
16595         * modules/sys_time (Depends-on): Update.
16596         * modules/sys_times (Depends-on): Update.
16597         * modules/sys_utsname (Depends-on): Update.
16598         * modules/sys_wait (Depends-on): Update.
16599         * modules/termios (Depends-on): Update.
16600         * modules/time (Depends-on): Update.
16601         * modules/unistd (Depends-on): Update.
16602         * modules/wchar (Depends-on): Update.
16603         * modules/wctype-h (Depends-on): Update.
16604         * MODULES.html.sh (Support for building libraries and executables):
16605         Update.
16606
16607         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
16608         * modules/snippet/unused-parameter: Renamed from
16609         modules/unused-parameter.
16610         (Files, Makefile.am): Update.
16611         * build-aux/snippet/unused-parameter.h: Renamed from
16612         build-aux/unused-parameter.h.
16613         * modules/selinux-h (Depends-on): Update.
16614         * modules/unistr/base (Depends-on): Update.
16615         * MODULES.html.sh (Core language properties): Update.
16616
16617         Rename module 'link-warning' to 'snippet/link-warning'.
16618         * modules/snippet/link-warning: Renamed from modules/link-warning.
16619         (Files, Makefile.am): Update.
16620         * build-aux/snippet/link-warning.h: Renamed from
16621         build-aux/link-warning.h.
16622         * MODULES.html.sh (Support for building libraries and executables):
16623         Update.
16624
16625         Rename module 'c++defs' to 'snippet/c++defs'.
16626         * modules/snippet/c++defs: Renamed from modules/c++defs.
16627         (Files, Makefile.am): Update.
16628         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
16629         * modules/arpa_inet (Depends-on): Update.
16630         * modules/ctype (Depends-on): Update.
16631         * modules/dirent (Depends-on): Update.
16632         * modules/fcntl-h (Depends-on): Update.
16633         * modules/glob (Depends-on): Update.
16634         * modules/iconv-h (Depends-on): Update.
16635         * modules/langinfo (Depends-on): Update.
16636         * modules/locale (Depends-on): Update.
16637         * modules/math (Depends-on): Update.
16638         * modules/netdb (Depends-on): Update.
16639         * modules/poll-h (Depends-on): Update.
16640         * modules/pty (Depends-on): Update.
16641         * modules/search (Depends-on): Update.
16642         * modules/signal (Depends-on): Update.
16643         * modules/spawn (Depends-on): Update.
16644         * modules/stdio (Depends-on): Update.
16645         * modules/stdlib (Depends-on): Update.
16646         * modules/string (Depends-on): Update.
16647         * modules/strings (Depends-on): Update.
16648         * modules/sys_ioctl (Depends-on): Update.
16649         * modules/sys_select (Depends-on): Update.
16650         * modules/sys_socket (Depends-on): Update.
16651         * modules/sys_stat (Depends-on): Update.
16652         * modules/sys_time (Depends-on): Update.
16653         * modules/sys_wait (Depends-on): Update.
16654         * modules/termios (Depends-on): Update.
16655         * modules/time (Depends-on): Update.
16656         * modules/unistd (Depends-on): Update.
16657         * modules/wchar (Depends-on): Update.
16658         * modules/wctype-h (Depends-on): Update.
16659
16660         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
16661         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
16662         (Files, Makefile.am): Update.
16663         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
16664         * modules/argv-iter (Depends-on): Update.
16665         * modules/arpa_inet (Depends-on): Update.
16666         * modules/dirent (Depends-on): Update.
16667         * modules/fcntl-h (Depends-on): Update.
16668         * modules/fnmatch (Depends-on): Update.
16669         * modules/getopt-posix (Depends-on): Update.
16670         * modules/glob (Depends-on): Update.
16671         * modules/iconv-h (Depends-on): Update.
16672         * modules/inttypes-incomplete (Depends-on): Update.
16673         * modules/locale (Depends-on): Update.
16674         * modules/math (Depends-on): Update.
16675         * modules/netdb (Depends-on): Update.
16676         * modules/search (Depends-on): Update.
16677         * modules/signal (Depends-on): Update.
16678         * modules/spawn (Depends-on): Update.
16679         * modules/stdio (Depends-on): Update.
16680         * modules/stdlib (Depends-on): Update.
16681         * modules/string (Depends-on): Update.
16682         * modules/strings (Depends-on): Update.
16683         * modules/sys_socket (Depends-on): Update.
16684         * modules/sys_stat (Depends-on): Update.
16685         * modules/sys_time (Depends-on): Update.
16686         * modules/sys_times (Depends-on): Update.
16687         * modules/sys_utsname (Depends-on): Update.
16688         * modules/time (Depends-on): Update.
16689         * modules/unistd (Depends-on): Update.
16690         * modules/wchar (Depends-on): Update.
16691         * MODULES.html.sh (Support for building libraries and executables):
16692         Update.
16693
16694 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16695
16696         Improvements on _Noreturn and related modules.
16697
16698         modules/_Exit-tests: test _Noreturn too
16699         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
16700         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
16701         (main): Use them.
16702
16703         stdnoreturn, stdnoreturn-tests: remove modules
16704         They're not needed here and a bit premature for use elsewhere.  See
16705         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
16706         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
16707         * tests/test-stdnoreturn.c: Remove files.
16708         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
16709         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
16710         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
16711         and using noreturn.
16712         * modules/openat, modules/sigpipe-die, modules/xalloc:
16713         * modules/xmemdup0, modules/xstrtol:
16714         Remove dependency on stdnoreturn.
16715
16716         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
16717         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
16718         Reparenthesize to avoid GCC warning.
16719         Support Microsoft's syntax.
16720         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
16721
16722         _Noreturn-tests: remove module
16723         * modules/_Noreturn-tests: Remove.
16724         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
16725         * tests/test-_Noreturn.c: Remove.
16726         * tests/test-stdnoreturn.c: Merge from the old
16727         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
16728
16729 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16730
16731         _Noreturn, stdnoreturn, and related modules.
16732
16733         * top/maint.mk: Adjust to new noreturn support.
16734         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
16735         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
16736
16737         xalloc: use stdnoreturn.h
16738         * lib/xalloc.h: Include <stdnoreturn.h>.
16739         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16740         * modules/xalloc (Depends-on): Add stdnoreturn.
16741
16742         xstrtol: use stdnoreturn.h
16743         * lib/xstrtol.h: Include <stdnoreturn.h>.
16744         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16745         * modules/xstrtol (Depends-on): Add stdnoreturn.
16746
16747         xmemdup0: use stdnoreturn.h
16748         * lib/xmemdup0.h: Include <stdnoreturn.h>.
16749         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16750         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
16751
16752         sigpipe-die: use stdnoreturn.h
16753         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
16754         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16755         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
16756
16757         openat: use stdnoreturn.h
16758         * lib/openat.h: Include <stdnoreturn.h>.
16759         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16760         * modules/openat (Depends-on): Add stdnoreturn.
16761
16762         * lib/openat-die.c (openat_save_fail): Modernize comment.
16763
16764         * lib/xalloc-die.c (xalloc_die): Modernize comment.
16765
16766         * lib/glthread/thread.h: Modernize comment.
16767
16768         obstack: use _Noreturn
16769         * lib/obstack.c (__attribute__): Remove macro.
16770         (print_and_abort): Use _Noreturn.
16771
16772         c-stack: use _Noreturn
16773         * lib/c-stack.c (die, overflow_handler, segv_handler):
16774         Use _Noreturn rather than __attribute__((noreturn)).
16775
16776         argmatch-tests, exclude_tests: use _Noreturn
16777         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
16778         Remove.
16779         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
16780
16781         stdlib: use _Noreturn
16782         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
16783         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
16784         * modules/stdlib (Depends-on): Add _Noreturn.
16785         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
16786
16787         stdnoreturn-tests: new module
16788         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
16789
16790         stdnoreturn: new module
16791         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
16792         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
16793
16794         _Noreturn-tests: new module
16795         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
16796
16797         _Noreturn: new module
16798         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
16799         New section, mentioning it.
16800         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
16801
16802         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
16803
16804 2011-07-11  Eric Blake  <eblake@redhat.com>
16805
16806         ffs: new module
16807         * modules/ffs: New file.
16808         * m4/ffs.m4: Likewise.
16809         * lib/ffs.c: Likewise.
16810         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
16811         * modules/strings (Makefile.am): Substitute witness.
16812         (Depends-on): Add c++defs.
16813         * lib/strings.in.h (ffs): Declare.
16814         * modules/ffs-tests: New test file.
16815         * tests/test-ffs.c: Test new module.
16816         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16817         * doc/posix-functions/ffs.texi (ffs): Likewise.
16818
16819         regex: avoid compiler warning
16820         * lib/regex.c (includes): Include <strings.h>, for use of
16821         strcasecmp in regcomp.c.
16822         Reported by Joachim Schmitz.
16823
16824 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16825
16826         stdint: respect system's intmax_t if INTMAX_MAX
16827         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
16828         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
16829         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
16830         long but int64_t is long long, and where we will clash with the
16831         system intmax_t if we override it.  See
16832         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
16833         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
16834         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
16835         similarly for UINTMAX_C.
16836
16837 2011-07-08  Bruno Haible  <bruno@clisp.org>
16838
16839         pthread_sigmask tests: Avoid a compiler warning.
16840         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
16841         non-zero.
16842
16843         sigprocmask tests: A better way to avoid a compiler warning.
16844         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
16845         (main): Complain if system() returns non-zero.
16846         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
16847
16848 2011-07-08  Bruno Haible  <bruno@clisp.org>
16849
16850         pthread_sigmask: Work around IRIX bug.
16851         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
16852         bug.
16853         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
16854         there may be unblocked pending signals.
16855         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
16856
16857 2011-07-08  Bruno Haible  <bruno@clisp.org>
16858
16859         pthread_sigmask: Work around Cygwin bug.
16860         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
16861         bug.
16862         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
16863         the system's pthread_sigmask function.
16864         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
16865
16866 2011-07-08  Bruno Haible  <bruno@clisp.org>
16867
16868         pthread_sigmask: Work around bug in single-threaded implementation.
16869         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
16870         FreeBSD, HP-UX, Solaris bug.
16871         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
16872         * lib/pthread_sigmask.c: Include <stddef.h>.
16873         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
16874         the system's pthread_sigmask function.
16875         * modules/pthread_sigmask (configure.ac): Invoke
16876         gl_PREREQ_PTHREAD_SIGMASK.
16877         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
16878         HP-UX, Solaris.
16879
16880 2011-07-08  Eric Blake  <eblake@redhat.com>
16881
16882         test-sigprocmask: avoid compiler warning
16883         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
16884         * tests/test-sigprocmask.c (main): Use it to silence warning.
16885         Reported by Jim Meyering.
16886
16887         test-snprintf: avoid compiler warning
16888         * tests/test-snprintf.c (main): Avoid shadowed declaration.
16889         * tests/test-vsnprintf.c (main): Likewise.
16890         Reported by Jim Meyering.
16891
16892 2011-07-08  Bruno Haible  <bruno@clisp.org>
16893
16894         Tests for module 'pthread_sigmask'.
16895         * modules/pthread_sigmask-tests: New file.
16896         * tests/test-pthread_sigmask1.c: New file, based on
16897         tests/test-sigprocmask.c.
16898         * tests/test-pthread_sigmask2.c: New file.
16899
16900 2011-07-08  Jim Meyering  <meyering@redhat.com>
16901
16902         test-getopt.h: avoid warning about an unused variable
16903         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
16904
16905 2011-07-07  Jim Meyering  <meyering@redhat.com>
16906
16907         maint: reduce list of files exempt from sc_prohibit_leading_TABs
16908         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
16909         now that it no longer contains leading TABs.
16910         Remove unused "url=FIXME" statement.
16911
16912 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16913
16914         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
16915         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16916         When gl_THREADLIB is not in use, assume that the POSIX sematics
16917         are desired.  This is better for Emacs, which uses POSIX semantics
16918         on GNUish and/or POSIXish platforms, and does not use threads at
16919         all otherwise.
16920
16921         pthread_sigmask: fix typo when testing for libraries
16922         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16923         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
16924
16925 2011-07-08  Eric Blake  <eblake@redhat.com>
16926
16927         fts: introduce FTS_NOATIME
16928         * lib/fts_.h (FTS_NOATIME): New bit flag.
16929         (FTS_OPTIONMASK): Adjust.
16930         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
16931         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
16932
16933 2011-07-08  Bruno Haible  <bruno@clisp.org>
16934
16935         Tests for module 'thread'.
16936         * modules/thread-tests: New file.
16937         * tests/test-thread_self.c: New file.
16938         * tests/test-thread_create.cc: New file.
16939
16940 2011-07-08  Bruno Haible  <bruno@clisp.org>
16941
16942         thread: Avoid gcc warnings when using gl_thread_self().
16943         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
16944         'void *'.
16945         (gl_thread_self_pointer): Update.
16946
16947 2011-07-07  Bruno Haible  <bruno@clisp.org>
16948
16949         signal-c++-tests: Check declaration of pthread_sigmask.
16950         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
16951         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
16952         $(LIB_PTHREAD_SIGMASK).
16953
16954 2011-07-07  Bruno Haible  <bruno@clisp.org>
16955
16956         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
16957         * lib/signal.in.h (pthread_sigmask): Override if
16958         REPLACE_PTHREAD_SIGMASK is 1.
16959         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16960         REPLACE_PTHREAD_SIGMASK.
16961         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
16962         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
16963         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
16964         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16965         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
16966
16967 2011-07-07  Bruno Haible  <bruno@clisp.org>
16968
16969         pthread_sigmask: Ensure declaration in <signal.h>.
16970         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
16971         include <pthread.h>.
16972         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
16973         problem.
16974
16975 2011-07-07  Bruno Haible  <bruno@clisp.org>
16976
16977         pthread_sigmask: Document the module.
16978         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
16979
16980 2011-07-07  Bruno Haible  <bruno@clisp.org>
16981
16982         pthread_sigmask: Follow gnulib conventions.
16983         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
16984         gl_PTHREAD_SIGMASK.
16985         * modules/pthread_sigmask (configure.ac): Update.
16986
16987 2011-07-07  Bruno Haible  <bruno@clisp.org>
16988
16989         pthread_sigmask: Make declaration C++ safe.
16990         * lib/signal.in.h: In two special conditions, just do an #include_next.
16991         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16992         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
16993         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16994         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16995         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
16996         not REPLACE_PTHREAD_MASK.
16997         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
16998         not REPLACE_PTHREAD_MASK.
16999         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
17000
17001 2011-07-07  Bruno Haible  <bruno@clisp.org>
17002
17003         pthread_sigmask: Fix return value.
17004         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
17005         * lib/pthread_sigmask.c: New file.
17006         * modules/pthread_sigmask (Files): Add it.
17007         (configure.ac): Invoke AC_LIBOBJ.
17008
17009 2011-07-07  Eric Blake  <eblake@redhat.com>
17010
17011         getopt: more portable argv creation
17012         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
17013         const, use char arrays rather than strings.
17014         Suggested by Paul Eggert.
17015
17016 2011-07-07  Bruno Haible  <bruno@clisp.org>
17017
17018         Tests for module 'sigprocmask'.
17019         * modules/sigprocmask-tests: New file.
17020         * tests/test-sigprocmask.c: New file.
17021
17022 2011-07-07  Bruno Haible  <bruno@clisp.org>
17023
17024         float tests: Tweak.
17025         * tests/test-float.c (main): Tweak skip message.
17026
17027 2011-07-07  Eric Blake  <eblake@redhat.com>
17028
17029         getopt: avoid compiler warning during configure
17030         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
17031         assigning string literals to non-const pointer.
17032
17033         getopt-gnu: avoid crash in glibc getopt
17034         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
17035         * tests/test-getopt.h (test_getopt): Enhance test.
17036         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17037         * doc/posix-functions/getopt.texi (getopt): Document it.
17038         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17039         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17040         Likewise.
17041
17042 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17043
17044         getopt: handle W; without long options in getopt [BZ #12922]
17045         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
17046         but no long options are defined, just return 'W'.
17047
17048 2011-07-07  Bruno Haible  <bruno@clisp.org>
17049
17050         Avoid literal tabs.
17051         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
17052         variable containing a tab instead of a literal tab.
17053         Reported by Jim Meyering.
17054
17055 2011-07-07  Bruno Haible  <bruno@clisp.org>
17056
17057         Comments.
17058         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
17059
17060 2011-07-06  Bruno Haible  <bruno@clisp.org>
17061
17062         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
17063         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
17064         <winsock2.h>.
17065         (rpl_fd_isset, FD_ISSET): New definitions, copied from
17066         lib/sys_socket.in.h.
17067         (close, gethostname): Hide declarations from <winsock2.h>.
17068         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17069         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
17070         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
17071         (select): Don't override if gnulib's <sys/select.h> was already
17072         included.
17073         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17074         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17075         setsockopt, shutdown, select): Tweak indentation.
17076
17077 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17078
17079         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
17080         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
17081         in an application that does not use the sys_select module.
17082
17083 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
17084
17085         poll: do not return 0 on timeout=-1
17086         * lib/poll.c: Loop with yield if no events occurred.
17087
17088 2011-07-06  Eric Blake  <eblake@redhat.com>
17089
17090         pthread_sigmask: always replace when not using pthread
17091         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
17092         replacement when using some threading other than pthread.  Fix
17093         logic bug.
17094
17095 2011-07-06  Bruno Haible  <bruno@clisp.org>
17096
17097         Comments.
17098         * m4/printf.m4: Update comments about mingw.
17099
17100 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17101
17102         sys_select: define sigset_t more portably
17103         * lib/sys_select.in.h: Always include <sys/types.h>, since
17104         we now need sigset_t and mingw defines it there.
17105         Include <signal.h> before split inclusion guard, to avoid
17106         mishaps on Solaris, whose <signal.h> eventually includes us.
17107         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
17108         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
17109         which come from ...
17110         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
17111         gl_CHECK_TYPE_SIGSET_T.
17112         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
17113         does the real work.
17114         * modules/sys_select (Depends-on): Add 'signal'.
17115
17116         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
17117         Suggested by Bruno Haible.
17118
17119         pselect: Use pthread_sigmask, not sigprocmask.
17120         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
17121         multithreaded apps better than sigprocmask does.
17122         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
17123         sigprocmask directly.
17124
17125 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17126
17127         * lib/pselect.c (pselect): Use plain name, without "rpl_".
17128         Don't #undef,  since we don't need any underlying pselect.
17129         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
17130         (Depends-on): Add select.
17131         (Link): Add $(LIBSOCKET).
17132         These changes suggested by Bruno Haible.
17133
17134         pselect: document better
17135         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17136         * doc/posix-functions/pselect.texi (pselect): Document new module.
17137
17138         pthread_sigmask: new module
17139         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17140         * doc/posix-functions/pthread_sigmask.texi: Document new module.
17141         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
17142         This is done only as a macro; I don't know how well that'll
17143         work for C++.  Move <sys/types.h> include before the include_next,
17144         to avoid mishap on Solaris.
17145         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
17146         * modules/signal (Makefile.am): Substitute the check's results.
17147         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
17148
17149         test-pselect: new module
17150         * modules/pselect-tests, tests/test-pselect.c: New files.
17151         * tests/test-select.c, tests/test-sys_select-c++.cc:
17152         If TEST_PSELECT is defined, test pselect instead of testing select.
17153
17154         * tests/test-sys_select.c (sigset_t): Test for it, too.
17155         Suggested by Bruno Haible.
17156
17157 2011-07-05  Eric Blake  <eblake@redhat.com>
17158
17159         snprintf: guarantee %1$d, for libintl
17160         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
17161         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
17162         * doc/posix-functions/snprintf.texi (snprintf): Update.
17163         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17164         * tests/test-snprintf.c (main): Enhance test.
17165         * tests/test-vsnprintf.c (main): Likewise.
17166
17167 2011-07-05  Jim Meyering  <meyering@redhat.com>
17168
17169         maint: exempt stdio-read.c and stdio-write.c from the cppi check
17170         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
17171         per Bruno's request, to accommodate this idiom (no space after "#")
17172         even when the function is inside an #if block:
17173         char *
17174         gets (char *s)
17175         #undef gets
17176         {
17177           ...
17178         }
17179
17180 2011-07-04  Jim Meyering  <meyering@redhat.com>
17181
17182         maint: indent with spaces, not TABs, and add a rule to check this
17183         * tests/test-userspec.c: Indent with spaces, not TABs.
17184         * tests/test-argp.c: Likewise.
17185         * tests/test-c-stack2.sh: Likewise.
17186         * tests/test-parse-duration.sh: Likewise
17187         * m4/strtod.m4: Likewise.
17188         * m4/alloca.m4: Likewise.
17189         * m4/pselect.m4: Likewise.
17190         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
17191
17192 2011-07-03  Jim Meyering  <meyering@redhat.com>
17193
17194         maint.mk: correct omissions in prohibit_argmatch_without_use check
17195         This rule would mistakenly report that argmatch.h is included without
17196         use even when both the argmatch and invalid_arg macro were used.
17197         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
17198         of argmatch and invalid_arg.
17199
17200 2011-07-03  Bruno Haible  <bruno@clisp.org>
17201
17202         Comments about EINTR.
17203         * lib/safe-read.h: Explain the purpose of this module.
17204         * lib/safe-write.h: Likewise.
17205         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
17206         module.
17207         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
17208         module.
17209         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17210
17211 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
17212
17213         xnanosleep: Rewrite to use new dtotimespec module.
17214         It has the conversion code that used to be in xnanosleep.
17215         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
17216         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
17217         (TIME_T_MAX): Remove.
17218         (xnanosleep): Rewrite in terms of dtotimespec.
17219         * modules/xnanosleep (Depends-on): Add dtotimespec.
17220         Remove intprops, stdbool.
17221
17222         timespec-add, timespec-sub: new modules
17223         * lib/timespec.h (timespec_add, timespec_sub): New decls.
17224         * lib/timespec-add.c, lib/timespec-sub.c:
17225         * modules/timespec-add, modules/timespec-sub: New files.
17226
17227         dtotimespec: new module
17228         * lib/timespec.h (dtotimespec): New decl.
17229         * lib/dtotimespec.c, modules/dtotimespec: New files.
17230
17231         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
17232
17233         pselect: new module
17234         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
17235         (pselect): New decls.
17236         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
17237         since the standard pselect decl uses 'restrict'.
17238         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
17239         HAVE_PSELECT, REPLACE_PSELECT.
17240         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
17241         HAVE_PSELECT, REPLACE_PSELECT.
17242         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
17243
17244         sys_select: don't depend on sys_socket
17245         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
17246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
17247         This fix works on GNU and GNU-like platforms, but has not been tested
17248         on native Windows.
17249         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
17250         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
17251         gl_HEADER_SYS_SOCKET.
17252         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
17253         gl_PREREQ_SYS_H_WINSOCK2.
17254
17255 2011-06-29  Eric Blake  <eblake@redhat.com>
17256
17257         pipe2: fix C89 compile problem
17258         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
17259         Reported by Bruno Haible.
17260
17261         pipe, pipe2: don't corrupt fd on error
17262         * lib/pipe.c (pipe): Leave fd unchanged on error.
17263         * lib/pipe2.c (pipe2): Likewise.
17264         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
17265         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17266
17267 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
17268
17269         mmap-anon: do not use regular expressions inadvertently
17270         * m4/mmap-anon.m4: Remove trailing period from strings sought
17271         in the output.
17272
17273 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
17274
17275         nanosleep: fix integer overflow problem
17276         * lib/nanosleep.c (my_usleep): Don't assume signed integer
17277         arithmetic wraps around on overflow.
17278
17279         nanosleep: simplify carrying
17280         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
17281         first call to the underyling nanosleep, not for the last one.
17282         This doesn't fix any bugs, but it simplifies the computation of
17283         the remaining delay.  Found while auditing integer overflow issues.
17284
17285         dup2: remove test for existence of fcntl
17286         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
17287         "#if HAVE_FCNTL", in the configure-time test program.
17288         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
17289         and therefore speeds up "configure" a bit.  Found while
17290         adding the dup2 module to Emacs.
17291
17292 2011-06-24  Eric Blake  <eblake@redhat.com>
17293
17294         maint.mk: enhance useless header checks
17295         * top/maint.mk (_sc_header_without_use): Check both include
17296         styles.
17297         (sc_prohibit_assert_without_use)
17298         (sc_prohibit_close_stream_without_use)
17299         (sc_prohibit_getopt_without_use)
17300         (sc_prohibit_quotearg_without_use)
17301         (sc_prohibit_quote_without_use)
17302         (sc_prohibit_long_options_without_use)
17303         (sc_prohibit_inttostr_without_use)
17304         (sc_prohibit_ignore_value_without_use)
17305         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
17306         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
17307         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
17308         (sc_prohibit_hash_pjw_without_use)
17309         (sc_prohibit_safe_read_without_use)
17310         (sc_prohibit_argmatch_without_use)
17311         (sc_prohibit_canonicalize_without_use)
17312         (sc_prohibit_root_dev_ino_without_use)
17313         (sc_prohibit_openat_without_use)
17314         (sc_prohibit_c_ctype_without_use)
17315         (sc_prohibit_signal_without_use)
17316         (sc_prohibit_stdio--_without_use)
17317         (sc_prohibit_stdio-safer_without_use)
17318         (sc_prohibit_strings_without_use)
17319         (sc_prohibit_intprops_without_use)
17320         (sc_prohibit_stddef_without_use)
17321         (sc_prohibit_xfreopen_without_use): Update clients.
17322
17323 2011-06-24  Jim Meyering  <meyering@redhat.com>
17324
17325         syntax-check: keep one maint.mk rule in sync with its header
17326         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
17327         of the bug Eric has just fixed, with today's commit 25e4c2ec.
17328         I prefer to avoid temporary files here, so use <(...), but that
17329         is not supported by /bin/sh, so...
17330         (SHELL): Define to /bin/bash.
17331
17332 2011-06-24  Eric Blake  <eblake@redhat.com>
17333
17334         maint.mk: update sc_prohibit_intprops_without_use
17335         * top/maint.mk (_intprops_names): Match recent changes.
17336
17337 2011-06-24  Bruno Haible  <bruno@clisp.org>
17338
17339         strerror-override: No-op tweak.
17340         * lib/strerror-override.h (strerror_override): Reorder conditions,
17341         for consistency with lib/strerror-override.c.
17342
17343 2011-06-23  Eric Blake  <eblake@redhat.com>
17344
17345         maint.mk: test further PATH_MAX issues
17346         * top/maint.mk (sc_prohibit_path_max_array): Rename...
17347         (sc_prohibit_path_max_allocation): ...and also test alloca.
17348         Suggested by Jim Meyering.
17349
17350 2011-06-22  Eric Blake  <eblake@redhat.com>
17351
17352         maint.mk: add syntax-check to avoid char[PATH_MAX]
17353         * top/maint.mk (sc_prohibit_path_max_array): New rule.
17354
17355         stat: be robust to PATH_MAX definition
17356         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
17357         * modules/stat (Depends-on): Add verify.
17358
17359         link: work around IRIX bug
17360         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
17361         * lib/link.c (rpl_link): Work around it.
17362         * tests/test-link.h (test_link): Enhance test.
17363         * doc/posix-functions/link.texi (link): Document the bug.
17364
17365         getopt: silence clang warning
17366         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
17367         dereference.
17368         Reported by Gustavo Martin Domato.
17369
17370 2011-06-22  Jim Meyering  <meyering@redhat.com>
17371
17372         bootstrap: do not insert a blank line into each .gitignore file
17373         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
17374
17375 2011-06-21  Eric Blake  <eblake@redhat.com>
17376
17377         perror: test for output mismatch
17378         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
17379         perror on IRIX.
17380
17381         strerror_r: fix OpenBSD behavior on out-of-range
17382         * lib/strerror_r.c (strerror_r): Always use maximal string.
17383         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17384
17385         strerror_r: fix OpenBSD behavior on 0
17386         * lib/strerror-override.c (strerror_override): Also override 0
17387         when needed.
17388         * lib/strerror-override.h (strerror_override): Likewise.
17389         * lib/strerror.c (strerror): Simplify, now that 0 override is done
17390         earlier.
17391         * lib/strerror_r.c (strerror_r): Likewise.
17392         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
17393         behavior...
17394         (gl_FUNC_STRERROR_0): ...into new macro.
17395         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
17396         is overridden.
17397         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
17398         * modules/strerror-override (Files): Add strerror.m4.
17399         (configure.ac): Also provide override for 0 when needed.
17400         * doc/posix-functions/strerror.texi (strerror): Document this.
17401         * doc/posix-functions/perror.texi (perror): Likewise.
17402
17403         perror: adjust array size
17404         * modules/perror (Depends-on): Add strerror-override.
17405         * lib/perror.c (perror): Use it to avoid magic number.
17406
17407         strerror-override: reduce size
17408         * lib/strerror-override.c (strerror_override): Use fewer lines.
17409
17410 2011-06-20  Bruno Haible  <bruno@clisp.org>
17411
17412         pathmax: Ensure correct value for PATH_MAX on HP-UX.
17413         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
17414
17415 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
17416
17417         alloca: port to compilers that can optimize like GCC 4.6.0
17418         * lib/alloca.c (find_stack_direction): New signature, taken from
17419         Autoconf git.  This works with GCC 4.6.0.  This code should never
17420         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
17421         be used with other compilers that optimize as well as GCC 4.6.0 does.
17422         (alloca): Adjust to new signature.
17423         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
17424         New macro, which patches Autoconf in a similar way.
17425
17426         c-stack: stop worrying about stack direction
17427         * lib/c-stack.c (find_stack_direction): Remove.
17428         (segv_handler): Don't worry about stack direction growth, as it's
17429         too much of a pain to configure this correctly, given how compilers
17430         are optimizing-away our stack-growth detection code.  Instead, assume
17431         that any access to just before or just after the stack is OK.
17432         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
17433         Don't require AC_FUNC_ALLOCA; no longer needed.
17434
17435 2011-06-20  Eric Blake  <eblake@redhat.com>
17436
17437         test-stat: don't allocate PATH_MAX bytes
17438         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
17439         PATH_MAX-sized buffer.
17440         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
17441         * modules/stat-tests (Depends-on): Likewise.
17442         * tests/test-fstatat.c (includes): Drop pathmax.h.
17443         * tests/test-stat.c (includes): Likewise.
17444         Reported by Bruno Haible.
17445
17446 2011-06-20  Bruno Haible  <bruno@clisp.org>
17447
17448         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
17449         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
17450         * lib/float.c: New file.
17451         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
17452         REPLACE_FLOAT_LDBL.
17453         * modules/float (Files): Add lib/float.c.
17454         (configure.ac): Invoke AC_LIBOBJ.
17455         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
17456
17457 2011-06-20  Bruno Haible  <bruno@clisp.org>
17458
17459         Tests for module 'float'.
17460         * modules/float-tests: New file.
17461         * tests/test-float.c: New file.
17462
17463 2011-06-19  Bruno Haible  <bruno@clisp.org>
17464
17465         isinf: Coding style.
17466         * lib/isinf.c: Use GNU coding style.
17467
17468 2011-06-19  Bruno Haible  <bruno@clisp.org>
17469
17470         linkat test: Avoid test failure on AIX 7.1.
17471         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
17472         * tests/test-link.h (test_link): Likewise.
17473
17474 2011-06-19  Bruno Haible  <bruno@clisp.org>
17475
17476         pread test: Avoid test failure on OpenBSD 4.9.
17477         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
17478
17479 2011-06-19  Bruno Haible  <bruno@clisp.org>
17480
17481         sprintf-posix: Fix test failure on AIX 7.1.
17482         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
17483         * doc/posix-functions/dprintf.texi: Mention limited precision problem
17484         on AIX.
17485         * doc/posix-functions/fprintf.texi: Likewise.
17486         * doc/posix-functions/printf.texi: Likewise.
17487         * doc/posix-functions/snprintf.texi: Likewise.
17488         * doc/posix-functions/sprintf.texi: Likewise.
17489         * doc/posix-functions/vdprintf.texi: Likewise.
17490         * doc/posix-functions/vfprintf.texi: Likewise.
17491         * doc/posix-functions/vprintf.texi: Likewise.
17492         * doc/posix-functions/vsnprintf.texi: Likewise.
17493         * doc/posix-functions/vsprintf.texi: Likewise.
17494
17495 2011-06-19  Bruno Haible  <bruno@clisp.org>
17496
17497         roundl-ieee: Fix test failure on AIX 7.1.
17498         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
17499         * doc/posix-functions/roundl.texi: Mention problem with negative
17500         arguments.
17501
17502 2011-06-19  Bruno Haible  <bruno@clisp.org>
17503
17504         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17505         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
17506         * doc/posix-functions/round.texi: Mention problem with negative
17507         arguments.
17508         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
17509
17510 2011-06-19  Bruno Haible  <bruno@clisp.org>
17511
17512         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17513         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
17514         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
17515         * doc/posix-functions/roundf.texi: Mention problem with negative
17516         arguments.
17517         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
17518
17519 2011-06-19  Bruno Haible  <bruno@clisp.org>
17520
17521         ceilf-ieee: Work around bug on MacOS X 10.5.
17522         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
17523
17524         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
17525         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
17526         IEEE compliant, avoid compiler optimizations.
17527         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
17528         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
17529         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
17530         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17531         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17532         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17533         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17534         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17535         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17536         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
17537
17538 2011-06-19  Bruno Haible  <bruno@clisp.org>
17539
17540         ceilf-ieee: Work around bug on AIX 7.1.
17541         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
17542         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
17543
17544 2011-06-19  Bruno Haible  <bruno@clisp.org>
17545
17546         ceil-ieee: Work around bug on AIX 7.1.
17547         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
17548         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
17549
17550 2011-06-18  Bruno Haible  <bruno@clisp.org>
17551
17552         fsync test: Avoid test failure on MacOS X and AIX.
17553         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
17554         EINVAL.
17555
17556 2011-06-18  Bruno Haible  <bruno@clisp.org>
17557
17558         openat, fdopendir tests: Fix link errors.
17559         * modules/openat-tests (Depends-on): Add progname.
17560         * modules/fdopendir-tests (Depends-on): Likewise.
17561         * tests/test-fchownat.c: Include progname.h.
17562         (main): Call set_program_name.
17563         * tests/test-fstatat.c: Include progname.h.
17564         (main): Call set_program_name.
17565         * tests/test-mkdirat.c: Include progname.h.
17566         (main): Call set_program_name.
17567         * tests/test-openat.c: Include progname.h.
17568         (main): Call set_program_name.
17569         * tests/test-unlinkat.c: Include progname.h.
17570         (main): Call set_program_name.
17571         * tests/test-fdopendir.c: Include progname.h.
17572         (main): Call set_program_name.
17573
17574 2011-06-18  Bruno Haible  <bruno@clisp.org>
17575
17576         Doc update.
17577         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
17578         HP-UX.
17579         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
17580
17581 2011-06-18  Bruno Haible  <bruno@clisp.org>
17582
17583         getcwd tests: Avoid compilation error on HP-UX 11.31.
17584         * modules/getcwd-tests (Depends-on): Add pathmax.
17585         * tests/test-getcwd.c: Include pathmax.h.
17586
17587 2011-06-18  Bruno Haible  <bruno@clisp.org>
17588
17589         isfinite, isinf: Fix link error on AIX 6 and 7.
17590         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
17591         needed, also test the macro with a 'float' argument.
17592         * m4/isinf.m4 (gl_ISINF): Likewise.
17593
17594 2011-06-18  Bruno Haible  <bruno@clisp.org>
17595
17596         getloadavg: Don't clobber LIBS. Regression from previous commit.
17597         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
17598         AC_CHECK_LIB from here...
17599         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
17600         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
17601         gl_func_getloadavg_done.
17602         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17603
17604 2011-06-18  Bruno Haible  <bruno@clisp.org>
17605
17606         clean-temp: Improve documentation.
17607         * lib/clean-temp.h: Explain better how to use this module.
17608         Reported by John Darrington <john@darrington.wattle.id.au>.
17609
17610 2011-06-17  Bruno Haible  <bruno@clisp.org>
17611
17612         pread, pwrite: Avoid cc warning on AIX.
17613         * lib/unistd.in.h (pread): Undefine before defining as a macro.
17614         (pwrite): Likewise.
17615
17616 2011-06-17  Bruno Haible  <bruno@clisp.org>
17617
17618         spawn-pipe tests: Fix link error.
17619         * tests/test-spawn-pipe-child.c: Undefine fprintf.
17620         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17621
17622 2011-06-17  Bruno Haible  <bruno@clisp.org>
17623
17624         Tests: Remove unnecessary dependency.
17625         * modules/canonicalize-tests (Depends-on): Remove progname.
17626         * modules/chown-tests (Depends-on): Likewise.
17627         * modules/dirname-tests (Depends-on): Likewise.
17628         * modules/fdopendir-tests (Depends-on): Likewise.
17629         * modules/fdutimensat-tests (Depends-on): Likewise.
17630         * modules/hash-tests (Depends-on): Likewise.
17631         * modules/lchown-tests (Depends-on): Likewise.
17632         * modules/linkat-tests (Depends-on): Likewise.
17633         * modules/renameat-tests (Depends-on): Likewise.
17634         * modules/spawn-pipe-tests (Depends-on): Likewise.
17635         * modules/utimensat-tests (Depends-on): Likewise.
17636
17637 2011-06-17  Bruno Haible  <bruno@clisp.org>
17638
17639         spawn-pipe tests: Fix link error.
17640         * tests/test-spawn-pipe-child.c: Undefine fflush.
17641
17642 2011-06-17  Bruno Haible  <bruno@clisp.org>
17643
17644         Fix tests link errors.
17645         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
17646         * modules/chown-tests (Makefile.am): Don't link test-chown with
17647         LIBINTL.
17648         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
17649         LIBINTL.
17650         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
17651         LIBINTL.
17652         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
17653         LIBINTL.
17654
17655 2011-06-16  Bruno Haible  <bruno@clisp.org>
17656
17657         crypto/gc-sha1: Fix recent regression.
17658         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
17659         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
17660
17661         crypto/gc-md5: Fix recent regression.
17662         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
17663
17664         crypto/gc-md4: Fix recent regression.
17665         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
17666         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
17667
17668         crypto/gc-arctwo: Fix recent regression.
17669         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
17670         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
17671
17672         crypto/gc-rijndael: Fix recent regression.
17673         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
17674         (configure.ac): Invoke AC_LIBOBJ here.
17675         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
17676         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17677
17678         crypto/gc-hmac-sha1: Fix recent regression.
17679         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
17680         (configure.ac): Invoke AC_LIBOBJ here.
17681         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
17682         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17683
17684         crypto/gc-hmac-md5: Fix recent regression.
17685         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
17686         (configure.ac): Invoke AC_LIBOBJ here.
17687         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
17688         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17689
17690         crypto/gc-des: Fix recent regression.
17691         * modules/crypto/gc-des (Files): Remove m4/des.m4.
17692         (configure.ac): Invoke AC_LIBOBJ here.
17693         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
17694         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17695
17696         crypto/gc-arcfour: Fix recent regression.
17697         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
17698         (configure.ac): Invoke AC_LIBOBJ here.
17699         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
17700         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17701
17702 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
17703
17704         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
17705         After the 2011-05-21 change, this macro requires
17706         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
17707         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17708
17709 2011-06-16  Bruno Haible  <bruno@clisp.org>
17710
17711         fprintftime: Move AC_LIBOBJ invocations to module description.
17712         * m4/fprintftime.m4: Remove file.
17713         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
17714         (configure.ac): Remove gl_FPRINTFTIME call.
17715         (Makefile.am): Augment lib_SOURCES.
17716         Reported by Jim Meyering.
17717
17718 2011-06-16  Bruno Haible  <bruno@clisp.org>
17719
17720         tmpfile-safer: Finish 2011-05-23 commit.
17721         * m4/stdio-safer.m4: Really remove file.
17722         Reported by Jim Meyering.
17723
17724 2011-06-16  Bruno Haible  <bruno@clisp.org>
17725
17726         syntax-check: Fix typo.
17727         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
17728         printf-posix.m4.
17729         Reported by Jim Meyering.
17730
17731 2011-06-13  Jim Meyering  <meyering@redhat.com>
17732
17733         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
17734         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
17735
17736 2011-05-23  Bruno Haible  <bruno@clisp.org>
17737
17738         yesno: Move AC_LIBOBJ invocations to module description.
17739         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
17740         * modules/yesno (Makefile.am): Augment lib_SOURCES.
17741
17742 2011-05-23  Bruno Haible  <bruno@clisp.org>
17743
17744         xstrtol: Move AC_LIBOBJ invocations to module description.
17745         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
17746         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
17747
17748 2011-05-23  Bruno Haible  <bruno@clisp.org>
17749
17750         xstrtold: Move AC_LIBOBJ invocations to module description.
17751         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
17752         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
17753
17754 2011-05-23  Bruno Haible  <bruno@clisp.org>
17755
17756         xstrtod: Move AC_LIBOBJ invocations to module description.
17757         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
17758         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
17759
17760 2011-05-23  Bruno Haible  <bruno@clisp.org>
17761
17762         xnanosleep: Move AC_LIBOBJ invocations to module description.
17763         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
17764         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
17765
17766 2011-05-23  Bruno Haible  <bruno@clisp.org>
17767
17768         xgetcwd: Move AC_LIBOBJ invocations to module description.
17769         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
17770         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
17771
17772 2011-05-23  Bruno Haible  <bruno@clisp.org>
17773
17774         xalloc: Move AC_LIBOBJ invocations to module description.
17775         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
17776         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
17777
17778 2011-05-23  Bruno Haible  <bruno@clisp.org>
17779
17780         write-any-file: Move AC_LIBOBJ invocations to module description.
17781         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
17782         invocation.
17783         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
17784
17785 2011-05-23  Bruno Haible  <bruno@clisp.org>
17786
17787         utimens: Move AC_LIBOBJ invocations to module description.
17788         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
17789         * modules/utimens (Makefile.am): Augment lib_SOURCES.
17790
17791 2011-05-23  Bruno Haible  <bruno@clisp.org>
17792
17793         utimecmp: Move AC_LIBOBJ invocations to module description.
17794         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
17795         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
17796
17797 2011-05-23  Bruno Haible  <bruno@clisp.org>
17798
17799         userspec: Move AC_LIBOBJ invocations to module description.
17800         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
17801         * modules/userspec (Makefile.am): Augment lib_SOURCES.
17802
17803 2011-05-23  Bruno Haible  <bruno@clisp.org>
17804
17805         unlinkdir: Move AC_LIBOBJ invocations to module description.
17806         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
17807         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
17808
17809 2011-05-23  Bruno Haible  <bruno@clisp.org>
17810
17811         unistd-safer: Move AC_LIBOBJ invocations to module description.
17812         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
17813         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
17814
17815 2011-05-23  Bruno Haible  <bruno@clisp.org>
17816
17817         tempname: Move AC_LIBOBJ invocations to module description.
17818         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
17819         * modules/tempname (Makefile.am): Augment lib_SOURCES.
17820
17821 2011-05-23  Bruno Haible  <bruno@clisp.org>
17822
17823         strftime: Move AC_LIBOBJ invocations to module description.
17824         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
17825         * modules/strftime (Makefile.am): Augment lib_SOURCES.
17826
17827 2011-05-23  Bruno Haible  <bruno@clisp.org>
17828
17829         stdlib-safer: Move AC_LIBOBJ invocations to module description.
17830         * m4/stdlib-safer.m4: Remove file.
17831         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
17832         (configure.ac): Remove gl_STDLIB_SAFER call.
17833         (Makefile.am): Augment lib_SOURCES.
17834
17835 2011-05-23  Bruno Haible  <bruno@clisp.org>
17836
17837         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
17838         * m4/stdio-safer.m4: Remove file.
17839         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
17840         (configure.ac): Remove gl_TMPFILE_SAFER call.
17841         (Makefile.am): Augment lib_SOURCES.
17842
17843 2011-05-23  Bruno Haible  <bruno@clisp.org>
17844
17845         popen-safer: Move AC_LIBOBJ invocations to module description.
17846         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
17847         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
17848         (configure.ac): Remove gl_POPEN_SAFER call.
17849         (Makefile.am): Augment lib_SOURCES.
17850
17851 2011-05-23  Bruno Haible  <bruno@clisp.org>
17852
17853         freopen-safer: Move AC_LIBOBJ invocations to module description.
17854         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
17855         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
17856         (configure.ac): Remove gl_FREOPEN_SAFER call.
17857         (Makefile.am): Augment lib_SOURCES.
17858
17859 2011-05-23  Bruno Haible  <bruno@clisp.org>
17860
17861         fopen-safer: Move AC_LIBOBJ invocations to module description.
17862         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
17863         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
17864         (configure.ac): Remove gl_FOPEN_SAFER call.
17865         (Makefile.am): Augment lib_SOURCES.
17866
17867 2011-05-23  Bruno Haible  <bruno@clisp.org>
17868
17869         crypto/sha512: Move AC_LIBOBJ invocations to module description.
17870         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
17871         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
17872
17873 2011-05-23  Bruno Haible  <bruno@clisp.org>
17874
17875         crypto/sha256: Move AC_LIBOBJ invocations to module description.
17876         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
17877         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
17878
17879 2011-05-23  Bruno Haible  <bruno@clisp.org>
17880
17881         crypto/sha1: Move AC_LIBOBJ invocations to module description.
17882         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
17883         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
17884
17885 2011-05-23  Bruno Haible  <bruno@clisp.org>
17886
17887         settime: Move AC_LIBOBJ invocations to module description.
17888         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
17889         * modules/settime (Makefile.am): Augment lib_SOURCES.
17890
17891 2011-05-23  Bruno Haible  <bruno@clisp.org>
17892
17893         savedir: Move AC_LIBOBJ invocations to module description.
17894         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
17895         * modules/savedir (Makefile.am): Augment lib_SOURCES.
17896
17897 2011-05-23  Bruno Haible  <bruno@clisp.org>
17898
17899         save-cwd: Move AC_LIBOBJ invocations to module description.
17900         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
17901         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
17902
17903 2011-05-23  Bruno Haible  <bruno@clisp.org>
17904
17905         same: Move AC_LIBOBJ invocations to module description.
17906         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
17907         * modules/same (Makefile.am): Augment lib_SOURCES.
17908
17909 2011-05-23  Bruno Haible  <bruno@clisp.org>
17910
17911         safe-write: Move AC_LIBOBJ invocations to module description.
17912         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
17913         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
17914         instead of gl_SAFE_WRITE.
17915         (Makefile.am): Augment lib_SOURCES.
17916
17917 2011-05-23  Bruno Haible  <bruno@clisp.org>
17918
17919         safe-read: Move AC_LIBOBJ invocations to module description.
17920         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
17921         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
17922         of gl_SAFE_READ.
17923         (Makefile.am): Augment lib_SOURCES.
17924
17925 2011-05-23  Bruno Haible  <bruno@clisp.org>
17926
17927         safe-alloc: Move AC_LIBOBJ invocations to module description.
17928         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
17929         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
17930
17931 2011-05-23  Bruno Haible  <bruno@clisp.org>
17932
17933         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
17934         * m4/rijndael.m4: Remove file.
17935         * modules/crypto/rijndael (Files): Remove it.
17936         (configure.ac): Remove gl_RIJNDAEL call.
17937         (Makefile.am): Augment lib_SOURCES.
17938
17939 2011-05-23  Bruno Haible  <bruno@clisp.org>
17940
17941         readtokens: Move AC_LIBOBJ invocations to module description.
17942         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
17943         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
17944
17945 2011-05-23  Bruno Haible  <bruno@clisp.org>
17946
17947         read-file: Move AC_LIBOBJ invocations to module description.
17948         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
17949         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
17950         of gl_FUNC_READ_FILE.
17951         (Makefile.am): Augment lib_SOURCES.
17952
17953 2011-05-23  Bruno Haible  <bruno@clisp.org>
17954
17955         quotearg: Move AC_LIBOBJ invocations to module description.
17956         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
17957         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
17958
17959 2011-05-23  Bruno Haible  <bruno@clisp.org>
17960
17961         quote: Move AC_LIBOBJ invocations to module description.
17962         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
17963         * modules/quote (Makefile.am): Augment lib_SOURCES.
17964
17965 2011-05-23  Bruno Haible  <bruno@clisp.org>
17966
17967         posixver: Move AC_LIBOBJ invocations to module description.
17968         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
17969         * modules/posixver (Makefile.am): Augment lib_SOURCES.
17970
17971 2011-05-23  Bruno Haible  <bruno@clisp.org>
17972
17973         posixtm: Move AC_LIBOBJ invocations to module description.
17974         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
17975         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
17976
17977 2011-05-23  Bruno Haible  <bruno@clisp.org>
17978
17979         physmem: Move AC_LIBOBJ invocations to module description.
17980         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
17981         * modules/physmem (Makefile.am): Augment lib_SOURCES.
17982
17983 2011-05-23  Bruno Haible  <bruno@clisp.org>
17984
17985         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
17986         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
17987         invocation.
17988         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
17989
17990 2011-05-23  Bruno Haible  <bruno@clisp.org>
17991
17992         mpsort: Move AC_LIBOBJ invocations to module description.
17993         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
17994         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
17995
17996 2011-05-23  Bruno Haible  <bruno@clisp.org>
17997
17998         modechange: Move AC_LIBOBJ invocations to module description.
17999         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
18000         * modules/modechange (Makefile.am): Augment lib_SOURCES.
18001
18002 2011-05-23  Bruno Haible  <bruno@clisp.org>
18003
18004         mkdir-p: Move AC_LIBOBJ invocations to module description.
18005         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
18006         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
18007
18008 2011-05-23  Bruno Haible  <bruno@clisp.org>
18009
18010         mkancesdirs: Move AC_LIBOBJ invocations to module description.
18011         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
18012         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
18013
18014 2011-05-23  Bruno Haible  <bruno@clisp.org>
18015
18016         mgetgroups: Move AC_LIBOBJ invocations to module description.
18017         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
18018         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
18019
18020 2011-05-23  Bruno Haible  <bruno@clisp.org>
18021
18022         memxor: Move AC_LIBOBJ invocations to module description.
18023         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
18024         * modules/memxor (Makefile.am): Augment lib_SOURCES.
18025
18026 2011-05-23  Bruno Haible  <bruno@clisp.org>
18027
18028         memcoll: Move AC_LIBOBJ invocations to module description.
18029         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
18030         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
18031
18032 2011-05-23  Bruno Haible  <bruno@clisp.org>
18033
18034         memcasecmp: Move AC_LIBOBJ invocations to module description.
18035         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
18036         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
18037
18038 2011-05-23  Bruno Haible  <bruno@clisp.org>
18039
18040         crypto/md5: Move AC_LIBOBJ invocations to module description.
18041         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
18042         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
18043
18044 2011-05-23  Bruno Haible  <bruno@clisp.org>
18045
18046         crypto/md4: Move AC_LIBOBJ invocations to module description.
18047         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
18048         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
18049
18050 2011-05-23  Bruno Haible  <bruno@clisp.org>
18051
18052         crypto/md2: Move AC_LIBOBJ invocations to module description.
18053         * m4/md2.m4: Remove file.
18054         * modules/crypto/md2 (Files): Remove it.
18055         (configure.ac): Remove gl_MD2 call.
18056         (Makefile.am): Augment lib_SOURCES.
18057
18058 2011-05-23  Bruno Haible  <bruno@clisp.org>
18059
18060         long-options: Move AC_LIBOBJ invocations to module description.
18061         * m4/long-options.m4: Remove file.
18062         * modules/long-options (Files): Remove it.
18063         (configure.ac): Remove gl_LONG_OPTIONS call.
18064         (Makefile.am): Augment lib_SOURCES.
18065
18066 2011-05-23  Bruno Haible  <bruno@clisp.org>
18067
18068         i-ring: Move AC_LIBOBJ invocations to module description.
18069         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
18070         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
18071
18072 2011-05-23  Bruno Haible  <bruno@clisp.org>
18073
18074         idcache: Move AC_LIBOBJ invocations to module description.
18075         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
18076         * modules/idcache (Makefile.am): Augment lib_SOURCES.
18077
18078 2011-05-23  Bruno Haible  <bruno@clisp.org>
18079
18080         human: Move AC_LIBOBJ invocations to module description.
18081         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
18082         * modules/human (Makefile.am): Augment lib_SOURCES.
18083
18084 2011-05-23  Bruno Haible  <bruno@clisp.org>
18085
18086         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
18087         * m4/hmac-sha1.m4: Remove file.
18088         * modules/crypto/hmac-sha1 (Files): Remove it.
18089         (configure.ac): Remove gl_HMAC_SHA1 call.
18090         (Makefile.am): Augment lib_SOURCES.
18091
18092 2011-05-23  Bruno Haible  <bruno@clisp.org>
18093
18094         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
18095         * m4/hmac-md5.m4: Remove file.
18096         * modules/crypto/hmac-md5 (Files): Remove it.
18097         (configure.ac): Remove gl_HMAC_MD5 call.
18098         (Makefile.am): Augment lib_SOURCES.
18099
18100 2011-05-23  Bruno Haible  <bruno@clisp.org>
18101
18102         hash: Move AC_LIBOBJ invocations to module description.
18103         * m4/hash.m4: Remove file.
18104         * modules/hash (Files): Remove it.
18105         (configure.ac): Remove gl_HASH call.
18106         (Makefile.am): Augment lib_SOURCES.
18107
18108 2011-05-23  Bruno Haible  <bruno@clisp.org>
18109
18110         hard-locale: Move AC_LIBOBJ invocations to module description.
18111         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
18112         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
18113
18114 2011-05-23  Bruno Haible  <bruno@clisp.org>
18115
18116         getugroups: Move AC_LIBOBJ invocations to module description.
18117         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
18118         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
18119
18120 2011-05-23  Bruno Haible  <bruno@clisp.org>
18121
18122         gettime: Move AC_LIBOBJ invocations to module description.
18123         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
18124         * modules/gettime (Makefile.am): Augment lib_SOURCES.
18125
18126 2011-05-23  Bruno Haible  <bruno@clisp.org>
18127
18128         getndelim2: Move AC_LIBOBJ invocations to module description.
18129         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
18130         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
18131
18132 2011-05-23  Bruno Haible  <bruno@clisp.org>
18133
18134         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
18135         * m4/gc-pbkdf2-sha1.m4: Remove file.
18136         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
18137         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
18138         (Makefile.am): Augment lib_SOURCES.
18139
18140 2011-05-23  Bruno Haible  <bruno@clisp.org>
18141
18142         fts: Move AC_LIBOBJ invocations to module description.
18143         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
18144         * modules/fts (configure.ac): ... to here.
18145
18146 2011-05-23  Bruno Haible  <bruno@clisp.org>
18147
18148         file-type: Move AC_LIBOBJ invocations to module description.
18149         * m4/file-type.m4: Remove file.
18150         * modules/file-type (Files): Remove it.
18151         (configure.ac): Remove gl_FILE_TYPE call.
18152         (Makefile.am): Augment lib_SOURCES.
18153
18154 2011-05-23  Bruno Haible  <bruno@clisp.org>
18155
18156         filenamecat*: Respect rules for use of AC_LIBOBJ.
18157         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
18158         Remove AC_LIBOBJ invocation.
18159         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
18160         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
18161
18162 2011-05-23  Bruno Haible  <bruno@clisp.org>
18163
18164         filemode: Move AC_LIBOBJ invocations to module description.
18165         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
18166         * modules/filemode (Makefile.am): Augment lib_SOURCES.
18167
18168 2011-05-23  Bruno Haible  <bruno@clisp.org>
18169
18170         openat-safer: Move AC_LIBOBJ invocations to module description.
18171         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
18172         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
18173
18174 2011-05-23  Bruno Haible  <bruno@clisp.org>
18175
18176         fcntl-safer: Move AC_LIBOBJ invocations to module description.
18177         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
18178         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
18179
18180 2011-05-23  Bruno Haible  <bruno@clisp.org>
18181
18182         exclude: Move AC_LIBOBJ invocations to module description.
18183         * m4/exclude.m4: Remove file.
18184         * modules/exclude (Files): Remove it.
18185         (configure.ac): Remove gl_EXCLUDE call.
18186         (Makefile.am): Augment lib_SOURCES.
18187
18188 2011-05-23  Bruno Haible  <bruno@clisp.org>
18189
18190         dirname*: Respect rules for use of AC_LIBOBJ.
18191         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
18192         invocations.
18193         * modules/dirname (Makefile.am): Augment lib_SOURCES.
18194         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
18195
18196 2011-05-23  Bruno Haible  <bruno@clisp.org>
18197
18198         dirent-safer: Move AC_LIBOBJ invocations to module description.
18199         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
18200         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
18201
18202 2011-05-23  Bruno Haible  <bruno@clisp.org>
18203
18204         crypto/des: Move AC_LIBOBJ invocations to module description.
18205         * m4/des.m4: Remove file.
18206         * modules/crypto/des (Files): Remove it.
18207         (configure.ac): Remove gl_DES call.
18208         (Makefile.am): Augment lib_SOURCES.
18209
18210 2011-05-23  Bruno Haible  <bruno@clisp.org>
18211
18212         cycle-check: Move AC_LIBOBJ invocations to module description.
18213         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
18214         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
18215
18216 2011-05-23  Bruno Haible  <bruno@clisp.org>
18217
18218         c-strtold: Move AC_LIBOBJ invocations to module description.
18219         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
18220         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
18221
18222 2011-05-23  Bruno Haible  <bruno@clisp.org>
18223
18224         c-strtod: Move AC_LIBOBJ invocations to module description.
18225         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
18226         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
18227
18228 2011-05-23  Bruno Haible  <bruno@clisp.org>
18229
18230         crc: Move AC_LIBOBJ invocations to module description.
18231         * m4/crc.m4: Remove file.
18232         * modules/crc (Files): Remove it.
18233         (configure.ac): Remove gl_CRC call.
18234         (Makefile.am): Augment lib_SOURCES.
18235
18236 2011-05-23  Bruno Haible  <bruno@clisp.org>
18237
18238         close-stream: Move AC_LIBOBJ invocations to module description.
18239         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
18240         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
18241
18242 2011-05-23  Bruno Haible  <bruno@clisp.org>
18243
18244         closeout: Move AC_LIBOBJ invocations to module description.
18245         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
18246         * modules/closeout (Makefile.am): Augment lib_SOURCES.
18247
18248 2011-05-23  Bruno Haible  <bruno@clisp.org>
18249
18250         closein: Move AC_LIBOBJ invocations to module description.
18251         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
18252         * modules/closein (Makefile.am): Augment lib_SOURCES.
18253
18254 2011-05-23  Bruno Haible  <bruno@clisp.org>
18255
18256         cloexec: Move AC_LIBOBJ invocations to module description.
18257         * m4/cloexec.m4: Remove file.
18258         * modules/cloexec (Files): Remove it.
18259         (configure.ac): Remove gl_CLOEXEC call.
18260         (Makefile.am): Augment lib_SOURCES.
18261
18262 2011-05-23  Bruno Haible  <bruno@clisp.org>
18263
18264         check-version: Move AC_LIBOBJ invocations to module description.
18265         * m4/check-version.m4: Remove file.
18266         * modules/check-version (Files): Remove it.
18267         (configure.ac): Remove gl_CHECK_VERSION call.
18268         (Makefile.am): Augment lib_SOURCES.
18269
18270 2011-05-23  Bruno Haible  <bruno@clisp.org>
18271
18272         chdir-safer: Move AC_LIBOBJ invocations to module description.
18273         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
18274         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
18275
18276 2011-05-23  Bruno Haible  <bruno@clisp.org>
18277
18278         canonicalize: Move AC_LIBOBJ invocations to module description.
18279         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
18280         AC_LIBOBJ invocation.
18281         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
18282
18283 2011-05-23  Bruno Haible  <bruno@clisp.org>
18284
18285         canon-host: Move AC_LIBOBJ invocations to module description.
18286         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
18287         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
18288         instead of gl_CANON_HOST.
18289         (Makefile.am): Augment lib_SOURCES.
18290
18291 2011-05-23  Bruno Haible  <bruno@clisp.org>
18292
18293         backupfile: Move AC_LIBOBJ invocations to module description.
18294         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
18295         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
18296
18297 2011-05-23  Bruno Haible  <bruno@clisp.org>
18298
18299         argmatch: Move AC_LIBOBJ invocations to module description.
18300         * m4/argmatch.m4: Remove file.
18301         * modules/argmatch (Files): Remove it.
18302         (configure.ac): Remove gl_ARGMATCH call.
18303         (Makefile.am): Augment lib_SOURCES.
18304
18305 2011-05-23  Bruno Haible  <bruno@clisp.org>
18306
18307         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
18308         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
18309         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
18310
18311 2011-05-23  Bruno Haible  <bruno@clisp.org>
18312
18313         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
18314         * m4/arcfour.m4: Remove file.
18315         * modules/crypto/arcfour (Files): Remove it.
18316         (configure.ac): Remove gl_ARCFOUR call.
18317         (Makefile.am): Augment lib_SOURCES.
18318
18319 2011-05-22  Bruno Haible  <bruno@clisp.org>
18320
18321         write: Move AC_LIBOBJ invocations to module description.
18322         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
18323         * modules/write (configure.ac): ... to here.
18324
18325 2011-05-22  Bruno Haible  <bruno@clisp.org>
18326
18327         wmemset: Move AC_LIBOBJ invocations to module description.
18328         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
18329         here...
18330         * modules/wmemset (configure.ac): ... to here.
18331
18332 2011-05-22  Bruno Haible  <bruno@clisp.org>
18333
18334         wmemmove: Move AC_LIBOBJ invocations to module description.
18335         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
18336         here...
18337         * modules/wmemmove (configure.ac): ... to here.
18338
18339 2011-05-22  Bruno Haible  <bruno@clisp.org>
18340
18341         wmemcpy: Move AC_LIBOBJ invocations to module description.
18342         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
18343         here...
18344         * modules/wmemcpy (configure.ac): ... to here.
18345
18346 2011-05-22  Bruno Haible  <bruno@clisp.org>
18347
18348         wmemcmp: Move AC_LIBOBJ invocations to module description.
18349         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
18350         here...
18351         * modules/wmemcmp (configure.ac): ... to here.
18352
18353 2011-05-22  Bruno Haible  <bruno@clisp.org>
18354
18355         wmemchr: Move AC_LIBOBJ invocations to module description.
18356         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
18357         here...
18358         * modules/wmemchr (configure.ac): ... to here.
18359
18360 2011-05-22  Bruno Haible  <bruno@clisp.org>
18361
18362         wcswidth: Move AC_LIBOBJ invocations to module description.
18363         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
18364         here...
18365         * modules/wcswidth (configure.ac): ... to here.
18366
18367 2011-05-22  Bruno Haible  <bruno@clisp.org>
18368
18369         wcwidth: Respect rules for use of AC_LIBOBJ.
18370         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
18371         invocation from here...
18372         * modules/wcwidth (configure.ac): ... to here.
18373         (Depends-on): Update conditions.
18374
18375 2011-05-22  Bruno Haible  <bruno@clisp.org>
18376
18377         wctype: Move AC_LIBOBJ invocations to module description.
18378         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
18379         invocation from here...
18380         * modules/wctype (configure.ac): ... to here.
18381         (Depends-on): Update conditions.
18382
18383 2011-05-22  Bruno Haible  <bruno@clisp.org>
18384
18385         wctrans: Move AC_LIBOBJ invocations to module description.
18386         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
18387         invocation from here...
18388         * modules/wctrans (configure.ac): ... to here.
18389
18390 2011-05-22  Bruno Haible  <bruno@clisp.org>
18391
18392         wctomb: Move AC_LIBOBJ invocations to module description.
18393         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
18394         invocations from here...
18395         * modules/wctomb (configure.ac): ... to here.
18396
18397 2011-05-22  Bruno Haible  <bruno@clisp.org>
18398
18399         wctob: Move AC_LIBOBJ invocations to module description.
18400         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
18401         gl_PREREQ_WCTOB invocations from here...
18402         * modules/wctob (configure.ac): ... to here.
18403         (Depends-on): Update conditions.
18404
18405 2011-05-22  Bruno Haible  <bruno@clisp.org>
18406
18407         wcsxfrm: Move AC_LIBOBJ invocations to module description.
18408         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
18409         here...
18410         * modules/wcsxfrm (configure.ac): ... to here.
18411
18412 2011-05-22  Bruno Haible  <bruno@clisp.org>
18413
18414         wcstok: Move AC_LIBOBJ invocations to module description.
18415         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
18416         * modules/wcstok (configure.ac): ... to here.
18417
18418 2011-05-22  Bruno Haible  <bruno@clisp.org>
18419
18420         wcsstr: Move AC_LIBOBJ invocations to module description.
18421         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
18422         * modules/wcsstr (configure.ac): ... to here.
18423
18424 2011-05-22  Bruno Haible  <bruno@clisp.org>
18425
18426         wcsspn: Move AC_LIBOBJ invocations to module description.
18427         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
18428         * modules/wcsspn (configure.ac): ... to here.
18429
18430 2011-05-22  Bruno Haible  <bruno@clisp.org>
18431
18432         wcsrtombs: Move AC_LIBOBJ invocations to module description.
18433         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
18434         gl_PREREQ_WCSRTOMBS invocations from here...
18435         * modules/wcsrtombs (configure.ac): ... to here.
18436
18437 2011-05-22  Bruno Haible  <bruno@clisp.org>
18438
18439         wcsrchr: Move AC_LIBOBJ invocations to module description.
18440         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
18441         here...
18442         * modules/wcsrchr (configure.ac): ... to here.
18443
18444 2011-05-22  Bruno Haible  <bruno@clisp.org>
18445
18446         wcspbrk: Move AC_LIBOBJ invocations to module description.
18447         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
18448         here...
18449         * modules/wcspbrk (configure.ac): ... to here.
18450
18451 2011-05-22  Bruno Haible  <bruno@clisp.org>
18452
18453         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
18454         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
18455         gl_PREREQ_WCSNRTOMBS invocations from here...
18456         * modules/wcsnrtombs (configure.ac): ... to here.
18457
18458 2011-05-22  Bruno Haible  <bruno@clisp.org>
18459
18460         wcsnlen: Move AC_LIBOBJ invocations to module description.
18461         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
18462         here...
18463         * modules/wcsnlen (configure.ac): ... to here.
18464
18465 2011-05-22  Bruno Haible  <bruno@clisp.org>
18466
18467         wcsncpy: Move AC_LIBOBJ invocations to module description.
18468         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
18469         here...
18470         * modules/wcsncpy (configure.ac): ... to here.
18471
18472 2011-05-22  Bruno Haible  <bruno@clisp.org>
18473
18474         wcsncmp: Move AC_LIBOBJ invocations to module description.
18475         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
18476         here...
18477         * modules/wcsncmp (configure.ac): ... to here.
18478
18479 2011-05-22  Bruno Haible  <bruno@clisp.org>
18480
18481         wcsncat: Move AC_LIBOBJ invocations to module description.
18482         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
18483         here...
18484         * modules/wcsncat (configure.ac): ... to here.
18485
18486 2011-05-22  Bruno Haible  <bruno@clisp.org>
18487
18488         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
18489         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
18490         from here...
18491         * modules/wcsncasecmp (configure.ac): ... to here.
18492
18493 2011-05-22  Bruno Haible  <bruno@clisp.org>
18494
18495         wcslen: Move AC_LIBOBJ invocations to module description.
18496         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
18497         * modules/wcslen (configure.ac): ... to here.
18498
18499 2011-05-22  Bruno Haible  <bruno@clisp.org>
18500
18501         wcsdup: Move AC_LIBOBJ invocations to module description.
18502         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
18503         * modules/wcsdup (configure.ac): ... to here.
18504
18505 2011-05-22  Bruno Haible  <bruno@clisp.org>
18506
18507         wcscspn: Move AC_LIBOBJ invocations to module description.
18508         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
18509         here...
18510         * modules/wcscspn (configure.ac): ... to here.
18511
18512 2011-05-22  Bruno Haible  <bruno@clisp.org>
18513
18514         wcscpy: Move AC_LIBOBJ invocations to module description.
18515         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
18516         * modules/wcscpy (configure.ac): ... to here.
18517
18518 2011-05-22  Bruno Haible  <bruno@clisp.org>
18519
18520         wcscoll: Move AC_LIBOBJ invocations to module description.
18521         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
18522         here...
18523         * modules/wcscoll (configure.ac): ... to here.
18524
18525 2011-05-22  Bruno Haible  <bruno@clisp.org>
18526
18527         wcscmp: Move AC_LIBOBJ invocations to module description.
18528         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
18529         * modules/wcscmp (configure.ac): ... to here.
18530
18531 2011-05-22  Bruno Haible  <bruno@clisp.org>
18532
18533         wcschr: Move AC_LIBOBJ invocations to module description.
18534         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
18535         * modules/wcschr (configure.ac): ... to here.
18536
18537 2011-05-22  Bruno Haible  <bruno@clisp.org>
18538
18539         wcscat: Move AC_LIBOBJ invocations to module description.
18540         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
18541         * modules/wcscat (configure.ac): ... to here.
18542
18543 2011-05-22  Bruno Haible  <bruno@clisp.org>
18544
18545         wcscasecmp: Move AC_LIBOBJ invocations to module description.
18546         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
18547         here...
18548         * modules/wcscasecmp (configure.ac): ... to here.
18549
18550 2011-05-22  Bruno Haible  <bruno@clisp.org>
18551
18552         wcrtomb: Move AC_LIBOBJ invocations to module description.
18553         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
18554         invocations from here...
18555         * modules/wcrtomb (configure.ac): ... to here.
18556
18557 2011-05-22  Bruno Haible  <bruno@clisp.org>
18558
18559         wcpncpy: Move AC_LIBOBJ invocations to module description.
18560         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
18561         here...
18562         * modules/wcpncpy (configure.ac): ... to here.
18563
18564 2011-05-22  Bruno Haible  <bruno@clisp.org>
18565
18566         wcpcpy: Move AC_LIBOBJ invocations to module description.
18567         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
18568         * modules/wcpcpy (configure.ac): ... to here.
18569
18570 2011-05-22  Bruno Haible  <bruno@clisp.org>
18571
18572         waitpid: Move AC_LIBOBJ invocations to module description.
18573         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
18574         invocation from here...
18575         * modules/waitpid (configure.ac): ... to here.
18576
18577 2011-05-22  Bruno Haible  <bruno@clisp.org>
18578
18579         utimensat: Move AC_LIBOBJ invocations to module description.
18580         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
18581         here...
18582         * modules/utimensat (configure.ac): ... to here.
18583
18584 2011-05-22  Bruno Haible  <bruno@clisp.org>
18585
18586         usleep: Move AC_LIBOBJ invocations to module description.
18587         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
18588         here...
18589         * modules/usleep (configure.ac): ... to here.
18590
18591 2011-05-22  Bruno Haible  <bruno@clisp.org>
18592
18593         unlockpt: Move AC_LIBOBJ invocations to module description.
18594         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
18595         gl_PREREQ_UNLOCKPT invocations from here...
18596         * modules/unlockpt (configure.ac): ... to here.
18597
18598 2011-05-22  Bruno Haible  <bruno@clisp.org>
18599
18600         unlink: Respect rules for use of AC_LIBOBJ.
18601         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
18602         * modules/unlink (configure.ac): ... to here.
18603
18604 2011-05-22  Bruno Haible  <bruno@clisp.org>
18605
18606         uname: Move AC_LIBOBJ invocations to module description.
18607         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
18608         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
18609         here...
18610         * modules/uname (configure.ac): ... to here.
18611
18612 2011-05-22  Bruno Haible  <bruno@clisp.org>
18613
18614         ttyname_r: Move AC_LIBOBJ invocations to module description.
18615         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
18616         gl_PREREQ_TTYNAME_R invocations from here...
18617         * modules/ttyname_r (configure.ac): ... to here.
18618
18619 2011-05-22  Bruno Haible  <bruno@clisp.org>
18620
18621         tsearch: Move AC_LIBOBJ invocations to module description.
18622         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
18623         invocations from here...
18624         * modules/tsearch (configure.ac): ... to here.
18625
18626 2011-05-22  Bruno Haible  <bruno@clisp.org>
18627
18628         towctrans: Move AC_LIBOBJ invocations to module description.
18629         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
18630         AC_LIBOBJ invocation from here...
18631         * modules/towctrans (configure.ac): ... to here.
18632
18633 2011-05-22  Bruno Haible  <bruno@clisp.org>
18634
18635         tmpfile: Move AC_LIBOBJ invocations to module description.
18636         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
18637         invocations from here...
18638         * modules/tmpfile (configure.ac): ... to here.
18639
18640 2011-05-22  Bruno Haible  <bruno@clisp.org>
18641
18642         times: Move AC_LIBOBJ invocations to module description.
18643         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
18644         * modules/times (configure.ac): ... to here.
18645
18646 2011-05-22  Bruno Haible  <bruno@clisp.org>
18647
18648         time_r: Move AC_LIBOBJ invocations to module description.
18649         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
18650         invocations from here...
18651         * modules/time_r (configure.ac): ... to here.
18652
18653 2011-05-22  Bruno Haible  <bruno@clisp.org>
18654
18655         timegm: Move AC_LIBOBJ invocations to module description.
18656         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
18657         invocations from here...
18658         * modules/timegm (configure.ac): ... to here.
18659
18660 2011-05-22  Bruno Haible  <bruno@clisp.org>
18661
18662         tcgetsid: Move AC_LIBOBJ invocations to module description.
18663         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
18664         and gl_PREREQ_TCGETSID invocations from here...
18665         * modules/tcgetsid (configure.ac): ... to here.
18666         (Depends-on): Update conditions.
18667
18668 2011-05-22  Bruno Haible  <bruno@clisp.org>
18669
18670         symlinkat: Move AC_LIBOBJ invocations to module description.
18671         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
18672         here...
18673         * modules/symlinkat (configure.ac): ... to here.
18674
18675 2011-05-22  Bruno Haible  <bruno@clisp.org>
18676
18677         symlink: Move AC_LIBOBJ invocations to module description.
18678         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
18679         here...
18680         * modules/symlink (configure.ac): ... to here.
18681
18682 2011-05-22  Bruno Haible  <bruno@clisp.org>
18683
18684         strverscmp: Move AC_LIBOBJ invocations to module description.
18685         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
18686         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
18687         from here...
18688         * modules/strverscmp (configure.ac): ... to here.
18689
18690 2011-05-22  Bruno Haible  <bruno@clisp.org>
18691
18692         strtok_r: Move AC_LIBOBJ invocations to module description.
18693         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
18694         and gl_PREREQ_STRTOK_R invocations from here...
18695         * modules/strtok_r (configure.ac): ... to here.
18696         (Depends-on): Update conditions.
18697
18698 2011-05-22  Bruno Haible  <bruno@clisp.org>
18699
18700         strtoumax: Move AC_LIBOBJ invocations to module description.
18701         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
18702         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
18703         from here...
18704         * modules/strtoumax (configure.ac): ... to here.
18705
18706 2011-05-22  Bruno Haible  <bruno@clisp.org>
18707
18708         strtoimax: Move AC_LIBOBJ invocations to module description.
18709         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
18710         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
18711         from here...
18712         * modules/strtoimax (configure.ac): ... to here.
18713
18714 2011-05-22  Bruno Haible  <bruno@clisp.org>
18715
18716         strtoull: Move AC_LIBOBJ invocations to module description.
18717         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
18718         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
18719         from here...
18720         * modules/strtoull (configure.ac): ... to here.
18721
18722 2011-05-22  Bruno Haible  <bruno@clisp.org>
18723
18724         strtoll: Move AC_LIBOBJ invocations to module description.
18725         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
18726         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
18727         here...
18728         * modules/strtoll (configure.ac): ... to here.
18729
18730 2011-05-22  Bruno Haible  <bruno@clisp.org>
18731
18732         strtoul: Move AC_LIBOBJ invocations to module description.
18733         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
18734         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18735         * modules/strtoul (configure.ac): ... to here.
18736
18737 2011-05-22  Bruno Haible  <bruno@clisp.org>
18738
18739         strtol: Move AC_LIBOBJ invocations to module description.
18740         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
18741         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18742         * modules/strtol (configure.ac): ... to here.
18743
18744 2011-05-22  Bruno Haible  <bruno@clisp.org>
18745
18746         strtod: Move AC_LIBOBJ invocations to module description.
18747         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
18748         invocations from here...
18749         * modules/strtod (configure.ac): ... to here.
18750
18751 2011-05-22  Bruno Haible  <bruno@clisp.org>
18752
18753         strstr*: Move AC_LIBOBJ invocations to module description.
18754         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
18755         invocations from here...
18756         * modules/strstr-simple (configure.ac): ... to here.
18757         * modules/strstr (configure.ac): ... and here.
18758
18759 2011-05-22  Bruno Haible  <bruno@clisp.org>
18760
18761         strsignal: Move AC_LIBOBJ invocations to module description.
18762         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
18763         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
18764         * modules/strsignal (configure.ac): ... to here.
18765         (Depends-on): Update conditions.
18766
18767 2011-05-22  Bruno Haible  <bruno@clisp.org>
18768
18769         strsep: Move AC_LIBOBJ invocations to module description.
18770         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
18771         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
18772         here...
18773         * modules/strsep (configure.ac): ... to here.
18774
18775 2011-05-22  Bruno Haible  <bruno@clisp.org>
18776
18777         strptime: Move AC_LIBOBJ invocations to module description.
18778         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
18779         gl_PREREQ_STRPTIME invocations from here...
18780         * modules/strptime (configure.ac): ... to here.
18781
18782 2011-05-22  Bruno Haible  <bruno@clisp.org>
18783
18784         strpbrk: Move AC_LIBOBJ invocations to module description.
18785         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
18786         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
18787         here...
18788         * modules/strpbrk (configure.ac): ... to here.
18789
18790 2011-05-22  Bruno Haible  <bruno@clisp.org>
18791
18792         strnlen: Move AC_LIBOBJ invocations to module description.
18793         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
18794         invocations from here...
18795         * modules/strnlen (configure.ac): ... to here.
18796
18797 2011-05-22  Bruno Haible  <bruno@clisp.org>
18798
18799         strndup: Move AC_LIBOBJ invocations to module description.
18800         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
18801         invocations from here...
18802         * modules/strndup (configure.ac): ... to here.
18803         (Depends-on): Update conditions.
18804
18805 2011-05-22  Bruno Haible  <bruno@clisp.org>
18806
18807         strncat: Move AC_LIBOBJ invocations to module description.
18808         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
18809         invocations from here...
18810         * modules/strncat (configure.ac): ... to here.
18811
18812 2011-05-22  Bruno Haible  <bruno@clisp.org>
18813
18814         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
18815         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
18816         invocations from here...
18817         * modules/strdup (configure.ac): ... to here.
18818         * modules/strdup-posix (configure.ac): ... and here.
18819
18820 2011-05-22  Bruno Haible  <bruno@clisp.org>
18821
18822         strcspn: Move AC_LIBOBJ invocations to module description.
18823         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
18824         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
18825         here...
18826         * modules/strcspn (configure.ac): ... to here.
18827
18828 2011-05-22  Bruno Haible  <bruno@clisp.org>
18829
18830         strchrnul: Move AC_LIBOBJ invocations to module description.
18831         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
18832         gl_PREREQ_STRCHRNUL invocations from here...
18833         * modules/strchrnul (configure.ac): ... to here.
18834
18835 2011-05-22  Bruno Haible  <bruno@clisp.org>
18836
18837         strcasestr*: Move AC_LIBOBJ invocations to module description.
18838         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18839         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
18840         * modules/strcasestr-simple (configure.ac): ... to here.
18841         * modules/strcasestr (configure.ac): ... and here.
18842
18843 2011-05-22  Bruno Haible  <bruno@clisp.org>
18844
18845         strcase: Move AC_LIBOBJ invocations to module description.
18846         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
18847         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
18848         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
18849         gl_PREREQ_STRNCASECMP invocations from here...
18850         * modules/strcase (configure.ac): ... to here.
18851
18852 2011-05-22  Bruno Haible  <bruno@clisp.org>
18853
18854         stpncpy: Move AC_LIBOBJ invocations to module description.
18855         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
18856         here...
18857         * modules/stpncpy (configure.ac): ... to here.
18858
18859 2011-05-22  Bruno Haible  <bruno@clisp.org>
18860
18861         stpcpy: Move AC_LIBOBJ invocations to module description.
18862         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
18863         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
18864         here...
18865         * modules/stpcpy (configure.ac): ... to here.
18866
18867 2011-05-21  Bruno Haible  <bruno@clisp.org>
18868
18869         stat: Move AC_LIBOBJ invocations to module description.
18870         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
18871         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
18872         here...
18873         * modules/stat (configure.ac): ... to here.
18874
18875 2011-05-21  Bruno Haible  <bruno@clisp.org>
18876
18877         sleep: Move AC_LIBOBJ invocations to module description.
18878         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
18879         * modules/sleep (configure.ac): ... to here.
18880
18881 2011-05-21  Bruno Haible  <bruno@clisp.org>
18882
18883         signbit: Move AC_LIBOBJ invocations to module description.
18884         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
18885         * modules/signbit (configure.ac): ... to here.
18886
18887 2011-05-21  Bruno Haible  <bruno@clisp.org>
18888
18889         sigprocmask: Move AC_LIBOBJ invocations to module description.
18890         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
18891         gl_PREREQ_SIGPROMASK invocations from here...
18892         * modules/sigprocmask (configure.ac): ... to here.
18893
18894 2011-05-21  Bruno Haible  <bruno@clisp.org>
18895
18896         sigaction: Move AC_LIBOBJ invocations to module description.
18897         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
18898         gl_PREREQ_SIGACTION invocations from here...
18899         * modules/sigaction (configure.ac): ... to here.
18900
18901 2011-05-21  Bruno Haible  <bruno@clisp.org>
18902
18903         sig2str: Move AC_LIBOBJ invocations to module description.
18904         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
18905         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
18906         here...
18907         * modules/sig2str (configure.ac): ... to here.
18908
18909 2011-05-21  Bruno Haible  <bruno@clisp.org>
18910
18911         setlocale: Move AC_LIBOBJ invocations to module description.
18912         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
18913         gl_PREREQ_SETLOCALE invocations from here...
18914         * modules/setlocale (configure.ac): ... to here.
18915
18916 2011-05-21  Bruno Haible  <bruno@clisp.org>
18917
18918         unsetenv: Move AC_LIBOBJ invocations to module description.
18919         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
18920         and gl_PREREQ_UNSETENV invocations from here...
18921         * modules/unsetenv (configure.ac): ... to here.
18922         (Depends-on): Update.
18923
18924 2011-05-21  Bruno Haible  <bruno@clisp.org>
18925
18926         setenv: Move AC_LIBOBJ invocations to module description.
18927         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
18928         here...
18929         * modules/setenv (configure.ac): ... to here.
18930
18931 2011-05-21  Bruno Haible  <bruno@clisp.org>
18932
18933         selinux-h: Move AC_LIBOBJ invocations to module description.
18934         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
18935         AC_LIBOBJ invocation from here...
18936         * modules/selinux-h (configure.ac): ... to here.
18937
18938 2011-05-21  Bruno Haible  <bruno@clisp.org>
18939
18940         select: Respect rules for use of AC_LIBOBJ.
18941         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
18942         here...
18943         * modules/select (configure.ac): ... to here.
18944
18945 2011-05-21  Bruno Haible  <bruno@clisp.org>
18946
18947         scandir: Move AC_LIBOBJ invocations to module description.
18948         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
18949         invocations from here...
18950         * modules/scandir (configure.ac): ... to here.
18951
18952 2011-05-21  Bruno Haible  <bruno@clisp.org>
18953
18954         rpmatch: Move AC_LIBOBJ invocations to module description.
18955         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
18956         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
18957         here...
18958         * modules/rpmatch (configure.ac): ... to here.
18959
18960 2011-05-21  Bruno Haible  <bruno@clisp.org>
18961
18962         rmdir: Respect rules for use of AC_LIBOBJ.
18963         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
18964         * modules/rmdir (configure.ac): ... to here.
18965
18966 2011-05-21  Bruno Haible  <bruno@clisp.org>
18967
18968         renameat: Move AC_LIBOBJ invocations to module description.
18969         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
18970         here...
18971         * modules/renameat (configure.ac): ... to here.
18972
18973 2011-05-21  Bruno Haible  <bruno@clisp.org>
18974
18975         rename: Respect rules for use of AC_LIBOBJ.
18976         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
18977         here...
18978         * modules/rename (configure.ac): ... to here.
18979
18980 2011-05-21  Bruno Haible  <bruno@clisp.org>
18981
18982         remove: Move AC_LIBOBJ invocations to module description.
18983         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
18984         here...
18985         * modules/remove (configure.ac): ... to here.
18986
18987 2011-05-21  Bruno Haible  <bruno@clisp.org>
18988
18989         relocatable-lib: Move AC_LIBOBJ invocations to module description.
18990         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
18991         macro.
18992         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
18993         * modules/relocatable-lib (configure.ac): ... to here.
18994         * modules/relocatable-prog-wrapper (configure.ac): Invoke
18995         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
18996
18997 2011-05-21  Bruno Haible  <bruno@clisp.org>
18998
18999         relocatable-prog: Move AC_LIBOBJ invocations to module description.
19000         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
19001         here...
19002         * modules/relocatable-prog (configure.ac): ... to here.
19003
19004 2011-05-21  Bruno Haible  <bruno@clisp.org>
19005
19006         regex: Move AC_LIBOBJ invocations to module description.
19007         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
19008         invocations from here...
19009         * modules/regex (configure.ac): ... to here.
19010
19011 2011-05-21  Bruno Haible  <bruno@clisp.org>
19012
19013         realloc-*: Move AC_LIBOBJ invocations to module description.
19014         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
19015         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
19016         AC_LIBOBJ invocations from here...
19017         * modules/realloc-gnu (configure.ac): ... to here.
19018         * modules/realloc-posix (configure.ac): ... and here.
19019
19020 2011-05-21  Bruno Haible  <bruno@clisp.org>
19021
19022         readutmp: Move AC_LIBOBJ invocations to module description.
19023         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
19024         * modules/readutmp (configure.ac): ... to here.
19025
19026 2011-05-21  Bruno Haible  <bruno@clisp.org>
19027
19028         readlinkat: Move AC_LIBOBJ invocations to module description.
19029         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
19030         here...
19031         * modules/readlinkat (configure.ac): ... to here.
19032
19033 2011-05-21  Bruno Haible  <bruno@clisp.org>
19034
19035         readlink: Move AC_LIBOBJ invocations to module description.
19036         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
19037         gl_PREREQ_READLINK invocations from here...
19038         * modules/readlink (configure.ac): ... to here.
19039
19040 2011-05-21  Bruno Haible  <bruno@clisp.org>
19041
19042         readline: Move AC_LIBOBJ invocations to module description.
19043         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
19044         gl_PREREQ_READLINE invocations from here...
19045         * modules/readline (configure.ac): ... to here.
19046
19047 2011-05-21  Bruno Haible  <bruno@clisp.org>
19048
19049         read: Move AC_LIBOBJ invocations to module description.
19050         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
19051         * modules/read (configure.ac): ... to here.
19052
19053 2011-05-21  Bruno Haible  <bruno@clisp.org>
19054
19055         rawmemchr: Move AC_LIBOBJ invocations to module description.
19056         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
19057         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
19058         from here...
19059         * modules/rawmemchr (configure.ac): ... to here.
19060
19061 2011-05-21  Bruno Haible  <bruno@clisp.org>
19062
19063         random_r: Move AC_LIBOBJ invocations to module description.
19064         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
19065         gl_PREREQ_RANDOM_R invocations from here...
19066         * modules/random_r (configure.ac): ... to here.
19067
19068 2011-05-21  Bruno Haible  <bruno@clisp.org>
19069
19070         pwrite: Move AC_LIBOBJ invocations to module description.
19071         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
19072         * modules/pwrite (configure.ac): ... to here.
19073
19074 2011-05-21  Bruno Haible  <bruno@clisp.org>
19075
19076         putenv: Move AC_LIBOBJ invocations to module description.
19077         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
19078         * modules/putenv (configure.ac): ... to here.
19079
19080 2011-05-21  Bruno Haible  <bruno@clisp.org>
19081
19082         login_tty: Move AC_LIBOBJ invocations to module description.
19083         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
19084         * modules/login_tty (configure.ac): ... to here.
19085
19086 2011-05-21  Bruno Haible  <bruno@clisp.org>
19087
19088         openpty: Move AC_LIBOBJ invocations to module description.
19089         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
19090         * modules/openpty (configure.ac): ... to here.
19091
19092 2011-05-21  Bruno Haible  <bruno@clisp.org>
19093
19094         forkpty: Move AC_LIBOBJ invocations to module description.
19095         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
19096         * modules/forkpty (configure.ac): ... to here.
19097
19098 2011-05-21  Bruno Haible  <bruno@clisp.org>
19099
19100         ptsname: Move AC_LIBOBJ invocations to module description.
19101         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
19102         invocations from here...
19103         * modules/ptsname (configure.ac): ... to here.
19104
19105 2011-05-21  Bruno Haible  <bruno@clisp.org>
19106
19107         pread: Move AC_LIBOBJ invocations to module description.
19108         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
19109         * modules/pread (configure.ac): ... to here.
19110
19111 2011-05-21  Bruno Haible  <bruno@clisp.org>
19112
19113         posix_spawn*: Move AC_LIBOBJ invocations to module description.
19114         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
19115         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
19116         * modules/posix_spawn (configure.ac): ... to here.
19117         * modules/posix_spawnp (configure.ac): ... and here.
19118
19119 2011-05-21  Bruno Haible  <bruno@clisp.org>
19120
19121         popen: Move AC_LIBOBJ invocations to module description.
19122         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
19123         invocations from here...
19124         * modules/popen (configure.ac): ... to here.
19125
19126 2011-05-21  Bruno Haible  <bruno@clisp.org>
19127
19128         poll: Move AC_LIBOBJ invocations to module description.
19129         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
19130         invocations from here...
19131         * modules/poll (configure.ac): ... to here.
19132
19133 2011-05-21  Bruno Haible  <bruno@clisp.org>
19134
19135         pipe-posix: Move AC_LIBOBJ invocations to module description.
19136         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
19137         * modules/pipe-posix (configure.ac): ... to here.
19138
19139 2011-05-21  Bruno Haible  <bruno@clisp.org>
19140
19141         openat: Respect rules for use of AC_LIBOBJ.
19142         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
19143         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19144         * modules/openat (configure.ac): ... to here.
19145
19146 2011-05-21  Bruno Haible  <bruno@clisp.org>
19147
19148         obstack-printf*: Move AC_LIBOBJ invocations to module description.
19149         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
19150         invocation from here...
19151         * modules/obstack-printf (configure.ac): ... to here.
19152         * modules/obstack-printf-posix (configure.ac): ... and here.
19153
19154 2011-05-21  Bruno Haible  <bruno@clisp.org>
19155
19156         nl_langinfo: Move AC_LIBOBJ invocations to module description.
19157         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
19158         from here...
19159         * modules/nl_langinfo (configure.ac): ... to here.
19160
19161 2011-05-21  Bruno Haible  <bruno@clisp.org>
19162
19163         nanosleep: Move AC_LIBOBJ invocations to module description.
19164         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
19165         gl_PREREQ_NANOSLEEP invocations from here...
19166         * modules/nanosleep (configure.ac): ... to here.
19167
19168 2011-05-21  Bruno Haible  <bruno@clisp.org>
19169
19170         mountlist: Move AC_LIBOBJ invocations to module description.
19171         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
19172         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
19173         * modules/mountlist (configure.ac): ... to here.
19174
19175 2011-05-21  Bruno Haible  <bruno@clisp.org>
19176
19177         mktime: Respect rules for use of AC_LIBOBJ.
19178         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
19179         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
19180         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
19181         (gl_FUNC_MKTIME_INTERNAL): ... and here...
19182         * modules/mktime (configure.ac): ... to here.
19183         * modules/mktime-internal (configure.ac): ... and here.
19184         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
19185
19186 2011-05-21  Bruno Haible  <bruno@clisp.org>
19187
19188         mkstemps: Move AC_LIBOBJ invocations to module description.
19189         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
19190         here...
19191         * modules/mkstemps (configure.ac): ... to here.
19192
19193 2011-05-21  Bruno Haible  <bruno@clisp.org>
19194
19195         mkstemp: Move AC_LIBOBJ invocations to module description.
19196         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
19197         gl_PREREQ_MKSTEMP invocations from here...
19198         * modules/mkstemp (configure.ac): ... to here.
19199
19200 2011-05-21  Bruno Haible  <bruno@clisp.org>
19201
19202         mkostemps: Move AC_LIBOBJ invocations to module description.
19203         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
19204         here...
19205         * modules/mkostemps (configure.ac): ... to here.
19206
19207 2011-05-21  Bruno Haible  <bruno@clisp.org>
19208
19209         mkostemp: Move AC_LIBOBJ invocations to module description.
19210         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
19211         gl_PREREQ_MKOSTEMP invocations from here...
19212         * modules/mkostemp (configure.ac): ... to here.
19213
19214 2011-05-21  Bruno Haible  <bruno@clisp.org>
19215
19216         mknod: Move AC_LIBOBJ invocations to module description.
19217         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
19218         * modules/mknod (configure.ac): ... to here.
19219
19220 2011-05-21  Bruno Haible  <bruno@clisp.org>
19221
19222         mkfifoat: Move AC_LIBOBJ invocations to module description.
19223         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
19224         here...
19225         * modules/mkfifoat (configure.ac): ... to here.
19226
19227 2011-05-21  Bruno Haible  <bruno@clisp.org>
19228
19229         mkfifo: Respect rules for use of AC_LIBOBJ.
19230         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
19231         here...
19232         * modules/mkfifo (configure.ac): ... to here.
19233
19234 2011-05-21  Bruno Haible  <bruno@clisp.org>
19235
19236         mkdtemp: Move AC_LIBOBJ invocations to module description.
19237         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
19238         invocations from here...
19239         * modules/mkdtemp (configure.ac): ... to here.
19240
19241 2011-05-21  Bruno Haible  <bruno@clisp.org>
19242
19243         mkdir: Move AC_LIBOBJ invocations to module description.
19244         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
19245         * modules/mkdir (configure.ac): ... to here.
19246
19247 2011-05-21  Bruno Haible  <bruno@clisp.org>
19248
19249         memset: Move AC_LIBOBJ invocations to module description.
19250         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
19251         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
19252         here...
19253         * modules/memset (configure.ac): ... to here.
19254
19255 2011-05-21  Bruno Haible  <bruno@clisp.org>
19256
19257         memrchr: Move AC_LIBOBJ invocations to module description.
19258         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
19259         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
19260         here...
19261         * modules/memrchr (configure.ac): ... to here.
19262
19263 2011-05-21  Bruno Haible  <bruno@clisp.org>
19264
19265         mempcpy: Move AC_LIBOBJ invocations to module description.
19266         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
19267         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
19268         here...
19269         * modules/mempcpy (configure.ac): ... to here.
19270
19271 2011-05-21  Bruno Haible  <bruno@clisp.org>
19272
19273         memmove: Move AC_LIBOBJ invocations to module description.
19274         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
19275         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
19276         here...
19277         * modules/memmove (configure.ac): ... to here.
19278
19279 2011-05-21  Bruno Haible  <bruno@clisp.org>
19280
19281         memmem*: Move AC_LIBOBJ invocations to module description.
19282         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
19283         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
19284         here...
19285         (gl_FUNC_MEMMEM): ... and here...
19286         * modules/memmem-simple (configure.ac): ... to here.
19287         * modules/memmem (configure.ac): ... and here.
19288
19289 2011-05-21  Bruno Haible  <bruno@clisp.org>
19290
19291         memcpy: Move AC_LIBOBJ invocations to module description.
19292         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
19293         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
19294         here...
19295         * modules/memcpy (configure.ac): ... to here.
19296
19297 2011-05-21  Bruno Haible  <bruno@clisp.org>
19298
19299         memcmp: Simplify autoconf macro.
19300         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
19301         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
19302         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
19303
19304 2011-05-21  Bruno Haible  <bruno@clisp.org>
19305
19306         memcmp: Move AC_LIBOBJ invocations to module description.
19307         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
19308         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
19309         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
19310         * modules/memcmp (configure.ac): ... to here.
19311         (Depends-on): Update conditions.
19312
19313 2011-05-21  Bruno Haible  <bruno@clisp.org>
19314
19315         memchr: Respect rules for use of AC_LIBOBJ.
19316         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
19317         invocations from here...
19318         * modules/memchr (configure.ac): ... to here.
19319
19320 2011-05-21  Bruno Haible  <bruno@clisp.org>
19321
19322         mbtowc: Move AC_LIBOBJ invocations to module description.
19323         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
19324         invocations from here...
19325         * modules/mbtowc (configure.ac): ... to here.
19326
19327 2011-05-21  Bruno Haible  <bruno@clisp.org>
19328
19329         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
19330         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
19331         gl_PREREQ_MBSRTOWCS invocations from here...
19332         * modules/mbsrtowcs (configure.ac): ... to here.
19333
19334 2011-05-21  Bruno Haible  <bruno@clisp.org>
19335
19336         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
19337         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
19338         gl_PREREQ_MBSNRTOWCS invocations from here...
19339         * modules/mbsnrtowcs (configure.ac): ... to here.
19340
19341 2011-05-21  Bruno Haible  <bruno@clisp.org>
19342
19343         mbsinit: Move AC_LIBOBJ invocations to module description.
19344         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
19345         invocations from here...
19346         * modules/mbsinit (configure.ac): ... to here.
19347
19348 2011-05-21  Bruno Haible  <bruno@clisp.org>
19349
19350         mbrlen: Move AC_LIBOBJ invocations to module description.
19351         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
19352         invocations from here...
19353         * modules/mbrlen (configure.ac): ... to here.
19354
19355 2011-05-21  Bruno Haible  <bruno@clisp.org>
19356
19357         mbrtowc: Respect rules for use of AC_LIBOBJ.
19358         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
19359         invocations from here...
19360         * modules/mbrtowc (configure.ac): ... to here.
19361
19362 2011-05-21  Bruno Haible  <bruno@clisp.org>
19363
19364         malloc-*: Move AC_LIBOBJ invocations to module description.
19365         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
19366         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
19367         AC_LIBOBJ invocations from here...
19368         * modules/malloc-gnu (configure.ac): ... to here.
19369         * modules/malloc-posix (configure.ac): ... and here.
19370
19371 2011-05-21  Bruno Haible  <bruno@clisp.org>
19372
19373         lstat, openat: Respect rules for use of AC_LIBOBJ.
19374         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
19375         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
19376         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
19377         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
19378         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
19379         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
19380         here.
19381         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
19382
19383 2011-05-21  Bruno Haible  <bruno@clisp.org>
19384
19385         lseek: Move AC_LIBOBJ invocations to module description.
19386         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
19387         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19388         * modules/lseek (configure.ac): ... to here.
19389
19390 2011-05-21  Bruno Haible  <bruno@clisp.org>
19391
19392         linkat: Move AC_LIBOBJ invocations to module description.
19393         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
19394         here...
19395         * modules/linkat (configure.ac): ... to here.
19396
19397 2011-05-21  Bruno Haible  <bruno@clisp.org>
19398
19399         link: Respect rules for use of AC_LIBOBJ.
19400         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
19401         * modules/link (configure.ac): ... to here.
19402
19403 2011-05-21  Bruno Haible  <bruno@clisp.org>
19404
19405         lchown: Move AC_LIBOBJ invocations to module description.
19406         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19407         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19408         * modules/lchown (configure.ac): ... to here.
19409
19410 2011-05-21  Bruno Haible  <bruno@clisp.org>
19411
19412         iswctype: Move AC_LIBOBJ invocations to module description.
19413         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
19414         here...
19415         * modules/iswctype (configure.ac): ... to here.
19416
19417 2011-05-21  Bruno Haible  <bruno@clisp.org>
19418
19419         iswblank: Move AC_LIBOBJ invocations to module description.
19420         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
19421         here...
19422         * modules/iswblank (configure.ac): ... to here.
19423
19424 2011-05-21  Bruno Haible  <bruno@clisp.org>
19425
19426         atanl: Move AC_LIBOBJ invocations to module description.
19427         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
19428         * modules/atanl (configure.ac): ... to here.
19429
19430 2011-05-21  Bruno Haible  <bruno@clisp.org>
19431
19432         acosl: Move AC_LIBOBJ invocations to module description.
19433         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
19434         * modules/acosl (configure.ac): ... to here.
19435
19436 2011-05-21  Bruno Haible  <bruno@clisp.org>
19437
19438         asinl: Respect rules for use of AC_LIBOBJ.
19439         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
19440         * modules/asinl (configure.ac): ... to here.
19441
19442 2011-05-21  Bruno Haible  <bruno@clisp.org>
19443
19444         tanl: Move AC_LIBOBJ invocations to module description.
19445         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
19446         * modules/tanl (configure.ac): ... to here.
19447
19448 2011-05-21  Bruno Haible  <bruno@clisp.org>
19449
19450         cosl: Move AC_LIBOBJ invocations to module description.
19451         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
19452         * modules/cosl (configure.ac): ... to here.
19453
19454 2011-05-21  Bruno Haible  <bruno@clisp.org>
19455
19456         sinl: Move AC_LIBOBJ invocations to module description.
19457         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
19458         * modules/sinl (configure.ac): ... to here.
19459
19460 2011-05-21  Bruno Haible  <bruno@clisp.org>
19461
19462         logl: Move AC_LIBOBJ invocations to module description.
19463         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
19464         * modules/logl (configure.ac): ... to here.
19465
19466 2011-05-21  Bruno Haible  <bruno@clisp.org>
19467
19468         expl: Move AC_LIBOBJ invocations to module description.
19469         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
19470         * modules/expl (configure.ac): ... to here.
19471
19472 2011-05-21  Bruno Haible  <bruno@clisp.org>
19473
19474         roundl: Move AC_LIBOBJ invocations to module description.
19475         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
19476         * modules/roundl (configure.ac): ... to here.
19477
19478 2011-05-21  Bruno Haible  <bruno@clisp.org>
19479
19480         round: Move AC_LIBOBJ invocations to module description.
19481         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
19482         * modules/round (configure.ac): ... to here.
19483
19484 2011-05-21  Bruno Haible  <bruno@clisp.org>
19485
19486         roundf: Move AC_LIBOBJ invocations to module description.
19487         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
19488         * modules/roundf (configure.ac): ... to here.
19489
19490 2011-05-21  Bruno Haible  <bruno@clisp.org>
19491
19492         truncl: Move AC_LIBOBJ invocations to module description.
19493         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
19494         * modules/truncl (configure.ac): ... to here.
19495
19496 2011-05-21  Bruno Haible  <bruno@clisp.org>
19497
19498         trunc: Move AC_LIBOBJ invocations to module description.
19499         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
19500         * modules/trunc (configure.ac): ... to here.
19501
19502 2011-05-21  Bruno Haible  <bruno@clisp.org>
19503
19504         truncf: Move AC_LIBOBJ invocations to module description.
19505         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
19506         * modules/truncf (configure.ac): ... to here.
19507
19508 2011-05-21  Bruno Haible  <bruno@clisp.org>
19509
19510         ceill: Move AC_LIBOBJ invocations to module description.
19511         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
19512         * modules/ceill (configure.ac): ... to here.
19513
19514 2011-05-21  Bruno Haible  <bruno@clisp.org>
19515
19516         ceil: Move AC_LIBOBJ invocations to module description.
19517         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
19518         * modules/ceil (configure.ac): ... to here.
19519
19520 2011-05-21  Bruno Haible  <bruno@clisp.org>
19521
19522         ceilf: Move AC_LIBOBJ invocations to module description.
19523         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
19524         * modules/ceilf (configure.ac): ... to here.
19525
19526 2011-05-21  Bruno Haible  <bruno@clisp.org>
19527
19528         floorl: Respect rules for use of AC_LIBOBJ.
19529         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
19530         * modules/floorl (configure.ac): ... to here.
19531
19532 2011-05-21  Bruno Haible  <bruno@clisp.org>
19533
19534         floor: Respect rules for use of AC_LIBOBJ.
19535         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
19536         * modules/floor (configure.ac): ... to here.
19537
19538 2011-05-21  Bruno Haible  <bruno@clisp.org>
19539
19540         floorf: Move AC_LIBOBJ invocations to module description.
19541         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
19542         * modules/floorf (configure.ac): ... to here.
19543
19544 2011-05-20  Bruno Haible  <bruno@clisp.org>
19545
19546         sqrtl: Respect rules for use of AC_LIBOBJ.
19547         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
19548         * modules/sqrtl (configure.ac): ... to here.
19549
19550 2011-05-20  Bruno Haible  <bruno@clisp.org>
19551
19552         ldexpl: Respect rules for use of AC_LIBOBJ.
19553         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
19554         * modules/ldexpl (configure.ac): ... to here.
19555
19556 2011-05-20  Bruno Haible  <bruno@clisp.org>
19557
19558         frexpl*: Respect rules for use of AC_LIBOBJ.
19559         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
19560         invocation from here...
19561         * modules/frexpl (configure.ac): ... to here.
19562         * modules/frexpl-nolibm (configure.ac): ... and here.
19563
19564 2011-05-20  Bruno Haible  <bruno@clisp.org>
19565
19566         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
19567         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
19568         invocation from here...
19569         * modules/frexp (configure.ac): ... to here.
19570         * modules/frexp-nolibm (configure.ac): ... and here.
19571
19572 2011-05-20  Bruno Haible  <bruno@clisp.org>
19573
19574         isnan: Respect rules for use of AC_LIBOBJ.
19575         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
19576         invocations here.
19577         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
19578         REPLACE_ISNAN.
19579         * modules/isnand (configure.ac): Likewise.
19580         * modules/isnanl (configure.ac): Likewise.
19581
19582 2011-05-20  Bruno Haible  <bruno@clisp.org>
19583
19584         isnanl*: Respect rules for use of AC_LIBOBJ.
19585         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
19586         invocation from here...
19587         * modules/isnanl (configure.ac): ... to here.
19588         * modules/isnanl-nolibm (configure.ac): ... and here.
19589
19590 2011-05-20  Bruno Haible  <bruno@clisp.org>
19591
19592         isnand*: Move AC_LIBOBJ invocations to module description.
19593         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
19594         invocation from here...
19595         * modules/isnand (configure.ac): ... to here.
19596         * modules/isnand-nolibm (configure.ac): ... and here.
19597
19598 2011-05-20  Bruno Haible  <bruno@clisp.org>
19599
19600         isnanf*: Move AC_LIBOBJ invocations to module description.
19601         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
19602         invocation from here...
19603         * modules/isnanf (configure.ac): ... to here.
19604         * modules/isnanf-nolibm (configure.ac): ... and here.
19605
19606 2011-05-20  Bruno Haible  <bruno@clisp.org>
19607
19608         isnan*: Separate the AC_LIBOBJ invocations.
19609         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
19610         AC_LIBOBJ invocation.
19611         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
19612         here.
19613         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
19614         AC_LIBOBJ invocation.
19615         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
19616         here.
19617         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
19618         AC_LIBOBJ invocation.
19619         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
19620         here.
19621         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
19622
19623 2011-05-08  Bruno Haible  <bruno@clisp.org>
19624
19625         isinf: Move AC_LIBOBJ invocations to module description.
19626         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
19627         * modules/isinf (configure.ac): ... to here.
19628
19629 2011-05-08  Bruno Haible  <bruno@clisp.org>
19630
19631         isfinite: Move AC_LIBOBJ invocations to module description.
19632         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
19633         * modules/isfinite (configure.ac): ... to here.
19634
19635 2011-05-08  Bruno Haible  <bruno@clisp.org>
19636
19637         isblank: Move AC_LIBOBJ invocations to module description.
19638         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
19639         here...
19640         * modules/isblank (configure.ac): ... to here.
19641
19642 2011-05-08  Bruno Haible  <bruno@clisp.org>
19643
19644         isapipe: Move AC_LIBOBJ invocations to module description.
19645         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
19646         gl_PREREQ_ISAPIPE invocations from here...
19647         * modules/isapipe (configure.ac): ... to here.
19648         (Depends-on): Update condition.
19649
19650 2011-05-08  Bruno Haible  <bruno@clisp.org>
19651
19652         ioctl: Move AC_LIBOBJ invocations to module description.
19653         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
19654         invocations from here...
19655         * modules/ioctl (configure.ac): ... to here.
19656         (Depends-on): Update condition.
19657
19658 2011-05-08  Bruno Haible  <bruno@clisp.org>
19659
19660         imaxdiv: Move AC_LIBOBJ invocations to module description.
19661         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
19662         invocations from here...
19663         * modules/imaxdiv (configure.ac): ... to here.
19664
19665 2011-05-08  Bruno Haible  <bruno@clisp.org>
19666
19667         imaxabs: Move AC_LIBOBJ invocations to module description.
19668         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
19669         invocations from here...
19670         * modules/imaxabs (configure.ac): ... to here.
19671
19672 2011-05-08  Bruno Haible  <bruno@clisp.org>
19673
19674         getaddrinfo: Move AC_LIBOBJ invocations to module description.
19675         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
19676         AC_LIBOBJ invocations from here...
19677         * modules/getaddrinfo (configure.ac): ... to here.
19678         (Depends-on): Add conditions.
19679
19680 2011-05-08  Bruno Haible  <bruno@clisp.org>
19681
19682         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19683         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
19684         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19685         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
19686         (gl_PREREQ_INET_PTON): ... from here.
19687         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
19688         gl_PREREQ_INET_PTON here.
19689         (Depends-on): Update condition.
19690
19691 2011-05-08  Bruno Haible  <bruno@clisp.org>
19692
19693         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19694         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
19695         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19696         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
19697         (gl_PREREQ_INET_NTOP): ... from here.
19698         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
19699         gl_PREREQ_INET_NTOP here.
19700         (Depends-on): Update condition.
19701
19702 2011-05-08  Bruno Haible  <bruno@clisp.org>
19703
19704         iconv_open: Move AC_LIBOBJ invocations to module description.
19705         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
19706         AC_LIBOBJ invocations from here...
19707         * modules/iconv_open (configure.ac): ... to here.
19708
19709 2011-05-08  Bruno Haible  <bruno@clisp.org>
19710
19711         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
19712         If module 'iconv_open' is among the main modules and module
19713         'iconv_open-utf' is among the tests dependencies, then
19714         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
19715         return the special iconv_t values. Therefore iconv() and iconv_close()
19716         must support these special iconv_t values, already in lib, not only in
19717         tests.
19718         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
19719         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
19720         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
19721         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
19722         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
19723         (Depends-on): Add the dependencies of iconv_open-utf.
19724         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
19725         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
19726         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
19727
19728 2011-05-08  Bruno Haible  <bruno@clisp.org>
19729
19730         group-member: Move AC_LIBOBJ invocations to module description.
19731         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
19732         gl_PREREQ_GROUP_MEMBER invocations from here...
19733         * modules/group-member (configure.ac): ... to here.
19734
19735 2011-05-08  Bruno Haible  <bruno@clisp.org>
19736
19737         grantpt: Move AC_LIBOBJ invocations to module description.
19738         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
19739         invocations from here...
19740         * modules/grantpt (configure.ac): ... to here.
19741
19742 2011-05-08  Bruno Haible  <bruno@clisp.org>
19743
19744         glob: Move AC_LIBOBJ invocations to module description.
19745         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
19746         from here...
19747         * modules/glob (configure.ac): ... to here.
19748
19749 2011-05-08  Bruno Haible  <bruno@clisp.org>
19750
19751         getusershell: Move AC_LIBOBJ invocations to module description.
19752         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
19753         Move AC_LIBOBJ invocation from here...
19754         * modules/getusershell (configure.ac): ... to here.
19755         (Depends-on): Update condition.
19756
19757 2011-05-08  Bruno Haible  <bruno@clisp.org>
19758
19759         gettimeofday: Move AC_LIBOBJ invocations to module description.
19760         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19761         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
19762         gl_PREREQ_GETTIMEOFDAY invocations from here...
19763         * modules/gettimeofday (configure.ac): ... to here.
19764
19765 2011-05-08  Bruno Haible  <bruno@clisp.org>
19766
19767         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
19768         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
19769         just gl_FUNC_TZSET.
19770         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
19771         (gl_FUNC_TZSET_CLOBBER): Remove actions.
19772         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
19773         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
19774
19775 2011-05-08  Bruno Haible  <bruno@clisp.org>
19776
19777         getsubopt: Move AC_LIBOBJ invocations to module description.
19778         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
19779         gl_PREREQ_GETSUBOPT invocations from here...
19780         * modules/getsubopt (configure.ac): ... to here.
19781
19782 2011-05-08  Bruno Haible  <bruno@clisp.org>
19783
19784         getpass-gnu: Move AC_LIBOBJ invocations to module description.
19785         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
19786         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
19787         * modules/getpass-gnu (configure.ac): ... to here.
19788
19789 2011-05-08  Bruno Haible  <bruno@clisp.org>
19790
19791         getpass: Move AC_LIBOBJ invocations to module description.
19792         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
19793         gl_PREREQ_GETPASS invocations from here...
19794         * modules/getpass (configure.ac): ... to here.
19795
19796 2011-05-08  Bruno Haible  <bruno@clisp.org>
19797
19798         getpagesize: Move AC_LIBOBJ invocations to module description.
19799         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
19800         from here...
19801         * modules/getpagesize (configure.ac): ... to here.
19802
19803 2011-05-08  Bruno Haible  <bruno@clisp.org>
19804
19805         getopt: Move AC_LIBOBJ invocations to module description.
19806         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
19807         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
19808         invocations from here...
19809         * modules/getopt-gnu (configure.ac): ... to here.
19810         * modules/getopt-posix (configure.ac): ... and here.
19811         (Depends-on): Update condition.
19812
19813 2011-05-08  Bruno Haible  <bruno@clisp.org>
19814
19815         getopt, argp: Respect rules for use of AC_LIBOBJ.
19816         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
19817         (gl_REPLACE_GETOPT_ALWAYS): New macro.
19818         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
19819         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
19820
19821 2011-05-08  Bruno Haible  <bruno@clisp.org>
19822
19823         getlogin_r: Move AC_LIBOBJ invocations to module description.
19824         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
19825         gl_PREREQ_GETLOGIN_R invocations from here...
19826         * modules/getlogin_r (configure.ac): ... to here.
19827
19828 2011-05-08  Bruno Haible  <bruno@clisp.org>
19829
19830         getlogin: Move AC_LIBOBJ invocations to module description.
19831         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
19832         here...
19833         * modules/getlogin (configure.ac): ... to here.
19834
19835 2011-05-08  Bruno Haible  <bruno@clisp.org>
19836
19837         getloadavg: Move AC_LIBOBJ invocations to module description.
19838         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
19839         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
19840         * modules/getloadavg (configure.ac): ... to here.
19841
19842 2011-05-08  Bruno Haible  <bruno@clisp.org>
19843
19844         gethrxtime: Move AC_LIBOBJ invocations to module description.
19845         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
19846         LIB_GETHRXTIME from here...
19847         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
19848         invocations from here...
19849         * modules/gethrxtime (configure.ac): ... to here.
19850
19851 2011-05-08  Bruno Haible  <bruno@clisp.org>
19852
19853         gethostname: Move AC_LIBOBJ invocations to module description.
19854         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
19855         gl_PREREQ_GETHOSTNAME invocations from here...
19856         * modules/gethostname (configure.ac): ... to here.
19857
19858 2011-05-08  Bruno Haible  <bruno@clisp.org>
19859
19860         getgroups: Move AC_LIBOBJ invocations to module description.
19861         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
19862         here...
19863         * modules/getgroups (configure.ac): ... to here.
19864
19865 2011-05-08  Bruno Haible  <bruno@clisp.org>
19866
19867         getdtablesize: Move AC_LIBOBJ invocations to module description.
19868         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
19869         invocation from here...
19870         * modules/getdtablesize (configure.ac): ... to here.
19871
19872 2011-05-08  Bruno Haible  <bruno@clisp.org>
19873
19874         getdomainname: Move AC_LIBOBJ invocations to module description.
19875         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
19876         gl_PREREQ_GETDOMAINNAME invocations from here...
19877         * modules/getdomainname (configure.ac): ... to here.
19878
19879 2011-05-08  Bruno Haible  <bruno@clisp.org>
19880
19881         getline: Move AC_LIBOBJ invocations to module description.
19882         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
19883         invocations from here...
19884         * modules/getline (configure.ac): ... to here.
19885
19886 2011-05-08  Bruno Haible  <bruno@clisp.org>
19887
19888         getline: Simplify.
19889         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
19890         It's already handled through the module dependency.
19891
19892 2011-05-08  Bruno Haible  <bruno@clisp.org>
19893
19894         getdelim: Move AC_LIBOBJ invocations to module description.
19895         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
19896         and gl_PREREQ_GETDELIM invocations from here...
19897         * modules/getdelim (configure.ac): ... to here.
19898         (Depends-on): Fix condition.
19899
19900 2011-05-08  Bruno Haible  <bruno@clisp.org>
19901
19902         getcwd: Move AC_LIBOBJ invocations to module description.
19903         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
19904         invocations from here...
19905         * modules/getcwd (configure.ac): ... to here.
19906
19907 2011-05-08  Bruno Haible  <bruno@clisp.org>
19908
19909         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
19910         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
19911         here...
19912         * modules/getcwd-lgpl (configure.ac): ... to here.
19913
19914 2011-05-07  Bruno Haible  <bruno@clisp.org>
19915
19916         crypto/gc: Move AC_LIBOBJ invocations to module description.
19917         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
19918         * modules/crypto/gc (configure.ac): ... to here.
19919
19920 2011-05-07  Bruno Haible  <bruno@clisp.org>
19921
19922         fwriting: Move AC_LIBOBJ invocations to module description.
19923         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
19924         here...
19925         * modules/fwriting (configure.ac): ... to here.
19926
19927 2011-05-07  Bruno Haible  <bruno@clisp.org>
19928
19929         fwritable: Move AC_LIBOBJ invocations to module description.
19930         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
19931         here...
19932         * modules/fwritable (configure.ac): ... to here.
19933
19934 2011-05-07  Bruno Haible  <bruno@clisp.org>
19935
19936         futimens: Move AC_LIBOBJ invocations to module description.
19937         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
19938         here...
19939         * modules/futimens (configure.ac): ... to here.
19940
19941 2011-05-07  Bruno Haible  <bruno@clisp.org>
19942
19943         ftruncate: Move AC_LIBOBJ invocations to module description.
19944         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
19945         gl_PREREQ_FTRUNCATE invocations from here...
19946         * modules/ftruncate (configure.ac): ... to here.
19947
19948 2011-05-07  Bruno Haible  <bruno@clisp.org>
19949
19950         fsync: Move AC_LIBOBJ invocations to module description.
19951         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
19952         invocations from here...
19953         * modules/fsync (configure.ac): ... to here.
19954
19955 2011-05-07  Bruno Haible  <bruno@clisp.org>
19956
19957         fsusage: Move AC_LIBOBJ invocations to module description.
19958         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
19959         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
19960         * modules/fsusage (configure.ac): ... to here.
19961
19962 2011-05-07  Bruno Haible  <bruno@clisp.org>
19963
19964         freopen: Move AC_LIBOBJ invocations to module description.
19965         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
19966         invocations from here...
19967         * modules/freopen (configure.ac): ... to here.
19968
19969 2011-05-07  Bruno Haible  <bruno@clisp.org>
19970
19971         free: Move AC_LIBOBJ invocations to module description.
19972         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
19973         invocations from here...
19974         * modules/free (configure.ac): ... to here.
19975
19976 2011-05-07  Bruno Haible  <bruno@clisp.org>
19977
19978         freadable: Move AC_LIBOBJ invocations to module description.
19979         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
19980         here...
19981         * modules/freadable (configure.ac): ... to here.
19982
19983 2011-05-07  Bruno Haible  <bruno@clisp.org>
19984
19985         fpurge: Move AC_LIBOBJ invocations to module description.
19986         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
19987         invocations from here...
19988         * modules/fpurge (configure.ac): ... to here.
19989
19990 2011-05-07  Bruno Haible  <bruno@clisp.org>
19991
19992         fpending: Move AC_LIBOBJ invocations to module description.
19993         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
19994         gl_FUNC_FPENDING.
19995         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
19996         invocations from here...
19997         * modules/fpending (configure.ac): ... to here.
19998
19999 2011-05-07  Bruno Haible  <bruno@clisp.org>
20000
20001         fopen: Move AC_LIBOBJ invocations to module description.
20002         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
20003         invocations from here...
20004         * modules/fopen (configure.ac): ... to here.
20005
20006 2011-05-07  Bruno Haible  <bruno@clisp.org>
20007
20008         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
20009         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
20010         gl_FUNC_FNMATCH_POSIX.
20011         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
20012         invocations from here...
20013         * modules/fnmatch (configure.ac): ... to here.
20014         * modules/fnmatch-gnu (configure.ac): ... and here.
20015
20016 2011-05-07  Bruno Haible  <bruno@clisp.org>
20017
20018         flock: Move AC_LIBOBJ invocations to module description.
20019         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
20020         invocations from here...
20021         * modules/flock (configure.ac): ... to here.
20022
20023 2011-05-07  Bruno Haible  <bruno@clisp.org>
20024
20025         fileblocks: Move AC_LIBOBJ invocations to module description.
20026         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
20027         gl_PREREQ_FILEBLOCKS invocations from here...
20028         * modules/fileblocks (configure.ac): ... to here.
20029
20030 2011-05-06  Bruno Haible  <bruno@clisp.org>
20031
20032         fflush: Move AC_LIBOBJ invocations to module description.
20033         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
20034         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
20035         invocations from here...
20036         * modules/fflush (configure.ac): ... to here.
20037
20038 2011-05-06  Bruno Haible  <bruno@clisp.org>
20039
20040         fdopendir: Move AC_LIBOBJ invocations to module description.
20041         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
20042         here...
20043         * modules/fdopendir (configure.ac): ... to here.
20044         (Depends-on): Improve conditions.
20045
20046 2011-05-06  Bruno Haible  <bruno@clisp.org>
20047
20048         _Exit: Move AC_LIBOBJ invocations to module description.
20049         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
20050         invocations from here...
20051         * modules/_Exit (configure.ac): ... to here.
20052
20053 2011-05-21  Bruno Haible  <bruno@clisp.org>
20054
20055         euidaccess: Respect rules for use of AC_LIBOBJ.
20056         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
20057         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
20058         from here...
20059         * modules/euidaccess (configure.ac): ... to here.
20060
20061 2011-05-06  Bruno Haible  <bruno@clisp.org>
20062
20063         error: Move AC_LIBOBJ invocations to module description.
20064         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
20065         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
20066         invocations from here...
20067         * modules/error (configure.ac): ... to here.
20068
20069 2011-05-06  Bruno Haible  <bruno@clisp.org>
20070
20071         duplocale: Move AC_LIBOBJ invocations to module description.
20072         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
20073         gl_PREREQ_DUPLOCALE invocations from here...
20074         * modules/duplocale (configure.ac): ... to here.
20075
20076 2011-05-05  Bruno Haible  <bruno@clisp.org>
20077
20078         dirfd: Move AC_LIBOBJ invocations to module description.
20079         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
20080         gl_FUNC_DIRFD.
20081         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
20082         here...
20083         * modules/dirfd (configure.ac): ... to here.
20084         (Depends-on): Fix condition.
20085
20086 2011-05-05  Bruno Haible  <bruno@clisp.org>
20087
20088         chown: Respect rules for use of AC_LIBOBJ.
20089         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
20090         * modules/chown (configure.ac): ... to here.
20091
20092 2011-05-05  Bruno Haible  <bruno@clisp.org>
20093
20094         chdir-long: Move AC_LIBOBJ invocations to module description.
20095         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
20096         gl_PREREQ_CHDIR_LONG invocations from here...
20097         * modules/chdir-long (configure.ac): ... to here.
20098
20099 2011-05-05  Bruno Haible  <bruno@clisp.org>
20100
20101         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
20102         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
20103         from here...
20104         * modules/canonicalize-lgpl (configure.ac): ... to here.
20105
20106 2011-05-05  Bruno Haible  <bruno@clisp.org>
20107
20108         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
20109         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
20110         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
20111         REPLACE_CALLOC.
20112         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
20113         * modules/calloc-gnu (configure.ac): Likewise.
20114
20115 2011-05-05  Bruno Haible  <bruno@clisp.org>
20116
20117         btowc: Move AC_LIBOBJ invocations to module description.
20118         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
20119         invocations from here...
20120         * modules/btowc (configure.ac): ... to here.
20121
20122 2011-05-21  Bruno Haible  <bruno@clisp.org>
20123
20124         atexit: Move AC_LIBOBJ invocations to module description.
20125         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
20126         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
20127         here...
20128         * modules/atexit (configure.ac): ... to here.
20129
20130 2011-05-05  Bruno Haible  <bruno@clisp.org>
20131
20132         atoll: Move AC_LIBOBJ invocations to module description.
20133         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
20134         invocations from here...
20135         * modules/atoll (configure.ac): ... to here.
20136
20137 2011-05-05  Bruno Haible  <bruno@clisp.org>
20138
20139         argz: Move AC_LIBOBJ invocations to module description.
20140         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
20141         * modules/argz (configure.ac): ... to here.
20142
20143 2011-05-05  Bruno Haible  <bruno@clisp.org>
20144
20145         alphasort: Move AC_LIBOBJ invocations to module description.
20146         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
20147         gl_PREREQ_ALPHASORT invocations from here...
20148         * modules/alphasort (configure.ac): ... to here.
20149
20150 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
20151
20152         verify: new macro verify_expr; verify_true deprecated
20153         * NEWS: Mention this.
20154         * doc/verify.texi (Compile-time Assertions): Document this.
20155         * lib/verify.h (verify_true): Deprecate.
20156         (verify_expr): New macro.
20157         * tests/test-verify.c (function): Test verify_expr.
20158
20159 2011-06-14  Jim Meyering  <meyering@redhat.com>
20160
20161         init.sh: give more portable redirection-related advice in a comment
20162         * tests/init.sh (stderr_fileno_): Update the advice in comments.
20163         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
20164         for lots of discussion.  Stefano Lattarini suggested the solution
20165         of putting "9>&2" after the command.  Reported by Bruno Haible.
20166
20167 2011-06-13  Bruno Haible  <bruno@clisp.org>
20168
20169         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
20170         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
20171         'none'.
20172
20173 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
20174
20175         ftoastr: use strtof only if HAVE_STRTOF
20176         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
20177         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
20178         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
20179         * modules/ftoastr (configure.ac): Check for strtof.
20180
20181 2011-06-13  Bruno Haible  <bruno@clisp.org>
20182
20183         gnulib-tool: Addendum to 2011-06-08 commit.
20184         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
20185         and --witness-c-macro have been given, augment AM_CPPFLAGS.
20186
20187 2011-06-13  Bruno Haible  <bruno@clisp.org>
20188
20189         fseeko: Provide a non-inline replacement of fseek().
20190         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
20191         * modules/fseeko (Depends-on): Add fseek.
20192         * modules/fseek (License): Change to LGPLv2+.
20193
20194 2011-06-13  Bruno Haible  <bruno@clisp.org>
20195
20196         ftello: Provide a non-inline replacement of ftell().
20197         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
20198         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
20199         not have ftello() (such as on mingw).
20200         * modules/ftello (Depends-on): Add ftell.
20201         * modules/ftell (License): Change to LGPLv2+.
20202
20203 2011-05-07  Bruno Haible  <bruno@clisp.org>
20204
20205         ftell: Move AC_LIBOBJ invocations to module description.
20206         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
20207         * modules/ftell (configure.ac): ... to here.
20208
20209 2011-05-07  Bruno Haible  <bruno@clisp.org>
20210
20211         ftello: Respect rules for use of AC_LIBOBJ.
20212         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
20213         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
20214         here...
20215         * modules/ftello (configure.ac): ... to here.
20216
20217 2011-05-07  Bruno Haible  <bruno@clisp.org>
20218
20219         fseeko: Simplify.
20220         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
20221         (gl_FUNC_FSEEKO): Inline it here.
20222
20223 2011-05-07  Bruno Haible  <bruno@clisp.org>
20224
20225         fseek: Move AC_LIBOBJ invocations to module description.
20226         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
20227         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
20228         * modules/fseek (configure.ac): ... to here.
20229
20230 2011-05-07  Bruno Haible  <bruno@clisp.org>
20231
20232         fseek: Respect rules for use of AC_LIBOBJ.
20233         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
20234         here...
20235         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
20236
20237 2011-05-07  Bruno Haible  <bruno@clisp.org>
20238
20239         fseeko: Respect rules for use of AC_LIBOBJ.
20240         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
20241         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
20242         here...
20243         * modules/fseeko (configure.ac): ... to here.
20244
20245 2011-06-13  Bruno Haible  <bruno@clisp.org>
20246
20247         gnulib-tool: Allow comments in the 'Depends-on' section.
20248         * doc/gnulib.texi (Module description): Mention comment syntax in the
20249         Depends-on section.
20250         * gnulib-tool (func_get_dependencies): Filter out comment lines.
20251
20252 2011-06-13  Bruno Haible  <bruno@clisp.org>
20253
20254         file-set.h: guard __attibute__ use, now that it's not always defined
20255         * lib/file-set.h (record_file): Use __attribute__ only with compiler
20256         versions that support it.  This fixes a coreutils build failure with
20257         the vendor cc on HP-UX 11.31.
20258
20259 2011-06-12  Bruno Haible  <bruno@clisp.org>
20260
20261         acl: Add support for HP-UX >= 11.11 JFS ACLs.
20262         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
20263         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
20264         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
20265         (acl, aclsort): New declarations.
20266         (aclv_nontrivial): New declaration.
20267         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
20268         (file_has_acl): Read also the second kind of HP-UX ACLs.
20269         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
20270         kind of HP-UX ACLs if the first kind fails.
20271         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
20272         second kind of HP-UX ACLs.
20273         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
20274         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
20275         agree.
20276         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20277         hpuxjfs.
20278         Handle hpuxjfs.
20279         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20280         hpuxjfs.
20281         Handle hpuxjfs.
20282         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20283         (func_test_same_acls): Use both lsacl and getacl.
20284         Handle hpuxjfs.
20285         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20286         (func_test_same_acls): Use both lsacl and getacl.
20287         Handle hpuxjfs.
20288
20289 2011-06-12  Bruno Haible  <bruno@clisp.org>
20290
20291         acl: Complete the 2010-08-10 fix.
20292         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
20293         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
20294         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
20295         explicitly.
20296         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
20297         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
20298
20299 2011-06-12  Bruno Haible  <bruno@clisp.org>
20300
20301         spawn-pipe tests: Comments.
20302         * tests/test-spawn-pipe-child.c (main): Update comment.
20303         Reported by James Youngman <jay@gnu.org>.
20304
20305 2011-06-11  James Youngman  <jay@gnu.org>
20306
20307         New module 'stat-size'.
20308         * modules/stat-size: New module.  Provides macros for accessing
20309         file size information in instances of struct stat.  Depends on the
20310         fileblocks module because it calls st_blocks.
20311         * lib/stat-size.h: New file, adapted from coreutils' system.h.
20312         * doc/gnulib.texi: Include stat-size.texi.
20313         * doc/stat-size.texi: Documentation for this module.
20314         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
20315         * m4/fileblocks.m4: Mention that stat-size depends on the call to
20316         AC_STRUCT_ST_BLOCKS.
20317
20318 2011-06-09  Bruno Haible  <bruno@clisp.org>
20319
20320         thread: Support pthreads-win32.
20321         * lib/glthread/thread.h (gl_thread_self): Define differently on
20322         pthreads-win32.
20323         (gl_null_thread): New declaration.
20324         (gl_thread_self_pointer): New macro.
20325         * lib/glthread/thread.c (gl_null_thread): New constant.
20326         * tests/test-lock.c: Use gl_thread_self_pointer instead of
20327         gl_thread_self.
20328         * tests/test-tls.c: Likewise.
20329         Suggested by Paul Eggert. Reported by Eric Blake.
20330
20331 2011-06-09  Bruno Haible  <bruno@clisp.org>
20332
20333         thread: Fix confusion between NULL and 0.
20334         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
20335         Reported by Paul Eggert.
20336
20337 2011-06-09  Bruno Haible  <bruno@clisp.org>
20338
20339         spawn-pipe tests: Avoid test failure on HP-UX 11.
20340         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
20341         is closed.
20342
20343 2011-06-09  Bruno Haible  <bruno@clisp.org>
20344
20345         acl tests: Fix compilation error on HP-UX 11.
20346         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
20347
20348 2011-06-09  Bruno Haible  <bruno@clisp.org>
20349
20350         rmdir: Avoid test failure on HP-UX 10.20.
20351         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
20352         EEXIST.
20353
20354 2011-06-08  Eric Blake  <eblake@redhat.com>
20355
20356         perror: fix test on mingw
20357         * modules/perror-tests (Depends-on): Add dup2.
20358
20359         strerror_r-posix: fix on MacOS
20360         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
20361         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
20362         logic bug.
20363         * lib/strerror_r.c (strerror_r): Fix the bug.
20364         * lib/strerror.c (strerror): Likewise.
20365         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20366         problem.
20367         * doc/posix-functions/strerror.texi (strerror): Likewise.
20368         * doc/posix-functions/perror.texi (perror): Likewise.
20369         * tests/test-strerror.c (main): Enhance test.
20370         * tests/test-strerror_r.c (main): Likewise.
20371
20372 2011-06-08  Bruno Haible  <bruno@clisp.org>
20373
20374         gnulib-tool: Better isolation between different gnulib-tool invocations.
20375         * gnulib-tool: New option --witness-c-macro.
20376         (witness_c_macro): New variable.
20377         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
20378         AM_CPPFLAGS define it as a C macro.
20379         (func_emit_tests_Makefile_am): Likewise.
20380         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
20381         read it from there.
20382         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
20383         m4_define, not AC_DEFUN.
20384         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
20385         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
20386         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
20387         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
20388         s|...|...|, to substitute the values of the GNULIB_* module indicator
20389         variables.
20390         * modules/dirent (Makefile.am): Likewise.
20391         * modules/fcntl-h (Makefile.am): Likewise.
20392         * modules/iconv-h (Makefile.am): Likewise.
20393         * modules/langinfo (Makefile.am): Likewise.
20394         * modules/locale (Makefile.am): Likewise.
20395         * modules/math (Makefile.am): Likewise.
20396         * modules/netdb (Makefile.am): Likewise.
20397         * modules/poll-h (Makefile.am): Likewise.
20398         * modules/pty (Makefile.am): Likewise.
20399         * modules/search (Makefile.am): Likewise.
20400         * modules/signal (Makefile.am): Likewise.
20401         * modules/spawn (Makefile.am): Likewise.
20402         * modules/stdio (Makefile.am): Likewise.
20403         * modules/stdlib (Makefile.am): Likewise.
20404         * modules/string (Makefile.am): Likewise.
20405         * modules/sys_ioctl (Makefile.am): Likewise.
20406         * modules/sys_select (Makefile.am): Likewise.
20407         * modules/sys_socket (Makefile.am): Likewise.
20408         * modules/sys_stat (Makefile.am): Likewise.
20409         * modules/sys_times (Makefile.am): Likewise.
20410         * modules/sys_utsname (Makefile.am): Likewise.
20411         * modules/sys_wait (Makefile.am): Likewise.
20412         * modules/termios (Makefile.am): Likewise.
20413         * modules/time (Makefile.am): Likewise.
20414         * modules/unistd (Makefile.am): Likewise.
20415         * modules/wchar (Makefile.am): Likewise.
20416
20417 2011-06-08  Eric Blake  <eblake@redhat.com>
20418
20419         strerror: simplify replacement
20420         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
20421         * modules/strerror (configure.ac): No prereqs needed here...
20422         * modules/strerror-override (configure.ac): ...but this needs it.
20423         (Files): Add file for needed prereq macro.
20424
20425 2011-06-08  Bruno Haible  <bruno@clisp.org>
20426
20427         strerror_r-posix: Tweaks.
20428         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
20429         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
20430         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
20431         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
20432         (gl_FUNC_STRERROR_R): ... to here.
20433         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
20434
20435 2011-06-07  Eric Blake  <eblake@redhat.com>
20436
20437         perror: document fixed bugs
20438         * doc/posix-functions/perror.texi (perror): Document recent
20439         patches.
20440
20441 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
20442
20443         stat-time: get_stat_birthtime failure is better-defined
20444         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
20445         return a timestamp whose tv_sec and tv_nsec values are both -1.
20446         Previously, the spec said only that the tv_nsec value was negative.
20447         This upward-compatible change simplifies GNU tar a bit.
20448
20449 2011-06-07  Eric Blake  <eblake@redhat.com>
20450
20451         strerror_r-posix: work around cygwin 1.7.9
20452         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
20453         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
20454         bug without replacing strerror_r.
20455         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
20456         strerror_r is buggy, but without requiring strerror_r compilation.
20457         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
20458
20459         test-perror: relax test to ignore cygwin bug
20460         * tests/test-perror2.c (main): Relax test on requiring detection
20461         of stream errors, and use unbuffered stream.
20462         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
20463         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
20464         * doc/posix-functions/fputc.texi (fputc): Likewise.
20465         * doc/posix-functions/fputs.texi (fputs): Likewise.
20466         * doc/posix-functions/fputws.texi (fputws): Likewise.
20467         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
20468         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
20469         * doc/posix-functions/getopt.texi (getopt): Likewise.
20470         * doc/posix-functions/perror.texi (perror): Likewise.
20471         * doc/posix-functions/printf.texi (printf): Likewise.
20472         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
20473         * doc/posix-functions/psignal.texi (psignal): Likewise.
20474         * doc/posix-functions/putc.texi (putc): Likewise.
20475         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
20476         Likewise.
20477         * doc/posix-functions/putchar.texi (putchar): Likewise.
20478         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
20479         Likewise.
20480         * doc/posix-functions/puts.texi (puts): Likewise.
20481         * doc/posix-functions/putwc.texi (putwc): Likewise.
20482         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20483         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20484         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20485         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
20486         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20487         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20488         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
20489         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
20490
20491 2011-05-22  Bruno Haible  <bruno@clisp.org>
20492
20493         strerror: Move AC_LIBOBJ invocations to module description.
20494         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
20495         gl_PREREQ_STRERROR invocations from here...
20496         * modules/strerror (configure.ac): ... to here.
20497
20498 2011-05-21  Bruno Haible  <bruno@clisp.org>
20499
20500         perror: Use common idiom.
20501         * modules/perror (configure.ac): Reorder statements.
20502
20503 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20504
20505         tests: fix usage message in 'mktempd_'
20506         * tests/init.sh (mktempd_): In the usage message, use literal
20507         'mktempd_', not '$ME' (which is even undefined), as the name of
20508         the subroutine.
20509
20510 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20511
20512         tests init: new function 'fatal_', for hard errors
20513         Before this patch, the only way offered by tests/init.sh to
20514         properly signal a hard error was the `framework_failure_'
20515         function.  But the error message issued by that function,
20516         as its name would suggest, refers to a set-up failure in the
20517         testsuite, while hard errors can obviously also be due to
20518         other reasons.  The best way to fix this inconsistency is to
20519         introduce a new function with a more general error message.
20520         * tests/init.sh (fatal_): New function.
20521
20522 2011-06-06  Eric Blake  <eblake@redhat.com>
20523
20524         canonicalize-lgpl: use common idiom
20525         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
20526         over newer POSIX -Rf.
20527         Reported by Bruno Haible.
20528
20529         canonicalize-lgpl: work around AIX realpath bug
20530         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
20531         * doc/posix-functions/realpath.texi (realpath): Document it.
20532         Reported by Bruno Haible.
20533
20534         strerror: work around FreeBSD bug
20535         * lib/strerror.c (strerror): Special case 0.
20536         Reported by Bruno Haible.
20537
20538         strerror-override: avoid bloating errno module
20539         * modules/errno (Files, configure.ac): Move replacement strings...
20540         * modules/strerror-override: ...to new module.
20541         * modules/strerror (Depends-on): Add strerror-override.
20542         * modules/strerror_r-posix (Depends-on): Likewise.
20543         * MODULES.html.sh: Document new module.
20544         Reported by Bruno Haible.
20545
20546 2011-06-06  Bruno Haible  <bruno@clisp.org>
20547
20548         spawn-pipe tests: Rename program.
20549         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
20550         * tests/test-spawn-pipe-child.c: Update comment.
20551         * tests/test-spawn-pipe.sh: Update.
20552         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
20553
20554         spawn-pipe tests: Link the child program only against libc.
20555         * tests/test-spawn-pipe-child.c: New file, extracted from
20556         tests/test-spawn-pipe.c.
20557         (main): Expect only one argument.
20558         (is_open): New function, copied from tests/test-pipe.c.
20559         * tests/test-spawn-pipe.c: Don't include <errno.h>.
20560         (child_main): Remove function.
20561         (test_pipe): Pass only one argument to the child program.
20562         (main): Remove child process code. Expect the child program's name as
20563         first argument.
20564         * tests/test-spawn-pipe.sh: Pass the child program's name as first
20565         argument.
20566         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
20567         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
20568         test-spawn-pipe-child against no libraries.
20569
20570 2011-06-06  Bruno Haible  <bruno@clisp.org>
20571
20572         careadlinkat: Avoid mismatch between ssize_t and int.
20573         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
20574         * lib/careadlinkat.c (careadlinkatcwd): Define always.
20575
20576 2011-06-06  Jim Meyering  <meyering@redhat.com>
20577
20578         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
20579         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
20580         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
20581
20582 2011-06-05  Bruno Haible  <bruno@clisp.org>
20583
20584         ansi-c++-opt: Interoperability with libtool.
20585         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
20586         set the variable to "no", not to ":".
20587         * NEWS: Mention the change.
20588
20589 2011-06-05  Bruno Haible  <bruno@clisp.org>
20590
20591         acl: Fix test failure on AIX 7.
20592         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
20593         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
20594
20595 2011-06-05  Bruno Haible  <bruno@clisp.org>
20596
20597         pipe-filter-ii: Fix test failure on AIX and IRIX.
20598         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
20599         with EAGAIN, retry with a smaller buffer size.
20600
20601 2011-06-05  Bruno Haible  <bruno@clisp.org>
20602
20603         localename: Fix link dependencies.
20604         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
20605         * modules/localename-tests (Makefile.am): Link test-localename with
20606         $(LIBTHREAD).
20607
20608 2011-06-05  Bruno Haible  <bruno@clisp.org>
20609
20610         error: Avoid gcc warning.
20611         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
20612
20613 2011-06-05  Bruno Haible  <bruno@clisp.org>
20614
20615         unsetenv: Avoid gcc warning.
20616         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
20617
20618 2011-06-05  Bruno Haible  <bruno@clisp.org>
20619
20620         setenv: Avoid gcc warning.
20621         * lib/setenv.c (setenv): Provide declaration if system lacks it.
20622
20623 2011-06-05  Bruno Haible  <bruno@clisp.org>
20624
20625         sys_select: Ensure memset is declared also on AIX 7.
20626         * lib/sys_select.in.h: Include <string.h> also on AIX.
20627         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
20628         self-contained also on AIX 7.1.
20629
20630 2011-06-04  Jim Meyering  <meyering@redhat.com>
20631
20632         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
20633         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
20634         function name, "error".
20635         (_gl_translatable_diag_func_re): New configurable variable.
20636
20637 2011-06-04  Bruno Haible  <bruno@clisp.org>
20638
20639         getopt: Avoid gcc warning.
20640         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
20641
20642 2011-06-04  Bruno Haible  <bruno@clisp.org>
20643
20644         strerror_r: Fix comments.
20645         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
20646         commit.
20647
20648 2011-06-04  Bruno Haible  <bruno@clisp.org>
20649
20650         perror: Fix compilation error.
20651         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
20652         Undefine fprintf, not sprintf.
20653         * modules/perror (Depends-on): Remove intprops, verify.
20654
20655 2011-06-04  Bruno Haible  <bruno@clisp.org>
20656
20657         setlocale: Enable replacement on Cygwin 1.5.
20658         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
20659         Cygwin 1.5.x.
20660         * doc/posix-functions/setlocale.texi: Mention that the problem with the
20661         LC_CTYPE category also exists on Cygwin 1.5.x.
20662
20663 2011-06-04  Bruno Haible  <bruno@clisp.org>
20664
20665         strerror-override: Don't disable symbol renamings.
20666         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
20667         * lib/strerror-override.c: Include config.h.
20668         (strerror_override): Don't undefine.
20669
20670 2011-06-03  Bruno Haible  <bruno@clisp.org>
20671
20672         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
20673         * lib/localename.h: Update copyright header.
20674         * lib/localename.c: Likewise.
20675         * lib/relocatable.h: Likewise.
20676         * lib/relocatable.c: Likewise.
20677
20678 2011-06-02  Bruno Haible  <bruno@clisp.org>
20679
20680         doc: Fix a module name.
20681         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
20682
20683 2011-06-02  Bruno Haible  <bruno@clisp.org>
20684
20685         pipe2: Remove dependency on 'nonblocking' module.
20686         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
20687         O_NONBLOCK is defined by gnulib.
20688         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
20689         is zero.
20690         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
20691         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
20692         defined by gnulib.
20693         (get_nonblocking_flag): New function.
20694         (main): Test O_NONBLOCK flag only if it is nonzero.
20695         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
20696
20697 2011-06-03  Jim Meyering  <meyering@redhat.com>
20698
20699         maint: three new prohibit-header-without-use rules
20700         Prohibit use of cloexec.h, posixver.h, same.h without use.
20701         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
20702         (sc_prohibit_posixver_without_use): Likewise.
20703         (sc_prohibit_same_without_use): Likewise.
20704
20705 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20706
20707         allocator: 'die' routine is now given requested size
20708         * lib/allocator.h (struct allocator.die): New size arg.
20709         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
20710         If the actual problem is an ssize_t limitation, not a size_t or
20711         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
20712
20713 2011-06-01  Eric Blake  <eblake@redhat.com>
20714
20715         strerror: drop strerror_r dependency
20716         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
20717         * lib/strerror-override.c (strerror_override): ...to new file.
20718         * lib/strerror-override.h: Add prototype.
20719         * lib/strerror-impl.h: Delete.
20720         * lib/strerror.c (strerror): New implementation.
20721         * modules/errno (Files): Add new files.
20722         (configure.ac): Compile new file as appropriate.
20723         * modules/strerror (Files): Drop unused file.
20724         (Depends-on): Drop strerror_r-posix.
20725         * MODULES.html.sh: Document strerror_r-posix.
20726         Requested by Sam Steingold.
20727
20728         perror: call strerror_r directly
20729         * modules/perror (Files): Drop strerror-impl.h.
20730         * lib/perror.c (perror): Use our own stack buffer, rather than
20731         calling a wrapper that uses static storage.
20732         * doc/posix-functions/perror.texi (perror): Document a limitation
20733         of our replacement.
20734
20735         strerror_r: fix includes for FreeBSD
20736         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
20737         since we use abort on some platforms.
20738         Reported by Matthias Bolte.
20739
20740 2011-05-31  Bruno Haible  <bruno@clisp.org>
20741
20742         Fix link errors in tests: openat-die uses gettext-h.
20743         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
20744         against $(LIBINTL).
20745         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
20746         against $(LIBINTL).
20747         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
20748         $(LIBINTL).
20749         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
20750         against $(LIBINTL).
20751         * modules/linkat-tests (Makefile.am): Link test-linkat against
20752         $(LIBINTL).
20753         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
20754         $(LIBINTL).
20755         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
20756         against $(LIBINTL).
20757         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
20758         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
20759         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
20760         $(LIBINTL).
20761         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
20762         $(LIBINTL).
20763         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
20764         $(LIBINTL).
20765         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20766
20767 2011-05-31  Bruno Haible  <bruno@clisp.org>
20768
20769         Fix link errors in tests: wait-process uses gettext-h.
20770         * modules/nonblocking-pipe-tests (Makefile.am): Set
20771         test_nonblocking_pipe_main_LDADD.
20772         * modules/nonblocking-socket-tests (Makefile.am): Link
20773         test-nonblocking-socket-main against $(LIBINTL).
20774         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20775
20776 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
20777
20778         assert-h: work around 'verify' incompatibility
20779         * lib/verify.h: Use @...@ directives, not ifdef.
20780         * modules/assert-h (assert.h): Implement the directives.
20781         (assert.h): Substitute the symbol-prefix more consistently.
20782
20783 2011-05-29  Jim Meyering  <meyering@redhat.com>
20784
20785         trim: remove three superfluous assignments
20786         * lib/trim.c (trim2): Remove three superfluous assignments
20787         and correct brace positioning.
20788
20789 2011-05-29  Bruno Haible  <bruno@clisp.org>
20790
20791         wctype-h: Avoid namespace pollution on Solaris 2.6.
20792         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
20793         identifiers.
20794         * doc/posix-headers/wctype.texi: Mention the problem.
20795         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20796
20797 2011-05-28  Jim Meyering  <meyering@redhat.com>
20798
20799         parse-datetime.y: accommodate -Wstrict-overflow
20800         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
20801         placate -Wstrict-overflow.
20802
20803         trim: avoid a warning from -O2 -Wstrict-overflow
20804         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
20805
20806 2011-05-29  Bruno Haible  <bruno@clisp.org>
20807
20808         gnulib-tool: Fix bug in yesterday's commit.
20809         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
20810         twice.
20811
20812 2011-05-29  Bruno Haible  <bruno@clisp.org>
20813
20814         Allow multiple gnulib generated include files to be combined.
20815         * gnulib-tool (func_compute_include_guard_prefix): New function.
20816         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
20817         ${gl_include_guard_prefix} references.
20818         (func_import, func_create_testdir): Invoke
20819         func_compute_include_guard_prefix.
20820         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
20821         * lib/ctype.in.h: Likewise.
20822         * lib/dirent.in.h: Likewise.
20823         * lib/errno.in.h: Likewise.
20824         * lib/fcntl.in.h: Likewise.
20825         * lib/float.in.h: Likewise.
20826         * lib/getopt.in.h: Likewise.
20827         * lib/iconv.in.h: Likewise.
20828         * lib/langinfo.in.h: Likewise.
20829         * lib/locale.in.h: Likewise.
20830         * lib/math.in.h: Likewise.
20831         * lib/netdb.in.h: Likewise.
20832         * lib/netinet_in.in.h: Likewise.
20833         * lib/poll.in.h: Likewise.
20834         * lib/pthread.in.h: Likewise.
20835         * lib/pty.in.h: Likewise.
20836         * lib/sched.in.h: Likewise.
20837         * lib/se-selinux.in.h: Likewise.
20838         * lib/search.in.h: Likewise.
20839         * lib/signal.in.h: Likewise.
20840         * lib/spawn.in.h: Likewise.
20841         * lib/stdarg.in.h: Likewise.
20842         * lib/stddef.in.h: Likewise.
20843         * lib/stdint.in.h: Likewise.
20844         * lib/stdio.in.h: Likewise.
20845         * lib/stdlib.in.h: Likewise.
20846         * lib/string.in.h: Likewise.
20847         * lib/strings.in.h: Likewise.
20848         * lib/sys_file.in.h: Likewise.
20849         * lib/sys_ioctl.in.h: Likewise.
20850         * lib/sys_select.in.h: Likewise.
20851         * lib/sys_socket.in.h: Likewise.
20852         * lib/sys_stat.in.h: Likewise.
20853         * lib/sys_time.in.h: Likewise.
20854         * lib/sys_times.in.h: Likewise.
20855         * lib/sys_uio.in.h: Likewise.
20856         * lib/sys_utsname.in.h: Likewise.
20857         * lib/sys_wait.in.h: Likewise.
20858         * lib/sysexits.in.h: Likewise.
20859         * lib/termios.in.h: Likewise.
20860         * lib/time.in.h: Likewise.
20861         * lib/unistd.in.h: Likewise.
20862         * lib/wchar.in.h: Likewise.
20863         * lib/wctype.in.h: Likewise.
20864         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
20865         * modules/ctype (Makefile.am): Likewise.
20866         * modules/dirent (Makefile.am): Likewise.
20867         * modules/errno (Makefile.am): Likewise.
20868         * modules/fcntl-h (Makefile.am): Likewise.
20869         * modules/float (Makefile.am): Likewise.
20870         * modules/getopt-posix (Makefile.am): Likewise.
20871         * modules/iconv-h (Makefile.am): Likewise.
20872         * modules/langinfo (Makefile.am): Likewise.
20873         * modules/locale (Makefile.am): Likewise.
20874         * modules/math (Makefile.am): Likewise.
20875         * modules/netdb (Makefile.am): Likewise.
20876         * modules/netinet_in (Makefile.am): Likewise.
20877         * modules/poll-h (Makefile.am): Likewise.
20878         * modules/pthread (Makefile.am): Likewise.
20879         * modules/pty (Makefile.am): Likewise.
20880         * modules/sched (Makefile.am): Likewise.
20881         * modules/search (Makefile.am): Likewise.
20882         * modules/selinux-h (Makefile.am): Likewise.
20883         * modules/signal (Makefile.am): Likewise.
20884         * modules/spawn (Makefile.am): Likewise.
20885         * modules/stdarg (Makefile.am): Likewise.
20886         * modules/stddef (Makefile.am): Likewise.
20887         * modules/stdint (Makefile.am): Likewise.
20888         * modules/stdio (Makefile.am): Likewise.
20889         * modules/stdlib (Makefile.am): Likewise.
20890         * modules/string (Makefile.am): Likewise.
20891         * modules/strings (Makefile.am): Likewise.
20892         * modules/sys_file (Makefile.am): Likewise.
20893         * modules/sys_ioctl (Makefile.am): Likewise.
20894         * modules/sys_select (Makefile.am): Likewise.
20895         * modules/sys_socket (Makefile.am): Likewise.
20896         * modules/sys_stat (Makefile.am): Likewise.
20897         * modules/sys_time (Makefile.am): Likewise.
20898         * modules/sys_times (Makefile.am): Likewise.
20899         * modules/sys_uio (Makefile.am): Likewise.
20900         * modules/sys_utsname (Makefile.am): Likewise.
20901         * modules/sys_wait (Makefile.am): Likewise.
20902         * modules/sysexits (Makefile.am): Likewise.
20903         * modules/termios (Makefile.am): Likewise.
20904         * modules/time (Makefile.am): Likewise.
20905         * modules/unistd (Makefile.am): Likewise.
20906         * modules/wchar (Makefile.am): Likewise.
20907         * modules/wctype-h (Makefile.am): Likewise.
20908         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
20909
20910 2011-05-29  Bruno Haible  <bruno@clisp.org>
20911
20912         assert-h: Allow multiple gnulib generated replacements to coexist.
20913         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
20914
20915 2011-05-29  Bruno Haible  <bruno@clisp.org>
20916
20917         argp: Allow coexistence with strerror_r-posix module.
20918         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
20919         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
20920         by gnulib's <string.h> replacement), assume it has the POSIX signature,
20921         not the glibc signature.
20922
20923 2011-05-28  Bruno Haible  <bruno@clisp.org>
20924
20925         gnulib-tool: Alternative structure of testdirs, similar to --import.
20926         * gnulib-tool: New option --single-configure.
20927         (func_usage): Document it.
20928         (single_configure): New variable.
20929         (func_modules_transitive_closure_separately,
20930         func_modules_transitive_closure_separately,
20931         func_determine_use_libtests, func_modules_add_dummy_separately,
20932         func_modules_to_filelist_separately): New functions, extracted from
20933         func_import.
20934         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
20935         (func_import): Use the new functions.
20936         (func_create_testdir): Set final_modules. Handle $single_configure =
20937         true case.
20938
20939 2011-05-28  Bruno Haible  <bruno@clisp.org>
20940
20941         getloadavg: Remove an unreliable safety check.
20942         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
20943         getloadavg.c is in place.
20944         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
20945         Reported by Sam Steingold <sds@gnu.org>.
20946
20947 2011-05-28  Bruno Haible  <bruno@clisp.org>
20948
20949         doc: Cleanup yet another file produced by texinfo.tex.
20950         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
20951
20952 2011-05-28  Bruno Haible  <bruno@clisp.org>
20953
20954         Finish the conditional dependencies mechanism.
20955         * gnulib-tool: New option --no-conditional-dependencies.
20956         (func_usage): Document it. Don't mark --conditional-dependencies as
20957         experimental.
20958         (cond_dependencies): The possible values can now be true, false, empty.
20959         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
20960         (func_import): Store setting in gnulib-cache.m4 and read it from there.
20961         * doc/gnulib-tool.texi (Conditional dependencies): New section.
20962
20963 2011-05-28  Bruno Haible  <bruno@clisp.org>
20964
20965         doc: Use a recent texinfo.tex.
20966         * doc/Makefile (tex_opts): New variable.
20967         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
20968
20969 2011-05-28  Jim Meyering  <meyering@redhat.com>
20970
20971         intprops.h: adjust comment to match code change
20972         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
20973         only once, it *may* have side effects.  Also fix an unrelated typo.
20974         (_GL_INT_SIGNED): Likewise.
20975
20976 2011-05-26  Simon Josefsson  <simon@josefsson.org>
20977
20978         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
20979
20980 2011-05-26  Bruno Haible  <bruno@clisp.org>
20981
20982         mbsrchr: Avoid collision with system function on Interix.
20983         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
20984         Reported by Markus Duft <mduft@gentoo.org>.
20985
20986 2011-05-15  James Youngman  <jay@gnu.org>
20987
20988         getopt: for ambiguous options, enumerate the possibilities.
20989         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
20990         the ambiguous options when an ambiguous prefix is given. This was
20991         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
20992         glibc change was
20993         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
20994
20995 2011-05-25  Eric Blake  <eblake@redhat.com>
20996
20997         getcwd: work around mingw bug
20998         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
20999         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21000         Reported by Matthias Bolte.
21001
21002 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
21003
21004         test-intprops: disable -Wtype-limits diagnostics
21005         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
21006         diagnostics.  Otherwise, the integer overflow macros generate many
21007         diagnostics.  Reported by Jim Meyering in
21008         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21009
21010         intprops: shorten, to pacify gcc -Woverlength-strings
21011         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
21012         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
21013         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
21014         likely to run afoul of C compiler limits for string constant lengths.
21015         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21016
21017 2011-05-24  Eric Blake  <eblake@redhat.com>
21018
21019         docs: document recently fixed glibc printf bug
21020         * doc/posix-functions/fprintf.texi (fprintf): Document it.
21021         * doc/posix-functions/printf.texi (printf): Likewise.
21022         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
21023         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
21024
21025         closein-tests: convert to init.sh
21026         * modules/closein-tests (Files): Add init.sh
21027         * tests/test-closein.sh Use it.
21028
21029         yesno-tests: convert to init.sh
21030         * modules/yesno-tests (Files): Add init.sh.
21031         * tests/test-yesno.sh: Use it.
21032
21033         atexit-tests: ensure reliable exit status
21034         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
21035         Reported by Bruno Haible.
21036
21037 2011-05-24  Bruno Haible  <bruno@clisp.org>
21038
21039         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
21040         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
21041         gl_PREREQ_STRERROR_R invocations from here...
21042         * modules/strerror_r-posix (configure.ac): ... to here.
21043
21044 2011-05-24  Eric Blake  <eblake@redhat.com>
21045
21046         strerror_r: fix missing header
21047         * lib/strerror_r.c: Avoid compiler warning about snprintf.
21048
21049         strerror_r: fix AIX test failures
21050         * lib/strerror_r.c (strerror_r): Convert silent truncation to
21051         ERANGE failure.
21052
21053         strerror_r: fix Solaris test failures
21054         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
21055         failures.
21056         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21057
21058         strerror_r: enforce POSIX recommendations
21059         * lib/strerror_r.c (safe_copy): New helper method.
21060         (strerror_r): Guarantee a non-empty string.
21061         * tests/test-strerror_r.c (main): Enhance tests to incorporate
21062         recent POSIX rulings and to match our strerror guarantees.
21063         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21064
21065 2011-05-24  Jim Meyering  <meyering@redhat.com>
21066
21067         test-perror2.c: avoid warning about unused variable
21068         * tests/test-perror2.c (main): Remove declaration of unused "fp".
21069
21070 2011-05-24  Eric Blake  <eblake@redhat.com>
21071
21072         perror: avoid spurious test failure on HP-UX
21073         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
21074
21075         tests: fix logic bug in init.sh
21076         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
21077         shell.
21078
21079 2011-05-24  Jim Meyering  <meyering@redhat.com>
21080
21081         utimensat: do not reference an out-of-scope buffer
21082         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
21083         declared in an inner scope, yet "times" would be dereferenced outside
21084         the scope in which "ts" was valid.
21085         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
21086         of ts[2] "out/up", so that the use of aliased "times" (via
21087         "times = ts;") does not end up referencing an out-of-scope "ts"
21088
21089         opendir-safer.c: don't clobber errno; don't close negative FD
21090         * lib/opendir-safer.c (opendir_safer):
21091         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
21092         file descriptor, and more importantly, don't clobber the
21093         offending errno value with EINVAL.  Before, upon failure
21094         of dup_safer, we would pass the negative file descriptor to
21095         fdopendir, which would clobber errno.
21096
21097 2011-05-23  Bruno Haible  <bruno@clisp.org>
21098
21099         idcache: Fix module description.
21100         * modules/idcache (Include): Set to "idcache.h".
21101
21102 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
21103
21104         gnulib-tool: fix portability problem with MacOS sed
21105         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
21106         before the "}".  Problem reported by Leo in
21107         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
21108         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
21109         sed_extract_condition1, sed_extract_condition2.
21110
21111 2011-05-23  Bruno Haible  <bruno@clisp.org>
21112
21113         hash: Simplify autoconf macro.
21114         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
21115
21116 2011-05-23  Bruno Haible  <bruno@clisp.org>
21117
21118         getugroups: Fix module description.
21119         * modules/getugroups (Include): Set to "getugroups.h".
21120
21121 2011-05-23  Bruno Haible  <bruno@clisp.org>
21122
21123         linkat: Simplify autoconf macro.
21124         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
21125
21126 2011-05-23  Bruno Haible  <bruno@clisp.org>
21127             Eric Blake  <eblake@redhat.com>
21128
21129         linkat, renameat: Update dependencies.
21130         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
21131         * modules/linkat (Depends-on): Likewise. Remove also readlink,
21132         symlinkat.
21133
21134 2011-05-23  Jim Meyering  <meyering@redhat.com>
21135
21136         maint.mk: more tight_scope improvements
21137         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
21138         (_gl_TS_headers): Define only in if-0'd block.
21139         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
21140         sometimes we must *not* use it.  Adjust uses accordingly.
21141         (sc_tight_scope): Use much simpler grep-based test to determine
21142         whether we skip this rule.
21143
21144         maint.mk: generalize/improve the tight-scope rule
21145         * top/maint.mk: Emit a warning when the test is skipped.
21146         (_gl_TS_dir): Add $(srcdir)/ prefix.
21147         (_gl_TS_function_match): Simplify, rather than trying
21148         to enumerate common types.  Otherwise, it would fail to match an
21149         "extern unsigned char const *" declaration in idutils.
21150         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
21151         a way to support use of that type of macro.
21152         (_gl_TS_var_match): Simplify regexp.
21153         (_gl_TS_obj_files): New configurable variable.
21154         (_gl_TS_headers): Likewise.
21155
21156 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
21157
21158         verify: fix bug when gnulib <assert.h> is also included
21159         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
21160         is defined, not if _GL_STATIC_ASSERT_H is not defined.
21161         Perhaps there's a better way, but this fixes the immediate problem.
21162         Problem reported by Bruno Haible in
21163         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
21164
21165 2011-05-22  Bruno Haible  <bruno@clisp.org>
21166
21167         xgetcwd: Simplify autoconf macro.
21168         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
21169
21170 2011-05-22  Bruno Haible  <bruno@clisp.org>
21171
21172         New module 'mktime-internal'.
21173         * modules/mktime-internal: New file.
21174         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
21175         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
21176         mktime_internal as a C macro if libc has __mktime_internal.
21177         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
21178         conditions.
21179         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
21180
21181 2011-05-22  Bruno Haible  <bruno@clisp.org>
21182
21183         timegm: Correct mktime replacement statements.
21184         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
21185         defining mktime as a C macro. This completes a 2009-07-28 commit.
21186
21187 2011-05-22  Bruno Haible  <bruno@clisp.org>
21188
21189         timegm: Simplify autoconf macro.
21190         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
21191
21192 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
21193
21194         clock-time: change to LGPLv2+.
21195         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
21196         BSD-like but we have no mark for that; this is good enough for now.
21197
21198 2011-05-21  Bruno Haible  <bruno@clisp.org>
21199
21200         strerror_r: Fix comments.
21201         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
21202
21203 2011-05-21  Bruno Haible  <bruno@clisp.org>
21204
21205         relocatable-prog-wrapper: Fix possible link error.
21206         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
21207         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
21208         (gl_FUNC_SETENV): ... to here.
21209         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
21210         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
21211
21212 2011-05-21  Bruno Haible  <bruno@clisp.org>
21213
21214         relocatable-prog-wrapper: Assume strerror() exists.
21215         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
21216         m4/strerror.m4.
21217         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
21218         * lib/relocwrapper.c: Remove mention of strerror module.
21219         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
21220         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
21221         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
21222         C macro.
21223
21224 2011-05-21  Bruno Haible  <bruno@clisp.org>
21225
21226         select: Simplify replacement idiom.
21227         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
21228         Win32 platforms.
21229         * lib/sys_select.in.h (select): Simplify accordingly.
21230         * modules/select (Depends-on): Likewise.
21231
21232 2011-05-21  Bruno Haible  <bruno@clisp.org>
21233
21234         mkdir-p: Simplify autoconf macro.
21235         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
21236         gl_FUNC_LCHOWN.
21237
21238 2011-05-21  Eric Blake  <eblake@redhat.com>
21239
21240         strerror_r: avoid clobbering strerror on cygwin
21241         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
21242         fall back instead to sys_errlist.
21243         * modules/strerror (configure.ac): Add witness.
21244         * tests/test-strerror_r.c (main): Enhance test.
21245         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21246         * tests/test-perror2.c (main): Free memory before exit.
21247
21248 2011-05-21  Bruno Haible  <bruno@clisp.org>
21249
21250         mkdtemp: Use gnulib naming conventions.
21251         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
21252         * modules/mkdtemp (configure.ac): Update.
21253
21254 2011-05-20  Eric Blake  <eblake@redhat.com>
21255
21256         strerror_r: avoid corrupting errno on Solaris
21257         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
21258         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21259
21260         strerror_r: avoid compiler warning
21261         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
21262
21263         strerror_r: simplify AIX code
21264         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
21265
21266         test-perror: avoid spurious failure on FreeBSD
21267         * modules/perror-tests (Depends-on): Add strerror, now that
21268         strerror_r no longer pulls it in.
21269
21270 2011-05-20  Bruno Haible  <bruno@clisp.org>
21271
21272         strerror_r-posix: Remove unused dependencies.
21273         * modules/strerror_r-posix (Depends-on): Remove strerror.
21274         Reported by Eric Blake.
21275
21276 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21277
21278         intprops: remove assumption about A|B representation
21279         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
21280         is a valid integer if both A and B are.  Although this is true for
21281         all known practical hosts, the C standard doesn't guarantee it,
21282         and the code need not assume it.  Also, this change may work around
21283         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
21284         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
21285
21286 2011-05-20  Eric Blake  <eblake@redhat.com>
21287
21288         perror: work around FreeBSD bug
21289         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
21290         is broken.  Move AC_LIBOBJ...
21291         * modules/perror (configure.ac): Here.
21292         * doc/posix-functions/perror.texi (perror): Document this.
21293         * tests/test-perror2.c (main): Enhance test.
21294
21295         test-perror: check for strerror interactions
21296         * tests/macros.h (STREQ): Add macro.
21297         * modules/perror-tests (Files): Add second test.
21298         * tests/test-perror2.c (main): New file.
21299         * doc/posix-functions/perror.texi (perror): Document glibc bug.
21300
21301         test-perror: rewrite to use init script
21302         * modules/perror-tests (Files): Add init.sh.
21303         * tests/test-perror.sh: Use temporary directory.
21304
21305 2011-05-20  Jim Meyering  <meyering@redhat.com>
21306
21307         maint: replace misused "a" with "an"
21308         * doc/intprops.texi: "a integer"
21309         * doc/regex.texi: "a explanation"
21310         * lib/alignof.h: "a object"
21311         * lib/argmatch.h: "a explanation"
21312         * lib/argp-help.c: "a option" and "a OPTION_DOC"
21313         * lib/stdint.in.h: "a integer"
21314         * lib/userspec.c: "a owner"
21315         * doc/gnulib.texi: Fix "a idea", and reword.
21316
21317 2011-05-19  Jim Meyering  <meyering@redhat.com>
21318
21319         maint: correct misuse of "a" and "an"
21320         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
21321         * lib/argp-help.c: "an docum...": s/an/a/
21322         * lib/argp-parse.c: "An vector": s/An/A/
21323         * lib/execute.c: "an native": s/an/a/
21324         * lib/spawn-pipe.c: Likewise.
21325         * lib/gc.h: "an Gc_rc": s/an/a/
21326         * lib/unigbrk.in.h: "an grapheme": s/an/a/
21327         * lib/fts.c: "an stat.st_dev": s/an/a/
21328
21329 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21330
21331         intprops-tests: work around HP-UX 11.23 cc bug with constants
21332         * tests/test-intprops.c (VERIFY): New macro.
21333         (main): Use it, instead of verify, to work around the compiler bug; see
21334         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21335
21336         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
21337         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
21338         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
21339         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
21340         (_GL_REMAINDER_OVERFLOW): Use it.
21341
21342         intprops-tests: revert unsigned part of previous change
21343         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
21344         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
21345         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
21346         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
21347
21348 2011-05-19  Bruno Haible  <bruno@clisp.org>
21349
21350         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
21351         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
21352         strerror_r() returned without filling the buffer.
21353         Reported by Eric Blake.
21354
21355 2011-05-19  Eric Blake  <eblake@redhat.com>
21356
21357         strerror_r: guarantee unchanged errno
21358         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
21359         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
21360         failure.
21361         * tests/test-strerror_r.c (main): Enhance test.
21362
21363 2011-05-19  Bruno Haible  <bruno@clisp.org>
21364
21365         strerror_r: Reorder #if blocks.
21366         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
21367         for consistency with the previous commit.
21368
21369 2011-05-19  Bruno Haible  <bruno@clisp.org>
21370
21371         perror: Avoid clobbering the strerror buffer when possible.
21372         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
21373         * lib/strerror.c: Include it.
21374         * modules/strerror (Files): Add lib/strerror-impl.h.
21375         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
21376         (my_strerror): New function, defined through lib/strerror-impl.h.
21377         (perror): Use it instead of strerror.
21378         * modules/perror (Files): Add lib/strerror-impl.h.
21379         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
21380
21381 2011-05-19  Eric Blake  <eblake@redhat.com>
21382
21383         strerror_r: fix on newer cygwin
21384         * lib/strerror_r.c (strerror_r): Cygwin now has
21385         __xpg_strerror_r, use it.
21386
21387 2011-05-19  Bruno Haible  <bruno@clisp.org>
21388
21389         strerror_r: Avoid clobbering the strerror buffer when possible.
21390         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
21391         (sys_nerr, sys_errlist): New declarations.
21392         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
21393         HP-UX, native Win32, IRIX, and 32-bit Solaris.
21394         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
21395
21396 2011-05-19  Bruno Haible  <bruno@clisp.org>
21397
21398         strerror_r: Fix test failure on mingw.
21399         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
21400         EXTEND_STRERROR_R.
21401         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
21402         macros from errno.in.h instead.
21403
21404 2011-05-19  Eric Blake  <eblake@redhat.com>
21405
21406         strerror: relax test for Solaris
21407         * tests/test-strerror.c (main): Permit Solaris behavior.
21408         * tests/test-strerror_r.c (main): Likewise.
21409
21410         strerror: enforce POSIX ruling on strerror(0)
21411         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
21412         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
21413         * lib/strerror_r.c (rpl_strerror_r): Work around it.
21414         * doc/posix-functions/strerror.texi (strerror): Document it.
21415         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
21416         * tests/test-strerror.c (main): Strengthen test.
21417         * tests/test-strerror_r.c (main): Likewise.
21418
21419 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21420
21421         intprop-tests: port to older and more-pedantic compilers
21422         * modules/intprops-tests (Files): Add tests/macros.h.
21423         * tests/test-intprops.c: Include macros.h.
21424         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
21425         it's no longer documented to expand to an integer constant expression.
21426         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
21427         argument is floating point, as it's no longer documented to expand
21428         to an integer constant expression in that case.
21429         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
21430         compiler bugs reported by Bruno Haible.  See
21431         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21432         (U0, U1): New constants, to work around the same bugs.  Also,
21433         in tests, use e.g., "(unsigned int) 39" rather than "39u".
21434
21435         intprops: work around C compiler bugs
21436         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
21437         bug in Sun C 5.11 2010/08/13 and other compilers; see
21438         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21439
21440         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
21441         * doc/intprops.texi (Integer Type Determination): Fix
21442         documentation for TYPE_IS_INTEGER: it returns an constant
21443         expression, not an integer constant expression.  Fix doc for
21444         TYPE_SIGNED: it returns an integer constant expression only if its
21445         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
21446         hardly worth documented that way....)
21447
21448 2011-05-18  Bruno Haible  <bruno@clisp.org>
21449
21450         strerror_r: Avoid clobbering the strerror buffer when possible.
21451         * lib/strerror_r.c (strerror_r): Merge the three implementations.
21452         Handle gnulib defined errno values here. When strerror() returns NULL
21453         or an empty string, return EINVAL.
21454         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
21455         gnulib defined errno values here.
21456         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
21457
21458 2011-05-18  Eric Blake  <eblake@redhat.com>
21459
21460         fnmatch: avoid compiler warning
21461         * lib/fnmatch_loop.c (FCT): Use correct type.
21462         Reported by Matthias Bolte.
21463
21464 2011-05-13  Jim Meyering  <meyering@redhat.com>
21465
21466         maint.mk: three new prohibit_<HDR>_without_use rules
21467         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
21468         (sc_prohibit_stdio-safer_without_use): Likewise.
21469         (sc_prohibit_xfreopen_without_use): Likewise.
21470
21471 2011-05-17  Jim Meyering  <meyering@redhat.com>
21472
21473         announce-gen: fail if the NEWS delta is empty
21474         If there's nothing noteworthy in NEWS, then either you forgot
21475         or you shouldn't be releasing.
21476         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
21477
21478 2011-05-17  Pádraig Brady <P@draigBrady.com>
21479
21480         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
21481         reserved symbols starting with double underscore from the check.
21482
21483 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
21484
21485         intprops: add doc
21486         * doc/intprops.texi: New file, documenting intprops.
21487         * doc/gnulib.texi (Particular Modules): Include it.
21488
21489         verify: add doc to gnulib manual and fix example
21490         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
21491         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
21492         (Compile-time Assertions): Fix example so it can't overflow.
21493
21494 2011-05-17  Jim Meyering  <meyering@redhat.com>
21495
21496         warnings.m4: don't usurp save_CPPFLAGS variable name
21497         * m4/warnings.m4: Prefix local temporary variable name with gl_.
21498
21499         doc: fix typo
21500         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
21501
21502 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21503             Bruno Haible  <bruno@clisp.org>
21504
21505         doc: Tweak recent change.
21506         * README (Portability guidelines): Tweak new text.
21507         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
21508         Interix 6.1.
21509
21510 2011-05-16  Eric Blake  <eblake@redhat.com>
21511
21512         inttypes: avoid autoconf warning
21513         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
21514         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21515
21516 2011-05-16  Sam Steingold <sds@gnu.org>
21517         and Eric Blake  <eblake@redhat.com>
21518
21519         vc-list-files: accept multiple directory operands
21520         * build-aux/vc-list-files: Iterate over all remaining operands.
21521
21522 2011-05-16  Bruno Haible  <bruno@clisp.org>
21523
21524         Fix confusion regarding deprecated modules.
21525         * modules/calloc (Status, Notice): Mark module as deprecated, not
21526         obsolete.
21527         * modules/fnmatch-posix (Status, Notice): Likewise.
21528         * modules/getdate (Status, Notice): Likewise.
21529         * modules/getopt (Status, Notice): Likewise.
21530         * modules/malloc (Status, Notice): Likewise.
21531         * modules/pipe (Status, Notice): Likewise.
21532         * modules/realloc (Status, Notice): Likewise.
21533         * modules/rename-dest-slash (Status, Notice): Likewise.
21534         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
21535         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
21536         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
21537         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
21538         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
21539
21540 2011-05-16  Bruno Haible  <bruno@clisp.org>
21541
21542         doc: List the target platforms.
21543         * doc/gnulib-intro.texi (Target Platforms): New section.
21544         * doc/gnulib.texi (Introduction): Update menu.
21545         * README (Portability guidelines): Refer to the new section. Update
21546         statement about oldest supported environment. Remove rationale why
21547         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
21548         unportable C89 function.
21549         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
21550         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
21551
21552 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21553
21554         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
21555
21556 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21557
21558         intprops-tests: new module
21559         * modules/intprops-tests, tests/test-intprops.c: New files.
21560
21561         intprops: add safe, portable integer overflow checking
21562         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
21563         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
21564         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
21565         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
21566         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
21567         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
21568         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
21569         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
21570         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
21571         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
21572         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
21573
21574 2011-05-12  James Youngman  <jay@gnu.org>
21575
21576         Add a test for glibc's Bugzilla bug #12378.
21577         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
21578         doesn't allow the literal matching of a lone "[" (which is
21579         required by POSIX).
21580         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
21581
21582 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
21583
21584         Sync glibc change fixing Bugzilla bug #12378.
21585         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
21586         beginning and fall back to matching as normal character if the
21587         string ends before the matching ']' is found.  This is what POSIX
21588         requires.
21589
21590 2011-05-13  Eric Blake  <eblake@redhat.com>
21591
21592         getcwd-lgpl: relax test for FreeBSD
21593         * doc/posix-functions/getcwd.texi (getcwd): Document portability
21594         issue.
21595         * tests/test-getcwd-lgpl.c (main): Relax test.
21596         Reported by Matthias Bolte.
21597
21598 2011-05-11  Eric Blake  <eblake@redhat.com>
21599
21600         test-fflush: silence compiler warning
21601         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
21602
21603 2011-05-11  Bruno Haible  <bruno@clisp.org>
21604
21605         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
21606         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
21607         * modules/canonicalize (Depends-on): Add 'nocrash'.
21608         * modules/canonicalize-lgpl (Depends-on): Likewise.
21609         * doc/posix-functions/realpath.texi: Update platforms list.
21610         Reported by Ryan Schmidt <ryandesign@macports.org>.
21611
21612 2011-05-11  Bruno Haible  <bruno@clisp.org>
21613
21614         group-member: Declare function in <unistd.h>.
21615         * lib/unistd.in.h (group_member): New declaration.
21616         * lib/group-member.h: Remove file.
21617         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
21618         * tests/test-unistd-c++.cc: Check signature of group_member.
21619         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
21620         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
21621         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
21622         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
21623         HAVE_GROUP_MEMBER.
21624         * modules/group-member (Files): Remove lib/group-member.h.
21625         (Depends-on): Add unistd. Specify conditions.
21626         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21627         (Include): Change to <unistd.h>.
21628         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
21629         HAVE_GROUP_MEMBER.
21630         * NEWS: Mention the change.
21631         * lib/euidaccess.c: Don't include group-member.h.
21632
21633 2011-05-11  Bruno Haible  <bruno@clisp.org>
21634
21635         group-member: Document module.
21636         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
21637         module.
21638
21639 2011-05-11  Bruno Haible  <bruno@clisp.org>
21640
21641         fclose: Fix mistake earlier today.
21642         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
21643
21644 2011-05-11  Eric Blake  <eblake@redhat.com>
21645
21646         fclose: preserve fflush errors
21647         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
21648         Reported by Jim Meyering.
21649
21650         bootstrap: support a prereq of 'rpcgen -' on RHEL5
21651         * build-aux/bootstrap (check_versions): When no specific version
21652         is required, merely check that the app produces an exit status
21653         that indicates its existence.
21654
21655         maint.mk: drop redundant check
21656         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
21657         the same but better.
21658
21659 2011-05-11  Bruno Haible  <bruno@clisp.org>
21660
21661         fclose: Fix possible link error.
21662         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
21663         unregister_shadow_fd. Improve comments.
21664         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
21665         Eric Blake.
21666
21667 2011-05-11  Jim Meyering  <meyering@redhat.com>
21668
21669         maint.mk: improve "can not" detection and generalize rule name
21670         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
21671         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
21672         Use the same technique as in sc_prohibit_doubled_word, so that
21673         we recognize "can not" also when the words are separated by a newline.
21674         Suggested by Eric Blake.
21675         (perl_filename_lineno_text_): Define.  Factored out of...
21676         (prohibit_doubled_word_): ...here.  Use the new definition.
21677         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
21678         (prohibit_undesirable_word_seq_RE_): New overridable variable.
21679         (ignore_undesirable_word_sequence_RE_): New overridable variable.
21680
21681 2011-05-10  Eric Blake  <eblake@redhat.com>
21682
21683         fclose: avoid double close race when possible
21684         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
21685         all but WINDOWS_SOCKETS.
21686
21687 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
21688
21689         openat: correct new comment
21690         * lib/openat-proc.c (openat_proc_name): Correct the comment.
21691
21692 2011-05-10  Jim Meyering  <meyering@redhat.com>
21693
21694         openat: add comments
21695         * lib/openat-proc.c (openat_proc_name): Add comments,
21696         mostly from Eric Blake.
21697
21698 2011-05-09  Eric Blake  <eblake@redhat.com>
21699
21700         openat: reduce syscalls in first probe of /proc
21701         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
21702         be a directory.  Simplify the probe for .. bugs.
21703         * modules/openat (Depends-on): Drop same-inode.
21704         Reported by Bastien ROUCARIES.
21705
21706 2011-05-09  Jim Meyering  <meyering@redhat.com>
21707
21708         maint.mk: change semantics/name of tight_scope variables
21709         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
21710         Rename variables to align with semantics that make them more useful.
21711
21712         maint.mk: tweak new rule's name not to impinge
21713         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
21714         (sc_tight_scope): Use new rule name rather than $@-0.
21715
21716         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
21717         * top/maint.mk (sc_tight_scope): New rule.
21718         (sc_tight_scope-0): New rule, ifdef'd out.
21719         (_gl_TS_dir): Default.
21720         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
21721         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
21722
21723 2011-05-09  Simon Josefsson  <simon@josefsson.org>
21724
21725         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
21726         Haible <bruno@clisp.org>.
21727
21728 2011-05-08  Bruno Haible  <bruno@clisp.org>
21729
21730         Comments.
21731         * m4/isnanf.m4: Add comment.
21732         * m4/isnanl.m4: Likewise.
21733
21734 2011-05-08  Bruno Haible  <bruno@clisp.org>
21735
21736         glob: Remove obsolete macro.
21737         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
21738
21739 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
21740
21741         intprops: Sun C 5.11 supports __typeof__
21742         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
21743         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
21744         which is new.
21745         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
21746
21747         intprops: switch to usual gnulib indenting and naming
21748         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
21749         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
21750
21751         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
21752
21753 2011-05-08  Jim Meyering  <meyering@redhat.com>
21754
21755         maint.mk: suppress "Entering/Leaving directory" diag in announcement
21756         * top/maint.mk (release-prep): Use make's --no-print-directory
21757         option when generating the announcement.  This eliminates the
21758         pesky "make[2]: Entering/Leaving directory" diagnostics in the
21759         generated announcement template.
21760
21761 2011-05-08  Bruno Haible  <bruno@clisp.org>
21762
21763         tzset: Fix gettimeofday wrapper on Solaris 2.6.
21764         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
21765         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
21766
21767 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
21768
21769         ignore-value, verify: Omit include files from lib_SOURCES.
21770         * modules/ignore-value, modules/verify (Makefile.am):
21771         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
21772         that leads Automake to duplicate use of am__objects_... variables
21773         in Makefile.in.  See
21774         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
21775
21776 2011-05-07  Bruno Haible  <bruno@clisp.org>
21777
21778         fclose: Simplify autoconf macro.
21779         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
21780         defined.
21781
21782 2011-05-07  Bruno Haible  <bruno@clisp.org>
21783
21784         canonicalize-lgpl: Fix autoconf macro ordering bug.
21785         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
21786         gl_STDLIB_H_DEFAULTS.
21787
21788 2011-05-06  Eric Blake  <eblake@redhat.com>
21789
21790         maintainer-makefile: make sc_po_check easier to tune
21791         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
21792         to probe for strings, such as an alternate location for gnulib.
21793
21794         fclose: guarantee behavior on seekable stdin
21795         * modules/fclose (Depends-on): Add fflush.
21796         * doc/posix-functions/fclose.texi (fclose): Document this.
21797         * tests/test-fclose.c (main): Make test for this unconditional.
21798
21799 2011-05-06  Bruno Haible  <bruno@clisp.org>
21800
21801         fflush, fpurge: Relicense under LGPLv2+.
21802         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
21803         * modules/fpurge (License): Likewise.
21804         With permission from Eric Blake and Jim Meyering.
21805         Suggested by Eric Blake.
21806
21807 2011-05-06  Karl Berry  <karl@gnu.org>
21808
21809         * MODULES.html.sh (func_all_modules): remove exit.
21810
21811 2011-05-06  Jim Meyering  <meyering@redhat.com>
21812
21813         maint.mk: use info-gnu@ as the default only for a stable release
21814         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
21815         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
21816         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
21817         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
21818
21819 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
21820
21821         assert-h: new module, which supports C1X-style static_assert
21822         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
21823         * lib/verify.h: Revamp so that this can be copied into assert.h,
21824         while retaining the ability to use it standalone as before.
21825         Rename private identifiers so as not to encroach on the
21826         standard C namespace, since this is now used by assert.h.
21827         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
21828         the old verify_true.
21829         (_GL_VERIFY_TRUE): New macro, with much of the contents of
21830         the old verify_true.  Use _GL_VERIFY_TYPE.
21831         (_GL_VERIFY): New macro, with much of the contents of the old verify.
21832         (static_assert): New macro, if _GL_STATIC_ASSERT_H
21833         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
21834         defined when this file is copied into the replacement assert.h.
21835         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
21836         and _Static_assert is not built in.
21837         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
21838         defined, and use the new macros mentioned above.
21839         * doc/posix-headers/assert.texi: Document this.
21840
21841 2011-05-05  Bruno Haible  <bruno@clisp.org>
21842
21843         fclose, fflush: Respect rules for use of AC_LIBOBJ.
21844         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
21845         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
21846         gl_REPLACE_FCLOSE here.
21847         * modules/fflush (Depends-on): Remove fclose.
21848         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
21849         combination with module 'fclose'.
21850
21851 2011-05-05  Bruno Haible  <bruno@clisp.org>
21852
21853         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
21854         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
21855         gl_FUNC_FFLUSH.
21856         (gl_FUNC_FFLUSH): Use it.
21857         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
21858         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
21859         gl_REPLACE_FSEEKO here.
21860
21861 2011-05-05  Bruno Haible  <bruno@clisp.org>
21862
21863         tzset: Relicense under LGPL.
21864         * modules/tzset (License): Change to LGPL.
21865         No agreement needed; it's a no-op.
21866
21867         strtoimax, strtoumax: Relicense under LGPL.
21868         * modules/strtoimax (License): Change to LGPL.
21869         * modules/strtoumax (License): Likewise.
21870         With permission from Jim Meyering, Paul Eggert:
21871         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
21872         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
21873
21874         getgroups: Relicense under LGPL.
21875         * modules/getgroups (License): Change to LGPL.
21876         With permission from Jim Meyering, Paul Eggert, Eric Blake:
21877         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21878         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21879         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21880
21881         nanosleep: Relicense under LGPL.
21882         * modules/nanosleep (License): Change to LGPL.
21883         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
21884         Haible:
21885         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21887         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21889
21890         futimens: Relicense under LGPL.
21891         * modules/futimens (License): Change to LGPL.
21892         With permission from Eric Blake:
21893         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21894
21895         fflush: Relicense under LGPL.
21896         * modules/fflush (License): Change to LGPL.
21897         With permission from Eric Blake, Bruno Haible, Jim Meyering:
21898         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21899         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21900         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
21901
21902         tmpfile: Relicense under LGPL.
21903         * modules/tmpfile (License): Change to LGPL.
21904         With permission from Ben Pfaff:
21905         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21906
21907         isfinite: Relicense under LGPL.
21908         * modules/isfinite (License): Change to LGPL.
21909         With permission from Ben Pfaff, Bruno Haible:
21910         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
21912
21913         acosl..tanl: Relicense under LGPL.
21914         * modules/acosl (License): Change to LGPL.
21915         * modules/asinl (License): Likewise.
21916         * modules/atanl (License): Likewise.
21917         * modules/cosl (License): Likewise.
21918         * modules/expl (License): Likewise.
21919         * modules/logl (License): Likewise.
21920         * modules/sinl (License): Likewise.
21921         * modules/sqrtl (License): Likewise.
21922         * modules/tanl (License): Likewise.
21923         Source code originally from glibc and Paolo Bonzini. Agreements:
21924         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
21925         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
21926
21927 2011-05-05  Bruno Haible  <bruno@clisp.org>
21928
21929         signal: Define sighandler_t.
21930         * lib/signal.in.h (sighandler_t): New type.
21931         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
21932         whether sighandler_t is defined.
21933         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
21934         * modules/signal (Depends-on): Add extensions.
21935         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
21936         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
21937         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
21938
21939 2011-05-05  Eric Blake  <eblake@redhat.com>
21940
21941         maint: remove useless REPLACE_*_H macros
21942         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
21943         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21944         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21945         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
21946         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21947         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21948         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
21949         * m4/btowc.m4: Update callers.
21950         * m4/dirfd.m4: Likewise.
21951         * m4/duplocale.m4: Likewise.
21952         * m4/fchdir.m4: Likewise.
21953         * m4/fdopendir.m4: Likewise.
21954         * m4/inet_ntop.m4: Likewise.
21955         * m4/inet_pton.m4: Likewise.
21956         * m4/ioctl.m4: Likewise.
21957         * m4/mbrlen.m4: Likewise.
21958         * m4/mbrtowc.m4: Likewise.
21959         * m4/mbsinit.m4: Likewise.
21960         * m4/mbsnrtowcs.m4: Likewise.
21961         * m4/mbsrtowcs.m4: Likewise.
21962         * m4/poll.m4: Likewise.
21963         * m4/setlocale.m4: Likewise.
21964         * m4/wcrtomb.m4: Likewise.
21965         * m4/wcsnrtombs.m4: Likewise.
21966         * m4/wcsrtombs.m4: Likewise.
21967         * m4/wctob.m4: Likewise.
21968         * m4/wcwidth.m4: Likewise.
21969         * modules/posix_spawn: Likewise.
21970         * modules/posix_spawn_file_actions_addclose: Likewise.
21971         * modules/posix_spawn_file_actions_adddup2: Likewise.
21972         * modules/posix_spawn_file_actions_addopen: Likewise.
21973         * modules/posix_spawn_file_actions_destroy: Likewise.
21974         * modules/posix_spawn_file_actions_init: Likewise.
21975         * modules/posix_spawnattr_destroy: Likewise.
21976         * modules/posix_spawnattr_getflags: Likewise.
21977         * modules/posix_spawnattr_getpgroup: Likewise.
21978         * modules/posix_spawnattr_getschedparam: Likewise.
21979         * modules/posix_spawnattr_getschedpolicy: Likewise.
21980         * modules/posix_spawnattr_getsigdefault: Likewise.
21981         * modules/posix_spawnattr_getsigmask: Likewise.
21982         * modules/posix_spawnattr_init: Likewise.
21983         * modules/posix_spawnattr_setflags: Likewise.
21984         * modules/posix_spawnattr_setpgroup: Likewise.
21985         * modules/posix_spawnattr_setschedparam: Likewise.
21986         * modules/posix_spawnattr_setschedpolicy: Likewise.
21987         * modules/posix_spawnattr_setsigdefault: Likewise.
21988         * modules/posix_spawnattr_setsigmask: Likewise.
21989         * modules/posix_spawnp: Likewise.
21990
21991 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
21992
21993         Add option to do-release-commit-and-tag to specify branch.
21994         * build-aux/do-release-commit-and-tag: Add --branch.
21995
21996 2011-05-03  Bruno Haible  <bruno@clisp.org>
21997
21998         Avoid unnecessary compilation units, through conditional dependencies.
21999         * modules/accept (Depends-on): Add conditions to the dependencies.
22000         * modules/acosl (Depends-on): Likewise.
22001         * modules/argz (Depends-on): Likewise.
22002         * modules/asinl (Depends-on): Likewise.
22003         * modules/atanl (Depends-on): Likewise.
22004         * modules/atoll (Depends-on): Likewise.
22005         * modules/bind (Depends-on): Likewise.
22006         * modules/btowc (Depends-on): Likewise.
22007         * modules/canonicalize-lgpl (Depends-on): Likewise.
22008         * modules/ceil (Depends-on): Likewise.
22009         * modules/ceilf (Depends-on): Likewise.
22010         * modules/ceill (Depends-on): Likewise.
22011         * modules/chdir-long (Depends-on): Likewise.
22012         * modules/chown (Depends-on): Likewise.
22013         * modules/close (Depends-on): Likewise.
22014         * modules/connect (Depends-on): Likewise.
22015         * modules/cosl (Depends-on): Likewise.
22016         * modules/dirfd (Depends-on): Likewise.
22017         * modules/dprintf (Depends-on): Likewise.
22018         * modules/dprintf-posix (Depends-on): Likewise.
22019         * modules/error (Depends-on): Likewise.
22020         * modules/euidaccess (Depends-on): Likewise.
22021         * modules/expl (Depends-on): Likewise.
22022         * modules/faccessat (Depends-on): Likewise.
22023         * modules/fchdir (Depends-on): Likewise.
22024         * modules/fclose (Depends-on): Likewise.
22025         * modules/fcntl (Depends-on): Likewise.
22026         * modules/fdopendir (Depends-on): Likewise.
22027         * modules/fflush (Depends-on): Likewise.
22028         * modules/floor (Depends-on): Likewise.
22029         * modules/floorf (Depends-on): Likewise.
22030         * modules/floorl (Depends-on): Likewise.
22031         * modules/fnmatch (Depends-on): Likewise.
22032         * modules/fopen (Depends-on): Likewise.
22033         * modules/fprintf-posix (Depends-on): Likewise.
22034         * modules/frexp (Depends-on): Likewise.
22035         * modules/frexp-nolibm (Depends-on): Likewise.
22036         * modules/frexpl (Depends-on): Likewise.
22037         * modules/frexpl-nolibm (Depends-on): Likewise.
22038         * modules/fseek (Depends-on): Likewise.
22039         * modules/fsusage (Depends-on): Likewise.
22040         * modules/ftell (Depends-on): Likewise.
22041         * modules/ftello (Depends-on): Likewise.
22042         * modules/futimens (Depends-on): Likewise.
22043         * modules/getcwd (Depends-on): Likewise.
22044         * modules/getcwd-lgpl (Depends-on): Likewise.
22045         * modules/getdelim (Depends-on): Likewise.
22046         * modules/getdomainname (Depends-on): Likewise.
22047         * modules/getgroups (Depends-on): Likewise.
22048         * modules/gethostname (Depends-on): Likewise.
22049         * modules/getline (Depends-on): Likewise.
22050         * modules/getlogin_r (Depends-on): Likewise.
22051         * modules/getopt-posix (Depends-on): Likewise.
22052         * modules/getpeername (Depends-on): Likewise.
22053         * modules/getsockname (Depends-on): Likewise.
22054         * modules/getsockopt (Depends-on): Likewise.
22055         * modules/getsubopt (Depends-on): Likewise.
22056         * modules/getusershell (Depends-on): Likewise.
22057         * modules/glob (Depends-on): Likewise.
22058         * modules/grantpt (Depends-on): Likewise.
22059         * modules/iconv_open (Depends-on): Likewise.
22060         * modules/iconv_open-utf (Depends-on): Likewise.
22061         * modules/inet_ntop (Depends-on): Likewise.
22062         * modules/inet_pton (Depends-on): Likewise.
22063         * modules/ioctl (Depends-on): Likewise.
22064         * modules/isapipe (Depends-on): Likewise.
22065         * modules/isfinite (Depends-on): Likewise.
22066         * modules/isinf (Depends-on): Likewise.
22067         * modules/lchown (Depends-on): Likewise.
22068         * modules/ldexpl (Depends-on): Likewise.
22069         * modules/link (Depends-on): Likewise.
22070         * modules/linkat (Depends-on): Likewise.
22071         * modules/listen (Depends-on): Likewise.
22072         * modules/logl (Depends-on): Likewise.
22073         * modules/lstat (Depends-on): Likewise.
22074         * modules/mbrlen (Depends-on): Likewise.
22075         * modules/mbrtowc (Depends-on): Likewise.
22076         * modules/mbsinit (Depends-on): Likewise.
22077         * modules/mbsnrtowcs (Depends-on): Likewise.
22078         * modules/mbsrtowcs (Depends-on): Likewise.
22079         * modules/mbtowc (Depends-on): Likewise.
22080         * modules/memcmp (Depends-on): Likewise.
22081         * modules/mkdir (Depends-on): Likewise.
22082         * modules/mkdtemp (Depends-on): Likewise.
22083         * modules/mkfifo (Depends-on): Likewise.
22084         * modules/mkfifoat (Depends-on): Likewise.
22085         * modules/mknod (Depends-on): Likewise.
22086         * modules/mkostemp (Depends-on): Likewise.
22087         * modules/mkostemps (Depends-on): Likewise.
22088         * modules/mkstemp (Depends-on): Likewise.
22089         * modules/mkstemps (Depends-on): Likewise.
22090         * modules/mktime (Depends-on): Likewise.
22091         * modules/nanosleep (Depends-on): Likewise.
22092         * modules/open (Depends-on): Likewise.
22093         * modules/openat (Depends-on): Likewise.
22094         * modules/perror (Depends-on): Likewise.
22095         * modules/poll (Depends-on): Likewise.
22096         * modules/popen (Depends-on): Likewise.
22097         * modules/posix_spawn (Depends-on): Likewise.
22098         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
22099         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
22100         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
22101         * modules/posix_spawnp (Depends-on): Likewise.
22102         * modules/pread (Depends-on): Likewise.
22103         * modules/printf-posix (Depends-on): Likewise.
22104         * modules/ptsname (Depends-on): Likewise.
22105         * modules/putenv (Depends-on): Likewise.
22106         * modules/pwrite (Depends-on): Likewise.
22107         * modules/readline (Depends-on): Likewise.
22108         * modules/readlink (Depends-on): Likewise.
22109         * modules/readlinkat (Depends-on): Likewise.
22110         * modules/recv (Depends-on): Likewise.
22111         * modules/recvfrom (Depends-on): Likewise.
22112         * modules/regex (Depends-on): Likewise.
22113         * modules/remove (Depends-on): Likewise.
22114         * modules/rename (Depends-on): Likewise.
22115         * modules/renameat (Depends-on): Likewise.
22116         * modules/rmdir (Depends-on): Likewise.
22117         * modules/round (Depends-on): Likewise.
22118         * modules/roundf (Depends-on): Likewise.
22119         * modules/roundl (Depends-on): Likewise.
22120         * modules/rpmatch (Depends-on): Likewise.
22121         * modules/select (Depends-on): Likewise.
22122         * modules/send (Depends-on): Likewise.
22123         * modules/sendto (Depends-on): Likewise.
22124         * modules/setenv (Depends-on): Likewise.
22125         * modules/setlocale (Depends-on): Likewise.
22126         * modules/setsockopt (Depends-on): Likewise.
22127         * modules/shutdown (Depends-on): Likewise.
22128         * modules/sigaction (Depends-on): Likewise.
22129         * modules/signbit (Depends-on): Likewise.
22130         * modules/sigprocmask (Depends-on): Likewise.
22131         * modules/sinl (Depends-on): Likewise.
22132         * modules/sleep (Depends-on): Likewise.
22133         * modules/snprintf (Depends-on): Likewise.
22134         * modules/snprintf-posix (Depends-on): Likewise.
22135         * modules/socket (Depends-on): Likewise.
22136         * modules/sprintf-posix (Depends-on): Likewise.
22137         * modules/sqrtl (Depends-on): Likewise.
22138         * modules/stat (Depends-on): Likewise.
22139         * modules/strchrnul (Depends-on): Likewise.
22140         * modules/strdup-posix (Depends-on): Likewise.
22141         * modules/strerror (Depends-on): Likewise.
22142         * modules/strerror_r-posix (Depends-on): Likewise.
22143         * modules/strndup (Depends-on): Likewise.
22144         * modules/strnlen (Depends-on): Likewise.
22145         * modules/strptime (Depends-on): Likewise.
22146         * modules/strsep (Depends-on): Likewise.
22147         * modules/strsignal (Depends-on): Likewise.
22148         * modules/strstr-simple (Depends-on): Likewise.
22149         * modules/strtod (Depends-on): Likewise.
22150         * modules/strtoimax (Depends-on): Likewise.
22151         * modules/strtok_r (Depends-on): Likewise.
22152         * modules/strtoumax (Depends-on): Likewise.
22153         * modules/symlink (Depends-on): Likewise.
22154         * modules/symlinkat (Depends-on): Likewise.
22155         * modules/tanl (Depends-on): Likewise.
22156         * modules/tcgetsid (Depends-on): Likewise.
22157         * modules/tmpfile (Depends-on): Likewise.
22158         * modules/trunc (Depends-on): Likewise.
22159         * modules/truncf (Depends-on): Likewise.
22160         * modules/truncl (Depends-on): Likewise.
22161         * modules/uname (Depends-on): Likewise.
22162         * modules/unlink (Depends-on): Likewise.
22163         * modules/unlockpt (Depends-on): Likewise.
22164         * modules/unsetenv (Depends-on): Likewise.
22165         * modules/usleep (Depends-on): Likewise.
22166         * modules/utimensat (Depends-on): Likewise.
22167         * modules/vasprintf (Depends-on): Likewise.
22168         * modules/vdprintf (Depends-on): Likewise.
22169         * modules/vdprintf-posix (Depends-on): Likewise.
22170         * modules/vfprintf-posix (Depends-on): Likewise.
22171         * modules/vprintf-posix (Depends-on): Likewise.
22172         * modules/vsnprintf (Depends-on): Likewise.
22173         * modules/vsnprintf-posix (Depends-on): Likewise.
22174         * modules/vsprintf-posix (Depends-on): Likewise.
22175         * modules/wcrtomb (Depends-on): Likewise.
22176         * modules/wcscasecmp (Depends-on): Likewise.
22177         * modules/wcscspn (Depends-on): Likewise.
22178         * modules/wcsdup (Depends-on): Likewise.
22179         * modules/wcsncasecmp (Depends-on): Likewise.
22180         * modules/wcsnrtombs (Depends-on): Likewise.
22181         * modules/wcspbrk (Depends-on): Likewise.
22182         * modules/wcsrtombs (Depends-on): Likewise.
22183         * modules/wcsspn (Depends-on): Likewise.
22184         * modules/wcsstr (Depends-on): Likewise.
22185         * modules/wcstok (Depends-on): Likewise.
22186         * modules/wcswidth (Depends-on): Likewise.
22187         * modules/wctob (Depends-on): Likewise.
22188         * modules/wctomb (Depends-on): Likewise.
22189         * modules/wctype (Depends-on): Likewise.
22190         * modules/wcwidth (Depends-on): Likewise.
22191         * modules/write (Depends-on): Likewise.
22192
22193 2011-05-03  Bruno Haible  <bruno@clisp.org>
22194
22195         Support for conditional dependencies.
22196         * doc/gnulib.texi (Module description): Document the syntax of
22197         conditional dependencies.
22198         * gnulib-tool: New option --conditional-dependencies.
22199         (func_usage): Document it.
22200         (cond_dependencies): New variable.
22201         (func_get_automake_snippet_conditional,
22202         func_get_automake_snippet_unconditional): New functions, extracted from
22203         func_get_automake_snippet.
22204         (func_get_automake_snippet): Use them.
22205         (sed_first_32_chars): New variable.
22206         (func_module_shellfunc_name): New function.
22207         (func_module_shellvar_name): New function.
22208         (func_module_conditional_name): New function.
22209         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
22210         func_cond_module_condition): New functions.
22211         (func_modules_transitive_closure): Add support for conditional
22212         dependencies.
22213         (func_emit_lib_Makefile_am): For a conditional module, enclose the
22214         conditional automake snippet in an automake conditional.
22215         (func_emit_autoconf_snippets): Emit shell functions that contain the
22216         code for conditional modules.
22217         (func_import, func_create_testdir): Update specification.
22218
22219 2011-05-03  Eric Blake  <eblake@redhat.com>
22220
22221         test-getaddrinfo: report error information
22222         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
22223
22224 2011-05-03  Jim Meyering  <meyering@redhat.com>
22225
22226         bootstrap: avoid build failure when $GZIP is set
22227         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
22228         program name.  If defined at all, it is supposed to list gzip options.
22229         Reported by Alan Curry in http://debbugs.gnu.org/8609
22230
22231 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
22232
22233         readme-release: new module with release instructions
22234         * modules/readme-release: New module.
22235         * top/README-release: New file, from coreutils, grep, diffutils.
22236         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22237
22238 2011-05-02  Eric Blake  <eblake@redhat.com>
22239
22240         fflush: also replace fclose when fixing fflush
22241         * modules/fflush (Depends-on): Add fclose.
22242         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
22243         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
22244         memstreams with no backing fd.
22245         * doc/posix-functions/fclose.texi (fclose): Document the use of
22246         fflush module to fix the bug.
22247         * tests/test-fclose.c (main): Relax test when fclose is used in
22248         isolation.
22249
22250         fclose: add some tests
22251         * modules/fclose-tests: New test module.
22252         * tests/test-fclose.c: New file.
22253         * doc/posix-functions/fclose.texi (fclose): Document the bug.
22254
22255         fclose: reduced dependencies
22256         * modules/fclose (Depends-on): Switch from fflush/fseeko to
22257         simpler lseek.
22258         * lib/fclose.c (rpl_fclose): Likewise.
22259         Reported by Simon Josefsson.
22260
22261         exit: drop remaining clients
22262         * modules/argmatch (Depends-on): Replace exit with stdlib.
22263         * modules/copy-file (Depends-on): Likewise.
22264         * modules/execute (Depends-on): Likewise.
22265         * modules/exitfail (Depends-on): Likewise.
22266         * modules/obstack (Depends-on): Likewise.
22267         * modules/pagealign_alloc (Depends-on): Likewise.
22268         * modules/pipe-filter-gi (Depends-on): Likewise.
22269         * modules/pipe-filter-ii (Depends-on): Likewise.
22270         * modules/savewd (Depends-on): Likewise.
22271         * modules/spawn-pipe (Depends-on): Likewise.
22272         * modules/wait-process (Depends-on): Likewise.
22273         * modules/xsetenv (Depends-on): Likewise.
22274         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
22275         * modules/git-merge-changelog (Depends-on): Likewise.
22276         * modules/long-options (Depends-on): Likewise.
22277         * modules/pt_chown (Depends-on): Likewise.
22278         * modules/sysexits (Depends-on): Likewise.
22279
22280         freading: relax license from LGPLv3+ to LGPLv2+
22281         * modules/freading (License): Relax LGPL version.
22282
22283 2011-05-02  Bruno Haible  <bruno@clisp.org>
22284
22285         fchdir: Remove unused dependencies.
22286         * modules/fchdir (Depends-on): Remove include_next.
22287
22288 2011-05-02  Bruno Haible  <bruno@clisp.org>
22289
22290         gnulib-tool: Refactor.
22291         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
22292         from func_emit_autoconf_snippets.
22293         (func_emit_autoconf_snippets): Use it.
22294
22295 2011-05-02  Simon Josefsson  <simon@josefsson.org>
22296
22297         * NEWS: Document removal of 'exit'.
22298         * modules/exit: Remove file.
22299
22300 2011-05-01  Bruno Haible  <bruno@clisp.org>
22301
22302         Update DEPENDENCIES.
22303         * DEPENDENCIES (gettext): Recommend the newest release.
22304         Reported by Simon Josefsson.
22305
22306 2011-05-01  Bruno Haible  <bruno@clisp.org>
22307
22308         gnulib-tool: Reduce code duplication.
22309         * gnulib-tool (func_emit_autoconf_snippets): New function.
22310         (func_import, func_create_testdir): Use it.
22311
22312 2011-04-30  Eric Blake  <eblake@redhat.com>
22313
22314         fclose: don't fail on non-seekable input stream
22315         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
22316         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
22317         since fflush is allowed to fail in that case.
22318
22319 2011-04-30  Bruno Haible  <bruno@clisp.org>
22320
22321         dup3: cleanup
22322         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
22323
22324 2011-04-30  Bruno Haible  <bruno@clisp.org>
22325
22326         netdb: Make it work in C++ mode.
22327         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
22328         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
22329         module.
22330         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
22331         gl_MODULE_INDICATOR_FOR_TESTS.
22332         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
22333         * modules/netdb-c++-tests: New file.
22334         * tests/test-netdb-c++.cc: New file.
22335
22336 2011-04-30  Bruno Haible  <bruno@clisp.org>
22337
22338         New modules 'vfscanf', 'vscanf'.
22339         * modules/vfscanf: New file.
22340         * modules/vscanf: New file.
22341         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
22342         here.
22343         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
22344         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
22345
22346 2011-04-30  Bruno Haible  <bruno@clisp.org>
22347
22348         passfd: Add comments.
22349         * lib/passfd.c: Add comments about platforms.
22350
22351 2011-04-30  Bruno Haible  <bruno@clisp.org>
22352
22353         sys_uio: Make <sys/uio.h> self-contained.
22354         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
22355         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
22356
22357 2011-04-30  Bruno Haible  <bruno@clisp.org>
22358
22359         sys_socket: Ensure 'struct iovec' definition.
22360         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
22361         <sys/socket.h>.
22362         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
22363
22364 2011-04-30  Bruno Haible  <bruno@clisp.org>
22365
22366         sys_uio: Protect definition of 'struct iovec'.
22367         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
22368         it as a C struct.
22369
22370 2011-04-30  Bruno Haible  <bruno@clisp.org>
22371
22372         manywarnings: fix indentation
22373         * m4/manywarnings.m4: Indent by 2 spaces consistently.
22374
22375 2011-04-30  Pádraig Brady <P@draigBrady.com>
22376
22377         manywarnings: add -Wno-missing-field-initializers if needed.
22378         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
22379         option if it's needed to allow initialization with { 0, }
22380
22381 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
22382
22383         announce-gen: cosmetic improvement
22384         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
22385
22386 2011-04-29  Jim Meyering  <meyering@redhat.com>
22387
22388         vc-list-files: indent with spaces, not TABs
22389         * build-aux/vc-list-files: Convert leading TABs to spaces,
22390         to match the style of most other files in gnulib.
22391
22392         announce-gen: indent with spaces, not TABs
22393         * build-aux/announce-gen: Convert all TABs to spaces, to match
22394         the style of most other files in gnulib.
22395
22396 2011-04-29  Eric Blake  <eblake@redhat.com>
22397
22398         quotearg: avoid uninitialized variable use
22399         * lib/quotearg.c (quoting_options_from_style): Initialize
22400         remaining fields, and ensure that custom styles are only used via
22401         quoting_options rather than quoting_style.
22402
22403 2011-04-29  Jim Meyering  <meyering@redhat.com>
22404
22405         maint.mk: remove unused VC-tag variable
22406         * top/maint.mk (VC-tag): Remove unused variable.
22407
22408 2011-04-29  Bruno Haible  <bruno@clisp.org>
22409
22410         netdb: fix gai_strerror replacements
22411         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
22412         * modules/netdb: Substitute it.
22413
22414 2011-04-29  Jim Meyering  <meyering@redhat.com>
22415
22416         test-getcwd.c: avoid new set-but-not-used warning
22417         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
22418         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
22419         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
22420         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
22421
22422         test-hash.c: avoid a new shadowing warning
22423         * tests/test-hash.c (main): Don't shadow "dup".
22424
22425 2011-04-28  Eric Blake  <eblake@redhat.com>
22426
22427         getaddrinfo: fix gai_strerror signature
22428         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
22429         and work around mingw with UNICODE defined.
22430         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
22431         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
22432         * modules/netdb (Makefile.am): Substitute it.
22433         * lib/netdb.in.h (gai_strerror): Declare replacement.
22434         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
22435         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
22436         the fix.
22437
22438         getsockopt: avoid compiler warning
22439         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
22440         Reported by Matthias Bolte.
22441
22442         tests: drop unused link dependency
22443         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
22444         * modules/dirent-safer-tests (Makefile.am): Likewise.
22445         * modules/fdopendir-tests (Makefile.am): Likewise.
22446         * modules/mkfifoat-tests (Makefile.am): Likewise.
22447         * modules/openat-safer-tests (Makefile.am): Likewise.
22448         * modules/openat-tests (Makefile.am): Likewise.
22449         * modules/readlinkat-tests (Makefile.am): Likewise.
22450         * modules/symlinkat-tests (Makefile.am): Likewise.
22451         * modules/linkat-tests (Makefile.am): Likewise.
22452         (Depends-on): Switch to filenamecat-lgpl.
22453         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
22454         LIBINTL.
22455         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
22456         * tests/test-linkat.c (main): Don't require xalloc.
22457
22458         hash, mgetgroups: drop xalloc dependency
22459         * lib/hash.c (includes): Adjust includes.
22460         * lib/mgetgroups.c (includes): Likewise.
22461         (xgetgroups): Move...
22462         * lib/xgetgroups.c: ...to new file.
22463         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
22464         * modules/xgetgroups: New file, split from...
22465         * modules/mgetgroups: ...here.
22466         (Depends-on): Add xalloc-oversized.
22467         * modules/hash (Depends-on): Likewise.
22468         * modules/hash-tests (Depends-on): Drop xalloc.
22469         (test_hash_LDADD): Drop unused library.
22470         * tests/test-hash.c (main): Break xalloc dependency.
22471         (includes): Drop unused include.
22472
22473         xalloc-oversized: new module
22474         * modules/xalloc-oversized: New module.
22475         * modules/xalloc (Depends-on): Add it.
22476         * lib/xalloc.h (xalloc_oversized): Move...
22477         * lib/xalloc-oversized.h: ...into new file.
22478
22479         utimecmp: drop dependency on xmalloc
22480         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
22481         due to memory pressure.
22482         * modules/utimecmp (Depends-on): Drop xalloc.
22483
22484 2011-04-27  Eric Blake  <eblake@redhat.com>
22485
22486         getcwd: fix mingw bugs
22487         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
22488         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
22489         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
22490
22491 2011-04-27  Bruno Haible  <bruno@clisp.org>
22492
22493         mkstemps: Ensure declaration on MacOS X 10.5.
22494         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
22495         * doc/glibc-functions/mkstemps.texi: Document header file problem on
22496         MacOS X.
22497
22498 2011-04-27  Bruno Haible  <bruno@clisp.org>
22499
22500         mkstemp: More documentation.
22501         * doc/posix-functions/mkstemp.texi: Document header file problem on
22502         MacOS X.
22503
22504 2011-04-27  Bruno Haible  <bruno@clisp.org>
22505
22506         mkstemp: Tweak configure message when cross-compiling.
22507         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
22508         result as a guess.
22509
22510 2011-04-27  Bruno Haible  <bruno@clisp.org>
22511
22512         clean-temp: Clarify what it does.
22513         * lib/clean-temp.h: Add more comments.
22514         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
22515         module.
22516         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
22517         * doc/glibc-functions/mkstemps.texi: Likewise.
22518         * doc/glibc-functions/mkostemps.texi: Likewise.
22519
22520 2011-04-27  Eric Blake  <eblake@redhat.com>
22521
22522         fchdir: avoid extra chdir and fix test
22523         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
22524         getcwd-lgpl.
22525         * lib/fchdir.c (get_name): Any absolute name will do; it does not
22526         have to be canonical.
22527         (canonicalize_file_name): Drop unused macro.
22528         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
22529
22530         filenamecat-lgpl: fix licence
22531         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
22532         when it was first created.
22533
22534         linkat, renameat: add missing dependency
22535         * modules/linkat (Depends-on): Require getcwd-lgpl.
22536         * modules/renameat (Depends-on): Likewise.
22537
22538         tests: reduce dependencies
22539         * tests/test-linkat.c (main): Use lighter-weight getcwd.
22540         * tests/test-renameat.c (main): Likewise.
22541         * modules/linkat-tests (Depends-on): Relax dependency.
22542         * modules/renameat-tests (Depends-on): Likewise.
22543         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
22544         dependency explicit.
22545
22546         save-cwd: reduce default dependency
22547         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
22548         * lib/save-cwd.c: Update comments.
22549         * NEWS: Document the semantic change.
22550
22551         getcwd: enhance tests
22552         * tests/test-getcwd-lgpl.c: New file, taken from...
22553         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
22554         repeat long path stress tests from m4 probe.
22555         * modules/getcwd-lgpl-tests: New module.
22556         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
22557         * m4/getcwd-abort-bug.m4: Update comment.
22558         * m4/getcwd-path-max.m4: Likewise.
22559
22560         getcwd-lgpl: new module
22561         * modules/getcwd-lgpl: New module.
22562         * lib/getcwd-lgpl.c: New file.
22563         * doc/posix-functions/getcwd.texi (getcwd): Document it.
22564         * MODULES.html.sh (lacking POSIX:2008): Likewise.
22565         * modules/getcwd (configure.ac): Set C witness.
22566         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
22567
22568         getcwd: tweak comments
22569         * m4/getcwd-abort-bug.m4: Fix comments.
22570         * m4/getcwd-path-max.m4: Likewise.
22571         * m4/getcwd.m4: Likewise.
22572
22573 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22574         and Eric Blake  <eblake@redhat.com>
22575
22576         mkstemp: replace if system version uses wrong permissions
22577         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
22578         read/write mode bits set in file created by mkstemp.
22579         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
22580
22581 2011-04-27  Eric Blake  <eblake@redhat.com>
22582
22583         passfd: avoid compiler warning
22584         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
22585         Reported by Laine Stump.
22586
22587 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
22588
22589         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
22590         required by the NetBSD (and perhaps other 4.4BSD derived) join.
22591
22592 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22593         and Eric Blake  <eblake@redhat.com>
22594
22595         mkstemp: mention clean-temp module
22596         * lib/mkstemp.c: Add comment.
22597         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
22598
22599 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22600
22601         inttypes: also provide default values for 32-bit tests
22602         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
22603         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
22604
22605 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22606
22607         strtoumax: remove dependency on strtoimax
22608         This is like the strtoull change of yesterday.
22609         * modules/strtoumax (Files): Add lib/strtoimax.c.
22610         (Depends-on): Remove strtoimax and add verify.
22611
22612         inttypes-incomplete: new module
22613         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
22614         all but the PRI* and SCN* parts of gl_INTTYPES_H.
22615         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
22616         of gl_INTTYPES_H.
22617         (gl_INTTYPES_H): Rewrite in terms of these new macros.
22618         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
22619         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
22620         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
22621         * modules/strtoumax, modules/xstrtol (Depends-on):
22622         Depend on inttypes-incomplete, not inttypes.
22623         * modules/inttypes-incomplete: New module, containing the contents
22624         of the old modules/inttypes module, except that the Files: section
22625         omits m4/inttypes-pri.m4, and the configure.ac section invokes
22626         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
22627         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
22628         (Depends-on): Depend only on inttypes-incomplete.
22629         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
22630
22631         inttypes: omit now-redundant strtoimax and strtoumax work
22632         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
22633         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
22634
22635         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
22636         This supports apps that need pointers to strtoimax and strtoumax,
22637         and ports to HP-UX 11.00 64.bit, which has macros that expand to
22638         nonexistent functions.  See
22639         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
22640         et seq.
22641         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
22642         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
22643         a macro.
22644         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22645
22646 2011-04-25  Simon Josefsson  <simon@josefsson.org>
22647
22648         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
22649
22650 2011-04-25  Bruno Haible  <bruno@clisp.org>
22651
22652         strtol, strtoul: Mark modules as obsolete.
22653         * modules/strtol (Status, Notice): New sections.
22654         * modules/strtoul (Status, Notice): New sections.
22655
22656 2011-04-25  Bruno Haible  <bruno@clisp.org>
22657
22658         strtod: Remove check for strtod, unless supporting old platforms.
22659         * modules/strtod-obsolete: New file.
22660         * m4/strtod-obsolete.m4: New file.
22661         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
22662         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
22663         * modules/strtod (Depends-on): Add strtod-obsolete.
22664         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
22665
22666 2011-04-25  Bruno Haible  <bruno@clisp.org>
22667
22668         strcase: Make module obsolete.
22669         * modules/strcase (Status, Notice): New sections.
22670
22671 2011-04-25  Bruno Haible  <bruno@clisp.org>
22672
22673         dup2: Remove check for dup2, unless supporting old obsolete platforms.
22674         * modules/dup2-obsolete: New file.
22675         * m4/dup2-obsolete.m4: New file.
22676         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
22677         gl_FUNC_DUP2_OBSOLETE is not also defined.
22678         * modules/dup2 (Depends-on): Add dup2-obsolete.
22679         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
22680
22681 2011-04-25  Bruno Haible  <bruno@clisp.org>
22682
22683         strnlen: Avoid memchr related link error on old obsolete platforms.
22684         * modules/memchr-obsolete: New file.
22685         * m4/memchr-obsolete.m4: New file.
22686         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
22687         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
22688         * modules/memchr (Depends-on): Add memchr-obsolete.
22689         * modules/strnlen (Depends-on): Likewise.
22690         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
22691
22692 2011-04-25  Jim Meyering  <meyering@redhat.com>
22693
22694         maint.mk: makefile_at_at_check extend and clean up
22695         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
22696         in addition to */Makefile.am.
22697         Exempt legitimate uses of @VAR@ notation, e.g.,
22698         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
22699         Remove obsolete coreutils-specific comment.
22700         Prompted by discussion here:
22701         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
22702
22703 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22704
22705         strtoul: remove dependency on strtol
22706         This is so that 'configure' need not check for strtol merely because
22707         the application needs strtoul.
22708         * modules/strtoul (Files): Add lib/strtol.c.
22709         (Depends-on): Remove strtol.
22710
22711         strtoull: remove dependency on strtoul
22712         This is like the strtoll change.
22713         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
22714         (Depends-on): Remove strtoul.
22715
22716         strtoll: remove dependency on strtol
22717         This is so that 'configure' need not check for strtol merely because
22718         the application needs strtoll.
22719         * modules/strtoll (Files): Add lib/strtol.c.
22720         (Depends-on): Remove strtol.
22721
22722 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22723
22724         inttypes: Move some configure check to module 'imaxdiv'.
22725         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
22726         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
22727         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
22728
22729 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22730
22731         inttypes: Move some configure check to module 'imaxabs'.
22732         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
22733         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
22734         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
22735
22736 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22737
22738         inttypes: Remove configure tests that are not needed since 2009-12-31.
22739         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
22740         gl_cv_header_working_inttypes_h.
22741
22742 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22743
22744         * modules/strnlen (Depends-on): Remove memchr.
22745         The strnlen implementation doesn't need the memchr module's fixes; see
22746         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
22747
22748         strtol: remove dependency on wchar
22749         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
22750         * modules/strtol (Depends-on): Remove wchar.
22751
22752 2011-04-21  Eric Blake  <eblake@redhat.com>
22753
22754         passfd: fix test regression on Linux
22755         * modules/passfd-tests (configure.ac): Correct socketpair check.
22756
22757         passfd: speed up configure and drop unused code
22758         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
22759         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
22760         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
22761         Instead of probing at configure for unix_scm_rights_bsd44_way,
22762         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
22763         check to a struct member probe.
22764         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
22765         (sendfd, recvfd): Update preprocessor checks.
22766         * modules/passfd (Files): Reflect rename, and drop unused file.
22767         (Depends-on): Drop unused dependency.
22768
22769         passfd: allow compilation on mingw
22770         * modules/sys_socket (Depends-on): Add sys_uio.
22771         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
22772         iovec and a minimal struct msghdr.
22773         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
22774         * tests/test-sys_socket.c (main): Enhance test.
22775         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
22776         guaranteed to provide what we need.
22777         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
22778         * modules/passfd-tests (Depends-on): Add sys_wait.
22779         * tests/test-passfd.c (main): Skip test on mingw, for now.
22780         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
22781         partial 'struct msghdr' implementation.
22782
22783         sys_uio: new module
22784         * modules/sys_uio: New module.
22785         * modules/sys_uio-tests: Likewise.
22786         * lib/sys_uio.in.h: New file.
22787         * m4/sys_uio_h.m4: Likewise.
22788         * tests/test-sys_uio.c: Likewise.
22789         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
22790         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
22791
22792 2011-04-20  Jim Meyering  <meyering@redhat.com>
22793
22794         useless-if-before-free: avoid false-positive
22795         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
22796         disjunct so that it too requires a terminating ";".  Without that,
22797         this script would identify as useless one statement from gcc that
22798         was not:
22799           if (aligned_ptr)
22800             free (((void **) aligned_ptr) [-1]);
22801
22802 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
22803
22804         doc: update users.txt.
22805         * users.txt: Add barcode.
22806
22807 2011-04-19  Bruno Haible  <bruno@clisp.org>
22808
22809         ioctl: Remove link dependency on native Windows.
22810         * lib/fd-hook.h: Renamed from lib/close-hook.h.
22811         (gl_close_fn, gl_ioctl_fn): New types.
22812         (struct fd_hook): Renamed from struct close_hook. Change type of
22813         private_close_fn field. Add private_ioctl_fn field.
22814         (close_hook_fn): Add parameter for primary close method.
22815         (execute_close_hooks, execute_all_close_hooks): Likewise.
22816         (ioctl_hook_fn): New type.
22817         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
22818         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22819         argument.
22820         (unregister_fd_hook): Renamed from unregister_close_hook.
22821         * lib/fd-hook.c: Renamed from lib/close-hook.c.
22822         Don't include <unistd.h>.
22823         (close): Remove undef.
22824         (anchor): Update.
22825         (execute_close_hooks): Add argument for primary close method.
22826         (execute_all_close_hooks): Likewise.
22827         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
22828         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22829         argument. Allow each argument to be NULL.
22830         (unregister_fd_hook): Renamed from unregister_close_hook.
22831         * lib/close.c (rpl_close): Pass 'close' function pointer to
22832         execute_all_close_hooks.
22833         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
22834         (primary_ioctl): New function.
22835         (ioctl): Don't call ioctlsocket here. Instead, call
22836         execute_all_ioctl_hooks.
22837         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
22838         close method.
22839         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
22840         (fd_sockets_hook): Renamed from close_sockets_hook.
22841         (gl_sockets_startup, gl_sockets_cleanup): Update.
22842         * modules/fd-hook: Renamed from modules/close-hook. Update.
22843         * modules/close (Depends-on): Add fd-hook, remove close-hook.
22844         * modules/sockets (Depends-on): Likewise.
22845         * modules/ioctl (Depends-on): Add fd-hook.
22846         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
22847         GNULIB_SOCKET.
22848
22849 2011-04-19  Bruno Haible  <bruno@clisp.org>
22850
22851         Move the support of O_NONBLOCK in open() to the 'open' module.
22852         * modules/nonblocking (Depends-on): Remove 'open'.
22853         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
22854         gl_cv_have_open_O_NONBLOCK.
22855         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
22856         O_NONBLOCK support.
22857         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
22858
22859 2011-04-17  Bruno Haible  <bruno@clisp.org>
22860
22861         pipe2: Simplify code.
22862         * lib/pipe2.c (pipe2): Reduce code duplication.
22863
22864 2011-04-17  Bruno Haible  <bruno@clisp.org>
22865
22866         nonblocking: Add comment.
22867         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
22868
22869 2011-04-17  Bruno Haible  <bruno@clisp.org>
22870
22871         nonblocking: Add tests for sockets.
22872         * tests/test-nonblocking-socket.sh: New file.
22873         * tests/test-nonblocking-socket-main.c: New file.
22874         * tests/test-nonblocking-socket-child.c: New file.
22875         * tests/test-nonblocking-socket.h: New file.
22876         * tests/socket-server.h: New file.
22877         * tests/socket-client.h: New file.
22878         * modules/nonblocking-socket-tests: New file.
22879         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
22880
22881 2011-04-17  Bruno Haible  <bruno@clisp.org>
22882
22883         nonblocking: Add tests for pipes.
22884         * tests/test-nonblocking-pipe.sh: New file.
22885         * tests/test-nonblocking-pipe-main.c: New file.
22886         * tests/test-nonblocking-pipe-child.c: New file.
22887         * tests/test-nonblocking-pipe.h: New file.
22888         * tests/test-nonblocking-writer.h: New file.
22889         * tests/test-nonblocking-reader.h: New file.
22890         * tests/test-nonblocking-misc.h: New file.
22891         * modules/nonblocking-pipe-tests: New file.
22892         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
22893
22894 2011-04-16  Bruno Haible  <bruno@clisp.org>
22895
22896         gettext: Clarify the needed programmer actions.
22897         * modules/gettext (Notice): New field.
22898         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
22899
22900 2011-04-16  Bruno Haible  <bruno@clisp.org>
22901
22902         strchrnul: Tweak last commit.
22903         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
22904         bug.
22905         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
22906         as in _GL_FUNCDECL_SYS.
22907         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
22908         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
22909
22910 2011-04-15  Eric Blake  <eblake@redhat.com>
22911
22912         strchrnul: work around cygwin bug
22913         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
22914         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
22915         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
22916         * modules/string (Makefile.am): Substitute it.
22917         * lib/string.in.h (strchrnul): Use it.
22918
22919 2011-04-15  Bruno Haible  <bruno@clisp.org>
22920
22921         Don't require lib/stdio-write.c when only module 'stdio' is used.
22922         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
22923         invocation.
22924         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
22925
22926 2011-04-14  Bruno Haible  <bruno@clisp.org>
22927
22928         Support non-blocking pipe I/O in read() on native Windows.
22929         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
22930         (read): New declaration.
22931         * lib/read.c: New file.
22932         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
22933         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
22934         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
22935         vscanf): New declarations.
22936         * lib/stdio-read.c: New file.
22937         * m4/read.m4: New file.
22938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
22939         REPLACE_READ.
22940         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
22941         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22942         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
22943         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
22944         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
22945         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22946         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22947         * modules/read: New file.
22948         * modules/nonblocking (Files): Add lib/stdio-read.c.
22949         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
22950         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
22951         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22952         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22953         * modules/pread (Depends-on): Add read.
22954         * modules/safe-read (Depends-on): Likewise.
22955         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
22956         gets, scanf, vfscanf, vscanf): Verify signatures.
22957         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
22958         problem with non-blocking pipes.
22959         * doc/posix-functions/fgetc.texi: Likewise.
22960         * doc/posix-functions/fgets.texi: Likewise.
22961         * doc/posix-functions/fread.texi: Likewise.
22962         * doc/posix-functions/fscanf.texi: Likewise.
22963         * doc/posix-functions/getc.texi: Likewise.
22964         * doc/posix-functions/getchar.texi: Likewise.
22965         * doc/posix-functions/gets.texi: Likewise.
22966         * doc/posix-functions/scanf.texi: Likewise.
22967         * doc/posix-functions/vfscanf.texi: Likewise.
22968         * doc/posix-functions/vscanf.texi: Likewise.
22969
22970 2011-04-14  Bruno Haible  <bruno@clisp.org>
22971
22972         Support non-blocking pipe I/O in write() on native Windows.
22973         * lib/write.c (rpl_write): Split a write request that failed merely
22974         because the byte count was larger than the pipe buffer's size.
22975         * doc/posix-functions/write.texi: Mention the problem with large byte
22976         counts.
22977
22978 2011-04-14  Bruno Haible  <bruno@clisp.org>
22979
22980         wchar: Ensure that wchar_t gets defined on uClibc.
22981         * lib/wchar.in.h: On uClibc, include <stddef.h>.
22982         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
22983
22984 2011-04-13  Bruno Haible  <bruno@clisp.org>
22985
22986         safe-write, full-read: Avoid unnecessary compilation units.
22987         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
22988         (Depends-on): Remove safe-read. Add ssize_t.
22989         * modules/full-read (Files): Add lib/full-write.c.
22990         (Depends-on): Add full-write.
22991
22992 2011-04-13  Bruno Haible  <bruno@clisp.org>
22993
22994         Support non-blocking pipe I/O and SIGPIPE in pwrite().
22995         * modules/pwrite (Depends-on): Add 'write'.
22996
22997 2011-04-13  Bruno Haible  <bruno@clisp.org>
22998
22999         Support non-blocking pipe I/O in write() on native Windows.
23000         * lib/unistd.in.h (write): Enable replacement also if
23001         GNULIB_UNISTD_H_NONBLOCKING is 1.
23002         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
23003         (rpl_write): When failing to write on a non-blocking pipe, change
23004         errno from ENOSPC to EAGAIN.
23005         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
23006         putchar, puts, vfprintf, vprintf): Enable replacement also if
23007         GNULIB_STDIO_H_NONBLOCKING is 1.
23008         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
23009         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
23010         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
23011         CALL_WITH_SIGPIPE_EMULATION.
23012         (CALL_WITH_SIGPIPE_EMULATION): Use them.
23013         * m4/nonblocking.m4: New file.
23014         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
23015         for non-blocking I/O support.
23016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23017         GNULIB_UNISTD_H_NONBLOCKING.
23018         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
23019         required for non-blocking I/O support.
23020         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
23021         * modules/nonblocking (Files): Add m4/nonblocking.m4,
23022         lib/stdio-write.c, m4/asm-underscore.m4.
23023         (Depends-on): Add stdio, unistd.
23024         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
23025         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
23026         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
23027         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
23028         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
23029         problem with non-blocking pipes.
23030         * doc/posix-functions/fputc.texi: Likewise.
23031         * doc/posix-functions/fputs.texi: Likewise.
23032         * doc/posix-functions/fwrite.texi: Likewise.
23033         * doc/posix-functions/printf.texi: Likewise.
23034         * doc/posix-functions/putc.texi: Likewise.
23035         * doc/posix-functions/putchar.texi: Likewise.
23036         * doc/posix-functions/puts.texi: Likewise.
23037         * doc/posix-functions/vfprintf.texi: Likewise.
23038         * doc/posix-functions/vprintf.texi: Likewise.
23039         * doc/posix-functions/write.texi: Likewise.
23040
23041 2011-04-10  Jim Meyering  <meyering@redhat.com>
23042
23043         maint.mk: prohibit doubled words
23044         Detect them also when they're separated by a newline.
23045         There are 3 ways to customize it:
23046           - disable the test on a per file basis, as usual with rules using
23047             $(VC_LIST_EXCEPT)
23048           - replace the default doubled-word-selecting regexp (affects all files)
23049           - ignore a particular file-vs-doubled-word match
23050         I nearly used that last one to ignore the "is is" match in
23051         coreutils' NEWS file, since the text was "ls -is is ..."
23052         To do that, I would have added this line to cfg.mk:
23053           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
23054         but it would have ignored any "is is" match in NEWS.
23055         Low probability, but still...
23056         Instead, I changed the text, slightly:
23057           -  ls -is is now consistent with ls -lis in ignoring values returned
23058           +  "ls -is" is now consistent with ls -lis in ignoring values returned
23059         * top/maint.mk (prohibit_double_word_RE_): Provide default.
23060         (prohibit_doubled_word_): Define.
23061         (sc_prohibit_doubled_word): New rule.
23062         (sc_prohibit_the_the): Remove.  Subsumed by the above.
23063
23064 2011-04-10  Jim Meyering  <meyering@redhat.com>
23065
23066         maint: fix doubled-word typo in comment
23067         * m4/gethostname.m4: s/is is/it is/
23068         * m4/getdomainname.m4: Likewise.
23069
23070 2011-04-10  Jim Meyering  <meyering@redhat.com>
23071
23072         maint: remove doubled word: s/it it/it/
23073         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
23074
23075 2011-04-10  Jim Meyering  <meyering@redhat.com>
23076
23077         maint.mk: remove useless semicolon and backslash
23078         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
23079         semicolon and backslash.
23080
23081 2011-04-10  Bruno Haible  <bruno@clisp.org>
23082
23083         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
23084         * modules/stdint-tests (Depends-on): Add wchar.
23085
23086 2011-04-10  Jim Meyering  <meyering@redhat.com>
23087
23088         maint: remove doubled words in comments, e.g., s/a a/a/
23089         * lib/strptime.c (day_of_the_week): s/the the/the/
23090         * tests/test-chown.h (test_chown): s/a a/a/
23091
23092         test-chown.h: correct a cast
23093         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
23094         when the destination is a stat.st_gid.
23095
23096 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
23097
23098         getaddrinfo: Fix test for sa_len member.
23099         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
23100         include <sys/types.h> before <sys/socket.h>.
23101
23102 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23103
23104         maint: change "can not" to "cannot"
23105         * doc/posix-functions/iconv.texi (iconv): This one crossed line
23106         boundaries.
23107
23108 2011-04-09  Jim Meyering  <meyering@redhat.com>
23109
23110         maint: change "a a" to "a"
23111         * tests/test-lchown.h (test_lchown): s/a a/a/
23112
23113         maint.mk: prohibit \<the the\>
23114         * top/maint.mk (sc_prohibit_the_the): New rule.
23115
23116         maint: fix "the the" in comment
23117         * lib/count-one-bits.h: s/the the/the/
23118
23119         maint: change "can not" to "cannot"
23120         But do not change the occurrences in maintain.texi or in
23121         build-aux/po/Makefile.in.in, which I presume comes from gettext.
23122         * doc/gnulib-tool.texi: s/can not/cannot/
23123         * doc/posix-functions/accept.texi (accept): Likewise.
23124         * doc/posix-functions/socket.texi (socket): Likewise.
23125         * lib/mbrtowc.c: Likewise.
23126
23127         maint.mk: prohibit use of "can not"
23128         * top/maint.mk (sc_prohibit_can_not): New rule.
23129         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
23130
23131 2011-04-09  Bruno Haible  <bruno@clisp.org>
23132
23133         careadlinkat: Guard against misuse of careadlinkatcwd.
23134         * lib/careadlinkat.c: Include <stdlib.h>.
23135         (careadlinkatcwd): Check that the fd argument is as expected.
23136
23137 2011-04-09  Bruno Haible  <bruno@clisp.org>
23138
23139         careadlinkat: Use common coding style.
23140         * lib/careadlinkat.c: Move gnulib includes after system includes.
23141
23142 2011-04-09  Bruno Haible  <bruno@clisp.org>
23143
23144         careadlinkat: Clarify specification.
23145         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
23146         (careadlinkatcwd): Add comment.
23147         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
23148
23149 2011-04-09  Bruno Haible  <bruno@clisp.org>
23150
23151         areadlinkat: Avoid link error on many platforms.
23152         * modules/areadlinkat (Depends-on): Add areadlink.
23153
23154 2011-04-09  Bruno Haible  <bruno@clisp.org>
23155
23156         allocator, careadlinkat: Fix double-inclusion guard.
23157         * lib/allocator.h: Fix double-inclusion guard.
23158         * lib/careadlinkat.h: Likewise.
23159
23160 2011-04-09  Bruno Haible  <bruno@clisp.org>
23161
23162         relocatable-prog-wrapper: Update after module 'areadlink' changed.
23163         * lib/relocwrapper.c: Update dependencies hierarchy.
23164         * build-aux/install-reloc: Update list of files to be compiled.
23165         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
23166         lib/allocator.[hc].
23167
23168 2011-04-08  Eric Blake  <eblake@redhat.com>
23169
23170         strftime: silence gnulib-tool warning
23171         * modules/strftime-tests (Depends-on): Drop automatic dependency.
23172
23173 2011-04-08  Bruno Haible  <bruno@clisp.org>
23174
23175         verify: Fix syntax error with GCC 4.6 in C++ mode.
23176         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
23177         (HAVE_STATIC_ASSERT): New macro.
23178         (verify_true, verify): Use 'static_assert' if it is supported and
23179         '_Static_assert' is not supported.
23180
23181 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
23182
23183         allocator: New module.
23184         * modules/allocator, lib/allocator.c: New files.
23185         * lib/allocator.h (stdlib_allocator): New decl.
23186         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
23187         Remove.  Do not include <stdlib.h>.
23188         (careadlinkat): Use stdlib_allocator instead of rolling our own.
23189         * modules/careadlinkat (Files): Remove lib/allocator.h.
23190         (Depends-on): Add allocator.
23191
23192         stdlib: let modules use system malloc, realloc
23193         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
23194         if !_GL_USE_STDLIB_ALLOC.
23195         (malloc, realloc): Limit this change to a smaller scope.
23196
23197         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
23198         (malloc, realloc): Don't #undef; no longer needed.
23199         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23200         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23201         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23202         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23203         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23204         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23205         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23206         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23207
23208         careadlinkat: rename members to avoid problem
23209         * lib/allocator.h (struct allocator): Rename members from
23210         malloc/realloc to allocate/reallocate, to avoid problems if malloc
23211         and realloc are #define'd.  Reported by Eric Blake in
23212         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
23213         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
23214
23215 2011-04-08  Eric Blake  <eblake@redhat.com>
23216
23217         nonblocking: reduce dependency
23218         * tests/test-nonblocking.c: Only test sockets when in use.
23219         * modules/nonblocking-tests (Depends-on): Drop socket.
23220         (Makefile.am): Link even if sockets are not present.
23221         * modules/pipe2-tests (Makefile.am): Likewise.
23222         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
23223
23224         pipe2: fix O_NONBLOCK support on mingw
23225         * modules/pipe2 (Depends-on): Add nonblocking.
23226         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
23227         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
23228         * tests/test-nonblocking.c (main): Likewise.
23229         * modules/pipe2-tests (Makefile.am): Avoid link failure.
23230
23231         fcntl-h: fix O_ACCMODE on cygwin
23232         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
23233         * lib/fcntl.in.h (O_ACCMODE): Fix it.
23234
23235         pipe-filter: drop O_NONBLOCK workarounds
23236         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
23237         * modules/pipe-filter-ii (Depends-on): Likewise.
23238         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
23239
23240         nonblocking: provide O_NONBLOCK for mingw
23241         * modules/nonblocking (Depends-on): Add open.
23242         (configure.ac): Set new witness macro.
23243         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
23244         * modules/fcntl-h (Makefile.am): Substitute it.
23245         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
23246         nonblocking module is in use.
23247         * lib/nonblocking.c: Adjust portability test.
23248         * lib/open.c (open): Don't let native open see gnulib flag.
23249         * tests/test-fcntl-h.c (main): Enhance test.
23250         * tests/test-open.h (test_open): Likewise.
23251         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
23252
23253         careadlinkat: fix compilation error on mingw
23254         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
23255         within struct allocator.
23256
23257 2011-04-06  Eric Blake  <eblake@redhat.com>
23258
23259         binary-io: relicense under LGPLv2+
23260         * modules/binary-io (License): Relax to LGPLv2+.
23261         Requested for libvirt, and required by pipe2.
23262
23263 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
23264
23265         verify: use _Static_assert if available
23266         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
23267         (verify_true, verify): Use it if available.  This generates better
23268         diagnostics with GCC 4.6.0 and later.
23269
23270 2011-04-05  Bruno Haible  <bruno@clisp.org>
23271
23272         Remove leftover generated .h files after config.status changed.
23273
23274         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
23275         GL_GENERATE_ALLOCA_H.
23276         * modules/alloca-opt (Makefile.am): Remove alloca.h if
23277         GL_GENERATE_ALLOCA_H evaluates to false.
23278
23279         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
23280         GL_GENERATE_ARGZ_H.
23281         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
23282         evaluates to false.
23283
23284         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
23285         GL_GENERATE_BYTESWAP_H.
23286         * modules/byteswap (Makefile.am): Remove byteswap.h if
23287         GL_GENERATE_BYTESWAP_H evaluates to false.
23288
23289         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
23290         GL_GENERATE_ERRNO_H.
23291         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
23292         evaluates to false.
23293
23294         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
23295         GL_GENERATE_FLOAT_H.
23296         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
23297         evaluates to false.
23298
23299         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
23300         GL_GENERATE_FNMATCH_H.
23301         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
23302         GL_GENERATE_FNMATCH_H evaluates to false.
23303
23304         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
23305         GL_GENERATE_GLOB_H.
23306         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
23307         evaluates to false.
23308
23309         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
23310         automake conditional GL_GENERATE_ICONV_H.
23311         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
23312         evaluates to false.
23313
23314         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
23315         GL_GENERATE_NETINET_IN_H.
23316         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
23317         GL_GENERATE_NETINET_IN_H evaluates to false.
23318
23319         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
23320         conditional GL_GENERATE_PTHREAD_H.
23321         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
23322         * modules/pthread (Makefile.am): Remove pthread.h if
23323         GL_GENERATE_PTHREAD_H evaluates to false.
23324
23325         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
23326         GL_GENERATE_SCHED_H.
23327         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
23328         evaluates to false.
23329
23330         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
23331         conditional GL_GENERATE_SELINUX_CONTEXT_H.
23332         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
23333         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
23334
23335         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
23336         GL_GENERATE_STDARG_H.
23337         * modules/stdarg (Makefile.am): Remove stdarg.h if
23338         GL_GENERATE_STDARG_H evaluates to false.
23339
23340         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
23341         GL_GENERATE_STDBOOL_H.
23342         * modules/stdbool (Makefile.am): Remove stdbool.h if
23343         GL_GENERATE_STDBOOL_H evaluates to false.
23344
23345         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
23346         conditional GL_GENERATE_STDDEF_H.
23347         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
23348         * modules/stddef (Makefile.am): Remove stddef.h if
23349         GL_GENERATE_STDDEF_H evaluates to false.
23350
23351         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
23352         GL_GENERATE_STDINT_H.
23353         * modules/stdint (Makefile.am): Remove stdint.h if
23354         GL_GENERATE_STDINT_H evaluates to false.
23355
23356         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
23357         GL_GENERATE_SYSEXITS_H.
23358         * modules/sysexits (Makefile.am): Remove sysexits.h if
23359         GL_GENERATE_SYSEXITS_H evaluates to false.
23360
23361         Reported by Karl Berry and Ralf Wildenhues.
23362
23363 2011-04-05  Bruno Haible  <bruno@clisp.org>
23364
23365         Ensure to rebuild generated .h files when config.status has changed.
23366         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
23367         config.status.
23368         * modules/ctype (Makefile.am): Likewise.
23369         * modules/dirent (Makefile.am): Likewise.
23370         * modules/errno (Makefile.am): Likewise.
23371         * modules/fcntl-h (Makefile.am): Likewise.
23372         * modules/float (Makefile.am): Likewise.
23373         * modules/getopt-posix (Makefile.am): Likewise.
23374         * modules/glob (Makefile.am): Likewise.
23375         * modules/iconv-h (Makefile.am): Likewise.
23376         * modules/inttypes (Makefile.am): Likewise.
23377         * modules/langinfo (Makefile.am): Likewise.
23378         * modules/locale (Makefile.am): Likewise.
23379         * modules/math (Makefile.am): Likewise.
23380         * modules/netdb (Makefile.am): Likewise.
23381         * modules/netinet_in (Makefile.am): Likewise.
23382         * modules/poll-h (Makefile.am): Likewise.
23383         * modules/pthread (Makefile.am): Likewise.
23384         * modules/pty (Makefile.am): Likewise.
23385         * modules/sched (Makefile.am): Likewise.
23386         * modules/search (Makefile.am): Likewise.
23387         * modules/selinux-h (Makefile.am): Likewise.
23388         * modules/signal (Makefile.am): Likewise.
23389         * modules/spawn (Makefile.am): Likewise.
23390         * modules/stdarg (Makefile.am): Likewise.
23391         * modules/stdbool (Makefile.am): Likewise.
23392         * modules/stddef (Makefile.am): Likewise.
23393         * modules/stdint (Makefile.am): Likewise.
23394         * modules/stdio (Makefile.am): Likewise.
23395         * modules/stdlib (Makefile.am): Likewise.
23396         * modules/string (Makefile.am): Likewise.
23397         * modules/strings (Makefile.am): Likewise.
23398         * modules/sys_file (Makefile.am): Likewise.
23399         * modules/sys_ioctl (Makefile.am): Likewise.
23400         * modules/sys_select (Makefile.am): Likewise.
23401         * modules/sys_socket (Makefile.am): Likewise.
23402         * modules/sys_stat (Makefile.am): Likewise.
23403         * modules/sys_time (Makefile.am): Likewise.
23404         * modules/sys_times (Makefile.am): Likewise.
23405         * modules/sys_utsname (Makefile.am): Likewise.
23406         * modules/sys_wait (Makefile.am): Likewise.
23407         * modules/sysexits (Makefile.am): Likewise.
23408         * modules/termios (Makefile.am): Likewise.
23409         * modules/time (Makefile.am): Likewise.
23410         * modules/unistd (Makefile.am): Likewise.
23411         * modules/wchar (Makefile.am): Likewise.
23412         * modules/wctype-h (Makefile.am): Likewise.
23413         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
23414
23415 2011-04-05  Bruno Haible  <bruno@clisp.org>
23416
23417         pipe2: Relicense under LGPLv2+.
23418         * modules/pipe2 (License): Change to LGPLv2+.
23419         Requested by Eric Blake, for libvirt.
23420
23421 2011-04-05  Bruce Korb  <bkorb@gnu.org>
23422
23423         bootstrap: compute gnulib_extra_files after updating build_aux
23424         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
23425         change build_aux or also supply gnulib_extra_files.  Handle correctly.
23426
23427 2011-04-05  Eric Blake  <eblake@redhat.com>
23428
23429         bootstrap: preserve git whitelist item sorting
23430         * build-aux/bootstrap (sort_patterns): New function.
23431         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
23432
23433 2011-04-05  Simon Josefsson  <simon@josefsson.org>
23434
23435         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
23436         sc_space_tab check.
23437
23438 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
23439
23440         areadlink, areadlinkat: rewrite in terms of careadlinkat
23441         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
23442         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
23443         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
23444         (malloc, realloc): Remove #undefs.
23445         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
23446         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
23447         readlink, ssize_t, stdint, unistd.
23448         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
23449         areadlink, stdint.
23450
23451         careadlinkat: new module
23452         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
23453         * modules/careadlinkat: New files, written by me with
23454         a review and feedback from Ben Pfaff in
23455         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
23456
23457 2011-04-01  Bruno Haible  <bruno@clisp.org>
23458
23459         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
23460         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
23461         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
23462         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
23463         Reported by Bruce Korb <bruce.korb@gmail.com>.
23464
23465 2011-04-01  Bruno Haible  <bruno@clisp.org>
23466
23467         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
23468         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
23469         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
23470         * modules/wcpcpy (Depends-on): Add extensions.
23471         * modules/wcpncpy (Depends-on): Likewise.
23472         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
23473         systems.
23474         * doc/posix-functions/wcpncpy.texi: Likewise.
23475         * doc/posix-functions/wcwidth.texi: Likewise.
23476
23477 2011-03-31  Eric Blake  <eblake@redhat.com>
23478
23479         nonblocking: fix mingw test failures
23480         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
23481         non-blocking flag on regular file.
23482         (get_nonblocking_flag): Set errno on invalid fd.
23483         * tests/test-nonblocking.c (main): Avoid test failure on
23484         directories if fchdir is not active.
23485         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
23486
23487 2011-03-31  Bruno Haible  <bruno@clisp.org>
23488
23489         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
23490         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
23491         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
23492         Reported by Simon Josefsson <simon@josefsson.org>.
23493
23494 2011-03-31  Bruno Haible  <bruno@clisp.org>
23495         and Eric Blake  <eblake@redhat.com>
23496
23497         nonblocking: new module
23498         * modules/nonblocking: New module.
23499         * modules/nonblocking-tests: Likewise.
23500         * lib/nonblocking.h: New file.
23501         * lib/nonblocking.c: Likewise.
23502         * tests/test-nonblocking.c: New test.
23503         * lib/ioctl.c (ioctl) [mingw]: Update comment.
23504
23505 2011-03-30  Bruno Haible  <bruno@clisp.org>
23506
23507         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
23508         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
23509         instead of 'printf' format for GCC >= 4.4.
23510         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
23511         (fprintf, printf, vfprintf, vprintf): Declare with
23512         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
23513         the system's vfprintf() function.
23514         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
23515
23516 2011-03-30  Eric Blake  <eblake@redhat.com>
23517
23518         passfd: fix scoping bug
23519         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
23520         before sendmsg/recvmsg.
23521
23522         passfd: standardize coding conventions
23523         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
23524         can be learned at compile time.
23525         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
23526         ifdefs.
23527         (sendfd, recvfd): Follow gnulib code conventions.
23528
23529         passfd: fix incorrect sendmsg arguments
23530         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
23531         incorrect msg_controllen value.
23532         * modules/passfd-tests (Depends-on): Check for alarm.
23533         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
23534         Reported by Bastien ROUCARIES.
23535
23536 2011-03-30  Bruno Haible  <bruno@clisp.org>
23537
23538         c-strcasestr: Relicense under LGPLv2+.
23539         * modules/c-strcasestr (License): Change to LGPLv2+.
23540         Requested by Eric Blake, for libvirt.
23541
23542 2011-03-30  Simon Josefsson  <simon@josefsson.org>
23543
23544         * users.txt: Add libidn2.  Fix libtasn1 link.
23545
23546 2011-03-30  Jim Meyering  <meyering@redhat.com>
23547
23548         tests: readlink* ("",... fails with EINVAL on newer kernels
23549         readlink and readlinkat have typically failed with ENOENT for
23550         the invalid, empty file name,  "".  However, with the advent
23551         of linux-2.6.39, they fail with EINVAL.
23552         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
23553         when operating on the empty file name.
23554         * tests/test-readlink.h (test_readlink): Likewise.
23555
23556 2011-03-29  Bruno Haible  <bruno@clisp.org>
23557
23558         Relicense some modules under LGPLv2+, for libidn2.
23559         * modules/array-mergesort (License): Change to LGPLv2+.
23560         * modules/c-strcaseeq (License): Likewise.
23561         * modules/striconveh (License): Likewise.
23562         * modules/striconveha (License): Likewise.
23563         * modules/uniconv/base (License): Likewise.
23564         * modules/uniconv/u8-conv-from-enc (License): Likewise.
23565         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
23566         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
23567         * modules/unictype/base (License): Likewise.
23568         * modules/unictype/bidiclass-of (License): Likewise.
23569         * modules/unictype/category-M (License): Likewise.
23570         * modules/unictype/category-none (License): Likewise.
23571         * modules/unictype/category-of (License): Likewise.
23572         * modules/unictype/category-test (License): Likewise.
23573         * modules/unictype/category-test-withtable (License): Likewise.
23574         * modules/unictype/combining-class (License): Likewise.
23575         * modules/unictype/joiningtype-of (License): Likewise.
23576         * modules/unictype/scripts (License): Likewise.
23577         * modules/uninorm/base (License): Likewise.
23578         * modules/uninorm/canonical-decomposition (License): Likewise.
23579         * modules/uninorm/composition (License): Likewise.
23580         * modules/uninorm/decompose-internal (License): Likewise.
23581         * modules/uninorm/decomposition-table (License): Likewise.
23582         * modules/uninorm/nfc (License): Likewise.
23583         * modules/uninorm/nfd (License): Likewise.
23584         * modules/uninorm/u32-normalize (License): Likewise.
23585         * modules/unistr/base (License): Likewise.
23586         * modules/unistr/u32-cpy (License): Likewise.
23587         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
23588         * modules/unistr/u32-to-u8 (License): Likewise.
23589         * modules/unistr/u32-uctomb (License): Likewise.
23590         * modules/unistr/u8-check (License): Likewise.
23591         * modules/unistr/u8-mblen (License): Likewise.
23592         * modules/unistr/u8-mbtouc (License): Likewise.
23593         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
23594         * modules/unistr/u8-mbtoucr (License): Likewise.
23595         * modules/unistr/u8-prev (License): Likewise.
23596         * modules/unistr/u8-strlen (License): Likewise.
23597         * modules/unistr/u8-to-u32 (License): Likewise.
23598         * modules/unistr/u8-uctomb (License): Likewise.
23599         * modules/unitypes (License): Likewise.
23600         Requested by Simon Josefsson.
23601
23602 2011-03-29  Simon Josefsson  <simon@josefsson.org>
23603
23604         lib-symbol-visibility: Add a notice.
23605         * modules/lib-symbol-visibility (Notice): New field.
23606
23607 2011-03-29  Bruno Haible  <bruno@clisp.org>
23608
23609         getaddrinfo: Doc fix.
23610         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
23611         section "fixed in Gnulib".
23612
23613 2011-03-28  Simon Josefsson  <simon@josefsson.org>
23614
23615         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
23616         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
23617
23618 2011-03-26  Bruno Haible  <bruno@clisp.org>
23619
23620         unictype/property-byname: Reduce the number of load-time relocations.
23621         * lib/unictype/pr_byname.c: Include <stdlib.h>.
23622         (UC_PROPERTY_INDEX_*): New enumeration values.
23623         (uc_property_byname): Convert an index from the lookup table to an
23624         uc_property_t.
23625         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
23626         values.
23627
23628 2011-03-26  Bruno Haible  <bruno@clisp.org>
23629
23630         unictype/property-byname: Allow omitted word separators and aliases.
23631         * lib/unictype/pr_byname.gperf: Add property names without word
23632         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
23633         for 'space'.
23634
23635 2011-03-26  Bruno Haible  <bruno@clisp.org>
23636
23637         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
23638         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
23639         also hyphens to space.
23640         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
23641         without spaces.
23642         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
23643
23644 2011-03-26  Bruno Haible  <bruno@clisp.org>
23645
23646         unictype/joiningtype-byname: Recognize long names as well.
23647         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
23648         a long name.
23649         * lib/unictype/joiningtype_byname.c: Include <string.h>,
23650         unictype/joiningtype_byname.h.
23651         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
23652         * lib/unictype/joiningtype_byname.gperf: New file.
23653         * modules/unictype/joiningtype-byname (Files): Add
23654         lib/unictype/joiningtype_byname.gperf.
23655         (Depends-on): Add gperf.
23656         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
23657         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
23658         long names.
23659
23660         Tests for module 'unictype/joiningtype-longname'.
23661         * modules/unictype/joiningtype-longname-tests: New file.
23662         * tests/unictype/test-joiningtype_longname.c: New file.
23663
23664         New module 'unictype/joiningtype-longname'.
23665         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
23666         * lib/unictype/joiningtype_longname.c: New file.
23667         * modules/unictype/joiningtype-longname: New file.
23668         * modules/unictype/joiningtype-all (Depends-on): Add
23669         unictype/joiningtype-longname.
23670
23671 2011-03-26  Bruno Haible  <bruno@clisp.org>
23672
23673         unictype/bidiclass-byname: Recognize long names as well.
23674         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
23675         name.
23676         * lib/unictype/bidi_byname.c: Include <string.h>,
23677         unictype/bidi_byname.h.
23678         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
23679         * lib/unictype/bidi_byname.gperf: New file.
23680         * modules/unictype/bidiclass-byname (Files): Add
23681         lib/unictype/bidi_byname.gperf.
23682         (Depends-on): Add gperf.
23683         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
23684         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
23685         long names.
23686
23687         Tests for module 'unictype/bidiclass-longname'.
23688         * modules/unictype/bidiclass-longname-tests: New file.
23689         * tests/unictype/test-bidi_longname.c: New file.
23690
23691         New module 'unictype/bidiclass-longname'.
23692         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
23693         * lib/unictype/bidi_longname.c: New file.
23694         * modules/unictype/bidiclass-longname: New file.
23695         * modules/unictype/bidiclass-all (Depends-on): Add
23696         unictype/bidiclass-longname.
23697
23698 2011-03-26  Bruno Haible  <bruno@clisp.org>
23699
23700         unictype/bidi*: Rename modules.
23701         * modules/unictype/bidiclass-all: Renamed from
23702         modules/unictype/bidicategory-all.
23703         * modules/unictype/bidiclass-name: Renamed from
23704         modules/unictype/bidiclass-name.
23705         (Description): Update.
23706         * modules/unictype/bidiclass-name-tests: Renamed from
23707         modules/unictype/bidicategory-name-tests.
23708         * modules/unictype/bidiclass-byname: Renamed from
23709         modules/unictype/bidicategory-byname.
23710         (Description): Update.
23711         * modules/unictype/bidiclass-byname-tests: Renamed from
23712         modules/unictype/bidicategory-byname-tests.
23713         * modules/unictype/bidiclass-of: Renamed from
23714         modules/unictype/bidicategory-of.
23715         (Description): Update.
23716         * modules/unictype/bidiclass-of-tests: Renamed from
23717         modules/unictype/bidicategory-of-tests.
23718         * modules/unictype/bidiclass-test: Renamed from
23719         modules/unictype/bidicategory-test.
23720         (Description): Update.
23721         * modules/unictype/bidiclass-test-tests: Renamed from
23722         modules/unictype/bidicategory-test-tests.
23723         * modules/unictype/bidicategory-all: New file, a simple redirection.
23724         * modules/unictype/bidicategory-name: Likewise.
23725         * modules/unictype/bidicategory-byname: Likewise.
23726         * modules/unictype/bidicategory-of: Likewise.
23727         * modules/unictype/bidicategory-test: Likewise.
23728         * modules/unictype/property-bidi-* (Dependencies): Update.
23729         * lib/unictype/bidi_*.c: Update comment.
23730
23731 2011-03-26  Bruno Haible  <bruno@clisp.org>
23732
23733         unictype/bidi*: Rename functions, part 2.
23734         * modules/unictype/bidicategory-name (configure.ac): Update required
23735         libunistring version.
23736         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
23737
23738 2011-03-25  Bruno Haible  <bruno@clisp.org>
23739
23740         New module 'unictype/combining-class-all'.
23741         * modules/unictype/combining-class-all: New file.
23742
23743         Tests for module 'unictype/combining-class-byname'.
23744         * modules/unictype/combining-class-byname-tests: New file.
23745         * tests/unictype/test-combiningclass_byname.c: New file.
23746
23747         New module 'unictype/combining-class-byname'.
23748         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
23749         * lib/unictype/combiningclass_byname.c: New file.
23750         * lib/unictype/combiningclass_byname.gperf: New file.
23751         * modules/unictype/combining-class-byname: New file.
23752
23753         Tests for module 'unictype/combining-class-longname'.
23754         * modules/unictype/combining-class-longname-tests: New file.
23755         * tests/unictype/test-combiningclass_longname.c: New file.
23756
23757         New module 'unictype/combining-class-longname'.
23758         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
23759         * lib/unictype/combiningclass_longname.c: New file.
23760         * modules/unictype/combining-class-longname: New file.
23761
23762         Tests for module 'unictype/combining-class-name'.
23763         * modules/unictype/combining-class-name-tests: New file.
23764         * tests/unictype/test-combiningclass_name.c: New file.
23765
23766         New module 'unictype/combining-class-name'.
23767         * lib/unictype.in.h (uc_combining_class_name): New declaration.
23768         * lib/unictype/combiningclass_name.c: New file.
23769         * modules/unictype/combining-class-name: New file.
23770
23771 2011-03-25  Bruno Haible  <bruno@clisp.org>
23772
23773         unictype/combining-class: Rename source files.
23774         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
23775         of unictype/combining.h.
23776         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
23777         Update.
23778         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
23779         * modules/unictype/combining-class (Description): Fix.
23780         (Files, Makefile.am): Update.
23781         * tests/unictype/test-combiningclass.c: Renamed from
23782         tests/unictype/test-combining.c.
23783         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
23784
23785 2011-03-25  Bruno Haible  <bruno@clisp.org>
23786
23787         unictype: Update list of canonical combining classes.
23788         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
23789
23790 2011-03-25  Bruno Haible  <bruno@clisp.org>
23791
23792         unictype/category-byname: Recognize long names as well.
23793         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
23794         a long name.
23795         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
23796         unictype/categ_byname.h.
23797         (UC_CATEGORY_INDEX_*): New enumeration values.
23798         (uc_general_category_byname): Use uc_general_category_lookup and
23799         convert from index to value.
23800         * lib/unictype/categ_byname.gperf: New file.
23801         * modules/unictype/category-byname (Files): Add
23802         lib/unictype/categ_byname.gperf.
23803         (Depends-on): Add gperf.
23804         (Makefile.am): Add rule for generating unictype/categ_byname.h.
23805         * tests/unictype/test-categ_byname.c (main): Test the recognition of
23806         long names.
23807
23808         Tests for module 'unictype/category-longname'.
23809         * modules/unictype/category-longname-tests: New file.
23810         * tests/unictype/test-categ_longname.c: New file.
23811
23812         New module 'unictype/category-longname'.
23813         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
23814         * lib/unictype/categ_longname.c: New file.
23815         * modules/unictype/category-longname: New file.
23816         * modules/unictype/category-all (Depends-on): Add it.
23817
23818 2011-03-25  Bruno Haible  <bruno@clisp.org>
23819
23820         Tests for module 'unictype/category-LC'.
23821         * modules/unictype/category-LC-tests: New file.
23822         * tests/unictype/test-categ_LC.c: New file, automatically generated.
23823
23824         New module 'unictype/category-LC'.
23825         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
23826         (UC_CATEGORY_LC): New declaration.
23827         (UC_CASED_LETTER): New macro.
23828         * lib/gen-uni-tables.c (is_category_LC): New function.
23829         (output_categories): Also handle category LC.
23830         (UC_CATEGORY_MASK_LC): New enumeration value.
23831         (general_category_byname): Also handle category LC.
23832         * lib/unictype/categ_LC.c: New file.
23833         * lib/unictype/categ_LC.h: New file, automatically generated.
23834         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
23835         category LC.
23836         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
23837         * modules/unictype/category-LC: New file.
23838         * modules/unictype/category-byname (Depends-on): Add
23839         unictype/category-LC.
23840         * modules/unictype/category-all (Depends-on): Likewise.
23841
23842 2011-03-25  Eric Blake  <eblake@redhat.com>
23843
23844         xmalloc: revert yesterday's regression
23845         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
23846         realloc's underlying behavior (allowing allocation of zero-size
23847         objects, especially if malloc-gnu is also in use).
23848
23849 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
23850
23851         maint.mk: add missing version to VC-tag
23852         * top/maint.mk: git tag was missing actual tag name; add it.
23853
23854         valgrind: do leak checking, and exit with code 1 on error (not 0)
23855         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
23856         to VALGRIND.
23857
23858 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
23859
23860         posix-modules: say what it does.
23861         * posix-modules: Add a line to the --help output saying what it does.
23862
23863 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
23864
23865         xmalloc: Do not leak if underlying realloc is C99 compatible.
23866         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
23867         This avoids a leak on C99-based systems.  See
23868         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
23869
23870 2011-03-24  Eric Blake  <eblake@redhat.com>
23871
23872         realloc: document portability problem
23873         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
23874         passing 0 size to realloc.
23875
23876 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
23877
23878         doc: update users.txt
23879         * users.txt: Add cvsps, tmpwatch
23880
23881 2011-03-23  Matt Rice  <ratmice@gmail.com>
23882
23883         doc: update users.txt
23884         * users.txt: Add gdb.
23885
23886 2011-03-23  Jim Meyering  <meyering@redhat.com>
23887
23888         doc: update users.txt
23889         Looking through matches up to the following URL (there are still
23890         several more pages), I found several projects that use gnulib:
23891         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
23892         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
23893         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
23894
23895 2011-03-22  Bruno Haible  <bruno@clisp.org>
23896
23897         unictype/bidi*: Rename functions.
23898         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
23899         uc_bidi_class, uc_is_bidi_class): New declarations.
23900         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
23901         uc_bidi_category_byname.
23902         (uc_bidi_category_byname): New function.
23903         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
23904         u_bidi_category_name.
23905         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
23906         (uc_bidi_category_name): New function.
23907         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
23908         uc_bidi_category.
23909         (uc_bidi_category): New function.
23910         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
23911         uc_is_bidi_category. Invoke uc_bidi_class.
23912         (uc_is_bidi_category): New function.
23913         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
23914         instead of uc_bidi_category_byname.
23915         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
23916         instead of uc_bidi_category_name.
23917         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
23918         uc_bidi_category.
23919         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
23920         instead of uc_is_bidi_category.
23921
23922 2011-03-21  Bruno Haible  <bruno@clisp.org>
23923
23924         New module 'unictype/joininggroup-all'.
23925         * modules/unictype/joininggroup-all: New file.
23926
23927         Tests for module 'unictype/joininggroup-of'.
23928         * modules/unictype/joininggroup-of-tests: New file.
23929         * tests/unictype/test-joininggroup_of.c: New file.
23930         * tests/unictype/test-joininggroup_of.h: New file, automatically
23931         generated by gen-uni-tables.
23932
23933         New module 'unictype/joininggroup-of'.
23934         * modules/unictype/joininggroup-of: New file.
23935         * lib/unictype/joininggroup_of.c: New file.
23936         * lib/unictype/joininggroup_of.h: New file, automatically generated by
23937         gen-uni-tables.
23938
23939         Tests for module 'unictype/joininggroup-byname'.
23940         * modules/unictype/joininggroup-byname-tests: New file.
23941         * tests/unictype/test-joininggroup_byname.c: New file.
23942
23943         New module 'unictype/joininggroup-byname'.
23944         * modules/unictype/joininggroup-byname: New file.
23945         * lib/unictype/joininggroup_byname.c: New file.
23946         * lib/unictype/joininggroup_byname.gperf: New file.
23947
23948         Tests for module 'unictype/joininggroup-name'.
23949         * modules/unictype/joininggroup-name-tests: New file.
23950         * tests/unictype/test-joininggroup_name.c: New file.
23951
23952         New module 'unictype/joininggroup-name'.
23953         * modules/unictype/joininggroup-name: New file.
23954         * lib/unictype/joininggroup_name.c: New file.
23955         * lib/unictype/joininggroup_name.h: New file.
23956
23957         New module 'unictype/joiningtype-all'.
23958         * modules/unictype/joiningtype-all: New file.
23959
23960         Tests for module 'unictype/joiningtype-of'.
23961         * modules/unictype/joiningtype-of-tests: New file.
23962         * tests/unictype/test-joiningtype_of.c: New file.
23963         * tests/unictype/test-joiningtype_of.h: New file, automatically
23964         generated by gen-uni-tables.
23965
23966         New module 'unictype/joiningtype-of'.
23967         * modules/unictype/joiningtype-of: New file.
23968         * lib/unictype/joiningtype_of.c: New file.
23969         * lib/unictype/joiningtype_of.h: New file, automatically generated by
23970         gen-uni-tables.
23971
23972         Tests for module 'unictype/joiningtype-byname'.
23973         * modules/unictype/joiningtype-byname-tests: New file.
23974         * tests/unictype/test-joiningtype_byname.c: New file.
23975
23976         New module 'unictype/joiningtype-byname'.
23977         * modules/unictype/joiningtype-byname: New file.
23978         * lib/unictype/joiningtype_byname.c: New file.
23979
23980         Tests for module 'unictype/joiningtype-name'.
23981         * modules/unictype/joiningtype-name-tests: New file.
23982         * tests/unictype/test-joiningtype_name.c: New file.
23983
23984         New module 'unictype/joiningtype-name'.
23985         * modules/unictype/joiningtype-name: New file.
23986         * lib/unictype/joiningtype_name.c: New file.
23987
23988         unictype: Add support for Arabic shaping properties.
23989         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
23990         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
23991         declarations.
23992         (UC_JOINING_GROUP_*): New enumeration values.
23993         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
23994         declarations.
23995         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
23996         (unicode_joining_type): New variable.
23997         (UC_JOINING_GROUP_*): New enumeration values.
23998         (unicode_joining_group): New variable.
23999         (fill_arabicshaping, joining_type_as_c_identifier,
24000         output_joining_type_test, output_joining_type,
24001         joining_group_as_c_identifier, output_joining_group_test,
24002         output_joining_group): New functions.
24003         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
24004         fill_arabicshaping and output_joining_type_test, output_joining_type,
24005         output_joining_group_test, output_joining_group.
24006         Reported by Simon Josefsson.
24007
24008 2011-03-21  Jim Meyering  <meyering@redhat.com>
24009
24010         strftime: fix a bug in yesterday's change
24011         * lib/strftime.c (add): Accommodate width's initial value of -1.
24012         Otherwise, nstrftime would copy uninitialized data into
24013         the result buffer.
24014
24015 2011-03-21  Jim Meyering  <meyering@redhat.com>
24016
24017         tests: add strftime-tests module
24018         * tests/test-strftime.c: New file.
24019         * modules/strftime-tests: New module.
24020
24021 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24022
24023         strftime: don't assume a byte count fits in 'int'
24024         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
24025         found this problem by static analysis, using gcc -Wstrict-overflow
24026         (GCC 4.5.2, x86-64).  This reported an optimization that depended
24027         on an integer overflow having undefined behavior, but it turns out
24028         that the argument is a size, which might not fit in 'int' anyway,
24029
24030 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24031
24032         stdio: don't require ignore_value around fwrite
24033
24034         This patch works around libc bug 11959
24035         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
24036         Without this patch, applications must often write
24037         ignore_value (fwrite (...)) even though the ignore_value is
24038         not helpful here.  It's common to write many objects, using
24039         fwrite/printf/etc., and then use ferror to detect output error.
24040
24041         I considered making this patch optional, but decided against it,
24042         because libc is obviously being inconsistent here: there is no
24043         reason libc should insist that user code must inspect fwrite
24044         return's value without also insisting that it inspect printf's,
24045         putchar's, etc.  If user code wants to have a strict style where
24046         all these functions' values are checked (so that ferror need not
24047         be checked), we could add support for that style in a new gnulib
24048         module, but in the meantime it's better to be consistent and to
24049         support common usage.
24050
24051         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
24052         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
24053         that we are compiling in checking mode, and if not C++, and
24054         if not already wrapping fwrite for some other reason.
24055         (fwrite): #define to rpl_fwrite if the latter is defined.
24056
24057 2011-03-20  Bruno Haible  <bruno@clisp.org>
24058
24059         verror: Fix compilation error introduced on 2011-02-13.
24060         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
24061         instead of __attribute__.
24062         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24063
24064 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24065             Bruno Haible  <bruno@clisp.org>
24066
24067         socklen: do not depend on sys_socket
24068         While trying to modify Emacs to use gnulib's socklen module,
24069         I discovered a circular dependency: socklen depends on sys_socket
24070         and vice versa.  Emacs can use socklen, but it does not need
24071         sys_socket because it has its own substitute for sys/socket.h.
24072         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
24073         gl_TYPE_SOCKLEN_T.
24074         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
24075         gl_PREREQ_SYS_H_SOCKET.
24076         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
24077         gl_PREREQ_SYS_H_SOCKET.
24078         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
24079         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
24080         * modules/socklen (Depends-on): Do not depend on sys_socket.
24081         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
24082
24083 2011-03-20  Jim Meyering  <meyering@redhat.com>
24084
24085         maint.mk: sort file names *after* new transformation
24086         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
24087         prefix would have led to an unwarranted failure in GNU parted.
24088         Sort after that transformation.
24089
24090 2011-03-19  Jim Meyering  <meyering@redhat.com>
24091
24092         maint.mk: fix po-file syntax-check rule
24093         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
24094         Patch by Bruno Haible.
24095
24096 2011-03-19  Bruno Haible  <bruno@clisp.org>
24097
24098         socklen: Update comment.
24099         * m4/socklen.m4: Update comment about platforms.
24100
24101 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24102             Bruno Haible  <bruno@clisp.org>
24103
24104         inet_ntop, inet_pton: Simplify.
24105         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
24106         documented to provide socklen_t and we already depend on sys_socket.
24107         * modules/inet_pton (Depends-on): Likewise.
24108         * lib/arpa_inet.in.h: Adjust comment.
24109
24110 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24111             Bruno Haible  <bruno@clisp.org>
24112
24113         netdb: Simplify.
24114         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
24115         documented to provide socklen_t and we already depend on sys_socket.
24116         * lib/netdb.in.h: Adjust comment.
24117
24118 2011-03-19  Bruno Haible  <bruno@clisp.org>
24119
24120         sys_socket, netdb: Document problem with socklen_t.
24121         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
24122         platforms.
24123         * doc/posix-headers/netdb.texi: Likewise.
24124
24125 2011-03-18  Eric Blake  <eblake@redhat.com>
24126
24127         maint.mk: let po check work in VPATH build
24128         * top/maint.mk (po_file): Allow cfg.mk override.
24129         (sc_po_check): Allow VPATH use.
24130         Reported by Jiri Denemark.
24131
24132 2011-03-16  Jim Meyering  <meyering@redhat.com>
24133
24134         maint.mk: allow fine-grained syntax-check exclusion via Make variables
24135         Before, you would have had to create one .x-sc_ file per rule in order
24136         to exempt offending files.  Now, you may instead use a Make variable --
24137         usually defined in cfg.mk -- whose name identifies the affected rule.
24138         * top/maint.mk (_sc_excl): Define.
24139         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
24140         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
24141
24142 2011-03-13  Bruno Haible  <bruno@clisp.org>
24143
24144         ignore-value tests: Avoid warnings.
24145         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
24146         empty for gcc < 3.4.
24147
24148 2011-03-13  Bruno Haible  <bruno@clisp.org>
24149
24150         passfd: Fix link error on Solaris.
24151         * modules/passfd (Description): Correct.
24152         (Depends-on): Add socketlib.
24153         (Link): New section.
24154         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
24155
24156 2011-03-13  Bruno Haible  <bruno@clisp.org>
24157
24158         passfd: Fix link error on AIX 5.2.
24159         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
24160
24161 2011-03-13  Bruno Haible  <bruno@clisp.org>
24162
24163         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
24164         * lib/sys_socket.in.h: Include <stddef.h>.
24165         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
24166         CMSG_FIRSTHDR. Remove unused variable.
24167
24168 2011-03-13  Bruno Haible  <bruno@clisp.org>
24169
24170         passfd: Fix compilation error on OpenBSD.
24171         * lib/passfd.c: Include <sys/uio.h>.
24172
24173 2011-03-13  Bruno Haible  <bruno@clisp.org>
24174
24175         passfd test: Fix warnings.
24176         * tests/test-passfd.c: Include <sys/wait.h>.
24177         (main): Fix typo.
24178
24179 2011-03-13  Bruno Haible  <bruno@clisp.org>
24180
24181         passfd module, part 4, tweaks.
24182         * tests/test-passfd.c: Reorder includes.
24183         (main): Fix perror and printf calls.
24184
24185 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24186
24187         passfd module, part 4.
24188         * modules/passfd-tests: New file.
24189         * tests/test-passfd.c: New file.
24190
24191 2011-03-13  Jim Meyering  <meyering@redhat.com>
24192
24193         Makefile: rely on GNU make; derive syntax-check rule names
24194         Rather than requiring that each sc_ rule be listed as a dependent
24195         of "check", use features of GNU make to derive the list.
24196         * Makefile (syntax-check-rules): Define.
24197         (check): Depend on the new variable, not the hard-coded list.
24198
24199 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
24200             Bruno Haible  <bruno@clisp.org>
24201
24202         passfd module, part 3.
24203         * lib/passfd.h (recvfd): Add a flags argument.
24204         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
24205         (recvfd): Add a flags argument.
24206         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
24207         exists.
24208         * modules/passfd (Depends-on): Add cloexec.
24209         Suggested by Eric Blake.
24210
24211 2011-03-13  Bruno Haible  <bruno@clisp.org>
24212
24213         passfd module, part 2, tweaks.
24214         * modules/passfd (Files): Reorder.
24215         (Depends-on): Remove errno.
24216         (Include): Remove <sys/socket.h>, <sys/un.h>.
24217         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
24218         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
24219         specification header. Include <sys/socket.h> always. Don't include
24220         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
24221         (sendfd): Clarify that it sets errno when it fails.
24222         (recvfd): Fix specification.
24223
24224 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24225
24226         passfd module, part 2.
24227         * modules/passfd: New file.
24228         * lib/passfd.h: New file.
24229         * lib/passfd.c: New file.
24230
24231 2011-03-12  Bruno Haible  <bruno@clisp.org>
24232
24233         wcswidth, mbswidth: Avoid integer overflow.
24234         * lib/wcswidth.c: Include <limits.h>.
24235         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
24236         * lib/mbswidth.c: Include <limits.h>.
24237         (mbsnwidth): Avoid 'int' overflow.
24238         Reported by Jim Meyering.
24239
24240 2011-03-12  Bruno Haible  <bruno@clisp.org>
24241
24242         futimens, utimensat: Avoid endless recursion on Solaris 10.
24243         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
24244         Solaris.
24245         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
24246         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
24247
24248 2011-03-11  Jim Meyering  <meyering@redhat.com>
24249
24250         maint.mk: relax a regexp to accommodate other formatting styles
24251         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
24252         between "ngettext" and the following "(".
24253
24254 2011-03-11  Pádraig Brady <P@draigBrady.com>
24255
24256         maint.mk: suppress a false positive warning
24257         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
24258         diagnostics are marked with ngettext.
24259
24260 2011-03-10  Eric Blake  <eblake@redhat.com>
24261
24262         wchar: add explicit dependencies, for Tru64
24263         * modules/mbmemcasecoll (Depends-on): Add wchar.
24264         * modules/mbtowc (Depends-on): Likewise.
24265         * modules/vasnprintf (Depends-on): Likewise.
24266         * modules/unistdio/u-printf-args (Depends-on): Likewise.
24267         * modules/wctomb (Depends-on): Likewise.
24268         Reported by Peter O'Gorman.
24269
24270 2011-03-08  Bruno Haible  <bruno@clisp.org>
24271
24272         passfd module, part 1, tweaks.
24273         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
24274         Improve indentation. Improve AC_MSG_CHECKING messages.
24275         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
24276         gl_SOCKET_FAMILIES.
24277
24278 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24279
24280         passfd module, part 1.
24281         * m4/afunix.m4: New file.
24282         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
24283         sockets.
24284
24285 2011-03-08  Bruno Haible  <bruno@clisp.org>
24286
24287         regex-quote: New API.
24288         * lib/regex-quote.h: Include <stdbool.h>.
24289         (struct regex_quote_spec): New type.
24290         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24291         New declarations.
24292         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24293         'const struct regex_quote_spec *' argument.
24294         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
24295         (pcre_special): New constant.
24296         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24297         New functions.
24298         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24299         'const struct regex_quote_spec *' argument.
24300         * modules/regex-quote (Depends-on): Add stdbool.
24301         * tests/test-regex-quote.c (check): Update for new API. Add test for
24302         anchored results.
24303         * NEWS: Mention the API change.
24304         Reported by Reuben Thomas and Eric Blake.
24305
24306 2011-03-06  Bruno Haible  <bruno@clisp.org>
24307
24308         regex-quote: Fix creation of POSIX extended regular expressions.
24309         * lib/regex-quote.c (ere_special): Add grouping and alternation
24310         operators.
24311
24312 2011-03-05  Bruno Haible  <bruno@clisp.org>
24313
24314         doc: Improve doc regarding autopoint vs. gnulib.
24315         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
24316         disable autopoint while running autoreconf.
24317         Suggested by Ralf Wildenhues.
24318
24319 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24320
24321         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
24322         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
24323
24324 2011-03-03  Bruce Korb  <bkorb@gnu.org>
24325
24326         parse-duration: remove xalloc.h dependency
24327         * lib/parse-duration.c (parse_period): handle NULL return from
24328         strdup instead of calling xstrdup().
24329         * modules/parse-duration: remove "xalloc" dependency
24330
24331 2011-03-03  Matthew Booth  <mbooth@redhat.com>
24332
24333         bootstrap: honor m4_base when running aclocal
24334         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
24335
24336 2011-03-02  Jim Meyering  <meyering@redhat.com>
24337
24338         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
24339         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
24340         on request from Matt Booth.
24341
24342 2011-03-01  Eric Blake  <eblake@redhat.com>
24343
24344         test-link: work on Hurd
24345         * tests/test-link.h (test_link): Hurd rejects linking directories
24346         with EISDIR instead of the POSIX-mandated EPERM.
24347
24348 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
24349
24350         stdio: simplify by moving files to printf-posix, sigpipe
24351         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
24352         since this symbol is needed only if printf is replaced.
24353         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
24354         Require gl_ASM_SYMBOL_PREFIX.
24355         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
24356         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
24357         (Depends-on): Add 'raise'.
24358         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
24359         * modules/stdio (Files): Remove lib/stdio-write.c,
24360         m4/asm-underscore.m4.
24361         (Depends-on): Remove 'raise'.
24362
24363         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
24364         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
24365         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
24366         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
24367
24368 2011-02-28  Bruno Haible  <bruno@clisp.org>
24369
24370         localcharset: Assume ANSI C behaviour of free().
24371         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
24372         calling free().
24373         Suggested by Simon Josefsson <simon@josefsson.org>.
24374
24375 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
24376             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
24377             Bruno Haible  <bruno@clisp.org>  (tiny change)
24378
24379         On Cygwin, use /proc file system instead of win32 API.
24380         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
24381         Win32 file names.
24382         (DllMain): Simplify by removing Cygwin specific code.
24383         (find_shared_library_fullname): Use Linux specific implementation also
24384         for Cygwin.
24385         (get_shared_library_fullname): Update accordingly.
24386         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
24387         Win32 file names.
24388         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
24389         Cygwin specific code.
24390
24391 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
24392             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
24393
24394         Fix OpenMP flag detection for various Fortran compilers.
24395         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
24396         OpenMP-conditional compilation construct, to force compile
24397         failure with missing OpenMP flag.
24398         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
24399
24400 2011-02-25  Eric Blake  <eblake@redhat.com>
24401
24402         strstr: expand test coverage
24403         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
24404         compilation.
24405         * tests/test-memmem.c (main): Duplicate tests.
24406         * tests/test-strcasestr.c (main): Likewise.
24407         * tests/test-c-strcasestr.c (main): Likewise.
24408
24409 2011-02-25  Jim Meyering  <meyering@redhat.com>
24410
24411         maint.mk: detect missing-NL-at-EOF, too
24412         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
24413         it also detects when a file lacks a newline at EOF.
24414         (require_exactly_one_NL_at_EOF_): Renamed from
24415         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
24416         since people may well have .x-sc_... file names tied to the
24417         existing name.  Suggested by Eric Blake.
24418
24419 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
24420
24421         dirname: move m4/dos.m4 functionality into lib/dosname.h
24422
24423         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
24424         extracts symbols from it, puts them into config.h; but it's much
24425         easier to use the symbols directly.  filename.h already does this,
24426         but it disagrees with dos.m4 in some respects.  This patch
24427         introduces a different include file dosname.h that packages up
24428         dos.m4, and then later we can work on merging filename.h and
24429         dosname.h.  Applications that need only the easy-to-configure
24430         symbols should consider including dosname.h rather than dirname.h.
24431         * NEWS: Mention incompatible changes.
24432         * m4/dos.m4: Remove.
24433         * lib/dosname.h, modules/dosname: New files.
24434         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
24435         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
24436         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
24437         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
24438         Include dosname.h, not dirname.h.
24439         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
24440         Include dosname.h, for definitions of symbols like ISSLASH
24441         that used to be in config.h.
24442         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
24443         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24444         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24445         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24446         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
24447         * modules/rmdir (Files): Likewise.
24448         * modules/stat (Files): Likewise.
24449         * modules/unlink (Files): Likewise.
24450         * modules/dirname-lgpl (Depends-on): Add dosname.
24451         * modules/lstat (Depends-on): Likewise.
24452         * modules/openat (Depends-on): Likewise.
24453         * modules/rmdir (Depends-on): Likewise.
24454         * modules/savewd (Depends-on): Likewise.
24455         * modules/stat (Depends-on): Likewise.
24456         * modules/unlink (Depends-on): Likewise.
24457         * modules/openat (Depends-on): Remove dirname-lgpl.
24458         * modules/savewd (Depends-on): Likewise.
24459         * tests/test-dirname.c: Do not use removed symbols like
24460         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
24461         the remaining symbols, e.g., ISSLASH ('\\').
24462
24463 2011-02-25  Eric Blake  <eblake@redhat.com>
24464
24465         strstr: revert patches that introduced bug and pessimization
24466         * lib/str-two-way.h: Add another reference.
24467         (two_way_short_needle, two_way_long_needle): Revert changes from
24468         2011-02-24; they pessimize search speed.
24469         (critical_factorization): Partially revert changes from
24470         2010-06-22; they violate the requirement that the left half of the
24471         needle be smaller than the period of the needle.
24472
24473 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24474
24475         filenamecat: remove unnecessary dependency on dirname-lgpl
24476         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
24477         is no direct dependency, just an indirect one via filenamecat-lgpl.
24478
24479         remove: remove unnecessary use of m4/dos.m4
24480         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
24481         * modules/remove (FILES): Remove m4/dos.m4.
24482
24483         * lib/openat-proc.c: Don't include dirname.h; not needed.
24484
24485         backupfile: remove unnecessary use of m4/dos.m4
24486         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
24487         of its symbols are used by the backupfile code.  backupfile.c does
24488         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
24489         for the rare case of programs that want all their backup file
24490         names to live within 8+3 limits, and dos.m4 doesn't address that.
24491         * modules/backupfile (Files): Remove m4/dos.m4.
24492
24493 2011-02-24  Jim Meyering  <meyering@redhat.com>
24494
24495         strstr: fix a bug whereby strstr would mistakenly return NULL
24496         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
24497         in period calculation.
24498         (two_way_long_needle): Likewise.
24499         The original problem was reported by Mike Stump in
24500         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
24501         Ralf Wildenhues provided the short needle and haystack.
24502         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
24503         Add a more involved test to trigger the bug in two_way_long_needle.
24504
24505 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24506
24507         gnulib-tool: remove use of bold display in help screen
24508         * gnulib-tool (func_usage): Do not use bold display anymore in the
24509         help screen.  That was just meant to be a temporary emphasis for a
24510         backward-incompatible change.
24511
24512 2011-02-23  Bruno Haible  <bruno@clisp.org>
24513
24514         Fix misindentation of preprocessor directives.
24515         * lib/argp-namefrob.h: Reindent preprocessor directives.
24516         * lib/getopt_int.h (struct _getopt_data): Likewise.
24517         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
24518         * lib/vasnprintf.c (decode_long_double): Likewise.
24519         * tests/test-argmatch.c: Insert blank lines, for clarity.
24520         * tests/test-exclude.c: Likewise.
24521
24522 2011-02-22  Bruno Haible  <bruno@clisp.org>
24523
24524         ioctl: Fix for MacOS X in 64-bit mode.
24525         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
24526         value.
24527         Suggested by Eric Blake.
24528         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
24529
24530 2011-02-22  Jim Meyering  <meyering@redhat.com>
24531
24532         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
24533         * Makefile (sc_cpp_indent_check): Don't limit the check to files
24534         in lib/.
24535
24536 2011-02-22  Eric Blake  <eblake@redhat.com>
24537
24538         maint: avoid any CDPATH issue
24539         * Makefile (sc_cpp_indent_check): Anchor cd argument.
24540
24541         maint: adjust cpp indentation for my modules, as well
24542         * Makefile (sc_cpp_indent_check): Add my name.
24543         * lib/fbufmode.c: Filter through cppi.
24544         * lib/fpurge.c: Likewise.
24545         * lib/freadable.c: Likewise.
24546         * lib/freading.c: Likewise.
24547         * lib/fwritable.c: Likewise.
24548         * lib/fwriting.c: Likewise.
24549         * lib/sigaction.c: Likewise.
24550
24551 2011-02-22  Jim Meyering  <meyering@redhat.com>
24552
24553         maint: adjust cpp indentation to reflect nesting depth
24554         I.e., in a block of code that begins with an unnested "#if",
24555         put one space between the "#" in column 1 and following token.
24556         For example,
24557         -#include <sys/vfs.h>
24558         +# include <sys/vfs.h>
24559         Do this only in .c files that are part of a module I maintain.
24560         * lib/linkat.c: Filter through cppi.
24561         * lib/nanosleep.c: Likewise.
24562         * lib/openat.c: Likewise.
24563         * lib/openat-die.c: Likewise.
24564         * lib/dup3.c: Likewise.
24565         * lib/fchownat.c: Likewise.
24566         * lib/flock.c: Likewise.
24567         * lib/fsync.c: Likewise.
24568         * lib/fts.c: Likewise.
24569         * lib/getpass.c: Likewise.
24570         * lib/gettimeofday.c: Likewise.
24571         * lib/userspec.c: Likewise.
24572         * Makefile (sc_cpp_indent_check): New rule, to check this.
24573
24574 2011-02-22  Bruno Haible  <bruno@clisp.org>
24575
24576         New module 'wctomb'.
24577         * lib/stdlib.in.h (wctomb): New declaration.
24578         * lib/wctomb.c: New file.
24579         * lib/wctomb-impl.h: New file.
24580         * m4/wctomb.m4: New file.
24581         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
24582         REPLACE_WCTOMB.
24583         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
24584         REPLACE_WCTOMB.
24585         * modules/wctomb: New file.
24586         * tests/test-stdlib-c++.cc: Test signature of wctomb.
24587         * doc/posix-functions/wctomb.texi: Mention the new module.
24588         * modules/wctob (Depends-on): Add wctomb.
24589
24590 2011-02-22  Bruno Haible  <bruno@clisp.org>
24591
24592         New module 'mbtowc'.
24593         * lib/stdlib.in.h (mbtowc): New declaration.
24594         * lib/mbtowc.c: New file.
24595         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
24596         * m4/mbtowc.m4: New file.
24597         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
24598         REPLACE_MBTOWC.
24599         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
24600         REPLACE_MBTOWC.
24601         * modules/mbtowc: New file.
24602         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
24603         * doc/posix-functions/mbtowc.texi: Mention the new module.
24604         * modules/btowc (Depends-on): Add mbtowc.
24605
24606 2011-02-22  Bruno Haible  <bruno@clisp.org>
24607
24608         wcrtomb: Add more tests for native Windows platforms.
24609         * tests/test-wcrtomb-w32-1.sh: New file.
24610         * tests/test-wcrtomb-w32-2.sh: New file.
24611         * tests/test-wcrtomb-w32-3.sh: New file.
24612         * tests/test-wcrtomb-w32-4.sh: New file.
24613         * tests/test-wcrtomb-w32-5.sh: New file.
24614         * tests/test-wcrtomb-w32.c: New file.
24615         * modules/wcrtomb-tests (Files): Add them.
24616         (Makefile.am): Arrange to run these tests.
24617         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
24618         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
24619
24620 2011-02-20  Bruno Haible  <bruno@clisp.org>
24621
24622         wcrtomb: Enhance test.
24623         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
24624
24625 2011-02-20  Bruno Haible  <bruno@clisp.org>
24626
24627         mbrtowc: Tiny optimization.
24628         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
24629
24630 2011-02-20  Jim Meyering  <meyering@redhat.com>
24631
24632         test-exclude.c: remove unmatched #endif
24633         * tests/test-exclude.c: Remove stray #endif, left over from
24634         the change of a week ago.
24635
24636 2011-02-19  Jim Meyering  <meyering@redhat.com>
24637
24638         git-version-gen: skip "-dirty" check when appropriate
24639         * build-aux/git-version-gen: Don't run any git commands when the
24640         version string comes from .tarball-version.  Prior to this, we
24641         would run git update-index --refresh even from a just-unpacked
24642         tarball directory, and that could affect a .git/ directory in a
24643         parent of the build directory.  Reported by Mike Frysinger.
24644
24645 2011-02-19  Bruno Haible  <bruno@clisp.org>
24646
24647         unictype/property-byname: Reduce the size of the 'data' segment.
24648         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
24649
24650 2011-02-19  Bruno Haible  <bruno@clisp.org>
24651
24652         unictype/scripts: Reduce the size of the 'data' segment.
24653         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
24654         '%pic'.
24655         * lib/unictype/scripts_byname.gperf: Regenerated.
24656
24657 2011-02-19  Bruno Haible  <bruno@clisp.org>
24658
24659         stdint: Update documentation.
24660         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
24661
24662 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
24663
24664         stdint: omit redundant check for wchar.h
24665         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
24666         always tests whether wchar.h exists, so remove the now-redundant test.
24667
24668 2011-02-18  Bruno Haible  <bruno@clisp.org>
24669
24670         stdint: Cut dependency to module 'wchar'.
24671         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
24672         include the necessary prerequisites.
24673         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
24674         * modules/stdint (Depends-on): Remove wchar.
24675         (Makefile.am): Substitute HAVE_WCHAR_H.
24676         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
24677
24678 2011-02-18  Eric Blake  <eblake@redhat.com>
24679
24680         longlong: skip, rather than fail, on cross-compilation
24681         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
24682         when cross-compiling; regression from 2011-02-16.
24683
24684 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24685
24686         * NEWS: Mention 2011-02-08 change to stdlib.
24687
24688 2011-02-17  Bruno Haible  <bruno@clisp.org>
24689
24690         getloadavg: Add comments about platforms.
24691         * m4/getloadavg.m4: Add comment.
24692         * lib/getloadavg.c: Likewise.
24693
24694 2011-02-17  Bruno Haible  <bruno@clisp.org>
24695
24696         getloadavg: Fix link error on Solaris 2.6.
24697         * modules/getloadavg (Link): New section.
24698         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
24699         linking test-getloadavg.
24700         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
24701         getloadavg.
24702
24703 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24704
24705         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
24706         It was 'int', but this doesn't match the IRIX 6.5 manual.
24707         Suggested by Bruno Haible in
24708         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
24709
24710 2011-02-17  Bruno Haible  <bruno@clisp.org>
24711
24712         havelib: Fix comments.
24713         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
24714         change.
24715
24716 2011-02-17  Bruno Haible  <bruno@clisp.org>
24717
24718         havelib: Update config.rpath.
24719         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
24720
24721 2011-02-17  Bruno Haible  <bruno@clisp.org>
24722
24723         getloadavg test: Add some plausibility checks.
24724         * tests/test-getloadavg.c (check_avg): Print a warning when the value
24725         is improbable.
24726
24727 2011-02-16  Eric Blake  <eblake@redhat.com>
24728
24729         maintainer-makefile: make syntax-check a no-op from tarballs
24730         * top/maint.mk (no-vc-detected): New rule.
24731         (local-checks-available): Use it to avoid hanging if someone tries
24732         'make syntax-check' from a tarball.  Also append to any non-syntax
24733         checks already defined in cfg.mk.
24734
24735 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24736
24737         longlong: tune, particularly for common case of c99
24738
24739         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
24740         or running anything if c99, or if unsigned long long int does not
24741         work.  In either case, we know the answer without further tests.
24742         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
24743         it at most once, and use its results for both long long int and
24744         unsigned long long int.  This is more likely to be efficient in
24745         the common case where the program wants to check for both long
24746         long int and unsigned long long int.
24747         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
24748         since the answer is already known.
24749
24750 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24751
24752         getloadavg: set errno
24753         * lib/getloadavg.c: Set errno when returning -1.  If no other
24754         error number looks appropriate, set it to ENOSYS if the getloadavg
24755         looks like it can't possibly ever work, ENOTSUP otherwise.
24756         Suggested by Bruno Haible in
24757         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
24758
24759         getloadavg: trim unused parts and speed up 'configure'
24760         * NEWS: Document this.
24761         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
24762         always compiled if getloadavg is absent.
24763         Move test code to ...
24764         * tests/test-getloadavg.c: New file, containing previous
24765         contents of test from lib/getloadavg.c.  It also contains
24766         suggestions by Bruno Haible in
24767         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
24768         * modules/getloadavg-tests: New file.
24769         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
24770         Do tests in the same order as they're needed for getloadavg.c.
24771         Omit setgid-related tests that generate symbols KMEM_GROUP,
24772         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
24773         Do only the tests that are needed to see whether the system has
24774         getloadavg, moving the other tests into ...
24775         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
24776         NLIST_NAME_UNION; nobody should be using it.  Do not define
24777         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
24778         relevant, as the user of this module shouldn't care how getloadavg
24779         is implemented.
24780
24781         getloadavg: omit unused var
24782         * lib/getloadavg.c (getloadavg): Omit unused local variable.
24783
24784 2011-02-15  Jim Meyering  <meyering@redhat.com>
24785
24786         doc: update users.txt
24787         * users.txt: Update iwhd's URL.
24788
24789 2011-02-13  Bruno Haible  <bruno@clisp.org>
24790
24791         Consistent macro naming for macros that use GCC __attribute__.
24792         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
24793         _ATTRIBUTE_NONNULL_.
24794         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
24795         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
24796         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
24797         ATTRIBUTE_DEPRECATED.
24798         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
24799         ATTRIBUTE_NORETURN.
24800         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24801         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24802         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24803         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24804         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
24805         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
24806         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
24807         ATTRIBUTE_SENTINEL.
24808         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
24809         ATTRIBUTE_RETURN_CHECK.
24810         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
24811         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
24812         ATTRIBUTE_NORETURN.
24813         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
24814         Reported by Paul Eggert.
24815
24816 2011-02-13  Bruno Haible  <bruno@clisp.org>
24817
24818         Don't interfere with a program's definition of __attribute__.
24819         * lib/argp.h (__attribute__): Remove definition.
24820         (_GL_ATTRIBUTE_FORMAT): New macro.
24821         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
24822         * lib/argp-fmtstream.h (__attribute__): Remove definition.
24823         (_GL_ATTRIBUTE_FORMAT): New macro.
24824         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
24825         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
24826         GCC 3 or newer.
24827         * lib/error.h (__attribute__): Remove definition.
24828         (_GL_ATTRIBUTE_FORMAT): New macro.
24829         (error, error_at_line): Use it.
24830         * lib/hash.h (__attribute__): Remove definition.
24831         (ATTRIBUTE_WUR): Update definition. Define always.
24832         * lib/openat.h (__attribute__): Remove definition.
24833         (ATTRIBUTE_NORETURN): Update definition. Define always.
24834         * lib/sigpipe-die.h (__attribute__): Remove definition.
24835         (ATTRIBUTE_NORETURN): Update definition. Define always.
24836         * lib/vasnprintf.h (__attribute__): Remove definition.
24837         (_GL_ATTRIBUTE_FORMAT): New macro.
24838         (asnprintf, vasnprintf): Use it.
24839         * lib/xalloc.h (__attribute__): Remove definition.
24840         (ATTRIBUTE_NORETURN): Update definition. Define always.
24841         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
24842         * lib/xmemdup0.h (__attribute__): Remove definition.
24843         (ATTRIBUTE_NORETURN): Update definition. Define always.
24844         * lib/xprintf.h (__attribute__): Remove definition.
24845         (_GL_ATTRIBUTE_FORMAT): New macro.
24846         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
24847         * lib/xstrtol.h (__attribute__): Remove definition.
24848         (ATTRIBUTE_NORETURN): Update definition. Define always.
24849         * lib/xvasprintf.h (__attribute__): Remove definition.
24850         (_GL_ATTRIBUTE_FORMAT): New macro.
24851         (xasprintf, xvasprintf): Use it.
24852         * tests/test-argmatch.c (__attribute__): Remove definition.
24853         (ATTRIBUTE_NORETURN): Update definition. Define always.
24854         * tests/test-exclude.c (__attribute__): Remove definition.
24855         (ATTRIBUTE_NORETURN): Update definition. Define always.
24856         Reported by Paul Eggert.
24857
24858 2011-02-13  Bruno Haible  <bruno@clisp.org>
24859
24860         mbrtowc: Add more tests for native Windows platforms.
24861         * tests/test-mbrtowc-w32-1.sh: New file.
24862         * tests/test-mbrtowc-w32-2.sh: New file.
24863         * tests/test-mbrtowc-w32-3.sh: New file.
24864         * tests/test-mbrtowc-w32-4.sh: New file.
24865         * tests/test-mbrtowc-w32-5.sh: New file.
24866         * tests/test-mbrtowc-w32.c: New file.
24867         * modules/mbrtowc-tests (Files): Add them.
24868         (Makefile.am): Arrange to run these tests.
24869         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
24870         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
24871
24872 2011-02-13  Bruno Haible  <bruno@clisp.org>
24873
24874         mbrtowc: Work around native Windows bug.
24875         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
24876         guess when no suitable locale for testing was found.
24877         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
24878
24879 2011-02-13  Bruno Haible  <bruno@clisp.org>
24880
24881         mbsinit: Work around mingw bug.
24882         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
24883         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
24884         Windows.
24885         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
24886
24887 2011-02-13  Bruno Haible  <bruno@clisp.org>
24888
24889         mbsinit: Don't crash for a NULL argument.
24890         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
24891         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
24892
24893 2011-02-13  Bruno Haible  <bruno@clisp.org>
24894
24895         Don't interfere with a program's definition of __attribute__.
24896         * lib/stdio.in.h (__attribute__): Remove definition.
24897         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
24898         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
24899         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
24900         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
24901         * lib/string.in.h (__attribute__): Remove definition.
24902         Reported by Paul Eggert.
24903
24904 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24905
24906         stdlib: don't get in the way of non-GCC __attribute__
24907         See thread starting at
24908         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
24909         Revert previous stdlib change, installing the following instead:
24910         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
24911         to get in the way of a non-GCC compiler that supports __attribute__.
24912         (_GL_ATTRIBUTE_RETURN): New macro.
24913         (_Exit): Use it instead of __attribute__.
24914
24915 2011-02-12  Bruno Haible  <bruno@clisp.org>
24916
24917         quotearg test: Avoid test failure on mingw.
24918         * tests/test-quotearg.sh: Convert the locale identifier from native
24919         Windows syntax to Unix syntax.
24920
24921 2011-02-12  Bruno Haible  <bruno@clisp.org>
24922
24923         setlocale: Prefer gnulib's override over libintl's override.
24924         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
24925         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
24926         GNULIB_defined_setlocale is set.
24927
24928 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24929
24930         stdlib: support non-GCC __attribute__
24931
24932         Fix a serious and tricky problem encountered when attempting to
24933         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
24934         5.5, but it crashed due to memory corruption on Solaris 10 with
24935         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
24936         bits that are otherwise zero.  This tagging is optional inside
24937         Emacs but is preferred and is used when __attribute__ ((__aligned
24938         (8))) works, as it does with both recent-enough GCC and with Sun C
24939         5.11.  However, Sun C 5.11 is not GCC and does not #define
24940         __GNUC__ and __GNUC_MINOR__.
24941
24942         When I added the getloadavg module to Emacs, it brought in
24943         stdlib.in.h, which contained this fragment:
24944
24945            #ifndef __attribute__
24946            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
24947            #  define __attribute__(Spec)   /* empty */
24948            # endif
24949            #endif
24950
24951         When files that include <stdlib.h> were compiled with Sun C 5.11,
24952         the above code disabled __attribute__ ((__aligned (8))), which
24953         caused variables to not be properly aligned, which eventually led
24954         to the pointer corruption mentioned above.  (This was a bit hard
24955         to diagnose, unfortunately.)
24956
24957         Several "#define __attribute__(X) /* empty */" code snippets need
24958         to be eradicated from Gnulib to work with non-GCC compilers that
24959         support __attribute__.  The Autoconf way to do this is to test for
24960         each kind of attribute that we want support for, and selectively
24961         enable that in source code.
24962
24963         Fix this problem just for stdlib.h, by adding a test for the
24964         __noreturn__ attribute, and change stdlib.in.h to use that test
24965         when needed.  This technique can be easily generalized to the
24966         other *.in.h files and attributes, and a similar technique can be
24967         used for *.h and *.c files.  This patch is enough to solve the
24968         problem for Emacs + getloadavg, and I thought I'd publish it for
24969         feedback before undertaking further, similar fixes in other
24970         modules.
24971
24972         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
24973         because it's not needed for stdlib.h.  It merely substitutes the
24974         value directly into stdlib.h.  We may well need to #define it, or
24975         similar symbols, for other modules, but it's nice to also have an
24976         option to not #define it for applications like Emacs that do not
24977         need it.
24978
24979         * lib/stdlib.in.h (__attribute__): Do not #define.
24980         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
24981         be defined only if the _Exit module is also used.
24982         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
24983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
24984         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
24985         platforms.
24986         * modules/_Exit (Files): Add m4/attribute.m4.
24987         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
24988         * m4/attribute.m4: New file.
24989
24990 2011-02-12  Bruno Haible  <bruno@clisp.org>
24991
24992         wcsrtombs: Work around bug on native Windows.
24993         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
24994         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
24995         instead of len.
24996         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
24997
24998 2011-02-12  Bruno Haible  <bruno@clisp.org>
24999
25000         mbsrtowcs: Work around bug on native Windows.
25001         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
25002         against mingw bug.
25003         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
25004
25005 2011-02-12  Bruno Haible  <bruno@clisp.org>
25006
25007         Avoid setlocale bugs in tests.
25008         * modules/btowc (Dependencies): Add setlocale.
25009         * modules/c-strcase (Dependencies): Likewise.
25010         * modules/mbmemcasecmp (Dependencies): Likewise.
25011         * modules/mbmemcasecoll (Dependencies): Likewise.
25012         * modules/mbrtowc (Dependencies): Likewise.
25013         * modules/mbscasecmp (Dependencies): Likewise.
25014         * modules/mbscasestr (Dependencies): Likewise.
25015         * modules/mbschr (Dependencies): Likewise.
25016         * modules/mbscspn (Dependencies): Likewise.
25017         * modules/mbsinit (Dependencies): Likewise.
25018         * modules/mbsncasecmp (Dependencies): Likewise.
25019         * modules/mbsnrtowcs (Dependencies): Likewise.
25020         * modules/mbspbrk (Dependencies): Likewise.
25021         * modules/mbspcasecmp (Dependencies): Likewise.
25022         * modules/mbsrchr (Dependencies): Likewise.
25023         * modules/mbsrtowcs (Dependencies): Likewise.
25024         * modules/mbsspn (Dependencies): Likewise.
25025         * modules/mbsstr (Dependencies): Likewise.
25026         * modules/nl_langinfo (Dependencies): Likewise.
25027         * modules/quotearg (Dependencies): Likewise.
25028         * modules/unicase/locale-language (Dependencies): Likewise.
25029         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
25030         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
25031         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
25032         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
25033         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
25034         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
25035         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
25036         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
25037         * modules/vasnprintf-posix (Dependencies): Likewise.
25038         * modules/wcrtomb (Dependencies): Likewise.
25039         * modules/wcsnrtombs (Dependencies): Likewise.
25040         * modules/wcsrtombs (Dependencies): Likewise.
25041
25042 2011-02-12  Bruno Haible  <bruno@clisp.org>
25043
25044         setlocale: Workaround native Windows bug.
25045         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
25046         succeeds but sets LC_CTYPE to "C", report a failure.
25047         * tests/test-setlocale2.sh: New file.
25048         * tests/test-setlocale2.c: New file.
25049         * modules/setlocale-tests (Files): Add the new files.
25050         (Makefile.am): Enable test-setlocale2.sh test.
25051         * doc/posix-functions/setlocale.texi: Mention workaround.
25052
25053 2011-02-11  Bruno Haible  <bruno@clisp.org>
25054
25055         Tests for module 'setlocale'.
25056         * modules/setlocale-tests: New file.
25057         * tests/test-setlocale1.sh: New file.
25058         * tests/test-setlocale1.c: New file.
25059
25060         New module 'setlocale'.
25061         * lib/locale.in.h (setlocale): New declaration.
25062         * lib/setlocale.c: New file, based on
25063         gettext/gettext-runtime/intl/setlocale.c.
25064         * m4/setlocale.m4: New file.
25065         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
25066         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
25067         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
25068         REPLACE_SETLOCALE.
25069         * modules/setlocale: New file.
25070         * tests/test-locale-c++.cc: Test the declaration of setlocale.
25071         * doc/posix-functions/setlocale.texi: Mention the new module.
25072
25073 2011-02-11  Bruno Haible  <bruno@clisp.org>
25074
25075         Prepare for locale dependent tests on mingw.
25076         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
25077         because it has the wrong locale encoding.
25078         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
25079         French_France.1252 instead of "fr".
25080         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
25081         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
25082         because it has the wrong locale encoding.
25083         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
25084         native Windows, try Turkish_Turkey.65001.
25085         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
25086         Chinese_China.54936.
25087
25088         Prepare for locale dependent tests on mingw.
25089         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
25090         differently.
25091         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
25092         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
25093         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25094         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25095
25096 2011-02-11  Eric Blake  <eblake@redhat.com>
25097
25098         strptime: avoid compiler warnings
25099         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
25100         compiler warnings about dead code.
25101         Reported by Daniel P. Berrange.
25102
25103 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
25104
25105         doc: update users.txt
25106         * users.txt: Add rcs.
25107
25108 2011-02-10  John W. Eaton  <jwe@gnu.org>
25109
25110         doc: update users.txt
25111         * users.txt: Add octave.
25112
25113 2011-02-10  Jim Meyering  <meyering@redhat.com>
25114
25115         doc: update users.txt
25116         * users.txt: Add iwhd.
25117
25118 2011-02-09  Bruno Haible  <bruno@clisp.org>
25119
25120         gnulib-tool: Make copyright notice adjustment more robust.
25121         * gnulib-tool (func_import): In sed_transform_main_lib_file,
25122         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
25123         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
25124         License".
25125         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
25126
25127 2011-02-06  Bruno Haible  <bruno@clisp.org>
25128
25129         New module 'towctrans'.
25130         * modules/towctrans: New file.
25131         * lib/wctype.in.h (towctrans): New declaration.
25132         * lib/towctrans.c: New file.
25133         * lib/towctrans-impl.h: New file.
25134         * m4/towctrans.m4: New file.
25135         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
25136         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
25137         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
25138         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
25139         * doc/posix-functions/towctrans.texi: Mention the new module.
25140
25141 2011-02-06  Bruno Haible  <bruno@clisp.org>
25142
25143         New module 'wctrans'.
25144         * modules/wctrans: New file.
25145         * lib/wctype.in.h (wctrans): New declaration.
25146         * lib/wctrans.c: New file.
25147         * lib/wctrans-impl.h: New file.
25148         * m4/wctrans.m4: New file.
25149         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
25150         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
25151         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
25152         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
25153         * doc/posix-functions/wctrans.texi: Mention the new module.
25154
25155 2011-02-06  Bruno Haible  <bruno@clisp.org>
25156
25157         New module 'iswctype'.
25158         * modules/iswctype: New file.
25159         * lib/wctype.in.h (iswctype): New declaration.
25160         * lib/iswctype.c: New file.
25161         * lib/iswctype-impl.h: New file.
25162         * m4/iswctype.m4: New file.
25163         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
25164         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
25165         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
25166         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
25167         * doc/posix-functions/iswctype.texi: Mention the new module and the
25168         HP-UX 11.00 problem.
25169
25170 2011-02-06  Bruno Haible  <bruno@clisp.org>
25171
25172         New module 'wctype'.
25173         * modules/wctype: Change to represent the wctype() substitute.
25174         * lib/wctype.in.h (wctype): New declaration.
25175         * lib/wctype.c: New file.
25176         * lib/wctype-impl.h: New file.
25177         * m4/wctype.m4: New file.
25178         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
25179         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
25180         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
25181         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
25182         * doc/posix-functions/wctype.texi: Mention the new module and the
25183         HP-UX 11.00 problem.
25184
25185 2011-02-06  Bruno Haible  <bruno@clisp.org>
25186
25187         wctype-h: Ensure wctype_t and wctrans_t are defined.
25188         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
25189         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25190         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25191         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
25192         HAVE_WCTRANS_T.
25193         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
25194
25195 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25196
25197         flock: fix license typo
25198
25199         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
25200         omitted.
25201
25202 2011-02-08  Bruno Haible  <bruno@clisp.org>
25203
25204         Split large sed scripts, for HP-UX sed.
25205         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
25206         to avoid HP-UX limit of 99 commands, in the near future.
25207         * modules/stdlib (Makefile.am): Likewise.
25208         * modules/unistd (Makefile.am): Likewise.
25209         * modules/wchar (Makefile.am): Likewise.
25210         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25211         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
25212         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
25213
25214 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25215             Bruno Haible  <bruno@clisp.org>
25216
25217         stdlib: improve random_r modularization
25218         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
25219         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
25220         you also need the random_r module to get this material right.
25221         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
25222         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
25223         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
25224
25225 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25226
25227         stdlib: don't depend on stdint
25228         * lib/stdlib.in.h: Don't include <stdint.h> merely because
25229         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
25230         be independent of whether stdint.h is needed.
25231         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
25232         here, instead of ...
25233         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
25234         struct random_data should be using the random_r module, not just
25235         the stdlib module (which wouldn't make sense: what package needs
25236         just struct random_data without also needing random_r?).
25237         * modules/stdlib (Depends-on): Remove stdint.
25238
25239         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
25240         See the thread rooted at
25241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
25242         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
25243         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
25244         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
25245         __VMS)); previously it was always included (via fcntl--.h).
25246         (getloadavg): Do not use c_strtod.  Instead, approximate it by
25247         hand; this is good enough for load averages.  Also, do not use
25248         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
25249         flags directly if available and don't bother otherwise.  (Packages
25250         that need the extra reliability should use the modules that define
25251         these flags on older platforms that lack them.)
25252         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
25253         fcntl-safer.
25254
25255 2011-02-08  Jim Meyering  <meyering@redhat.com>
25256
25257         di-set.h, ino-map.h: add multiple-inclusion guard
25258         Technically, the guard is required only for ino-map.h, due to its
25259         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
25260         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
25261         * lib/ino-map.h: Likewise.
25262
25263 2011-02-06  Bruno Haible  <bruno@clisp.org>
25264
25265         iswblank: Ensure declaration on glibc systems.
25266         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
25267         * modules/iswblank (Dependencies): Add 'extensions'.
25268         * doc/posix-functions/iswblank.texi: Document the glibc problem.
25269
25270 2011-02-06  Bruno Haible  <bruno@clisp.org>
25271
25272         New module 'iswblank'.
25273         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
25274         * modules/iswblank: New file.
25275         * modules/wctype-h (Files): Remove lib/iswblank.c.
25276         (Makefile.am): Substitute GNULIB_ISWBLANK.
25277         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
25278         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
25279         (gl_WCTYPE_H_DEFAULTS): New macro.
25280         (gl_WCTYPE_H): Require it. Remove iswblank related code.
25281         * modules/iswblank-tests: New file.
25282         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
25283         * tests/test-wctype-h.c (main): Remove iswblank tests.
25284         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
25285         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
25286         of 'wctype-h'.
25287         * NEWS: Mention the change.
25288         * modules/mbchar (Depends-on): Add iswblank.
25289
25290 2011-02-08  Bruno Haible  <bruno@clisp.org>
25291
25292         di-set tests: Refactor.
25293         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
25294         unnecessary includes.
25295         (ASSERT): Remove macro.
25296         (main): Make C90 compliant by avoiding variable declaration after
25297         statement.
25298         * modules/di-set-tests (Files): Add tests/macros.h.
25299
25300 2011-02-08  Bruno Haible  <bruno@clisp.org>
25301
25302         ino-map tests: Refactor.
25303         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
25304         unnecessary includes.
25305         (ASSERT): Remove macro.
25306         (main): Make C90 compliant by avoiding variable declaration after
25307         statement.
25308         * modules/ino-map-tests (Files): Add tests/macros.h.
25309
25310 2011-02-08  Jim Meyering  <meyering@redhat.com>
25311
25312         di-set: add "const" to a cast
25313         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
25314         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
25315
25316 2011-02-06  Bruno Haible  <bruno@clisp.org>
25317
25318         Rename module 'wctype' to 'wctype-h'.
25319         * modules/wctype-h: Renamed from modules/wctype.
25320         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
25321         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
25322         (Files, Depends-on, Makefile.am): Update.
25323         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
25324         (Files, Makefile.am): Update.
25325         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
25326         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
25327         * doc/posix-headers/wctype.texi: Update.
25328         * doc/posix-functions/iswalnum.texi: Update.
25329         * doc/posix-functions/iswalpha.texi: Update.
25330         * doc/posix-functions/iswblank.texi: Update.
25331         * doc/posix-functions/iswcntrl.texi: Update.
25332         * doc/posix-functions/iswdigit.texi: Update.
25333         * doc/posix-functions/iswgraph.texi: Update.
25334         * doc/posix-functions/iswlower.texi: Update.
25335         * doc/posix-functions/iswprint.texi: Update.
25336         * doc/posix-functions/iswpunct.texi: Update.
25337         * doc/posix-functions/iswspace.texi: Update.
25338         * doc/posix-functions/iswupper.texi: Update.
25339         * doc/posix-functions/iswxdigit.texi: Update.
25340         * doc/posix-functions/towlower.texi: Update.
25341         * doc/posix-functions/towupper.texi: Update.
25342         * NEWS: Mention the change.
25343         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
25344         * modules/mbchar (Dependencies): Likewise.
25345         * modules/mbswidth (Dependencies): Likewise.
25346         * modules/quotearg (Dependencies): Likewise.
25347         * modules/regex (Dependencies): Likewise.
25348         * modules/wcscasecmp (Dependencies): Likewise.
25349         * modules/wcsncasecmp (Dependencies): Likewise.
25350         * modules/wcwidth (Dependencies): Likewise.
25351
25352 2011-02-06  Bruno Haible  <bruno@clisp.org>
25353
25354         New module 'wcswidth'.
25355         * modules/wcswidth: New file.
25356         * lib/wchar.in.h (wcswidth): New declaration.
25357         * lib/wcswidth.c: New file.
25358         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
25359         * m4/wcswidth.m4: New file.
25360         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
25361         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
25362         REPLACE_WCSWIDTH.
25363         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
25364         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
25365         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
25366         * doc/posix-functions/wcswidth.texi: Mention the new module.
25367
25368 2011-02-06  Bruno Haible  <bruno@clisp.org>
25369
25370         New module 'wcstok'.
25371         * modules/wcstok: New file.
25372         * lib/wchar.in.h (wcstok): New declaration.
25373         * lib/wcstok.c: New file.
25374         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
25375         * m4/wcstok.m4: New file.
25376         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
25377         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
25378         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
25379         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
25380         * doc/posix-functions/wcstok.texi: Mention the new module.
25381
25382 2011-02-06  Bruno Haible  <bruno@clisp.org>
25383
25384         New module 'wcsstr'.
25385         * modules/wcsstr: New file.
25386         * lib/wchar.in.h (wcsstr): New declaration.
25387         * lib/wcsstr.c: New file.
25388         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
25389         * m4/wcsstr.m4: New file.
25390         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
25391         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
25392         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
25393         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
25394         * doc/posix-functions/wcsstr.texi: Mention the new module.
25395
25396 2011-02-06  Bruno Haible  <bruno@clisp.org>
25397
25398         New module 'wcspbrk'.
25399         * modules/wcspbrk: New file.
25400         * lib/wchar.in.h (wcspbrk): New declaration.
25401         * lib/wcspbrk.c: New file.
25402         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
25403         * m4/wcspbrk.m4: New file.
25404         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
25405         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
25406         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
25407         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
25408         * doc/posix-functions/wcspbrk.texi: Mention the new module.
25409
25410 2011-02-06  Bruno Haible  <bruno@clisp.org>
25411
25412         New module 'wcsspn'.
25413         * modules/wcsspn: New file.
25414         * lib/wchar.in.h (wcsspn): New declaration.
25415         * lib/wcsspn.c: New file.
25416         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
25417         * m4/wcsspn.m4: New file.
25418         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
25419         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
25420         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
25421         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
25422         * doc/posix-functions/wcsspn.texi: Mention the new module.
25423
25424 2011-02-06  Bruno Haible  <bruno@clisp.org>
25425
25426         New module 'wcscspn'.
25427         * modules/wcscspn: New file.
25428         * lib/wchar.in.h (wcscspn): New declaration.
25429         * lib/wcscspn.c: New file.
25430         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
25431         * m4/wcscspn.m4: New file.
25432         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
25433         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
25434         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
25435         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
25436         * doc/posix-functions/wcscspn.texi: Mention the new module.
25437
25438 2011-02-06  Bruno Haible  <bruno@clisp.org>
25439
25440         New module 'wcsrchr'.
25441         * modules/wcsrchr: New file.
25442         * lib/wchar.in.h (wcsrchr): New declaration.
25443         * lib/wcsrchr.c: New file.
25444         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
25445         * m4/wcsrchr.m4: New file.
25446         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
25447         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
25448         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
25449         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
25450         * doc/posix-functions/wcsrchr.texi: Mention the new module.
25451
25452 2011-02-06  Bruno Haible  <bruno@clisp.org>
25453
25454         New module 'wcschr'.
25455         * modules/wcschr: New file.
25456         * lib/wchar.in.h (wcschr): New declaration.
25457         * lib/wcschr.c: New file.
25458         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
25459         * m4/wcschr.m4: New file.
25460         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
25461         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
25462         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
25463         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
25464         * doc/posix-functions/wcschr.texi: Mention the new module.
25465
25466 2011-02-06  Bruno Haible  <bruno@clisp.org>
25467
25468         New module 'wcsdup'.
25469         * modules/wcsdup: New file.
25470         * lib/wchar.in.h (wcsdup): New declaration.
25471         * lib/wcsdup.c: New file.
25472         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
25473         * m4/wcsdup.m4: New file.
25474         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
25475         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
25476         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
25477         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
25478         * doc/posix-functions/wcsdup.texi: Mention the new module.
25479
25480 2011-02-06  Bruno Haible  <bruno@clisp.org>
25481
25482         New module 'wcsxfrm'.
25483         * modules/wcsxfrm: New file.
25484         * lib/wchar.in.h (wcsxfrm): New declaration.
25485         * lib/wcsxfrm.c: New file.
25486         * lib/wcsxfrm-impl.h: New file.
25487         * m4/wcsxfrm.m4: New file.
25488         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
25489         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
25490         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
25491         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
25492         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
25493
25494 2011-02-06  Bruno Haible  <bruno@clisp.org>
25495
25496         New module 'wcscoll'.
25497         * modules/wcscoll: New file.
25498         * lib/wchar.in.h (wcscoll): New declaration.
25499         * lib/wcscoll.c: New file.
25500         * lib/wcscoll-impl.h: New file.
25501         * m4/wcscoll.m4: New file.
25502         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
25503         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
25504         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
25505         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
25506         * doc/posix-functions/wcscoll.texi: Mention the new module.
25507
25508 2011-02-06  Bruno Haible  <bruno@clisp.org>
25509
25510         New module 'wcsncasecmp'.
25511         * modules/wcsncasecmp: New file.
25512         * lib/wchar.in.h (wcsncasecmp): New declaration.
25513         * lib/wcsncasecmp.c: New file.
25514         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
25515         * m4/wcsncasecmp.m4: New file.
25516         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
25517         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
25518         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
25519         HAVE_WCSNCASECMP.
25520         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
25521         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
25522
25523 2011-02-06  Bruno Haible  <bruno@clisp.org>
25524
25525         New module 'wcscasecmp'.
25526         * modules/wcscasecmp: New file.
25527         * lib/wchar.in.h (wcscasecmp): New declaration.
25528         * lib/wcscasecmp.c: New file.
25529         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
25530         * m4/wcscasecmp.m4: New file.
25531         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
25532         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
25533         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
25534         HAVE_WCSCASECMP.
25535         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
25536         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
25537
25538 2011-02-05  Bruno Haible  <bruno@clisp.org>
25539
25540         New module 'wcsncmp'.
25541         * modules/wcsncmp: New file.
25542         * lib/wchar.in.h (wcsncmp): New declaration.
25543         * lib/wcsncmp.c: New file.
25544         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
25545         * m4/wcsncmp.m4: New file.
25546         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
25547         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
25548         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
25549         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
25550         * doc/posix-functions/wcsncmp.texi: Mention the new module.
25551
25552 2011-02-05  Bruno Haible  <bruno@clisp.org>
25553
25554         New module 'wcscmp'.
25555         * modules/wcscmp: New file.
25556         * lib/wchar.in.h (wcscmp): New declaration.
25557         * lib/wcscmp.c: New file.
25558         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
25559         * m4/wcscmp.m4: New file.
25560         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
25561         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
25562         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
25563         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
25564         * doc/posix-functions/wcscmp.texi: Mention the new module.
25565
25566 2011-02-05  Bruno Haible  <bruno@clisp.org>
25567
25568         New module 'wcsncat'.
25569         * modules/wcsncat: New file.
25570         * lib/wchar.in.h (wcsncat): New declaration.
25571         * lib/wcsncat.c: New file.
25572         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
25573         * m4/wcsncat.m4: New file.
25574         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
25575         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
25576         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
25577         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
25578         * doc/posix-functions/wcsncat.texi: Mention the new module.
25579
25580 2011-02-05  Bruno Haible  <bruno@clisp.org>
25581
25582         New module 'wcscat'.
25583         * modules/wcscat: New file.
25584         * lib/wchar.in.h (wcscat): New declaration.
25585         * lib/wcscat.c: New file.
25586         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
25587         * m4/wcscat.m4: New file.
25588         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
25589         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
25590         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
25591         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
25592         * doc/posix-functions/wcscat.texi: Mention the new module.
25593
25594 2011-02-05  Bruno Haible  <bruno@clisp.org>
25595
25596         New module 'wcpncpy'.
25597         * modules/wcpncpy: New file.
25598         * lib/wchar.in.h (wcpncpy): New declaration.
25599         * lib/wcpncpy.c: New file.
25600         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
25601         * m4/wcpncpy.m4: New file.
25602         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
25603         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
25604         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
25605         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
25606         * doc/posix-functions/wcpncpy.texi: Mention the new module.
25607
25608 2011-02-05  Bruno Haible  <bruno@clisp.org>
25609
25610         New module 'wcsncpy'.
25611         * modules/wcsncpy: New file.
25612         * lib/wchar.in.h (wcsncpy): New declaration.
25613         * lib/wcsncpy.c: New file.
25614         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
25615         * m4/wcsncpy.m4: New file.
25616         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
25617         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
25618         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
25619         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
25620         * doc/posix-functions/wcsncpy.texi: Mention the new module.
25621
25622 2011-02-05  Bruno Haible  <bruno@clisp.org>
25623
25624         New module 'wcpcpy'.
25625         * modules/wcpcpy: New file.
25626         * lib/wchar.in.h (wcpcpy): New declaration.
25627         * lib/wcpcpy.c: New file.
25628         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
25629         * m4/wcpcpy.m4: New file.
25630         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
25631         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
25632         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
25633         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
25634         * doc/posix-functions/wcpcpy.texi: Mention the new module.
25635
25636 2011-02-05  Bruno Haible  <bruno@clisp.org>
25637
25638         New module 'wcscpy'.
25639         * modules/wcscpy: New file.
25640         * lib/wchar.in.h (wcscpy): New declaration.
25641         * lib/wcscpy.c: New file.
25642         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
25643         * m4/wcscpy.m4: New file.
25644         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
25645         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
25646         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
25647         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
25648         * doc/posix-functions/wcscpy.texi: Mention the new module.
25649
25650 2011-02-05  Bruno Haible  <bruno@clisp.org>
25651
25652         New module 'wcsnlen'.
25653         * modules/wcsnlen: New file.
25654         * lib/wchar.in.h (wcsnlen): New declaration.
25655         * lib/wcsnlen.c: New file.
25656         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
25657         * m4/wcsnlen.m4: New file.
25658         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
25659         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
25660         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
25661         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
25662         * doc/posix-functions/wcsnlen.texi: Mention the new module.
25663
25664 2011-02-05  Bruno Haible  <bruno@clisp.org>
25665
25666         New module 'wcslen'.
25667         * modules/wcslen: New file.
25668         * lib/wchar.in.h (wcslen): New declaration.
25669         * lib/wcslen.c: New file.
25670         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
25671         * m4/wcslen.m4: New file.
25672         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
25673         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
25674         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
25675         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
25676         * doc/posix-functions/wcslen.texi: Mention the new module.
25677
25678 2011-02-05  Bruno Haible  <bruno@clisp.org>
25679
25680         New module 'wmemset'.
25681         * modules/wmemset: New file.
25682         * lib/wchar.in.h (wmemset): New declaration.
25683         * lib/wmemset.c: New file.
25684         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
25685         * m4/wmemset.m4: New file.
25686         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
25687         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
25688         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
25689         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
25690         * doc/posix-functions/wmemset.texi: Mention the new module.
25691
25692 2011-02-05  Bruno Haible  <bruno@clisp.org>
25693
25694         New module 'wmemmove'.
25695         * modules/wmemmove: New file.
25696         * lib/wchar.in.h (wmemmove): New declaration.
25697         * lib/wmemmove.c: New file.
25698         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
25699         * m4/wmemmove.m4: New file.
25700         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
25701         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
25702         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
25703         HAVE_WMEMMOVE.
25704         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
25705         * doc/posix-functions/wmemmove.texi: Mention the new module.
25706
25707 2011-02-05  Bruno Haible  <bruno@clisp.org>
25708
25709         New module 'wmemcpy'.
25710         * modules/wmemcpy: New file.
25711         * lib/wchar.in.h (wmemcpy): New declaration.
25712         * lib/wmemcpy.c: New file.
25713         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
25714         * m4/wmemcpy.m4: New file.
25715         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
25716         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
25717         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
25718         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
25719         * doc/posix-functions/wmemcpy.texi: Mention the new module.
25720
25721 2011-02-05  Bruno Haible  <bruno@clisp.org>
25722
25723         New module 'wmemcmp'.
25724         * modules/wmemcmp: New file.
25725         * lib/wchar.in.h (wmemcmp): New declaration.
25726         * lib/wmemcmp.c: New file.
25727         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
25728         * m4/wmemcmp.m4: New file.
25729         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
25730         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
25731         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
25732         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
25733         * doc/posix-functions/wmemcmp.texi: Mention the new module.
25734
25735 2011-02-07  Jim Meyering  <meyering@redhat.com>
25736
25737         di-set, ino-map: new modules, from coreutils
25738         * lib/di-set.c: New file.
25739         * lib/di-set.h: Likewise.
25740         * lib/ino-map.c: Likewise.
25741         * lib/ino-map.h: Likewise.
25742         * modules/di-set: Likewise.
25743         * modules/di-set-tests: Likewise.
25744         * modules/ino-map: Likewise.
25745         * modules/ino-map-tests: Likewise.
25746         * tests/test-di-set.c: Likewise.
25747         * tests/test-ino-map.c: Likewise.
25748
25749 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25750
25751         getloadavg: merge minor changes from Emacs
25752
25753         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
25754         (getloadavg): Use memset, not bzero.
25755
25756         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
25757         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
25758         clash (bug#86).
25759
25760 2010-11-14  Bruno Haible  <bruno@clisp.org>
25761
25762         Allow multiple gnulib generated replacements to coexist.
25763         * lib/getopt.in.h (struct option): Avoid identical redefinition.
25764         * lib/inttypes.in.h (imaxdiv_t): Likewise.
25765         * lib/langinfo.in.h (nl_item): Likewise.
25766         * lib/math.in.h (_NaN, NAN): Likewise.
25767         * lib/netdb.in.h (struct addrinfo): Likewise.
25768         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
25769         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
25770         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
25771         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
25772         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
25773         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
25774         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
25775         pthread_mutexattr_init, pthread_mutexattr_settype,
25776         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
25777         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
25778         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
25779         pthread_spin_trylock, pthread_spin_unlock): Likewise.
25780         * lib/sched.in.h (struct sched_param): Likewise.
25781         * lib/se-selinux.in.h (security_class_t, security_context_t,
25782         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
25783         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
25784         lsetfilecon, fsetfilecon, security_check_context,
25785         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
25786         Likewise.
25787         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
25788         Likewise.
25789         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
25790         _gl_function_taking_int_returning_void_t, union sigval,
25791         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
25792         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
25793         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25794         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
25795         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
25796         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
25797         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
25798         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
25799         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
25800         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
25801         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
25802         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
25803         socklen_t, rpl_fd_isset): Likewise.
25804         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
25805         * lib/sys_time.in.h (struct timeval): Likewise.
25806         * lib/sys_times.in.h (struct tms): Likewise.
25807         * lib/sys_utsname.in.h (struct utsname):
25808         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
25809         * lib/unistd.in.h (getpagesize): Likewise.
25810         * lib/wchar.in.h (mbstate_t): Likewise.
25811         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25812         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
25813         towlower, towupper): Likewise.
25814         Reported by Sam Steingold <sds@gnu.org>.
25815
25816 2011-02-05  Eric Blake  <eblake@redhat.com>
25817
25818         unsetenv: work around Haiku issues
25819         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
25820         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
25821
25822 2010-12-30  Bruce Korb  <bkorb@gnu.org>
25823
25824         libposix: avoid calling error() within libposix
25825         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
25826         is defined.
25827
25828 2011-02-05  Eric Blake  <eblake@redhat.com>
25829
25830         strerror_r-posix: port to cygwin
25831         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
25832         implementation.
25833         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
25834         * tests/test-strerror_r.c (main): Fix test.
25835         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
25836         issue.
25837
25838 2011-02-05  Bruno Haible  <bruno@clisp.org>
25839
25840         New module 'wmemchr'.
25841         * modules/wmemchr: New file.
25842         * lib/wchar.in.h (wmemchr): New declaration.
25843         * lib/wmemchr.c: New file.
25844         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
25845         * m4/wmemchr.m4: New file.
25846         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
25847         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
25848         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
25849         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
25850         * doc/posix-functions/wmemchr.texi: Mention the new module.
25851
25852 2011-02-04  Eric Blake  <eblake@redhat.com>
25853
25854         fdopendir: detect FreeBSD bug
25855         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
25856         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
25857
25858 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
25859
25860         stdbool: do not define HAVE_STDBOOL_H
25861         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
25862         AC_HEADER_STDBOOL.  All uses changed.  Do not define
25863         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
25864         imported from the latest Autoconf git.  It was motivated by Emacs,
25865         which uses gnulib but does not need HAVE_STDBOOL_H.
25866
25867 2011-02-04  Bruno Haible  <bruno@clisp.org>
25868
25869         wcsnrtombs: Prepare for new module wwcsnrtombs.
25870         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
25871         * lib/wcsnrtombs.c: Include it.
25872         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
25873
25874         wcsrtombs: Prepare for new module wwcsrtombs.
25875         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
25876         * lib/wcsrtombs.c: Include it.
25877         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
25878
25879         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
25880         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
25881         * lib/mbsnrtowcs.c: Include it.
25882         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
25883
25884         mbsrtowcs: Prepare for new module mbsrtowwcs.
25885         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
25886         * lib/mbsrtowcs.c: Include it.
25887         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
25888
25889 2011-02-04  Bruno Haible  <bruno@clisp.org>
25890
25891         vasnprintf: Reduce use of malloc for small format strings.
25892         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
25893         (arguments): Add room for the first 7 arguments.
25894         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
25895         (char_directives, u8_directives, u16_directives, u32_directives): Add
25896         room for the first 7 directives.
25897         * lib/printf-parse.c: Include <string.h>.
25898         (PRINTF_PARSE): Change memory handling code so that it uses the first
25899         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
25900         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
25901         Reported by Pádraig Brady <P@draigbrady.com>.
25902
25903 2011-01-31  Eric Blake  <eblake@redhat.com>
25904
25905         dup2: work around Haiku bug
25906         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
25907         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
25908         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25909         * tests/test-dup2.c (main): Enhance test.
25910
25911 2011-01-31  Simon Josefsson  <simon@josefsson.org>
25912
25913         doc: off_t is not available in eglibc 2.11.2 stdio.h.
25914         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
25915         declared by eglibc 2.11.2.
25916         * lib/stdio.in.h: Likewise.
25917
25918 2011-01-31  Eric Blake  <eblake@redhat.com>
25919
25920         ignore-value: add missing test dependency
25921         * tests/test-ignore-value.c: Revert previous change; stdio.h
25922         provides off_t.
25923         * modules/ignore-value-tests (Depends-on): Add missing dependency.
25924
25925 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
25926
25927         mktime: clarify long_int width checking
25928         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
25929         the top level, to make it clearer that the assumption about
25930         long_int width is being checked.  See
25931         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
25932
25933 2011-01-30  Simon Josefsson  <simon@josefsson.org>
25934
25935         ignore-value: Fix self-test.
25936         * tests/test-ignore-value.c: Include sys/types.h for off_t.
25937
25938 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
25939
25940         TYPE_MAXIMUM: avoid theoretically undefined behavior
25941         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
25942         negative number, which the C Standard says has undefined behavior.
25943         In practice this is not a problem, but might as well do it by the book.
25944         Reported by Rich Felker and Eric Blake; see
25945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
25946         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
25947         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25948         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25949         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
25950         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25951         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
25952
25953         mktime: #undef mktime before #defining it
25954         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
25955
25956         mktime: systematically normalize tm_isdst comparisons
25957         * lib/mktime.c (isdst_differ): New function.
25958         (__mktime_internal): Use it systematically for all isdst comparisons.
25959         This completes the fix for libc BZ #6723, and removes the need for
25960         normalizing tm_isdst.  See
25961         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
25962         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
25963
25964         mktime: fix some integer overflow issues and sidestep the rest
25965
25966         This was prompted by a bug report by Benjamin Lindner for MinGW
25967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
25968         His bug is due to signed integer overflow (0 - INT_MIN), and I
25969         I scanned through mktime.c looking for other integer overflow
25970         problems, fixing all the bugs I found.
25971
25972         Although the C Standard says the resulting code is still not safe
25973         in the presence of integer overflow, in practice it should be good
25974         enough for all real-world two's-complement implementations, except
25975         for debugging environments that deliberately trap on integer
25976         overflow (e.g., gcc -ftrapv).
25977
25978         * lib/mktime.c (WRAPV): New macro.
25979         (SHR): Also check that long_int and time_t shift right in the
25980         usual way, before using the fast-but-unportable method.
25981         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
25982         used.  The code already assumed two's complement, so there's
25983         no need to test for alternatives.  All uses removed.
25984         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
25985         the C standard.  Problem reported by Rich Felker in
25986         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
25987         (twos_complement_arithmetic): Also check long_int and time_t.
25988         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
25989         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
25990         (__mktime_internal): Avoid integer overflow with unary subtraction
25991         in two instances where -1 - X is an adequate replacement for -X,
25992         since the calculations are approximate.
25993
25994 2011-01-29  Eric Blake  <eblake@redhat.com>
25995
25996         mktime: avoid infinite loop
25997         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
25998         type; behavior is still undefined but portable to all known targets.
25999         Reported by Rich Felker.
26000
26001 2011-01-29  Simon Josefsson  <simon@josefsson.org>
26002
26003         rename, unlink, same-inode: Relicense.
26004         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
26005         * modules/unlink (License): Likewise.
26006         * modules/same-inode (License): Likewise.
26007
26008 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
26009
26010         mktime: avoid problems on NetBSD 5 / i386
26011         * lib/mktime.c (long_int): New type.  This works around a problem
26012         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
26013         but time_t is 64 bits, and where I expect the existing code is
26014         wrong in some cases.
26015         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
26016         (ydhms_diff): Bring back the compile-time check for wide-enough
26017         year and yday.
26018
26019         mktime: fix misspelling in comment
26020         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
26021         This merges all recent glibc changes of importance.
26022
26023 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26024
26025         move-if-change: cope with concurrent mv of identical file.
26026         * build-aux/move-if-change (CMPPROG): Accept environment
26027         variable as an override for `cmp'.
26028         (usage): Document CMPPROG.
26029         Adjust comparison to drop stdout.  Cope with failure of mv if
26030         the target file exists and is identical to the source, for
26031         parallel builds.
26032         Report from H.J. Lu against binutils in PR binutils/12283.
26033
26034 2011-01-28  Bruce Korb  <bkorb@gnu.org>
26035
26036         * users.txt: Mention sharutils.
26037
26038 2011-01-28  Simon Josefsson  <simon@josefsson.org>
26039
26040         * users.txt: Mention OATH Toolkit.
26041
26042 2011-01-27  Bruno Haible  <bruno@clisp.org>
26043
26044         Prepare for supporting FreeBSD 10.
26045         * build-aux/config.libpath: Remove handling of freebsd1*.
26046
26047 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
26048
26049         Prepare for supporting FreeBSD 10.
26050         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
26051         match FreeBSD 10.0.
26052
26053 2011-01-27  Bruno Haible  <bruno@clisp.org>
26054
26055         vma-iter, get-rusage-as: Add OpenBSD support.
26056         * modules/vma-iter (configure.ac): Test for mquery.
26057         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
26058         * lib/vma-iter.c: Include <sys/mman.h>.
26059         (vma_iterate): Add an implementation based on mquery().
26060         * lib/resource-ext.h (get_rusage_as): Update comments.
26061         * lib/get-rusage-as.c: Likewise.
26062         * lib/get-rusage-data.c: Likewise.
26063
26064 2011-01-26  Karl Berry  <karl@gnu.org>
26065
26066         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
26067         variables to make it easier to override the makeinfo program used.
26068
26069 2011-01-26  Eric Blake  <eblake@redhat.com>
26070
26071         fcntl: work around Haiku F_DUPFD bugs
26072         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
26073         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
26074         cloexec bit on duplication.
26075         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
26076
26077 2011-01-26  Bruno Haible  <bruno@clisp.org>
26078
26079         Enable memory leak tests on AIX.
26080         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
26081         * tests/test-fprintf-posix3.c (main): Likewise.
26082
26083 2011-01-26  Bruno Haible  <bruno@clisp.org>
26084
26085         Tests for module 'get-rusage-data'.
26086         * modules/get-rusage-data-tests: New file.
26087         * tests/test-get-rusage-data.c: New file.
26088
26089         New module 'get-rusage-data'.
26090         * lib/resource-ext.h (get_rusage_data): New declaration.
26091         * lib/get-rusage-data.c: New file.
26092         * modules/get-rusage-data: New file.
26093
26094 2011-01-25  Bruno Haible  <bruno@clisp.org>
26095
26096         get-rusage-as: Allow for easier testing.
26097         * lib/resource-ext.h (get_rusage_as): Add comment.
26098         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
26099         (main): New function for interactive testing.
26100
26101 2011-01-25  Bruno Haible  <bruno@clisp.org>
26102
26103         vma-iter: Treat Haiku like BeOS.
26104         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
26105         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
26106
26107 2011-01-25  Eric Blake  <eblake@redhat.com>
26108
26109         c-stack: fix regression on cygwin when libsigsegv is present
26110         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
26111
26112 2011-01-24  Bruno Haible  <bruno@clisp.org>
26113
26114         vma-iter: Avoid empty intervals.
26115         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
26116         on an empty interval.
26117
26118 2011-01-24  Jim Meyering  <meyering@redhat.com>
26119
26120         u64: remove unnecessary #include
26121         * lib/u64.h: Don't include <stddef.h>.  It was not used.
26122
26123 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26124
26125         Allow the user to avoid the HAVE_RAW_DECL_* macros.
26126         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
26127
26128 2011-01-23  Bruno Haible  <bruno@clisp.org>
26129
26130         New module 'vma-iter'.
26131         * lib/vma-iter.h: New file.
26132         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
26133         * modules/vma-iter: New file.
26134         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
26135         for get_rusage_as_via_iterator.
26136         (vma_iterate_callback): New function.
26137         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
26138         * modules/get-rusage-as (Depends-on): Add vma-iter.
26139
26140 2011-01-23  Bruno Haible  <bruno@clisp.org>
26141
26142         uninorm: Tweak includes.
26143         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
26144         Reported by Jim Meyering.
26145
26146 2011-01-23  Bruno Haible  <bruno@clisp.org>
26147
26148         get-rusage-as: Improve on NetBSD.
26149         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
26150         /proc, like on FreeBSD.
26151
26152 2011-01-23  Jim Meyering  <meyering@redhat.com>
26153
26154         xreadlink.h: remove unnecessary #include
26155         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
26156
26157         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
26158         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
26159
26160 2011-01-23  Bruno Haible  <bruno@clisp.org>
26161
26162         get-rusage-as: Fix bug.
26163         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
26164         original limit when aborting the first loop.
26165
26166 2011-01-23  Bruno Haible  <bruno@clisp.org>
26167
26168         wctype: Ensure valid C syntax.
26169         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
26170         unconditionally, instead of gl_NEXT_HEADERS conditionally.
26171
26172 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
26173
26174         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
26175         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
26176         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
26177         as they are needed only for configure's test case.
26178         This removes two unnecessary symbols from config.h.
26179
26180         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
26181         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
26182         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
26183         AC_CHECK_HEADERS_ONCE on a header that we also invoke
26184         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
26185         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
26186         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
26187         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
26188         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26189         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26190         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26191         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26192         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26193         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26194         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
26195         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26196         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26197         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26198
26199 2011-01-21  Eric Blake  <eblake@redhat.com>
26200
26201         maintainer-makefile: work with older git for submodule check
26202         * top/maint.mk (public-submodule-commit): Rewrite to avoid
26203         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
26204         Reported by Matthias Bolte.
26205
26206         bootstrap: minor portability fixes
26207         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
26208         (usage): Omit leading capital and trailing . on help phrases, per
26209         GNU Coding Standards.
26210         (check_versions, top level): Prefix messages with script name.
26211
26212 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
26213
26214         bootstrap: support --no-git option
26215         * build-aux/bootstrap: Add --no-git option, to be used when
26216         --gnulib-srcdir points to the exact desired checkout.
26217
26218 2011-01-21  Eric Blake  <eblake@redhat.com>
26219
26220         strerror_r-posix: work with glibc 2.13
26221         * lib/strerror_r.c (strerror_r): Fix return type.
26222
26223 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26224             Bruno Haible  <bruno@clisp.org>
26225
26226         uN_strstr: New unit tests.
26227         * modules/unistr/u8-strstr-tests: New file.
26228         * modules/unistr/u16-strstr-tests: New file.
26229         * modules/unistr/u32-strstr-tests: New file.
26230         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
26231         * tests/unistr/test-u8-strstr.c: New file.
26232         * tests/unistr/test-u16-strstr.c: New file.
26233         * tests/unistr/test-u32-strstr.c: New file.
26234
26235 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26236             Bruno Haible  <bruno@clisp.org>
26237
26238         Make uN_strstr functions O(n) worst-case.
26239         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
26240         16-bit and 32-bit unit cases, use the unibyte algorithm from
26241         lib/mbsstr.c.
26242         * lib/unistr/u8-strstr.c: Include <string.h>.
26243         (UNIT_IS_UINT8_T): New macro.
26244         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
26245         (U_STRLEN, U_STRNLEN): New macros.
26246         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
26247         (U_STRLEN, U_STRNLEN): New macros.
26248         * modules/unistr/u8-strstr (Depends-on): Add strstr.
26249         (configure.ac): Update required libunistring version.
26250         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
26251         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
26252         malloca.
26253         (configure.ac): Update required libunistring version.
26254         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
26255         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
26256         malloca.
26257         (configure.ac): Update required libunistring version.
26258
26259 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26260             Bruno Haible  <bruno@clisp.org>
26261
26262         Prepare for faster uN_strstr functions.
26263         * lib/str-kmp.h: Support definable UNITs.
26264         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
26265         needle_len argument.
26266         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
26267         * lib/mbscasestr.c (mbscasestr): Likewise.
26268
26269 2011-01-21  Pádraig Brady <P@draigBrady.com>
26270
26271         malloca-tests: make faster by unsetting MALLOC_PERTURB_
26272         * tests/test-malloca.c (main): Unset the environment variable
26273         to greatly speed up the test.
26274         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
26275         * modules/malloca-tests: Depend on unsetenv.
26276
26277 2011-01-21  Pádraig Brady <P@draigBrady.com>
26278
26279         ignore-value: remove stdint dependency
26280         * lib/ignore-value.h: Remove <stdint.h>
26281         * modules/ignore-value: Remove stdint dependency.
26282
26283 2011-01-21  Jim Meyering  <meyering@redhat.com>
26284
26285         maint.mk: adjust variable name to be consistent with other gl_ vars
26286         * top/maint.mk (gl_public_submodule_commit): Rename the variable
26287         to be lower case.
26288
26289 2011-01-20  Jim Meyering  <meyering@redhat.com>
26290
26291         maint.mk: make "check" depend on public-submodule-commit by default
26292         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
26293
26294 2011-01-20  Bruno Haible  <bruno@clisp.org>
26295
26296         mbfile, mbiter: Complete change from 2008-12-21.
26297         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
26298         * m4/mbiter.m4 (gl_MBITER): Likewise.
26299
26300 2011-01-20  Jim Meyering  <meyering@redhat.com>
26301
26302         init.sh: insert space between each function name and "()"
26303         * tests/init.sh: Make it a little easier to see that a function's
26304         name is "warn_", and not "warn" when looking at the first part of
26305         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
26306
26307 2011-01-20  Jim Meyering  <meyering@redhat.com>
26308
26309         mountlist: clean up code formatting
26310         * lib/mountlist.c (read_file_system_list): Split a long line,
26311         correct bracing style, use NULL in place of "(struct statfs *)0",
26312         don't parenthesize return value, add spaces around "=" and after
26313         ";-in-for-stmt".
26314
26315 2011-01-14  Markus Duft <mduft@gentoo.org>
26316
26317         mountlist: add support for Interix
26318         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
26319         Apply statvfs to all entries of /dev/fs.
26320         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
26321         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
26322
26323 2011-01-20  Jim Meyering  <meyering@redhat.com>
26324
26325         maint.mk: improve the public-submodule-commit rule
26326         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
26327         to suppress printing of its commands... unless V=1.
26328         Add git submodule's --quiet option to suppress printing of e.g.,
26329         "Entering gnulib" output.
26330         "cd" into $(srcdir) before running git submodule.
26331
26332 2011-01-20  Bruno Haible  <bruno@clisp.org>
26333
26334         include_next: Fix bug introduced on 2011-01-18.
26335         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
26336         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
26337         ac_cv_header_... variable if the second argument is not 'check'.
26338         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
26339         gl_NEXT_HEADERS_INTERNAL.
26340
26341 2011-01-20  Bruno Haible  <bruno@clisp.org>
26342
26343         Allow the user to avoid the GNULIB_TEST_* macros.
26344         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
26345         Suggested by Paul Eggert.
26346
26347 2011-01-14  Jim Meyering  <meyering@redhat.com>
26348
26349         bootstrap: avoid failure when there is no .gitmodules file
26350         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
26351         has been assigned to, even when its value is the empty string.
26352         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
26353         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
26354         Reported by John W. Eaton <jwe@gnu.org>.
26355
26356 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
26357
26358         assume <ctype.h>, ..., <time.h> exist
26359         For years gnulib has been assuming the existence of the headers
26360         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
26361         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
26362         them, since they don't appear to be needed.
26363         * README (Portability guidelines): Document this.
26364         * lib/flock.c: Assume <fcntl.h> exists.
26365         * lib/regex_internal.h: Assume <locale.h> exists.
26366         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
26367         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
26368         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
26369         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
26370         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
26371         * m4/regex.m4 (gl_REGEX): Likewise.
26372         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
26373         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
26374         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
26375         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
26376         * tests/test-argp.c: Likewise.
26377         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
26378
26379         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
26380         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
26381         AA_APPLE_UNIVERSAL_BUILD.  See
26382         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
26383         * NEWS: Document this.
26384
26385 2011-01-19  Eric Blake  <eblake@redhat.com>
26386
26387         c-stack: assume stack overflow if SA_SIGINFO unsupported
26388         * lib/c-stack.c (SIGACTION_WORKS): Rename...
26389         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
26390         sigaction will work.
26391         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
26392         behavior match Linux.
26393         * tests/test-c-stack.c (main): Prefer NULL for pointers.
26394
26395         stdbool-tests: accommodate Haiku
26396         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
26397
26398         binary-io: fix O_TEXT on Haiku
26399         * modules/binary-io (Depends-on): Add fcntl-h.
26400         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
26401         than blindly undefining O_TEXT.
26402         Reported by Scott McCreary.
26403
26404 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26405
26406         include_next: do not check for standard headers like stddef.h
26407
26408         I found this problem when modifying Emacs to use gnulib.
26409         I noticed that it added HAVE_STDDEF_H to config.h, even though
26410         gnulib always assumes <stddef.h> exists as per README and this
26411         symbol is unnecessary.
26412         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
26413         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
26414         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
26415         faster for headers like stddef.h that are known to exist.
26416         (gl_CHECK_NEXT_HEADERS): Use it.
26417         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
26418         rather than gl_CHECK_NEXT_HEADERS.
26419         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
26420         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
26421
26422 2011-01-18  Eric Blake  <eblake@redhat.com>
26423
26424         ansi-c++-opt: skip C++ dependency style if C++ is unused
26425         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
26426         tests when we know C++ compilation is not desired.
26427         Reported by Scott McCreary.
26428
26429 2011-01-18  Bruno Haible  <bruno@clisp.org>
26430
26431         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
26432         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
26433         (main): Perform test also when getrlimit and setrlimit don't exist or
26434         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
26435         limiting the address space size using setrlimit, compare the address
26436         space size before and after the the test.
26437         * tests/test-dprintf-posix2.c: Likewise.
26438         * tests/test-fprintf-posix3.sh: Update skip messages.
26439         * tests/test-dprintf-posix2.sh: Likewise.
26440         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
26441         * modules/dprintf-posix-tests (Depends-on): Likewise.
26442         Reported by Bruce Korb <bkorb@gnu.org> and
26443         Gary V. Vaughan <gary@gnu.org>.
26444
26445 2011-01-18  Bruno Haible  <bruno@clisp.org>
26446
26447         get-rusage-as: Improvement for Cygwin.
26448         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
26449         areas that are merely reserved.
26450
26451 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26452
26453         strftime: remove dependencies on multibyte modules
26454
26455         strftime depended on mbrlen, mbsinit, and wchar, but these modules
26456         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
26457         only if __osf__ is defined, and I suspect OSF doesn't need these
26458         other modules.  If my guess is wrong, we'll need to come up with a
26459         variant of strftime that doesn't need the multibyte modules.
26460
26461         I discovered this problem when attempting modify Emacs to use the
26462         strftime module.  With the previous gnulib, this caused Emacs to
26463         need 31 new files, ranging from lib/config.charset to
26464         m4/wint_t.m4.  This was overkill and I expect would be offputting
26465         to the Emacs maintainers.  After this change, only 6 new files are
26466         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
26467         stdbool.m4, and tm_gmtoff.m4.
26468
26469         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
26470         Suggested by Bruno Haible in
26471         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
26472         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
26473         and do not check for wchar.h.
26474         * modules/strftime (Files): Remove m4/mbstate_t.m4.
26475         (Depends-on): Remove mbrlen, mbsinit, wchar.
26476
26477 2011-01-18  Bruno Haible  <bruno@clisp.org>
26478
26479         Tests for module 'get-rusage-as'.
26480         * modules/get-rusage-as-tests: New file.
26481         * tests/test-get-rusage-as.c: New file.
26482
26483         New module 'get-rusage-as'.
26484         * modules/get-rusage-as: New file.
26485         * lib/resource-ext.h: New file.
26486         * lib/get-rusage-as.c: New file.
26487
26488 2011-01-17  Eric Blake  <eblake@redhat.com>
26489
26490         sigaction: relax license from LGPLv3+ to LGPLv2+
26491         * modules/sigaction (License): Relax to LGPLv2+.
26492
26493 2011-01-14  Bruno Haible  <bruno@clisp.org>
26494
26495         filemode: Make function declarations usable in C++ mode.
26496         * lib/filemode.h: Enclose function declarations in extern "C" block.
26497         Reported by John W. Eaton <jwe@gnu.org>.
26498
26499 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
26500
26501         save-cwd: no longer include "xgetcwd.h"
26502         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
26503         This avoids a compilation failure in projects that use save-cwd
26504         without also using the xgetcwd module.
26505
26506 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26507
26508         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
26509         This is so that a program like Emacs, which needs only dtoastr,
26510         does not have to bother with distributing and compiling ftoastr
26511         and ldtoastr.
26512         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
26513         * modules/dtoastr, modules/ldtoastr: New files.
26514         * modules/ftoastr: Now works just for 'float'.
26515         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
26516         (Makefile.am): Remove ftoastr.h (not needed and no effect),
26517         dtoastr.c, ldtoastr.c.
26518
26519 2011-01-11  Jim Meyering  <meyering@redhat.com>
26520
26521         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
26522         There is no need to work around the lack of the fchdir function,
26523         since gnulib can now provide a replacement when required.
26524         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
26525         * modules/save-cwd (Depends-on): Add fchdir.
26526
26527 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26528
26529         openat, save-cwd: avoid xmalloc
26530
26531         This removes a direct (but undocumented) dependency of openat on
26532         xalloc, along with an indirect dependency via save-cwd.  It also
26533         removes a dependency of save-cwd on xgetcwd, and thereby
26534         indirectly on xalloc.  This change causes the openat substitute
26535         to fall back on save_cwd when memory is tight, and for save_cwd to
26536         fail instead of dying when memory is tight, but that's good enough.
26537         Problem and initial idea for fix reported by Bastien Roucaries in
26538         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
26539
26540         * lib/openat-proc.c: Include stdlib.h (for malloc), not
26541         xalloc.h (for xmalloc).
26542         (openat_proc_name): Use malloc, not xmalloc.
26543         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
26544         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
26545
26546         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
26547         This avoids heap allocation for file names whose lengths are in
26548         the range 512..1023, with the upper bound increasing to at most
26549         4031 depending on the platform's PATH_MAX.  (We do not want
26550         pathmax.h here as it might supply a non-constant PATH_MAX.)
26551         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
26552         Perhaps they should be moved to malloca.h?
26553         (OPENAT_BUFFER_SIZE): Use them.
26554
26555 2011-01-10  Bruno Haible  <bruno@clisp.org>
26556
26557         doc: Update users.txt.
26558         * users.txt: Add recutils.
26559
26560 2011-01-09  Karl Berry  <karl@gnu.org>
26561
26562         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
26563
26564         * doc/configmake.texi: New file.
26565         * doc/gnulib.texi: Include it.
26566         * modules/configmake: Move documentation from here.
26567
26568 2011-01-09  Bruno Haible  <bruno@clisp.org>
26569
26570         Update to Unicode 6.0.0.
26571         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
26572         (get_lbp): Update for Unicode 6.0.0.
26573         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
26574         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
26575         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
26576         U+11001, U+11038..U+11046. Remove U+06DE.
26577         (uc_width): Fix bounds of planes.
26578         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26579         lib/uniwidth/width.c.
26580         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
26581         trailing whitespace removed.
26582         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
26583         without comments, but with the original copyright notice.
26584         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
26585         * lib/unicase/ignorable.h: Likewise.
26586         * lib/unicase/tocasefold.h: Likewise.
26587         * lib/unicase/tolower.h: Likewise.
26588         * lib/unicase/totitle.h: Likewise.
26589         * lib/unicase/toupper.h: Likewise.
26590         * lib/unictype/bidi_of.h: Likewise.
26591         * lib/unictype/blocks.h: Likewise.
26592         * lib/unictype/categ_C.h: Likewise.
26593         * lib/unictype/categ_Cn.h: Likewise.
26594         * lib/unictype/categ_L.h: Likewise.
26595         * lib/unictype/categ_Ll.h: Likewise.
26596         * lib/unictype/categ_Lm.h: Likewise.
26597         * lib/unictype/categ_Lo.h: Likewise.
26598         * lib/unictype/categ_Lu.h: Likewise.
26599         * lib/unictype/categ_M.h: Likewise.
26600         * lib/unictype/categ_Mc.h: Likewise.
26601         * lib/unictype/categ_Me.h: Likewise.
26602         * lib/unictype/categ_Mn.h: Likewise.
26603         * lib/unictype/categ_N.h: Likewise.
26604         * lib/unictype/categ_Nd.h: Likewise.
26605         * lib/unictype/categ_No.h: Likewise.
26606         * lib/unictype/categ_P.h: Likewise.
26607         * lib/unictype/categ_Po.h: Likewise.
26608         * lib/unictype/categ_S.h: Likewise.
26609         * lib/unictype/categ_Sc.h: Likewise.
26610         * lib/unictype/categ_Sk.h: Likewise.
26611         * lib/unictype/categ_Sm.h: Likewise.
26612         * lib/unictype/categ_So.h: Likewise.
26613         * lib/unictype/categ_of.h: Likewise.
26614         * lib/unictype/combining.h: Likewise.
26615         * lib/unictype/ctype_alnum.h: Likewise.
26616         * lib/unictype/ctype_alpha.h: Likewise.
26617         * lib/unictype/ctype_graph.h: Likewise.
26618         * lib/unictype/ctype_lower.h: Likewise.
26619         * lib/unictype/ctype_print.h: Likewise.
26620         * lib/unictype/ctype_punct.h: Likewise.
26621         * lib/unictype/ctype_upper.h: Likewise.
26622         * lib/unictype/decdigit.h: Likewise.
26623         * lib/unictype/digit.h: Likewise.
26624         * lib/unictype/numeric.h: Likewise.
26625         * lib/unictype/pr_alphabetic.h: Likewise.
26626         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26627         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26628         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26629         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26630         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26631         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26632         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26633         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26634         * lib/unictype/pr_case_ignorable.h: Likewise.
26635         * lib/unictype/pr_cased.h: Likewise.
26636         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
26637         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
26638         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
26639         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
26640         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
26641         * lib/unictype/pr_combining.h: Likewise.
26642         * lib/unictype/pr_composite.h: Likewise.
26643         * lib/unictype/pr_currency_symbol.h: Likewise.
26644         * lib/unictype/pr_decimal_digit.h: Likewise.
26645         * lib/unictype/pr_deprecated.h: Likewise.
26646         * lib/unictype/pr_format_control.h: Likewise.
26647         * lib/unictype/pr_grapheme_base.h: Likewise.
26648         * lib/unictype/pr_grapheme_extend.h: Likewise.
26649         * lib/unictype/pr_grapheme_link.h: Likewise.
26650         * lib/unictype/pr_id_continue.h: Likewise.
26651         * lib/unictype/pr_id_start.h: Likewise.
26652         * lib/unictype/pr_ideographic.h: Likewise.
26653         * lib/unictype/pr_lowercase.h: Likewise.
26654         * lib/unictype/pr_math.h: Likewise.
26655         * lib/unictype/pr_numeric.h: Likewise.
26656         * lib/unictype/pr_other_alphabetic.h: Likewise.
26657         * lib/unictype/pr_other_id_continue.h: Likewise.
26658         * lib/unictype/pr_other_math.h: Likewise.
26659         * lib/unictype/pr_punctuation.h: Likewise.
26660         * lib/unictype/pr_sentence_terminal.h: Likewise.
26661         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26662         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26663         * lib/unictype/pr_unified_ideograph.h: Likewise.
26664         * lib/unictype/pr_uppercase.h: Likewise.
26665         * lib/unictype/pr_xid_continue.h: Likewise.
26666         * lib/unictype/pr_xid_start.h: Likewise.
26667         * lib/unictype/scripts.h: Likewise.
26668         * lib/unictype/scripts_byname.gperf: Likewise.
26669         * lib/unictype/sy_java_ident.h: Likewise.
26670         * lib/unigbrk/gbrkprop.h: Likewise.
26671         * lib/unilbrk/lbrkprop1.h: Likewise.
26672         * lib/unilbrk/lbrkprop2.h: Likewise.
26673         * lib/uninorm/decomposition-table2.h: Likewise.
26674         * lib/uniwbrk/wbrkprop.h: Likewise.
26675         * tests/unicase/test-cased.c: Likewise.
26676         * tests/unicase/test-ignorable.c: Likewise.
26677         * tests/unicase/test-uc_tolower.c: Likewise.
26678         * tests/unicase/test-uc_totitle.c: Likewise.
26679         * tests/unicase/test-uc_toupper.c: Likewise.
26680         * tests/unictype/test-categ_C.c: Likewise.
26681         * tests/unictype/test-categ_Cn.c: Likewise.
26682         * tests/unictype/test-categ_L.c: Likewise.
26683         * tests/unictype/test-categ_Ll.c: Likewise.
26684         * tests/unictype/test-categ_Lm.c: Likewise.
26685         * tests/unictype/test-categ_Lo.c: Likewise.
26686         * tests/unictype/test-categ_Lu.c: Likewise.
26687         * tests/unictype/test-categ_M.c: Likewise.
26688         * tests/unictype/test-categ_Mc.c: Likewise.
26689         * tests/unictype/test-categ_Me.c: Likewise.
26690         * tests/unictype/test-categ_Mn.c: Likewise.
26691         * tests/unictype/test-categ_N.c: Likewise.
26692         * tests/unictype/test-categ_Nd.c: Likewise.
26693         * tests/unictype/test-categ_No.c: Likewise.
26694         * tests/unictype/test-categ_P.c: Likewise.
26695         * tests/unictype/test-categ_Po.c: Likewise.
26696         * tests/unictype/test-categ_S.c: Likewise.
26697         * tests/unictype/test-categ_Sc.c: Likewise.
26698         * tests/unictype/test-categ_Sk.c: Likewise.
26699         * tests/unictype/test-categ_Sm.c: Likewise.
26700         * tests/unictype/test-categ_So.c: Likewise.
26701         * tests/unictype/test-ctype_alnum.c: Likewise.
26702         * tests/unictype/test-ctype_alpha.c: Likewise.
26703         * tests/unictype/test-ctype_graph.c: Likewise.
26704         * tests/unictype/test-ctype_lower.c: Likewise.
26705         * tests/unictype/test-ctype_print.c: Likewise.
26706         * tests/unictype/test-ctype_punct.c: Likewise.
26707         * tests/unictype/test-ctype_upper.c: Likewise.
26708         * tests/unictype/test-decdigit.h: Likewise.
26709         * tests/unictype/test-digit.h: Likewise.
26710         * tests/unictype/test-numeric.h: Likewise.
26711         * tests/unictype/test-pr_alphabetic.c: Likewise.
26712         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26713         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26714         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26715         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26716         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26717         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26718         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26719         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26720         * tests/unictype/test-pr_case_ignorable.c: Likewise.
26721         * tests/unictype/test-pr_cased.c: Likewise.
26722         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
26723         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
26724         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
26725         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
26726         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
26727         * tests/unictype/test-pr_combining.c: Likewise.
26728         * tests/unictype/test-pr_composite.c: Likewise.
26729         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26730         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26731         * tests/unictype/test-pr_deprecated.c: Likewise.
26732         * tests/unictype/test-pr_format_control.c: Likewise.
26733         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26734         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26735         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26736         * tests/unictype/test-pr_id_continue.c: Likewise.
26737         * tests/unictype/test-pr_id_start.c: Likewise.
26738         * tests/unictype/test-pr_ideographic.c: Likewise.
26739         * tests/unictype/test-pr_lowercase.c: Likewise.
26740         * tests/unictype/test-pr_math.c: Likewise.
26741         * tests/unictype/test-pr_numeric.c: Likewise.
26742         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26743         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26744         * tests/unictype/test-pr_other_math.c: Likewise.
26745         * tests/unictype/test-pr_punctuation.c: Likewise.
26746         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26747         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26748         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26749         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26750         * tests/unictype/test-pr_uppercase.c: Likewise.
26751         * tests/unictype/test-pr_xid_continue.c: Likewise.
26752         * tests/unictype/test-pr_xid_start.c: Likewise.
26753         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26754         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26755         changes.
26756         * lib/unictype/categ_Cc.h: Likewise.
26757         * lib/unictype/categ_Cf.h: Likewise.
26758         * lib/unictype/categ_Co.h: Likewise.
26759         * lib/unictype/categ_Cs.h: Likewise.
26760         * lib/unictype/categ_Lt.h: Likewise.
26761         * lib/unictype/categ_Nl.h: Likewise.
26762         * lib/unictype/categ_Pc.h: Likewise.
26763         * lib/unictype/categ_Pd.h: Likewise.
26764         * lib/unictype/categ_Pe.h: Likewise.
26765         * lib/unictype/categ_Pf.h: Likewise.
26766         * lib/unictype/categ_Pi.h: Likewise.
26767         * lib/unictype/categ_Ps.h: Likewise.
26768         * lib/unictype/categ_Z.h: Likewise.
26769         * lib/unictype/categ_Zl.h: Likewise.
26770         * lib/unictype/categ_Zp.h: Likewise.
26771         * lib/unictype/categ_Zs.h: Likewise.
26772         * lib/unictype/ctype_blank.h: Likewise.
26773         * lib/unictype/ctype_cntrl.h: Likewise.
26774         * lib/unictype/ctype_digit.h: Likewise.
26775         * lib/unictype/ctype_space.h: Likewise.
26776         * lib/unictype/ctype_xdigit.h: Likewise.
26777         * lib/unictype/mirror.h: Likewise.
26778         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26779         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26780         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26781         * lib/unictype/pr_bidi_control.h: Likewise.
26782         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26783         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26784         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26785         * lib/unictype/pr_bidi_pdf.h: Likewise.
26786         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26787         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26788         * lib/unictype/pr_dash.h: Likewise.
26789         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26790         * lib/unictype/pr_diacritic.h: Likewise.
26791         * lib/unictype/pr_extender.h: Likewise.
26792         * lib/unictype/pr_hex_digit.h: Likewise.
26793         * lib/unictype/pr_hyphen.h: Likewise.
26794         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26795         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26796         * lib/unictype/pr_ignorable_control.h: Likewise.
26797         * lib/unictype/pr_iso_control.h: Likewise.
26798         * lib/unictype/pr_join_control.h: Likewise.
26799         * lib/unictype/pr_left_of_pair.h: Likewise.
26800         * lib/unictype/pr_line_separator.h: Likewise.
26801         * lib/unictype/pr_logical_order_exception.h: Likewise.
26802         * lib/unictype/pr_non_break.h: Likewise.
26803         * lib/unictype/pr_not_a_character.h: Likewise.
26804         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26805         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26806         * lib/unictype/pr_other_id_start.h: Likewise.
26807         * lib/unictype/pr_other_lowercase.h: Likewise.
26808         * lib/unictype/pr_other_uppercase.h: Likewise.
26809         * lib/unictype/pr_paired_punctuation.h: Likewise.
26810         * lib/unictype/pr_paragraph_separator.h: Likewise.
26811         * lib/unictype/pr_pattern_syntax.h: Likewise.
26812         * lib/unictype/pr_pattern_white_space.h: Likewise.
26813         * lib/unictype/pr_private_use.h: Likewise.
26814         * lib/unictype/pr_quotation_mark.h: Likewise.
26815         * lib/unictype/pr_radical.h: Likewise.
26816         * lib/unictype/pr_soft_dotted.h: Likewise.
26817         * lib/unictype/pr_space.h: Likewise.
26818         * lib/unictype/pr_titlecase.h: Likewise.
26819         * lib/unictype/pr_variation_selector.h: Likewise.
26820         * lib/unictype/pr_white_space.h: Likewise.
26821         * lib/unictype/pr_zero_width.h: Likewise.
26822         * lib/unictype/sy_c_ident.h: Likewise.
26823         * lib/unictype/sy_c_whitespace.h: Likewise.
26824         * lib/unictype/sy_java_whitespace.h: Likewise.
26825         * lib/uninorm/composition-table.gperf: Likewise.
26826         * lib/uninorm/decomposition-table1.h: Likewise.
26827         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
26828         LB8.
26829         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26830         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26831         * modules/unictype/*: Bump version number of expected libunistring
26832         version.
26833
26834 2011-01-09  Bruno Haible  <bruno@clisp.org>
26835
26836         Update to Unicode 5.2.0.
26837         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
26838         trailing whitespace removed.
26839
26840 2011-01-09  Bruno Haible  <bruno@clisp.org>
26841
26842         New Unicode character properties, from Unicode 5.2.0.
26843         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
26844         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
26845         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
26846         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
26847         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
26848         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
26849         uc_is_property_cased, uc_is_property_case_ignorable,
26850         uc_is_property_changes_when_lowercased,
26851         uc_is_property_changes_when_uppercased,
26852         uc_is_property_changes_when_titlecased,
26853         uc_is_property_changes_when_casefolded,
26854         uc_is_property_changes_when_casemapped): New declarations.
26855         * lib/unictype/pr_byname.gperf: Add the new properties.
26856         * modules/unictype/property-byname (Depends-on): Depend on the new
26857         properties modules.
26858         * modules/unictype/property-all (Depends-on): Likewise.
26859         * MODULES.html.sh (Unicode string functions): Add
26860         unictype/property-case-ignorable, unictype/property-cased,
26861         unictype/property-changes-when-casefolded,
26862         unictype/property-changes-when-casemapped,
26863         unictype/property-changes-when-lowercased,
26864         unictype/property-changes-when-titlecased,
26865         unictype/property-changes-when-uppercased.
26866
26867         New module 'unictype/property-changes-when-casemapped'.
26868         * modules/unictype/property-changes-when-casemapped: New file.
26869         * lib/unictype/pr_changes_when_casemapped.c: New file.
26870         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
26871         generated by gen-uni-tables.
26872         * modules/unictype/property-changes-when-casemapped-tests: New file.
26873         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
26874         automatically generated by gen-uni-tables.
26875
26876         New module 'unictype/property-changes-when-casefolded'.
26877         * modules/unictype/property-changes-when-casefolded: New file.
26878         * lib/unictype/pr_changes_when_casefolded.c: New file.
26879         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
26880         generated by gen-uni-tables.
26881         * modules/unictype/property-changes-when-casefolded-tests: New file.
26882         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
26883         automatically generated by gen-uni-tables.
26884
26885         New module 'unictype/property-changes-when-titlecased'.
26886         * modules/unictype/property-changes-when-titlecased: New file.
26887         * lib/unictype/pr_changes_when_titlecased.c: New file.
26888         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
26889         generated by gen-uni-tables.
26890         * modules/unictype/property-changes-when-titlecased-tests: New file.
26891         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
26892         automatically generated by gen-uni-tables.
26893
26894         New module 'unictype/property-changes-when-uppercased'.
26895         * modules/unictype/property-changes-when-uppercased: New file.
26896         * lib/unictype/pr_changes_when_uppercased.c: New file.
26897         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
26898         generated by gen-uni-tables.
26899         * modules/unictype/property-changes-when-uppercased-tests: New file.
26900         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
26901         automatically generated by gen-uni-tables.
26902
26903         New module 'unictype/property-changes-when-lowercased'.
26904         * modules/unictype/property-changes-when-lowercased: New file.
26905         * lib/unictype/pr_changes_when_lowercased.c: New file.
26906         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
26907         generated by gen-uni-tables.
26908         * modules/unictype/property-changes-when-lowercased-tests: New file.
26909         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
26910         automatically generated by gen-uni-tables.
26911
26912         New module 'unictype/property-case-ignorable'.
26913         * modules/unictype/property-case-ignorable: New file.
26914         * lib/unictype/pr_case_ignorable.c: New file.
26915         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
26916         by gen-uni-tables.
26917         * modules/unictype/property-case-ignorable-tests: New file.
26918         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
26919         generated by gen-uni-tables.
26920
26921         New module 'unictype/property-cased'.
26922         * modules/unictype/property-cased: New file.
26923         * lib/unictype/pr_cased.c: New file.
26924         * lib/unictype/pr_cased.h: New file, automatically generated by
26925         gen-uni-tables.
26926         * modules/unictype/property-cased-tests: New file.
26927         * tests/unictype/test-pr_cased.c: New file, automatically generated by
26928         gen-uni-tables.
26929
26930 2011-01-09  Bruno Haible  <bruno@clisp.org>
26931
26932         Update to Unicode 5.2.0.
26933         * lib/gen-uni-tables.c (output_predicate, output_category,
26934         output_combclass, output_bidi_category, output_decimal_digit_test,
26935         output_decimal_digit, output_digit_test, output_digit,
26936         output_numeric_test, output_numeric, output_mirror, output_scripts,
26937         output_scripts_byname, output_blocks, output_ident_category): Fix
26938         comment header.
26939         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
26940         get_wbp.
26941         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
26942         items.
26943         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
26944         Changes_When_Lowercased, Changes_When_Uppercased,
26945         Changes_When_Titlecased, Changes_When_Casefolded,
26946         Changes_When_Casemapped.
26947         (is_property_alphabetic, is_property_default_ignorable_code_point):
26948         Update for Unicode 5.2.0.
26949         (is_property_cased, is_property_case_ignorable,
26950         is_property_changes_when_lowercased,
26951         is_property_changes_when_uppercased,
26952         is_property_changes_when_titlecased,
26953         is_property_changes_when_casefolded,
26954         is_property_changes_when_casemapped): New functions.
26955         (output_properties): Output also the properties cased, case_ignorable,
26956         changes_when_lowercased, changes_when_uppercased,
26957         changes_when_titlecased, changes_when_casefolded,
26958         changes_when_casemapped.
26959         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
26960         Unicode TR#11 revision 17 -> 19.
26961         (LBP_CP): New enumeration value.
26962         (LBP_*): Adjust values accordingly.
26963         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26964         TR#14 revision 22 -> 24.
26965         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
26966         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
26967         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26968         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
26969         is_WBP_MIDLETTER.
26970         (output_composition_tables): Allow for 24 bits instead of 16 bits in
26971         the code1 and code2 of each composition rule.
26972         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
26973         * lib/unicase/ignorable.h: Likewise.
26974         * lib/unicase/tocasefold.h: Likewise.
26975         * lib/unicase/tolower.h: Likewise.
26976         * lib/unicase/totitle.h: Likewise.
26977         * lib/unicase/toupper.h: Likewise.
26978         * lib/unictype/bidi_of.h: Likewise.
26979         * lib/unictype/blocks.h: Likewise.
26980         * lib/unictype/categ_C.h: Likewise.
26981         * lib/unictype/categ_Cf.h: Likewise.
26982         * lib/unictype/categ_Cn.h: Likewise.
26983         * lib/unictype/categ_L.h: Likewise.
26984         * lib/unictype/categ_Ll.h: Likewise.
26985         * lib/unictype/categ_Lm.h: Likewise.
26986         * lib/unictype/categ_Lo.h: Likewise.
26987         * lib/unictype/categ_Lu.h: Likewise.
26988         * lib/unictype/categ_M.h: Likewise.
26989         * lib/unictype/categ_Mc.h: Likewise.
26990         * lib/unictype/categ_Mn.h: Likewise.
26991         * lib/unictype/categ_N.h: Likewise.
26992         * lib/unictype/categ_Nd.h: Likewise.
26993         * lib/unictype/categ_Nl.h: Likewise.
26994         * lib/unictype/categ_No.h: Likewise.
26995         * lib/unictype/categ_P.h: Likewise.
26996         * lib/unictype/categ_Pd.h: Likewise.
26997         * lib/unictype/categ_Po.h: Likewise.
26998         * lib/unictype/categ_S.h: Likewise.
26999         * lib/unictype/categ_Sc.h: Likewise.
27000         * lib/unictype/categ_So.h: Likewise.
27001         * lib/unictype/categ_of.h: Likewise.
27002         * lib/unictype/combining.h: Likewise.
27003         * lib/unictype/ctype_alnum.h: Likewise.
27004         * lib/unictype/ctype_alpha.h: Likewise.
27005         * lib/unictype/ctype_graph.h: Likewise.
27006         * lib/unictype/ctype_lower.h: Likewise.
27007         * lib/unictype/ctype_print.h: Likewise.
27008         * lib/unictype/ctype_punct.h: Likewise.
27009         * lib/unictype/ctype_upper.h: Likewise.
27010         * lib/unictype/decdigit.h: Likewise.
27011         * lib/unictype/digit.h: Likewise.
27012         * lib/unictype/numeric.h: Likewise.
27013         * lib/unictype/pr_alphabetic.h: Likewise.
27014         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27015         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27016         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27017         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27018         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27019         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27020         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27021         * lib/unictype/pr_combining.h: Likewise.
27022         * lib/unictype/pr_composite.h: Likewise.
27023         * lib/unictype/pr_currency_symbol.h: Likewise.
27024         * lib/unictype/pr_dash.h: Likewise.
27025         * lib/unictype/pr_decimal_digit.h: Likewise.
27026         * lib/unictype/pr_deprecated.h: Likewise.
27027         * lib/unictype/pr_diacritic.h: Likewise.
27028         * lib/unictype/pr_extender.h: Likewise.
27029         * lib/unictype/pr_grapheme_base.h: Likewise.
27030         * lib/unictype/pr_grapheme_extend.h: Likewise.
27031         * lib/unictype/pr_grapheme_link.h: Likewise.
27032         * lib/unictype/pr_id_continue.h: Likewise.
27033         * lib/unictype/pr_id_start.h: Likewise.
27034         * lib/unictype/pr_ideographic.h: Likewise.
27035         * lib/unictype/pr_ignorable_control.h: Likewise.
27036         * lib/unictype/pr_logical_order_exception.h: Likewise.
27037         * lib/unictype/pr_lowercase.h: Likewise.
27038         * lib/unictype/pr_numeric.h: Likewise.
27039         * lib/unictype/pr_other_alphabetic.h: Likewise.
27040         * lib/unictype/pr_punctuation.h: Likewise.
27041         * lib/unictype/pr_sentence_terminal.h: Likewise.
27042         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27043         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27044         * lib/unictype/pr_unified_ideograph.h: Likewise.
27045         * lib/unictype/pr_uppercase.h: Likewise.
27046         * lib/unictype/pr_xid_continue.h: Likewise.
27047         * lib/unictype/pr_xid_start.h: Likewise.
27048         * lib/unictype/pr_zero_width.h: Likewise.
27049         * lib/unictype/scripts.h: Likewise.
27050         * lib/unictype/scripts_byname.gperf: Likewise.
27051         * lib/unictype/sy_java_ident.h: Likewise.
27052         * lib/unigbrk/gbrkprop.h: Likewise.
27053         * lib/unilbrk/lbrkprop1.h: Likewise.
27054         * lib/unilbrk/lbrkprop2.h: Likewise.
27055         * lib/unilbrk/lbrktables.h: Likewise.
27056         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
27057         LBP_CP. Implement rule LB30.
27058         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
27059         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
27060         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
27061         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
27062         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
27063         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
27064         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
27065         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
27066         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
27067         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
27068         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
27069         bits instead of 16 bits in the code1 and code2 of each composition
27070         rule.
27071         (uc_composition): Update for Unicode 5.2.0.
27072         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
27073         * lib/uninorm/decomposition-table2.h: Likewise.
27074         * lib/uniwbrk/wbrkprop.h: Likewise.
27075         * tests/unicase/test-cased.c: Likewise.
27076         * tests/unicase/test-ignorable.c: Likewise.
27077         * tests/unicase/test-uc_tolower.c: Likewise.
27078         * tests/unicase/test-uc_totitle.c: Likewise.
27079         * tests/unicase/test-uc_toupper.c: Likewise.
27080         * tests/unictype/test-categ_C.c: Likewise.
27081         * tests/unictype/test-categ_Cf.c: Likewise.
27082         * tests/unictype/test-categ_Cn.c: Likewise.
27083         * tests/unictype/test-categ_L.c: Likewise.
27084         * tests/unictype/test-categ_Ll.c: Likewise.
27085         * tests/unictype/test-categ_Lm.c: Likewise.
27086         * tests/unictype/test-categ_Lo.c: Likewise.
27087         * tests/unictype/test-categ_Lu.c: Likewise.
27088         * tests/unictype/test-categ_M.c: Likewise.
27089         * tests/unictype/test-categ_Mc.c: Likewise.
27090         * tests/unictype/test-categ_Mn.c: Likewise.
27091         * tests/unictype/test-categ_N.c: Likewise.
27092         * tests/unictype/test-categ_Nd.c: Likewise.
27093         * tests/unictype/test-categ_Nl.c: Likewise.
27094         * tests/unictype/test-categ_No.c: Likewise.
27095         * tests/unictype/test-categ_P.c: Likewise.
27096         * tests/unictype/test-categ_Pd.c: Likewise.
27097         * tests/unictype/test-categ_Po.c: Likewise.
27098         * tests/unictype/test-categ_S.c: Likewise.
27099         * tests/unictype/test-categ_Sc.c: Likewise.
27100         * tests/unictype/test-categ_So.c: Likewise.
27101         * tests/unictype/test-ctype_alnum.c: Likewise.
27102         * tests/unictype/test-ctype_alpha.c: Likewise.
27103         * tests/unictype/test-ctype_graph.c: Likewise.
27104         * tests/unictype/test-ctype_lower.c: Likewise.
27105         * tests/unictype/test-ctype_print.c: Likewise.
27106         * tests/unictype/test-ctype_punct.c: Likewise.
27107         * tests/unictype/test-ctype_upper.c: Likewise.
27108         * tests/unictype/test-decdigit.h: Likewise.
27109         * tests/unictype/test-digit.h: Likewise.
27110         * tests/unictype/test-numeric.h: Likewise.
27111         * tests/unictype/test-pr_alphabetic.c: Likewise.
27112         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27113         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27114         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27115         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27116         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27117         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27118         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27119         * tests/unictype/test-pr_combining.c: Likewise.
27120         * tests/unictype/test-pr_composite.c: Likewise.
27121         * tests/unictype/test-pr_currency_symbol.c: Likewise.
27122         * tests/unictype/test-pr_dash.c: Likewise.
27123         * tests/unictype/test-pr_decimal_digit.c: Likewise.
27124         * tests/unictype/test-pr_deprecated.c: Likewise.
27125         * tests/unictype/test-pr_diacritic.c: Likewise.
27126         * tests/unictype/test-pr_extender.c: Likewise.
27127         * tests/unictype/test-pr_grapheme_base.c: Likewise.
27128         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27129         * tests/unictype/test-pr_grapheme_link.c: Likewise.
27130         * tests/unictype/test-pr_id_continue.c: Likewise.
27131         * tests/unictype/test-pr_id_start.c: Likewise.
27132         * tests/unictype/test-pr_ideographic.c: Likewise.
27133         * tests/unictype/test-pr_ignorable_control.c: Likewise.
27134         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27135         * tests/unictype/test-pr_lowercase.c: Likewise.
27136         * tests/unictype/test-pr_numeric.c: Likewise.
27137         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27138         * tests/unictype/test-pr_punctuation.c: Likewise.
27139         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27140         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27141         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27142         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27143         * tests/unictype/test-pr_uppercase.c: Likewise.
27144         * tests/unictype/test-pr_xid_continue.c: Likewise.
27145         * tests/unictype/test-pr_xid_start.c: Likewise.
27146         * tests/unictype/test-pr_zero_width.c: Likewise.
27147         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
27148         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
27149         changed behaviour: line breaking is now disallowed between a letter
27150         or '=' and '('.
27151         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27152         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27153         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
27154         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
27155         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27156         lib/uniwidth/width.c.
27157         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
27158         without comments, but with the original copyright notice.
27159         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
27160         changes.
27161         * lib/unictype/categ_Cc.h: Likewise.
27162         * lib/unictype/categ_Co.h: Likewise.
27163         * lib/unictype/categ_Cs.h: Likewise.
27164         * lib/unictype/categ_Lt.h: Likewise.
27165         * lib/unictype/categ_Me.h: Likewise.
27166         * lib/unictype/categ_Pc.h: Likewise.
27167         * lib/unictype/categ_Pe.h: Likewise.
27168         * lib/unictype/categ_Pf.h: Likewise.
27169         * lib/unictype/categ_Pi.h: Likewise.
27170         * lib/unictype/categ_Ps.h: Likewise.
27171         * lib/unictype/categ_Sk.h: Likewise.
27172         * lib/unictype/categ_Sm.h: Likewise.
27173         * lib/unictype/categ_Z.h: Likewise.
27174         * lib/unictype/categ_Zl.h: Likewise.
27175         * lib/unictype/categ_Zp.h: Likewise.
27176         * lib/unictype/categ_Zs.h: Likewise.
27177         * lib/unictype/ctype_blank.h: Likewise.
27178         * lib/unictype/ctype_cntrl.h: Likewise.
27179         * lib/unictype/ctype_digit.h: Likewise.
27180         * lib/unictype/ctype_space.h: Likewise.
27181         * lib/unictype/ctype_xdigit.h: Likewise.
27182         * lib/unictype/mirror.h: Likewise.
27183         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27184         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27185         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27186         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27187         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27188         * lib/unictype/pr_bidi_control.h: Likewise.
27189         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27190         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27191         * lib/unictype/pr_bidi_pdf.h: Likewise.
27192         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27193         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27194         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27195         * lib/unictype/pr_format_control.h: Likewise.
27196         * lib/unictype/pr_hex_digit.h: Likewise.
27197         * lib/unictype/pr_hyphen.h: Likewise.
27198         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27199         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27200         * lib/unictype/pr_iso_control.h: Likewise.
27201         * lib/unictype/pr_join_control.h: Likewise.
27202         * lib/unictype/pr_left_of_pair.h: Likewise.
27203         * lib/unictype/pr_line_separator.h: Likewise.
27204         * lib/unictype/pr_math.h: Likewise.
27205         * lib/unictype/pr_non_break.h: Likewise.
27206         * lib/unictype/pr_not_a_character.h: Likewise.
27207         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27208         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27209         * lib/unictype/pr_other_id_continue.h: Likewise.
27210         * lib/unictype/pr_other_id_start.h: Likewise.
27211         * lib/unictype/pr_other_lowercase.h: Likewise.
27212         * lib/unictype/pr_other_math.h: Likewise.
27213         * lib/unictype/pr_other_uppercase.h: Likewise.
27214         * lib/unictype/pr_paired_punctuation.h: Likewise.
27215         * lib/unictype/pr_paragraph_separator.h: Likewise.
27216         * lib/unictype/pr_pattern_syntax.h: Likewise.
27217         * lib/unictype/pr_pattern_white_space.h: Likewise.
27218         * lib/unictype/pr_private_use.h: Likewise.
27219         * lib/unictype/pr_quotation_mark.h: Likewise.
27220         * lib/unictype/pr_radical.h: Likewise.
27221         * lib/unictype/pr_soft_dotted.h: Likewise.
27222         * lib/unictype/pr_space.h: Likewise.
27223         * lib/unictype/pr_titlecase.h: Likewise.
27224         * lib/unictype/pr_variation_selector.h: Likewise.
27225         * lib/unictype/pr_white_space.h: Likewise.
27226         * lib/unictype/sy_c_ident.h: Likewise.
27227         * lib/unictype/sy_c_whitespace.h: Likewise.
27228         * lib/unictype/sy_java_whitespace.h: Likewise.
27229         * modules/uni*/*: Bump version number of expected libunistring version.
27230         Reported by Simon Josefsson.
27231
27232 2011-01-09  Karl Heuer  <kwzh@gnu.org>
27233
27234         useless-if-before-free: fix typo in --help and make the internal,
27235         automatic version date update process work once again.
27236         --help output contained a NUL character instead of the
27237         backslash-zero that was intended.  Also, the "must lie within
27238         the first 8 lines" line is on line 9, and hence not getting
27239         automatically updated.
27240         * build-aux/useless-if-before-free: Fix the former by adding a
27241         backslash, and the latter by condensing the three lines of what-it-does
27242         to a single line, leaving one line of slack for the future.
27243
27244 2011-01-09  Bruno Haible  <bruno@clisp.org>
27245
27246         uniwidth/width: Fix width of U+1D173..U+1D17A.
27247         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
27248         symbolic_width, output_width_property_test): New functions.
27249         (main): Invoke output_nonspacing_property, output_width_property_test.
27250         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
27251         U+1D173..U+1D17A.
27252         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
27253         1.
27254         * modules/uniwidth/*: Bump version number of expected libunistring
27255         version.
27256         * modules/unilbrk/*: Likewise.
27257
27258 2011-01-08  Bruno Haible  <bruno@clisp.org>
27259
27260         uninorm tests: Preserve copyright of Unicode data file.
27261         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
27262         Mention modifications.
27263
27264 2011-01-08  Bruno Haible  <bruno@clisp.org>
27265
27266         gen-uni-tables: Prepare for Unicode 5.2.0.
27267         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
27268         (debug_output_lbp, output_lbp): Update.
27269
27270 2011-01-08  Bruno Haible  <bruno@clisp.org>
27271
27272         unilbrk: Clarify gen-uni-tables.c code.
27273         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
27274         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
27275         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
27276
27277 2011-01-07  Bruno Haible  <bruno@clisp.org>
27278
27279         strtod: Restore errno when successfully parsing Infinity or NaN.
27280         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
27281         restore the original errno.
27282
27283 2011-01-07  Bruno Haible  <bruno@clisp.org>
27284
27285         remove test: Avoid failure on HP-UX 11.
27286         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
27287
27288 2011-01-07  Bruno Haible  <bruno@clisp.org>
27289
27290         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
27291         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
27292         error code.
27293
27294 2011-01-07  Pádraig Brady <P@draigBrady.com>
27295
27296         ignore-value: fixup comments, and add Eric Blake
27297         as an author since he rewrote the macros.
27298         * lib/ignore-value.h (ignore_value):  State that
27299         we now support aggregates.  Also specify exactly
27300         when the GCC warn_unused_result feature was added.
27301
27302 2011-01-06  Eric Blake  <eblake@redhat.com>
27303
27304         ignore-value: support aggregate types
27305         * lib/ignore-value.h (ignore_value): Provide separate gcc
27306         definition.
27307         * modules/ignore-value-tests: New test module.
27308         * tests/test-ignore-value.c: New test.
27309
27310         maint.mk: improve sc_prohibit_strcmp regex
27311         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
27312         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
27313         definition of STRNEQ.
27314
27315         signal: work around Haiku issue with SIGBUS
27316         * lib/siglist.h: Add comment.
27317         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
27318         strsignal's favoring of SIGSEGV.
27319         * tests/test-signal.c (main): Avoid test failure.
27320         * doc/posix-headers/signal.texi (signal.h): Document the issue.
27321         Reported by Scott McCreary.
27322
27323         maint.mk: add pre-release check to ensure submodule commits are public
27324         * top/maint.mk (public-submodule-commit): New rule.
27325         (submodule-checks): New variable.
27326         (alpha beta stable): Depend on the variable.
27327
27328 2011-01-05  Pádraig Brady <P@draigBrady.com>
27329         and Jim Meyering  <meyering@redhat.com>
27330
27331         ignore-value: make ignore_value more generic; deprecate ignore_ptr
27332         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
27333         (ATTRIBUTE_DEPRECATED): Define.
27334         (_ignore_case): New function.
27335         (ignore_value): New macro, to replace the old function.
27336         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
27337         * modules/ignore-value (Depends-on): Add stdint.
27338
27339 2011-01-04  Eric Blake  <eblake@redhat.com>
27340
27341         doc: regenerate INSTALL
27342         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
27343         @firstparagraphindent support, now that autoconf dropped it.
27344         (INSTALL_PRELUDE): Reinstate old macro.
27345         * doc/install.texi: Resync from autoconf.
27346         * doc/INSTALL: Reflect recent autoconf update.
27347         * doc/INSTALL.ISO: Likewise.
27348         * doc/INSTALL.UTF-8: Likewise.
27349         Reported by Karl Berry.
27350
27351 2011-01-04  Bruce Korb  <address@hidden>
27352
27353         git-version-gen: avoid a sub-shell
27354         * build-aux/git-version-gen: Redirect stderr in `...` via
27355         "exec 2>...", rather than via an added sub-shell.
27356
27357 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
27358
27359         git-version-gen: use (...) rather than sh -c '...'
27360         * build-aux/git-version-gen: Rather than hard-coding a shell's name
27361         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
27362
27363 2011-01-03  Jim Meyering  <meyering@redhat.com>
27364
27365         git-version-gen: convert leading TABs to spaces
27366         * build-aux/git-version-gen: Expand leading TABs.
27367
27368         git-version-gen: handle failed "git rev-list"
27369         * build-aux/git-version-gen: Rather than leaking a "fatal" error
27370         from git and proceeding as if it had succeeded but printed no SHA1
27371         checksums, suppress the diagnostic and handle the failure.
27372         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
27373
27374         git-version-gen: include command name in one more diagnostic
27375         * build-aux/git-version-gen: When the required .tarball-version file
27376         was missing or unreadable, you might see the diagnostic from "cat",
27377         but no trace of the name of the invoking script.  Now, you still see
27378         the diagnostic from cat, but also get one from "git-version-gen: ".
27379         Inspired by a patch from Bruce Korb.
27380
27381         update-copyright: adjust test to match changed code
27382         * tests/test-update-copyright.sh: Change test's expected output
27383         to match new actual output.
27384
27385 2011-01-02  Bruno Haible  <bruno@clisp.org>
27386
27387         getlogin_r: Avoid test failure on HP-UX 11.
27388         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
27389         ERANGE when the second argument is zero.
27390         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
27391         portability problem.
27392
27393 2011-01-02  Bruce Korb  <bkorb@gnu.org>
27394
27395         * build-aux/update-copyright: doc Simon's changes
27396
27397 2011-01-02  Simon Josefsson  <simon@josefsson.org>
27398
27399         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
27400         environment variable.
27401
27402 2011-01-02  Bruno Haible  <bruno@clisp.org>
27403
27404         unigbrk: Avoid gcc warnings.
27405         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
27406         unused variable.
27407         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
27408         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
27409         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
27410         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
27411         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
27412         Change type of first argument to 'const char *'.
27413         (main): Remove unused variable.
27414         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
27415         type of first argument to 'const char *'.
27416         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
27417         Likewise.
27418         (main): Change type of variable 's'.
27419         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
27420         to 'int'.
27421
27422 2011-01-02  Bruno Haible  <bruno@clisp.org>
27423
27424         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
27425         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
27426         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
27427         bug.
27428         * lib/pwrite.c: Undo 2010-12-31 patch.
27429         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
27430
27431 2011-01-02  Bruno Haible  <bruno@clisp.org>
27432
27433         pread: Fix test whether it works.
27434         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
27435
27436 2011-01-02  Bruno Haible  <bruno@clisp.org>
27437
27438         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
27439         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
27440         ends in "6". Don't require a specific month name. Try also the locale
27441         names found on HP-UX 11 and Solaris 7.
27442
27443 2011-01-02  Bruno Haible  <bruno@clisp.org>
27444
27445         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
27446         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
27447         C linkage.
27448         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
27449
27450 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27451
27452         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
27453         for consistency, since the "cluster" term is not used elsewhere.
27454         * lib/unigbrk.in.h: Update name.
27455         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
27456         * lib/unigbrk/u16-grapheme-next.c: Update name.
27457         * lib/unigbrk/u16-grapheme-prev.c: Update name.
27458         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
27459         * lib/unigbrk/u32-grapheme-next.c: Update name.
27460         * lib/unigbrk/u32-grapheme-prev.c: Update name.
27461         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
27462         * lib/unigbrk/u8-grapheme-next.c: Update name.
27463         * lib/unigbrk/u8-grapheme-prev.c: Update name.
27464         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
27465         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
27466         Suggested by Bruno Haible.
27467
27468 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27469
27470         Remove module 'u8-grapheme-len' as too redundant with
27471         'u8-grapheme-next'.
27472         * modules/unigbrk/u8-grapheme-len: Delete file.
27473         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
27474         * lib/unigbrk.in.h: Remove prototype for deleted function.
27475         * lib/unigbrk/u8-grapheme-len.c: Delete file.
27476         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
27477
27478         Remove module 'u16-grapheme-len' as too redundant with
27479         'u16-grapheme-next'.
27480         * modules/unigbrk/u16-grapheme-len: Delete file.
27481         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
27482         * lib/unigbrk.in.h: Remove prototype for deleted function.
27483         * lib/unigbrk/u16-grapheme-len.c: Delete file.
27484         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
27485
27486         Remove module 'u32-grapheme-len' as too redundant with
27487         'u32-grapheme-next'.
27488         * modules/unigbrk/u32-grapheme-len: Delete file.
27489         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
27490         * lib/unigbrk.in.h: Remove prototype for deleted function.
27491         * lib/unigbrk/u32-grapheme-len.c: Delete file.
27492         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
27493
27494         Suggested by Bruno Haible.
27495
27496 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27497
27498         * unigbrk.in.h: Fix typo: "ben" => "been".
27499         Reported by Bruno Haible.
27500
27501 2011-01-01  Jim Meyering  <meyering@redhat.com>
27502
27503         maint: update almost all copyright ranges to include 2011
27504         Run the new "make update-copyright" rule.
27505
27506 2011-01-01  Jim Meyering  <meyering@redhat.com>
27507
27508         maint: update-copyright: exempt doc/INSTALL*
27509         * Makefile (update-copyright): Also exclude doc/INSTALL*,
27510         since they are generated.  Suggested by Bruno Haible.
27511
27512 2011-01-01  Jim Meyering  <meyering@redhat.com>
27513
27514         maint: refine the update-copyright rule
27515         * Makefile (update-copyright): Also exclude any file that includes
27516         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
27517         code that merely generates the comment.
27518
27519 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27520
27521         New module 'u8-grapheme-len'.
27522         * modules/unigbrk/u8-grapheme-len: New file.
27523         * modules/unigbrk/u8-grapheme-len-tests: New file.
27524         * lib/unigbrk.in.h: Add prototype for new function.
27525         * lib/unigbrk/u8-grapheme-len.c: New file.
27526         * tests/unigbrk/test-u8-grapheme-len.c: New file.
27527
27528         New module 'u16-grapheme-len'.
27529         * modules/unigbrk/u16-grapheme-len: New file.
27530         * modules/unigbrk/u16-grapheme-len-tests: New file.
27531         * lib/unigbrk.in.h: Add prototype for new function.
27532         * lib/unigbrk/u16-grapheme-len.c: New file.
27533         * tests/unigbrk/test-u16-grapheme-len.c: New file.
27534
27535         New module 'u32-grapheme-len'.
27536         * modules/unigbrk/u32-grapheme-len: New file.
27537         * modules/unigbrk/u32-grapheme-len-tests: New file.
27538         * lib/unigbrk.in.h: Add prototype for new function.
27539         * lib/unigbrk/u32-grapheme-len.c: New file.
27540         * tests/unigbrk/test-u32-grapheme-len.c: New file.
27541
27542         New module 'u8-grapheme-next'.
27543         * modules/unigbrk/u8-grapheme-next: New file.
27544         * modules/unigbrk/u8-grapheme-next-tests: New file.
27545         * lib/unigbrk.in.h: Add prototype for new function.
27546         * lib/unigbrk/u8-grapheme-next.c: New file.
27547         * tests/unigbrk/test-u8-grapheme-next.c: New file.
27548
27549         New module 'u16-grapheme-next'.
27550         * modules/unigbrk/u16-grapheme-next: New file.
27551         * modules/unigbrk/u16-grapheme-next-tests: New file.
27552         * lib/unigbrk.in.h: Add prototype for new function.
27553         * lib/unigbrk/u16-grapheme-next.c: New file.
27554         * tests/unigbrk/test-u16-grapheme-next.c: New file.
27555
27556         New module 'u32-grapheme-next'.
27557         * modules/unigbrk/u32-grapheme-next: New file.
27558         * modules/unigbrk/u32-grapheme-next-tests: New file.
27559         * lib/unigbrk.in.h: Add prototype for new function.
27560         * lib/unigbrk/u32-grapheme-next.c: New file.
27561         * tests/unigbrk/test-u32-grapheme-next.c: New file.
27562
27563         New module 'u8-grapheme-prev'.
27564         * modules/unigbrk/u8-grapheme-prev: New file.
27565         * modules/unigbrk/u8-grapheme-prev-tests: New file.
27566         * lib/unigbrk.in.h: Add prototype for new function.
27567         * lib/unigbrk/u8-grapheme-prev.c: New file.
27568         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
27569
27570         New module 'u16-grapheme-prev'.
27571         * modules/unigbrk/u16-grapheme-prev: New file.
27572         * modules/unigbrk/u16-grapheme-prev-tests: New file.
27573         * lib/unigbrk.in.h: Add prototype for new function.
27574         * lib/unigbrk/u16-grapheme-prev.c: New file.
27575         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
27576
27577         New module 'u32-grapheme-prev'.
27578         * modules/unigbrk/u32-grapheme-prev: New file.
27579         * modules/unigbrk/u32-grapheme-prev-tests: New file.
27580         * lib/unigbrk.in.h: Add prototype for new function.
27581         * lib/unigbrk/u32-grapheme-prev.c: New file.
27582         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
27583
27584         New module 'u8-grapheme-breaks'.
27585         * modules/unigbrk/u8-grapheme-breaks: New file.
27586         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
27587         * lib/unigbrk.in.h: Add prototype for new function.
27588         * lib/unigbrk/u8-grapheme-breaks.c: New file.
27589         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
27590
27591         New module 'u16-grapheme-breaks'.
27592         * modules/unigbrk/u16-grapheme-breaks: New file.
27593         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
27594         * lib/unigbrk.in.h: Add prototype for new function.
27595         * lib/unigbrk/u16-grapheme-breaks.c: New file.
27596         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
27597
27598         New module 'u32-grapheme-breaks'.
27599         * modules/unigbrk/u32-grapheme-breaks: New file.
27600         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
27601         * lib/unigbrk.in.h: Add prototype for new function.
27602         * lib/unigbrk/u32-grapheme-breaks.c: New file.
27603         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
27604
27605         New module 'ulc-grapheme-breaks'.
27606         * modules/unigbrk/ulc-grapheme-breaks: New file.
27607         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
27608         * m4/locale-ar.m4: New file.
27609         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
27610         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
27611         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
27612
27613 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27614
27615         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
27616         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
27617         modified how this file was generated before I initially submitted
27618         the module, but failed to regenerate it.  This meant that several
27619         of the level2 entries were wrong.
27620         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
27621         Remove the division-by-2 that is folded into the table now that
27622         gbrkprop.h has been regenerated properly.  Now -1 entries are
27623         handled correctly.
27624
27625         New module 'unigbrk/uc-gbrk-prop-tests'.
27626         * modules/unigbrk/uc-gbrk-prop-tests: New file.
27627         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
27628         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
27629         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
27630
27631 2011-01-01  Bruno Haible  <bruno@clisp.org>
27632
27633         Avoid use of hexadecimal escapes.
27634         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
27635         instead of hexadecimal escapes.
27636
27637 2011-01-01  Jim Meyering  <meyering@redhat.com>
27638
27639         maint: new rule to update copyright year ranges
27640         * Makefile (update-copyright): New rule.
27641
27642         maint: indent with TABs in Makefile
27643         * Makefile: Expand leading sequences of spaces to TABs
27644
27645         version-etc: update the copyright year it reports
27646         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
27647
27648 2010-12-31  Bruno Haible  <bruno@clisp.org>
27649
27650         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
27651         * lib/isfinite.c (zerof, zerod, zerol): New variables.
27652         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
27653         zero.
27654
27655 2010-12-31  Bruno Haible  <bruno@clisp.org>
27656
27657         pwrite: Work around HP-UX 11.11 bug.
27658         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
27659         works and set REPLACE_PWRITE if not.
27660         * lib/pwrite.c (pwrite): Add an implementation that uses the system
27661         function.
27662         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
27663
27664 2010-12-31  Bruno Haible  <bruno@clisp.org>
27665
27666         pread: Work around HP-UX 11 bugs.
27667         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
27668         and set REPLACE_PREAD if not.
27669         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
27670
27671 2010-12-31  Eric Blake  <eblake@redhat.com>
27672
27673         nl_langinfo: fix YESEXPR on Irix 6.5
27674         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
27675         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
27676         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
27677         it.
27678
27679 2010-12-31  Bruno Haible  <bruno@clisp.org>
27680
27681         iconv: Document HP-UX 11 bug.
27682         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
27683
27684 2010-12-31  Bruno Haible  <bruno@clisp.org>
27685
27686         ldexpl: Fix link error on HP-UX 11.
27687         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
27688         LDEXPL_LIBM, using $ISNANL_LIBM.
27689
27690 2010-12-31  Eric Blake  <eblake@redhat.com>
27691
27692         ftello: avoid compilation failure with SunStudio c89
27693         * lib/ftello.c (ftello): Use lseek, not llseek.
27694
27695         tests: avoid failing coreutils tests on cygwin
27696         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
27697         (create_exe_shims_): Return 0 when skipping.
27698
27699 2010-12-31  Bruno Haible  <bruno@clisp.org>
27700
27701         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
27702         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
27703
27704 2010-12-31  Bruno Haible  <bruno@clisp.org>
27705
27706         waitpid: Fix link error in C++ mode.
27707         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
27708
27709 2010-12-31  Bruno Haible  <bruno@clisp.org>
27710
27711         isnan: Use GCC built-ins when possible.
27712         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
27713         __builtin_isnan.
27714         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
27715         (isnan): Define using GCC built-ins for GCC >= 4.0.
27716
27717 2010-12-31  Bruno Haible  <bruno@clisp.org>
27718
27719         isnand: Fix mistake.
27720         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
27721         __builtin_isnand.
27722
27723 2010-12-31  Bruno Haible  <bruno@clisp.org>
27724
27725         open: Avoid C++ error on HP-UX 11.
27726         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
27727
27728 2010-12-31  Bruno Haible  <bruno@clisp.org>
27729
27730         time_r: Add missing declarations on HP-UX 11.
27731         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
27732         instead of HAVE_LOCALTIME_R.
27733         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
27734         HAVE_LOCALTIME_R always.
27735         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
27736         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
27737         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
27738         HAVE_LOCALTIME_R.
27739         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
27740         * doc/posix-functions/localtime_r.texi: Likewise.
27741
27742 2010-12-29  Eric Blake  <eblake@redhat.com>
27743
27744         mountlist: tweak previous commit
27745         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
27746         Reported by Paul Eggert.
27747
27748         mountlist: fix local drive detection on cygwin
27749         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
27750         that works for cygwin.
27751
27752 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27753
27754         ftoastr, snprintf: ftoastr + snprintf module
27755         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
27756         since the snprintf module now should be good enough here.
27757         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
27758         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
27759         and gl_MODULE_INDICATOR([snprintf]), but the former enables
27760         GNULIB_SNPRINTF only for the test directory, and the latter
27761         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
27762         seems to suffice by itself.
27763
27764 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27765
27766         alloca: one step towards thread-safety
27767         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
27768         need for a static variable.  All callers changed.  This does not
27769         make the alloca replacement thread-safe, but it's one step.
27770
27771         tests: minor indenting change
27772         * tests/init.sh: Sync from coreutils housekeeping patch
27773         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
27774         to keep lines within 80 columns.
27775
27776 2010-12-28  Jim Meyering  <meyering@redhat.com>
27777
27778         regex: don't infloop on persistent failing calloc
27779         * lib/regexec.c (build_trtable): Return failure indication upon
27780         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27781         In glibc, this was fixed for version 2.13:
27782         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
27783
27784 2010-12-28  Bruno Haible  <bruno@clisp.org>
27785             Paul Eggert <eggert@cs.ucla.edu>
27786
27787         linkat: Make implementation robust against system behaviour variations.
27788         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
27789         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
27790         way, and to -2 if it needs a generic runtime test.
27791         * lib/linkat.c (solaris_optimized_link_immediate,
27792         solaris_optimized_link_follow): New functions.
27793         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
27794         (check_same_link): Use it.
27795
27796 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
27797
27798         New module 'unigbrk/base'.
27799         * modules/unigbrk/base: New file.
27800         * lib/unigbrk.in.h: New file.
27801
27802         New module 'unigbrk/uc-gbrk-prop'.
27803         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
27804         * modules/unigbrk/uc-gbrk-prop: New file.
27805         * lib/unigbrk/gbrkprop.h: New file.
27806         * lib/unigbrk/uc-gbrk-prop.c: New file.
27807
27808         New module 'unigbrk/uc-is-grapheme-break'.
27809         * modules/unigbrk/uc-is-grapheme-break: New file.
27810         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
27811         * lib/unigbrk/uc-is-grapheme-break.c: New file.
27812         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
27813         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
27814         * tests/unigbrk/GraphemeBreakTest.txt: New file.
27815
27816         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
27817
27818 2010-12-27  Bruno Haible  <bruno@clisp.org>
27819
27820         linkat test: Avoid failure on Solaris 11 2010-11.
27821         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
27822
27823 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27824
27825         utimens: work around glibc rounding bug on more platforms
27826         * lib/utimens.c (fdutimens): Work around rounding bug even if
27827         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
27828         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
27829
27830 2010-12-27  Bruno Haible  <bruno@clisp.org>
27831
27832         select tests: Improve comments.
27833         * tests/test-select.c (do_select): Add comments.
27834
27835 2010-12-27  Bruno Haible  <bruno@clisp.org>
27836
27837         select tests: Safer way of handling timeout.
27838         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
27839         at every invocation.
27840
27841 2010-12-27  Bruno Haible  <bruno@clisp.org>
27842
27843         select tests: Use 'bool' where appropriate.
27844         * tests/test-select.c (connect_to_socket): Change argument type to
27845         'bool'.
27846
27847 2010-12-27  Bruno Haible  <bruno@clisp.org>
27848
27849         select tests: Use existing modules.
27850         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
27851         (configure.ac): Don't test for unistd.h.
27852         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
27853         declared in <unistd.h>.
27854
27855 2010-12-27  Bruno Haible  <bruno@clisp.org>
27856
27857         mbrtowc: Work around a Solaris 7 bug.
27858         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
27859         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
27860         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
27861         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
27862         MBRTOWC_NULL_ARG1_BUG.
27863         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
27864         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
27865         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
27866         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
27867
27868 2010-12-27  Jim Meyering  <meyering@redhat.com>
27869
27870         read-file.c: tweak syntax
27871         * lib/read-file.c (fread_file): Remove space after "*" in function
27872         definitions.
27873
27874 2010-12-27  Bruno Haible  <bruno@clisp.org>
27875
27876         times test: Avoid gcc warnings on OSF/1.
27877         * tests/test-times.c (main): Cast printf arguments from clock_t to
27878         'long int'.
27879
27880 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27881
27882         utimens: work around glibc rounding bug on older Linux kernels
27883         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
27884         on Linux with a glibc whose utimes might not work, then work
27885         around a longstanding glibc bug involving rounding rather than
27886         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
27887         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27888
27889 2010-12-26  Bruno Haible  <bruno@clisp.org>
27890
27891         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
27892         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
27893         _GL_CXXALIAS_SYS.
27894         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27895
27896 2010-12-26  Bruno Haible  <bruno@clisp.org>
27897
27898         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
27899         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
27900         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27901         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
27902         looking for the declaration.
27903         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
27904         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
27905         problem.
27906         * doc/posix-functions/inet_pton.texi: Likewise.
27907
27908 2010-12-26  Bruno Haible  <bruno@clisp.org>
27909
27910         arpa_inet: Use the common idioms with C++ support.
27911         * lib/arpa_inet.in.h: Include c++defs.h.
27912         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
27913         support.
27914         * modules/arpa_inet (Depends-on): Add c++defs.
27915         (Makefile.am): Substitute the contents of c++defs.h.
27916         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
27917         * modules/arpa_inet-c++-tests: New file.
27918         * tests/test-arpa_inet-c++.cc: New file.
27919
27920 2010-12-25  Bruno Haible  <bruno@clisp.org>
27921
27922         Fix more C++ link errors on Solaris 8.
27923         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
27924         $(LIB_EACCESS).
27925         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
27926         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
27927         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
27928         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
27929         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
27930
27931 2010-12-25  Bruno Haible  <bruno@clisp.org>
27932
27933         printf-posix: Fix link error when a non-GCC compiler is used.
27934         * lib/stdio.in.h (printf): When not using GCC, override printf
27935         correctly.
27936         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27937
27938 2010-12-25  Bruno Haible  <bruno@clisp.org>
27939
27940         strerror_r-posix: Update doc.
27941         * doc/posix-functions/strerror_r.texi: Update doc about the return
27942         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
27943
27944 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27945
27946         utimens: simplify the logic of the previous change
27947         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
27948         This should not affect whether the test succeeds or fails.
27949
27950         utimens: configure better on hosts with NFS clock skew
27951         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
27952         uses the clock of the local host.  It might use the clock of the
27953         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
27954         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27955
27956 2010-12-25  Bruno Haible  <bruno@clisp.org>
27957
27958         ptsname test: Avoid failure on Solaris.
27959         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
27960         open a pseudo-terminal; don't use BSD-style ptys.
27961         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
27962
27963 2010-12-25  Bruno Haible  <bruno@clisp.org>
27964
27965         ptsname: Avoid ERANGE failure on some systems.
27966         * lib/ptsname.c (buffer): Increase size.
27967
27968 2010-12-25  Bruno Haible  <bruno@clisp.org>
27969
27970         rename, renameat: Avoid test failures at NFS mounted locations.
27971         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
27972         so that subsequent mkdir calls succeed.
27973
27974 2010-12-25  Bruno Haible  <bruno@clisp.org>
27975
27976         iswblank: Fix C++ link error on Solaris 8.
27977         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
27978         _GL_FUNCDECL_SYS.
27979
27980 2010-12-25  Bruno Haible  <bruno@clisp.org>
27981
27982         unistd: Fix C++ link error on Solaris 8.
27983         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
27984
27985 2010-12-25  Bruno Haible  <bruno@clisp.org>
27986
27987         readlink doc: Mention an old glibc bug.
27988         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
27989
27990 2010-12-25  Bruno Haible  <bruno@clisp.org>
27991
27992         fcntl-h: Fix for use of C++ on glibc systems.
27993         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27994         also on glibc systems in C++ mode.
27995         Reported by Gary V. Vaughan <gary@gnu.org>.
27996
27997 2010-12-25  Bruno Haible  <bruno@clisp.org>
27998
27999         roundl-ieee: Make it work on OSF/1 5.1 with cc.
28000         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
28001
28002 2010-12-25  Bruno Haible  <bruno@clisp.org>
28003
28004         truncl-ieee: Make it work on OSF/1 5.1 with cc.
28005         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
28006         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
28007         test whether truncl works according to ISO C 99 with IEC 60559.
28008         * m4/truncl-ieee.m4: New file.
28009         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
28010         m4/signbit.m4.
28011         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
28012
28013 2010-12-25  Bruno Haible  <bruno@clisp.org>
28014
28015         ceill-ieee: Make it work on OSF/1 5.1 with cc.
28016         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
28017         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
28018         test whether ceill works according to ISO C 99 with IEC 60559.
28019         * m4/ceill-ieee.m4: New file.
28020         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
28021         m4/signbit.m4.
28022         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
28023
28024 2010-12-25  Bruno Haible  <bruno@clisp.org>
28025
28026         Ensure all prerequisites of <wchar.h> are included.
28027         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
28028         before <wchar.h>.
28029         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
28030         gl_MBRLEN_NUL_RETVAL): Likewise.
28031         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28032         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
28033         AC_FUNC_MBRTOWC): Likewise.
28034         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28035         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
28036         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28037         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28038         Likewise.
28039         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28040         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
28041         (gl_WCHAR_H): Improve comments.
28042         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
28043
28044 2010-12-25  Bruno Haible  <bruno@clisp.org>
28045
28046         strtok_r: Fix C syntax error in autoconf macro.
28047         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
28048         characters in test program.
28049
28050 2010-12-24  Bruno Haible  <bruno@clisp.org>
28051
28052         ceil, trunc, round: Fix gcc warnings.
28053         * lib/ceil.c (MIN): Undefine before redefining.
28054         * lib/trunc.c (MIN): Likewise.
28055         * lib/round.c (MIN): Likewise.
28056         Include <math.h> first.
28057
28058 2010-12-24  Bruno Haible  <bruno@clisp.org>
28059
28060         select tests: Avoid failures on OSF/1 5.1.
28061         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
28062         failure of closing the last socket; it may fail with ECONNRESET.
28063
28064 2010-12-24  Eric Blake  <eblake@redhat.com>
28065
28066         stdint: avoid HP-UX 10.20 preprocessor bug
28067         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
28068         than #if.
28069         * tests/test-floor2.c (main): Likewise.
28070         Reported by Peter O'Gorman.
28071
28072         pipe: make obsoletion transition easier
28073         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
28074         * modules/pipe (Files): Include revived file.
28075         (Include): Drop reference, to mirror getdate's behavior.
28076
28077 2010-12-24  Bruno Haible  <bruno@clisp.org>
28078
28079         sys_socket: Hide mismatch of declarations on NonStop Kernel.
28080         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
28081         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
28082         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28083
28084 2010-12-24  Bruno Haible  <bruno@clisp.org>
28085
28086         gethostname: Ensure declaration on NonStop Kernel.
28087         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
28088         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28089
28090 2010-12-24  Bruno Haible  <bruno@clisp.org>
28091
28092         sys_select: Ensure all necessary types on NonStop Kernel.
28093         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
28094         include <sys/time.h>.
28095         * doc/posix-headers/sys_select.texi: Mention that it's missing on
28096         NonStop Kernel.
28097         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28098
28099 2010-12-24  Bruno Haible  <bruno@clisp.org>
28100
28101         sys_select: Remove unneeded include.
28102         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
28103         have <sys/select.h>.
28104
28105 2010-12-24  Bruno Haible  <bruno@clisp.org>
28106
28107         gethostname: Provide a fallback for HOST_NAME_MAX.
28108         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
28109         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
28110         instead.
28111         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28112
28113 2010-12-24  Bruno Haible  <bruno@clisp.org>
28114
28115         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
28116         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
28117         (SA_RESTART): Likewise.
28118         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28119
28120 2010-12-24  Bruno Haible  <bruno@clisp.org>
28121
28122         signal: Define NSIG.
28123         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
28124         * tests/test-signal.c (nsig): New variable.
28125         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28126
28127 2010-12-24  Bruno Haible  <bruno@clisp.org>
28128
28129         rename, renameat: Avoid test failures on OSF/1 5.1.
28130         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
28131         alternative error codes.
28132         * tests/test-renameat.c (main): Likewise.
28133
28134 2010-12-24  Bruno Haible  <bruno@clisp.org>
28135
28136         *printf: Detect large precisions bug on Solaris 10/SPARC.
28137         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
28138         by Paul Eggert.
28139         * tests/test-snprintf-posix.h (test_function): Add this test code here
28140         too.
28141         * tests/test-sprintf-posix.h (test_function): Likewise.
28142         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28143         * tests/test-vasprintf-posix.c (test_function): Likewise.
28144         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
28145         around by gnulib.
28146         * doc/posix-functions/printf.texi: Likewise.
28147         * doc/posix-functions/snprintf.texi: Likewise.
28148         * doc/posix-functions/sprintf.texi: Likewise.
28149         * doc/posix-functions/vfprintf.texi: Likewise.
28150         * doc/posix-functions/vprintf.texi: Likewise.
28151         * doc/posix-functions/vsnprintf.texi: Likewise.
28152         * doc/posix-functions/vsprintf.texi: Likewise.
28153         * doc/posix-functions/dprintf.texi: Undo last commit.
28154         * doc/posix-functions/vdprintf.texi: Likewise.
28155
28156 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28157
28158         tests: port test-fdutimensat.c to Solaris 8
28159         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
28160         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
28161         On Solaris 8, it fails with errno == ENOSYS, because there is no
28162         futimens (so it can't use the fd), and there is no lutimens (so it
28163         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
28164
28165         vsnprintf: make more consistent with snprintf; doc fixes
28166
28167         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
28168         the byte count return problem was promoted from the snprintf-posix
28169         to the snprintf module.
28170         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
28171         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
28172         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
28173         * tests/test-snprintf.c (main): Check the byte count returned.
28174         * tests/test-vsnprintf.c (main): Likewise.
28175
28176 2010-12-23  Eric Blake  <eblake@redhat.com>
28177
28178         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
28179         * modules/sigpipe (License): Relax license.
28180
28181 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28182
28183         doc: document Solaris printf bug with large float precisions
28184         * doc/posix-functions/dprintf.texi (dprintf):
28185         * doc/posix-functions/fprintf.texi (fprintf):
28186         * doc/posix-functions/printf.texi (printf):
28187         * doc/posix-functions/snprintf.texi (snprintf):
28188         * doc/posix-functions/sprintf.texi (sprintf):
28189         * doc/posix-functions/vdprintf.texi (vdprintf):
28190         * doc/posix-functions/vfprintf.texi (vfprintf):
28191         * doc/posix-functions/vprintf.texi (vprintf):
28192         * doc/posix-functions/vsnprintf.texi (vsnprintf):
28193         * doc/posix-functions/vsprintf.texi (vsprintf):
28194         Mention that these functions mishandle large floating point
28195         precisions on Solaris 10.  The same bug is also present in Solaris
28196         8, and I assume earlier.  This causes "cd gnulib-tests; make
28197         check" to fail on Solaris 8 (and I assume, later) when building
28198         the latest coreutils, in test-vasprintf-posix's call to
28199         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
28200         the wide flavors (e.g., wprintf) so this patch just updates the
28201         documentation for the narrow ones.
28202
28203         test-posixtm.c: add two tests
28204         * tests/test-posixtm.c: Add two tests, to highlight the
28205         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
28206         around this bug; this is merely to document it.
28207
28208 2010-12-22  Bruno Haible  <bruno@clisp.org>
28209
28210         getlogin_r: Work around portability problem on OSF/1.
28211         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
28212         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
28213         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
28214         test for a truncated result.
28215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
28216         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
28217         * modules/getlogin_r (Depends-on): Add memchr.
28218         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
28219
28220 2010-12-22  Bruno Haible  <bruno@clisp.org>
28221
28222         ptsname: Avoid test failure on OSF/1 5.1.
28223         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
28224         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
28225         (same_slave): New function.
28226         (main): Use it to compare ptsname's result with the expected file name.
28227
28228 2010-12-22  Bruno Haible  <bruno@clisp.org>
28229
28230         Port extended stdio modules to HP NonStop Kernel.
28231         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
28232         macros.
28233         * lib/fbufmode.c: Update comments.
28234         * lib/fflush.c: Likewise.
28235         * lib/fpurge.c: Likewise.
28236         * lib/freadable.c: Likewise.
28237         * lib/freadahead.c: Likewise.
28238         * lib/freading.c: Likewise.
28239         * lib/freadptr.c: Likewise.
28240         * lib/freadseek.c: Likewise.
28241         * lib/fseeko.c: Likewise.
28242         * lib/fseterr.c: Likewise.
28243         * lib/fwritable.c: Likewise.
28244         * lib/fwriting.c: Likewise.
28245         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28246
28247 2010-12-22  Bruno Haible  <bruno@clisp.org>
28248
28249         ttyname_r: Work around bug on OSF/1 5.1.
28250         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
28251         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
28252         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
28253         present.
28254         * lib/ttyname_r.c (ttyname_r): Update comments.
28255
28256 2010-12-22  Bruno Haible  <bruno@clisp.org>
28257
28258         round: Implement result sign according to IEEE 754.
28259         * lib/round.c (MIN, MINUS_ZERO): New macros.
28260         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
28261         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
28262         * tests/test-round-ieee.c (main): Likewise.
28263         * tests/test-roundl-ieee.c (main): Likewise.
28264
28265         trunc: Implement result sign according to IEEE 754.
28266         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
28267         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
28268         * tests/test-trunc2.c: Include minus-zero.h.
28269         (MINUS_ZERO): New macro.
28270         (trunc_reference): Keep in sync with lib/trunc.c.
28271         * tests/test-truncf2.c: Include minus-zero.h.
28272         (MINUS_ZERO): New macro.
28273         (truncf_reference): Keep in sync with lib/trunc.c.
28274         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
28275         * tests/test-trunc-ieee.c (main): Likewise.
28276         * tests/test-truncl-ieee.c (main): Likewise.
28277
28278         ceil: Implement result sign according to IEEE 754.
28279         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
28280         (FUNC): Return -0.0 for -1 < x < 0.
28281         * tests/test-ceil2.c: Include minus-zero.h.
28282         (MINUS_ZERO): New macro.
28283         (ceil_reference): Keep in sync with lib/ceil.c.
28284         * tests/test-ceilf2.c: Include minus-zero.h.
28285         (MINUS_ZERO): New macro.
28286         (ceilf_reference): Keep in sync with lib/ceil.c.
28287         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
28288         * tests/test-ceil-ieee.c (main): Likewise.
28289         * tests/test-ceill-ieee.c (main): Likewise.
28290
28291         floor: Implement result sign according to IEEE 754.
28292         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
28293         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
28294         * tests/test-floorf2.c (floorf_reference): Likewise.
28295         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
28296         * tests/test-floor-ieee.c (main): Likewise.
28297         * tests/test-floorl-ieee.c (main): Likewise.
28298
28299 2010-12-22  Bruno Haible  <bruno@clisp.org>
28300
28301         getaddrinfo: Update doc.
28302         * doc/posix-functions/gai_strerror.texi: Return type is also different
28303         on AIX and HP-UX.
28304
28305 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28306
28307         getaddrinfo, inet_ntop: Update doc for Solaris.
28308         * doc/posix-functions/gai_strerror.texi: Return type is also an
28309         issue on Solaris 9 and earlier.
28310         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
28311         on Solaris 10 and earlier.
28312
28313 2010-12-21  Bruno Haible  <bruno@clisp.org>
28314
28315         New module 'roundl-ieee'.
28316         * modules/roundl-ieee: New file.
28317         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
28318         test whether roundl works according to ISO C 99 with IEC 60559.
28319         * m4/roundl-ieee.m4: New file.
28320         * modules/roundl-ieee-tests: New file.
28321         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
28322         * tests/test-roundl.c (main): Remove signbit tests.
28323         * modules/roundl-tests (Depends-on): Remove signbit.
28324         * doc/posix-functions/roundl.texi: Mention the new module.
28325
28326 2010-12-21  Bruno Haible  <bruno@clisp.org>
28327
28328         New module 'truncl-ieee'.
28329         * modules/truncl-ieee: New file.
28330         * modules/truncl-ieee-tests: New file.
28331         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
28332         * tests/test-truncl.c (main): Remove signbit tests.
28333         * modules/truncl-tests (Depends-on): Remove signbit.
28334         * doc/posix-functions/truncl.texi: Mention the new module.
28335
28336 2010-12-21  Bruno Haible  <bruno@clisp.org>
28337
28338         New module 'ceill-ieee'.
28339         * modules/ceill-ieee: New file.
28340         * modules/ceill-ieee-tests: New file.
28341         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
28342         * tests/test-ceill.c (main): Remove signbit tests.
28343         * modules/ceill-tests (Depends-on): Remove signbit.
28344         * doc/posix-functions/ceill.texi: Mention the new module.
28345
28346 2010-12-21  Bruno Haible  <bruno@clisp.org>
28347
28348         New module 'floorl-ieee'.
28349         * modules/floorl-ieee: New file.
28350         * modules/floorl-ieee-tests: New file.
28351         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
28352         * tests/test-floorl.c (main): Remove signbit tests.
28353         * modules/floorl-tests (Depends-on): Remove signbit.
28354         * doc/posix-functions/floorl.texi: Mention the new module.
28355
28356 2010-12-21  Bruno Haible  <bruno@clisp.org>
28357
28358         New module 'round-ieee'.
28359         * modules/round-ieee: New file.
28360         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
28361         whether round works according to ISO C 99 with IEC 60559.
28362         * m4/round-ieee.m4: New file.
28363         * modules/round-ieee-tests: New file.
28364         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
28365         * tests/test-round1.c (main): Remove signbit tests.
28366         * modules/round-tests (Depends-on): Remove 'signbit'.
28367         * doc/posix-functions/round.texi: Mention the new module.
28368
28369 2010-12-21  Bruno Haible  <bruno@clisp.org>
28370
28371         New module 'trunc-ieee'.
28372         * modules/trunc-ieee: New file.
28373         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
28374         whether trunc works according to ISO C 99 with IEC 60559.
28375         * m4/trunc-ieee.m4: New file.
28376         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
28377         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
28378         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
28379         * modules/trunc-ieee-tests: New file.
28380         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
28381         * tests/test-trunc1.c (main): Remove signbit tests.
28382         * modules/trunc-tests (Depends-on): Remove 'signbit'.
28383         * doc/posix-functions/trunc.texi: Mention the new module.
28384
28385 2010-12-21  Bruno Haible  <bruno@clisp.org>
28386
28387         New module 'ceil-ieee'.
28388         * modules/ceil-ieee: New file.
28389         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
28390         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
28391         ISO C 99 with IEC 60559.
28392         * m4/ceil-ieee.m4: New file.
28393         * modules/ceil (Files): Add lib/ceil.c.
28394         (Depends-on): Add 'float'.
28395         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28396         * lib/math.in.h (ceil): New declaration.
28397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
28398         REPLACE_CEIL.
28399         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
28400         * modules/ceil-ieee-tests: New file.
28401         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
28402         * tests/test-math-c++.cc: Check the signature of 'ceil'.
28403         * doc/posix-functions/ceil.texi: Mention the new module.
28404
28405 2010-12-21  Bruno Haible  <bruno@clisp.org>
28406
28407         New module 'floor-ieee'.
28408         * modules/floor-ieee: New file.
28409         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
28410         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
28411         ISO C 99 with IEC 60559.
28412         * m4/floor-ieee.m4: New file.
28413         * modules/floor (Files): Add lib/floor.c.
28414         (Depends-on): Add 'float'.
28415         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28416         * lib/math.in.h (floor): New declaration.
28417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
28418         REPLACE_FLOOR.
28419         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
28420         * modules/floor-ieee-tests: New file.
28421         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
28422         * tests/test-math-c++.cc: Check the signature of 'floor'.
28423         * doc/posix-functions/floor.texi: Mention the new module.
28424
28425 2010-12-21  Bruno Haible  <bruno@clisp.org>
28426
28427         New module 'roundf-ieee'.
28428         * modules/roundf-ieee: New file.
28429         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
28430         test whether roundf works according to ISO C 99 with IEC 60559.
28431         * m4/roundf-ieee.m4: New file.
28432         * modules/roundf-ieee-tests: New file.
28433         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
28434         * tests/test-roundf1.c (main): Remove signbit tests.
28435         * modules/roundf-tests (Depends-on): Remove 'signbit'.
28436         * doc/posix-functions/roundf.texi: Mention the new module.
28437
28438 2010-12-21  Bruno Haible  <bruno@clisp.org>
28439
28440         New module 'truncf-ieee'.
28441         * modules/truncf-ieee: New file.
28442         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
28443         test whether truncf works according to ISO C 99 with IEC 60559.
28444         * m4/truncf-ieee.m4: New file.
28445         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
28446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
28447         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
28448         * modules/truncf-ieee-tests: New file.
28449         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
28450         * tests/test-truncf1.c (main): Remove signbit tests.
28451         * modules/truncf-tests (Depends-on): Remove 'signbit'.
28452         * doc/posix-functions/truncf.texi: Mention the new module.
28453
28454 2010-12-21  Bruno Haible  <bruno@clisp.org>
28455
28456         New module 'ceilf-ieee'.
28457         * modules/ceilf-ieee: New file.
28458         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
28459         test whether ceilf works according to ISO C 99 with IEC 60559.
28460         * m4/ceilf-ieee.m4: New file.
28461         * modules/ceilf-ieee-tests: New file.
28462         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
28463         * tests/test-ceilf1.c (main): Remove signbit tests.
28464         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
28465         * doc/posix-functions/ceilf.texi: Mention the new module.
28466
28467 2010-12-21  Bruno Haible  <bruno@clisp.org>
28468
28469         New module 'floorf-ieee'.
28470         * modules/floorf-ieee: New file.
28471         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
28472         test whether floorf works according to ISO C 99 with IEC 60559.
28473         * m4/floorf-ieee.m4: New file.
28474         * modules/floorf-ieee-tests: New file.
28475         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
28476         * tests/test-floorf1.c (main): Remove signbit tests.
28477         * modules/floorf-tests (Depends-on): Remove 'signbit'.
28478         * doc/posix-functions/floorf.texi: Mention the new module.
28479
28480 2010-12-21  Bruno Haible  <bruno@clisp.org>
28481
28482         Support for minus zero in autoconf macros.
28483         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
28484         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
28485         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
28486         * tests/minus-zero.h: Update comments.
28487
28488 2010-12-21  Bruno Haible  <bruno@clisp.org>
28489
28490         Tests for module 'ceil'.
28491         * modules/ceil-tests: New file.
28492         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
28493         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
28494
28495 2010-12-21  Bruno Haible  <bruno@clisp.org>
28496
28497         Tests for module 'floor'.
28498         * modules/floor-tests: New file.
28499         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
28500         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
28501
28502 2010-12-21  Bruno Haible  <bruno@clisp.org>
28503
28504         math: Fix indentation.
28505         * lib/math.in.h (floorf): Fix indentation.
28506
28507 2010-12-21  Bruno Haible  <bruno@clisp.org>
28508
28509         Fix cross-compilation guesses on Solaris.
28510         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
28511         not match "solaris2.10".
28512         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28513         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
28514         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
28515
28516 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28517
28518         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
28519         This fixes a problem observed with the latest coreutils snapshot
28520         that caused a test to fail on Solaris 8.  src/csplit.c's call
28521         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
28522         earlier, instead of returning the number of bytes that would have
28523         been generated; this causes csplit to incorrectly report memory
28524         exhaustion.
28525         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
28526         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
28527         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
28528         comments to match.
28529         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
28530         Fix typo in matching older versions of Solaris: "solaris2.10"
28531         is matched by the shell pattern "solaris2.[0-9]*".  This matters
28532         only for guessing while cross-compiling.
28533         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
28534
28535 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28536
28537         ftoastr: fix comment again
28538         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28539         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
28540         Also, simplify example a bit by using flags = 0.
28541
28542 2010-12-20  Bruno Haible  <bruno@clisp.org>
28543
28544         round*, trunc*: Update documentation regarding glibc.
28545         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
28546         * doc/posix-functions/round.texi: Likewise.
28547         * doc/posix-functions/roundl.texi: Likewise.
28548         * doc/posix-functions/truncf.texi: Likewise.
28549         * doc/posix-functions/trunc.texi: Likewise.
28550         * doc/posix-functions/truncl.texi: Likewise.
28551
28552 2010-12-20  Bruno Haible  <bruno@clisp.org>
28553
28554         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
28555         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
28556         * doc/posix-functions/round.texi: Likewise.
28557         * doc/posix-functions/roundl.texi: Likewise.
28558
28559 2010-12-20  Bruno Haible  <bruno@clisp.org>
28560
28561         ttyname_r: Add missing declaration on HP-UX 11.
28562         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
28563         HAVE_TTYNAME_R.
28564         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
28565         declared. Set HAVE_TTYNAME_R always.
28566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28567         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
28568         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
28569         HAVE_TTYNAME_R.
28570         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
28571
28572 2010-12-20  Bruno Haible  <bruno@clisp.org>
28573
28574         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
28575         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
28576         * doc/posix-functions/getlogin_r.texi: Likewise.
28577         * tests/test-getlogin.c: Include <errno.h>.
28578         (main): Avoid test failure on HP-UX 11.11.
28579         * tests/test-getlogin_r.c (main): Likewise.
28580
28581 2010-12-20  Bruno Haible  <bruno@clisp.org>
28582
28583         getlogin_r: Add missing declaration on HP-UX 11.
28584         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
28585         declared also when it exists as a function.
28586         * doc/posix-functions/getlogin_r.texi: Document this workaround.
28587
28588 2010-12-20  Bruno Haible  <bruno@clisp.org>
28589
28590         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
28591         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
28592         through wcrtomb.
28593
28594 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28595
28596         ftoastr: fix comment
28597         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28598         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
28599
28600 2010-12-19  Bruno Haible  <bruno@clisp.org>
28601
28602         isnan: Ensure it is a macro.
28603         * lib/math.in.h (isnan): Define as a macro if not already a macro.
28604         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
28605         Solaris.
28606
28607 2010-12-19  Bruno Haible  <bruno@clisp.org>
28608
28609         ldexpl test: Fix link error on OSF/1 5.1.
28610         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
28611
28612 2010-12-19  Bruno Haible  <bruno@clisp.org>
28613
28614         wctype: Make it work in C++ mode on OSF/1 5.1.
28615         * lib/wctype.in.h (iswblank): Declare but not define here.
28616         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
28617         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
28618         * modules/wctype (Files): Add lib/iswblank.c.
28619
28620 2010-12-19  Bruno Haible  <bruno@clisp.org>
28621
28622         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
28623         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
28624         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
28625
28626 2010-12-19  Bruno Haible  <bruno@clisp.org>
28627
28628         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
28629         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
28630         _POSIX_PII_SOCKET.
28631         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
28632         * doc/posix-functions/recvfrom.texi: Likewise.
28633         * doc/posix-functions/send.texi: Likewise.
28634         * doc/posix-functions/sendto.texi: Likewise.
28635
28636 2010-12-19  Bruno Haible  <bruno@clisp.org>
28637
28638         tcgetsid: Add missing declaration on OSF/1 5.1.
28639         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
28640         HAVE_TCGETSID.
28641         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
28642         Don't set HAVE_TCGETSID.
28643         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
28644         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
28645         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
28646         HAVE_TCGETSID.
28647         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
28648
28649 2010-12-19  Bruno Haible  <bruno@clisp.org>
28650
28651         stdio: Fix problem with popen() declaration on OSF/1 5.1.
28652         * lib/stdio.in.h: During the include_next statement, let recursive
28653         includes of this file include only the system header file.
28654
28655 2010-12-19  Bruno Haible  <bruno@clisp.org>
28656
28657         iconv_open: Fix regression from 2010-12-04.
28658         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
28659         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
28660
28661 2010-12-19  Bruno Haible  <bruno@clisp.org>
28662
28663         stdbool test: Avoid a gcc warning.
28664         * tests/test-stdbool.c (main): Fail if e1 is false.
28665         Reported by Jim Meyering.
28666
28667 2010-12-19  Jim Meyering  <meyering@redhat.com>
28668
28669         setenv: restore to working order
28670         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
28671         mistakenly removed.
28672         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
28673         HAVE_SETENV.
28674         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
28675         HAVE_SETENV.
28676
28677 2010-12-19  Bruno Haible  <bruno@clisp.org>
28678
28679         Document some different function declarations on OSF/1 5.1.
28680         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
28681         * doc/posix-functions/inet_ntop.texi: Likewise.
28682         * doc/posix-functions/gethostname.texi: Likewise.
28683         * lib/unistd.in.h (gethostname): Update comment.
28684
28685 2010-12-19  Bruno Haible  <bruno@clisp.org>
28686
28687         doc: Mention vasprintf-posix module.
28688         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
28689         the 'vasprintf-posix' module.
28690         * doc/glibc-functions/vasprintf.texi: Likewise.
28691
28692 2010-12-19  Bruno Haible  <bruno@clisp.org>
28693
28694         unsetenv: Add missing declaration on OSF/1 5.1.
28695         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
28696         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
28697         Don't set HAVE_UNSETENV. In the test program, set _BSD.
28698         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
28699         not HAVE_UNSETENV.
28700         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
28701         HAVE_UNSETENV.
28702         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
28703
28704 2010-12-19  Bruno Haible  <bruno@clisp.org>
28705
28706         setenv: Add missing declaration on OSF/1 5.1.
28707         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
28708         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
28709         declared. Don't set HAVE_SETENV.
28710         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
28711         not HAVE_SETENV.
28712         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
28713         HAVE_SETENV.
28714         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
28715
28716 2010-12-19  Bruno Haible  <bruno@clisp.org>
28717
28718         nl_langinfo tests: Avoid gcc warning.
28719         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
28720
28721 2010-12-19  Bruno Haible  <bruno@clisp.org>
28722
28723         mknod: Avoid error in C++ mode on OSF/1 with GCC.
28724         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
28725         _GL_CXXALIAS_SYS.
28726
28727 2010-12-19  Bruno Haible  <bruno@clisp.org>
28728
28729         stdbool: Relax test.
28730         * tests/test-stdbool.c (e): Don't require that casts from a variable's
28731         address to 'bool' work in static initializer, for compilers other than
28732         GCC.
28733
28734 2010-12-19  Bruno Haible  <bruno@clisp.org>
28735
28736         ftello: Add missing declaration on OSF/1 5.1.
28737         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
28738         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
28739         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
28740         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
28741         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
28742
28743 2010-12-19  Bruno Haible  <bruno@clisp.org>
28744
28745         fseeko: Add missing declaration on OSF/1 5.1.
28746         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
28747         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
28748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
28749         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
28750         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
28751
28752 2010-12-19  Bruno Haible  <bruno@clisp.org>
28753
28754         fchdir: Add missing declaration on OSF/1 5.1.
28755         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
28756         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
28757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
28758         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
28759         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
28760
28761 2010-12-19  Bruno Haible  <bruno@clisp.org>
28762
28763         relocatable-prog-wrapper: Separate from relocatable-prog.
28764         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
28765         uninstall-relocwrapper rule here.
28766         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
28767         Reported by Ian Beckwith <ianb@erislabs.net>.
28768
28769 2010-12-19  Bruno Haible  <bruno@clisp.org>
28770
28771         unistr/u8-mbsnlen: Add missing dependency.
28772         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
28773         Reported by Ian Beckwith <ianb@erislabs.net>.
28774
28775 2010-12-19  Bruno Haible  <bruno@clisp.org>
28776
28777         iconv: Make it possible again to use this module without 'iconv-h'.
28778         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
28779         if it is not defined.
28780         Reported by Ian Beckwith <ianb@erislabs.net>.
28781
28782 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28783
28784         acl: port to Solaris 8 when copying from tmpfs to ufs
28785         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
28786         error number.  Problem observed on Solaris 8 with latest
28787         coreutils, with "mv A B", where A is on a tmpfs file system and B
28788         is on a ufs file system.  This caused coreutils' mv/part-symlink
28789         test to fail.
28790
28791         tests: set fail=0 at start
28792         * tests/init.sh (setup_): Move fail=0 initialization here ...
28793         (mktempd_): ... from here, so that tests can rely on fail being
28794         set to 0 initially.  This fixes a problem in coreutils; see:
28795         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
28796
28797 2010-12-18  Bruno Haible  <bruno@clisp.org>
28798
28799         memmem-simple: Stylistic changes.
28800         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
28801         Fix preprocessor directive indentation.
28802
28803 2010-12-15  Pádraig Brady <P@draigBrady.com>
28804
28805         memmem, memmem-simple: reorganize and expand empty needle check
28806         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
28807         functional checks to memmem-simple so that one has a fully functional
28808         memmem by using just this module.
28809         Restrict the performance only check to the memmem module.
28810         Also expand the empty needle check to ensure the correct
28811         pointer is returned, not just a non NULL pointer.
28812         * doc/glibc-functions/memmem.texi: Rearrange the portability
28813         documentation to correlate with the rearranged checks.
28814         Clarify exactly how the memmem and memmem-simple modules
28815         relate to each other.
28816
28817 2010-12-15  Pádraig Brady <P@draigBrady.com>
28818             Bruno Haible  <bruno@clisp.org>
28819
28820         Improve cross-compilation guesses for uClibc.
28821         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
28822         that uClibc does not have the glibc bug.
28823         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
28824         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
28825
28826 2010-12-14  Eric Blake  <eblake@redhat.com>
28827
28828         configmake: provide fallbacks for oldest supported autotools
28829         * m4/configmake.m4: New file.
28830         * modules/configmake (Files): Ship it.
28831         (configure.ac): Use it to guarantee fallbacks.
28832
28833 2010-12-13  Pádraig Brady <P@draigBrady.com>
28834
28835         read-file: Improve handling of large files
28836         * lib/read-file.c (fread_file): Minimize realloc()s
28837         for regular files, and better manage sizes around SIZE_MAX.
28838
28839 2010-12-13  Eric Blake  <eblake@redhat.com>
28840
28841         cloexec, fcntl: relax license
28842         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
28843         consent from all contributors.
28844         * modules/fcntl (License): Likewise.
28845
28846 2010-12-10  Bruno Haible  <bruno@clisp.org>
28847
28848         Tests for module 'pipe-posix'.
28849         * modules/pipe-posix-tests: New file.
28850         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
28851
28852 2010-12-10  Bruno Haible  <bruno@clisp.org>
28853
28854         pipe-posix: Make it work in C++ mode.
28855         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
28856         (pipe): Use common idiom, not a macro definition.
28857         * lib/pipe.c: New file.
28858         * m4/pipe.m4: New file.
28859         * modules/pipe-posix (Description): Enhance.
28860         (Files): Add lib/pipe.c, m4/pipe.m4.
28861         (configure.ac): Invoke gl_FUNC_PIPE.
28862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
28863         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
28864         * tests/test-unistd-c++.cc: Check the signature of pipe.
28865
28866 2010-12-10  Bruno Haible  <bruno@clisp.org>
28867
28868         Rename module 'pipe' to 'spawn-pipe'.
28869         * modules/spawn-pipe: New file, renamed from modules/pipe.
28870         (Files, configure.ac, Makefile.am): Update.
28871         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
28872         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
28873         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
28874         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
28875         "spawn-pipe.h" instead of "pipe.h".
28876         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
28877         to gl_SPAWN_PIPE.
28878         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
28879         (Files, Makefile.am): Update.
28880         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
28881         Update.
28882         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
28883         Include "spawn-pipe.h" instead of "pipe.h".
28884         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
28885         * lib/javacomp.c: Likewise.
28886         * lib/javaversion.c: Likewise.
28887         * lib/pipe-filter-gi.c: Likewise.
28888         * lib/pipe-filter-ii.c: Likewise.
28889         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
28890         * modules/javacomp (Depends-on): Likewise.
28891         * modules/javaversion (Depends-on): Likewise.
28892         * modules/pipe-filter-gi (Depends-on): Likewise.
28893         * modules/pipe-filter-ii (Depends-on): Likewise.
28894         * MODULES.html.sh (Executing programs): Update.
28895         * NEWS: Mention the change.
28896
28897 2010-12-10  Eric Blake  <eblake@redhat.com>
28898
28899         pipe-posix: new module
28900         * modules/pipe-posix: New file.
28901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
28902         (gl_UNISTD_H): Check for declaration.
28903         * modules/unistd (Makefile.am): Substitute it.
28904         * lib/unistd.in.h (pipe): Provide it for mingw.
28905         * doc/posix-functions/pipe.texi (pipe): Update documentation.
28906         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
28907
28908 2010-12-07  Bruno Haible  <bruno@clisp.org>
28909
28910         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
28911         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
28912         u8_strcmp_gnu.
28913         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
28914
28915 2010-12-06  Bruno Haible  <bruno@clisp.org>
28916
28917         Update internal documentation.
28918         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
28919
28920 2010-12-04  Bruno Haible  <bruno@clisp.org>
28921
28922         Put more information about failed tests into the test return codes.
28923         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
28924         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
28925         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
28926         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
28927         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
28928         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28929         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28930         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28931         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
28932         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28933         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
28934         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
28935         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
28936         * m4/stdint.m4 (gl_STDINT_H): Likewise.
28937         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
28938         returns a bit mask.
28939         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
28940         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
28941         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
28942         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
28943         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28944         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28945         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28946         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28947         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28948         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28949         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28950         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28951         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28952         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28953         * m4/link.m4 (gl_FUNC_LINK): Likewise.
28954         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
28955         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
28956         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
28957         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28958         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
28959         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28960         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
28961         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
28962         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
28963         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28964         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28965         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
28966         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
28967         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
28968         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
28969         gl_PRINTF_PRECISION): Likewise.
28970         * m4/regex.m4 (gl_REGEX): Likewise.
28971         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28972         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
28973         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
28974         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28975         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28976         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28977         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
28978         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
28979         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28980         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28981         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
28982         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28983         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28984         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
28985         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
28986         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28987         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
28988         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28989         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28990         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
28991         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
28992         enumerated value.
28993         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
28994
28995 2010-12-04  Bruno Haible  <bruno@clisp.org>
28996
28997         Update for Solaris 11 2010-11.
28998         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
28999         Express, released in November 2010.
29000
29001 2010-12-04  Bruno Haible  <bruno@clisp.org>
29002
29003         nproc: Relax license.
29004         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
29005         and Paul Eggert.
29006         Requested by Ludovic Courtès <ludo@gnu.org>.
29007
29008 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
29009
29010         utimecmp: fine-grained src to nearby coarse-grained dest
29011
29012         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
29013         and the source is on a file system with higher-resolution time
29014         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
29015         not work, and the time stamps are close together, the algorithm to
29016         determine the exact resolution from the read-back mtime was buggy:
29017         it had a "!=" where it should have had an "==".  This bug has been
29018         in the code ever since it was introduced to gnulib.
29019         Problem reported by Dan Jacobson in
29020         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
29021
29022 2010-11-30  Bruno Haible  <bruno@clisp.org>
29023
29024         strerror_r-posix: Fix autoconf test.
29025         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
29026
29027 2010-11-28  Bruno Haible  <bruno@clisp.org>
29028             Paul Eggert  <eggert@cs.ucla.edu>
29029
29030         Tests for module 'getdomainname'.
29031         * modules/getdomainname-tests: New file.
29032         * tests/test-getdomainname.c: New file, based on
29033         tests/test-gethostname.c.
29034
29035 2010-11-28  Bruno Haible  <bruno@clisp.org>
29036             Paul Eggert  <eggert@cs.ucla.edu>
29037
29038         getdomainname: Use the system function when possible.
29039         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
29040         (getdomainname): Replace if needed. Provide the declaration if it is
29041         missing. Don't use _GL_CXXALIAS_SYS_CAST.
29042         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
29043         (getdomainname): When the system has getdomainname, call the system
29044         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
29045         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
29046         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
29047         found in libnsl. Look for the declaration also in <netdb.h>. Replace
29048         the function if its second argument is of type 'int' or if it is found
29049         in libnsl.
29050         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
29051         <sys/systeminfo.h> and sysinfo().
29052         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
29053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29054         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
29055         HAVE_GETDOMAINNAME.
29056         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
29057         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
29058         * doc/glibc-functions/getdomainname.texi: Document the problems with
29059         the getdomainname declaration.
29060
29061 2010-11-28  Bruno Haible  <bruno@clisp.org>
29062
29063         sys_socket: Ensure ss_family field on AIX.
29064         * lib/sys_socket.in.h (ss_family): New macro definition.
29065         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
29066         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
29067         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29068         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29069         * modules/sys_socket (Makefile.am): Substitute
29070         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29071         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
29072
29073 2010-11-27  Bruno Haible  <bruno@clisp.org>
29074
29075         readline: Improve configure output.
29076         * m4/readline.m4 (gl_FUNC_READLINE): Make the
29077         "checking for readline..." result understandable.
29078
29079 2010-11-27  Bruno Haible  <bruno@clisp.org>
29080
29081         *printf-posix: Detect a bug on Solaris 10/x86.
29082         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
29083         for floating-point output.
29084         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
29085         directive.
29086         * tests/test-snprintf-posix.h (test_function): Likewise.
29087         * tests/test-sprintf-posix.h (test_function): Likewise.
29088         * tests/test-vasprintf-posix.c (test_function): Likewise.
29089         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
29090         * doc/posix-functions/printf.texi: Likewise.
29091         * doc/posix-functions/snprintf.texi: Likewise.
29092         * doc/posix-functions/sprintf.texi: Likewise.
29093         * doc/posix-functions/vfprintf.texi: Likewise.
29094         * doc/posix-functions/vprintf.texi: Likewise.
29095         * doc/posix-functions/vsnprintf.texi: Likewise.
29096         * doc/posix-functions/vsprintf.texi: Likewise.
29097         * doc/glibc-functions/obstack_printf.texi: Likewise.
29098         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29099
29100 2010-11-27  Bruno Haible  <bruno@clisp.org>
29101
29102         Fix link error when module libunistring-optional is in use.
29103         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
29104         * modules/striconveha-tests (Makefile.am): Likewise.
29105
29106 2010-11-27  Bruno Haible  <bruno@clisp.org>
29107
29108         regex: Mention link dependencies.
29109         * modules/regex (Link): New section.
29110         * modules/rpmatch (Link): Likewise.
29111         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
29112
29113 2010-11-27  Bruno Haible  <bruno@clisp.org>
29114
29115         ftoastr: Fix compilation error on Solaris.
29116         * lib/ftoastr.c: Include <config.h>.
29117
29118 2010-11-27  Bruno Haible  <bruno@clisp.org>
29119
29120         getloadavg: Update documentation.
29121         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
29122
29123 2010-11-27  Bruno Haible  <bruno@clisp.org>
29124
29125         sys_socket: Fix test whether the functions are declared.
29126         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
29127         not <sys/select.h>.
29128
29129 2010-11-27  Bruno Haible  <bruno@clisp.org>
29130
29131         getpass: Make sure to get system declaration on some platforms.
29132         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
29133         gl_USE_SYSTEM_EXTENSIONS.
29134         * modules/getpass (Depends-on): Add extensions.
29135
29136 2010-11-26  Bruno Haible  <bruno@clisp.org>
29137
29138         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
29139         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
29140         'iconv' module is present.
29141         (ICONV_CONST): New macro.
29142         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
29143         ICONV_CONST.
29144         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
29145         set ICONV_CONST.
29146         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
29147         here.
29148         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
29149         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
29150         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
29151         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
29152         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
29153         present.
29154
29155 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29156
29157         ftoastr: comment fix
29158         * lib/ftoastr.c: "little" -> "little or no" in comment
29159
29160 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
29161
29162         stdint: port to GCC 4.3 + OSX + Octave
29163         On this platform, stdint.h is buggy and defines int64_t to long
29164         long int.  The replacement defined it to long int, causing
29165         problems with C++ style name mangling.  Instead, trust the system
29166         definition if INT64_MAX is defined, and likewise for the unsigned
29167         variant.   Problem reported by Jarno Rajahalme in
29168         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
29169         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
29170         and don't mess with int64_t and INT64_MAX in this case.
29171         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
29172
29173 2010-11-24  Bruno Haible  <bruno@clisp.org>
29174
29175         doc: Corrections regarding MacOS X 10.4 and 10.5.
29176         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
29177         MacOS X.
29178         Reported by Simon Josefsson.
29179
29180 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
29181
29182         Uninstall ".bin" files installed by relocwrapper.
29183         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
29184         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
29185         unless it is already there.
29186
29187 2010-11-21  Bruno Haible  <bruno@clisp.org>
29188
29189         Update for NetBSD 5.0.
29190         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29191         NetBSD; the test fails on NetBSD 5.0.
29192         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29193         about NetBSD.
29194
29195 2010-11-21  Bruno Haible  <bruno@clisp.org>
29196
29197         Update for HP-UX 11.23 and HP-UX 11.31.
29198         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
29199         HP-UX.
29200
29201 2010-11-21  Bruno Haible  <bruno@clisp.org>
29202
29203         Update for MacOS X 10.5.
29204         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29205         MacOS X; the test fails on MacOS X 10.5.8.
29206         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29207         about MacOS X.
29208
29209 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
29210
29211         bootstrap: add bootstrap_sync option.
29212         See discussion at
29213         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
29214         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
29215         * build-aux/bootstrap: Accept --bootstrap-sync to update
29216         bootstrap if it is not identical to the local gnulib's
29217         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
29218         enable this by default.  Accept --no-bootstrap-sync to disable
29219         it.
29220
29221 2010-11-20  Bruno Haible  <bruno@clisp.org>
29222
29223         Ensure that <features.h> is included before __GLIBC__ is tested.
29224         * lib/printf-parse.h: Include <features.h>.
29225         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
29226         Reported by Mike Frysinger <vapier@gentoo.org>.
29227
29228         Ensure that <features.h> is included before __GLIBC__ is tested.
29229         * lib/wchar.in.h: Include <features.h>.
29230         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
29231         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
29232         Reported by Mike Frysinger <vapier@gentoo.org>.
29233
29234         Ensure that <features.h> is included before __GLIBC__ is tested.
29235         * lib/arpa_inet.in.h: Include <features.h>.
29236         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
29237         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
29238         Reported by Mike Frysinger <vapier@gentoo.org>.
29239
29240         Ensure that <features.h> is included before __GLIBC__ is tested.
29241         * build-aux/link-warning.h: Include <features.h>.
29242         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
29243         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
29244         Reported by Mike Frysinger <vapier@gentoo.org>.
29245
29246         Ensure that <features.h> is included before __GLIBC__ is tested.
29247         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
29248         Reported by Mike Frysinger <vapier@gentoo.org>.
29249
29250 2010-11-20  Bruno Haible  <bruno@clisp.org>
29251
29252         memmem: Fix autoconf test.
29253         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
29254
29255 2010-11-20  Bruno Haible  <bruno@clisp.org>
29256
29257         Port to uClibc.
29258         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
29259         * lib/fcntl.in.h: Likewise.
29260         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
29261         * lib/mbrtowc.c (mbrtowc): Likewise.
29262         * lib/relocatable.c (find_shared_library_fullname): Likewise.
29263         * lib/strerror_r.c: Likewise.
29264         * lib/unistr/u8-strnlen.c: Likewise.
29265         * lib/vasnprintf.c (decimal_point_char): Likewise.
29266         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
29267         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29268         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
29269         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
29270         * tests/test-sigaction.c (handler, main): Likewise.
29271         * lib/freading.h: Treat uClibc like a non-glibc platform.
29272         * lib/freading.c: Likewise.
29273         * lib/gettext.h: Likewise.
29274         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
29275         Likewise.
29276         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
29277         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
29278         * lib/propername.c (proper_name_utf8): Likewise.
29279         * lib/spawn.in.h: Likewise.
29280         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
29281         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
29282         mem_cd_iconveh_internal): Likewise.
29283         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
29284         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
29285         strstr, strcasestr): Likewise.
29286         * lib/unicodeio.c (unicode_to_mb): Likewise.
29287         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
29288         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
29289         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
29290         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
29291         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
29292         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
29293         * lib/unistr/u8-stpncpy.c: Likewise.
29294         * lib/vasnprintf.c (VASNPRINTF): Likewise.
29295         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
29296         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29297         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29298         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
29299         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
29300         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
29301         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
29302         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
29303         Likewise.
29304         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29305         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29306         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29307         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29308         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29309         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29310         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29311         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
29312         * tests/test-getopt.h (OPTIND_MIN): Likewise.
29313         * tests/test-striconveha.c (main): Likewise.
29314         * tests/test-vasnprintf-posix.c (test_function): Likewise.
29315         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
29316         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
29317         * doc/posix-functions/getline.texi: Likewise.
29318         Reported by Mike Frysinger <vapier@gentoo.org>.
29319
29320 2010-11-20  Bruno Haible  <bruno@clisp.org>
29321
29322         nproc: Fix condition.
29323         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
29324         HAVE_PTHREAD_AFFINITY_NP.
29325
29326 2010-11-20  Bruno Haible  <bruno@clisp.org>
29327
29328         Fix a comment.
29329         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
29330
29331 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
29332
29333         ftoastr: don't assume snprintf
29334         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
29335         Implement a subset of snprintf here, by using sprintf safely.
29336         * modules/ftoastr (Depends-on): Remove snprintf.
29337
29338 2010-11-19  Jim Meyering  <meyering@redhat.com>
29339
29340         test-rename.h: fix compilation failure
29341         * tests/test-rename.h (test_rename): Add omitted "}".
29342
29343 2010-11-17  Jim Meyering  <meyering@redhat.com>
29344
29345         maint.mk: add a URL discussing the no-@acronym policy
29346         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
29347
29348 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
29349
29350         ftoastr: depend on snprintf, improve comments
29351         * lib/ftoastr.c: Also mention Loitsch's draft.
29352         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
29353         needed in the current implementation, but it might simplify
29354         speeding up the code later.
29355         * modules/ftoastr: Depend on snprintf; this improves portability.
29356         Suggested by Bruno Haible in the same email.
29357
29358         ftoastr: port to hosts lacking strtof and strtold
29359         Problem reported by Bruno Haible in
29360         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
29361         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
29362         environment and strtold (and presumably strtof) are not available.
29363         * modules/ftoastr (Files): Add m4/c-strtod.m4.
29364         (configure.ac): Require gl_C99_STRTOLD.
29365
29366 2010-11-18  Bruno Haible  <bruno@clisp.org>
29367
29368         c-strtold: Avoid link error on AIX 7.
29369         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
29370         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
29371         (gl_C_STRTOLD): Test whether strtold_l exists.
29372         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29373
29374 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29375
29376         intprops: new macro INT_BITS_STRLEN_BOUND
29377         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
29378         ftoastr.h.  This exposes an internal of intprops.h that was formerly
29379         not exposed.  Also, it uses a slightly tighter bound than before;
29380         though this makes no practical difference, we might as well be as
29381         tight as we easily can.
29382
29383         ftoastr: new module, for lossless conversion of floats to short strings
29384         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
29385         * modules/ftoastr: New files.
29386
29387 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29388
29389         bootstrap: port to Solaris sed
29390         * build-aux/bootstrap (get_version): Port to Solaris sed.
29391         See Ralf Wildenhues's note in
29392         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
29393
29394 2010-11-14  Jim Meyering  <meyering@redhat.com>
29395
29396         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
29397         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
29398         and move definition closer to sole use.
29399
29400 2010-11-13  Jim Meyering  <meyering@redhat.com>
29401
29402         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
29403         Now we require at least autoconf-2.59, which means the work-around
29404         is no longer needed.
29405         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
29406         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29407         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
29408         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
29409         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
29410
29411 2010-11-13  Bruno Haible  <bruno@clisp.org>
29412
29413         rename, renameat: Avoid test failures at NFS mounted locations.
29414         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
29415         functions.
29416         (test_rename): Use assert_nonexistent.
29417         * tests/test-rename.c: Include <dirent.h>.
29418         * tests/test-renameat.c: Likewise.
29419         Reported by Gary V. Vaughan <gary@gnu.org>.
29420
29421         rename, renameat: Document Linux bug with NFS
29422         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
29423         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
29424         * doc/posix-functions/renameat.texi: Likewise.
29425         Suggested by Eric Blake.
29426
29427 2010-11-13  Bruno Haible  <bruno@clisp.org>
29428
29429         rename test: Add comments.
29430         * tests/test-rename.h (test_rename): Add structure and comments.
29431
29432 2010-11-13  Eric Blake  <eblake@redhat.com>
29433
29434         maintainer-makefile: cover a few more files
29435         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
29436         scripts generated within C files, for libvirt.
29437
29438 2010-11-13  Bruno Haible  <bruno@clisp.org>
29439
29440         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
29441         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
29442         character, return the number of bytes that belong together, not always
29443         1.
29444         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
29445         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
29446         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
29447         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
29448         number of bytes of an invalid character.
29449         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
29450         (main): Invoke it.
29451         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
29452         results.
29453         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
29454         malformed byte sequences.
29455         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
29456         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
29457         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
29458         Reported by Ben Pfaff and Paolo Bonzini.
29459
29460 2010-11-13  Bruno Haible  <bruno@clisp.org>
29461
29462         openat: Work around glibc bug with fchownat() and empty file names.
29463         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
29464         (gl_FUNC_FCHOWNAT): Invoke it.
29465         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
29466         * doc/posix-functions/fchownat.texi: Document the glibc bug.
29467         Reported by Gary V. Vaughan <gary@gnu.org>.
29468
29469 2010-11-13  Bruno Haible  <bruno@clisp.org>
29470
29471         openat: Ensure autoconf macro ordering.
29472         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
29473         gl_USE_SYSTEM_EXTENSIONS.
29474         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
29475
29476 2010-11-13  Bruno Haible  <bruno@clisp.org>
29477
29478         Update comments.
29479         * lib/unistr/u8-check.c: Update file name in comments.
29480         * lib/unistr/u8-mblen.c: Likewise.
29481         * lib/unistr/u8-prev.c: Likewise.
29482         * lib/unistr/u8-strmblen.c: Likewise.
29483         * lib/unistr/u8-strmbtouc.c: Likewise.
29484
29485 2010-11-13  Jim Meyering  <meyering@redhat.com>
29486
29487         tests: avoid test failure on Solaris 10 due to lack of PATH export
29488         * tests/test-update-copyright.sh: Don't forget to export PATH.
29489
29490         init.sh: ensure that IFS is defined, just in case...
29491         * tests/init.sh (setup_): Ensure that IFS is defined,
29492         so that saving and restoring it works as expected.  This
29493         appears to be useful at least for an old version of dash
29494         from a long time ago (RH 6).  See here for details:
29495         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
29496
29497         maint.mk: tighten "test a == b" check
29498         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
29499         test to files that contain something like #!/bin/sh.
29500         Without this, coreutils would get two false positives in
29501         the comments of C source files.
29502
29503 2010-11-12  Eric Blake  <eblake@redhat.com>
29504
29505         bootstrap: fix typo in previous attempt
29506         * build-aux/bootstrap (buildreq): Correct the grouping.
29507         Reported by Paul Eggert.
29508
29509         maintainer-makefile: prohibit test x == x
29510         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
29511         Based on a report by Matthias Bolte.
29512
29513         bootstrap: allow FreeBSD gzip
29514         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
29515         which has no '.' and goes to stderr.
29516         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
29517         Reported by Matthias Bolte.
29518
29519         maintainer-makefile: check for i18n setup
29520         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
29521         will likely work.
29522
29523 2010-11-12  Bruno Haible  <bruno@clisp.org>
29524
29525         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
29526         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
29527         * lib/nanosleep.c (nanosleep): Likewise.
29528
29529 2010-11-11  Bruno Haible  <bruno@clisp.org>
29530
29531         fcntl-h: Fix for use of C++ on glibc systems.
29532         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
29533         also on glibc systems in C++ mode.
29534         Reported by Gary V. Vaughan <gary@gnu.org>.
29535
29536 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29537
29538         mknod: avoid false failure with dash
29539         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
29540
29541 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29542
29543         unlink: Fix "is it should" typo in diagnostic.
29544         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
29545         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
29546
29547 2010-11-11  Bruno Haible  <bruno@clisp.org>
29548
29549         Tests for module 'strerror_r-posix'.
29550         * modules/strerror_r-posix-tests: New file.
29551         * tests/test-strerror_r.c: New file.
29552         * tests/test-string-c++.cc: Check the signature of strerror_r.
29553
29554         New module 'strerror_r-posix'.
29555         * lib/string.in.h (strerror_r): New declaration.
29556         * lib/strerror_r.c: New file.
29557         * m4/strerror_r.m4: New file.
29558         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
29559         of strerror_r.
29560         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
29561         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29562         * modules/strerror_r-posix: New file.
29563         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
29564         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29565         * doc/posix-functions/strerror_r.texi: Mention the new module and the
29566         portability problems.
29567
29568 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
29569
29570         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
29571         line is also considered for output. Quoted function name in shell
29572         command, so temporary files for functions like MyClass::operator()
29573         are removed correctly without errors.
29574
29575 2010-11-09  Bruno Haible  <bruno@clisp.org>
29576
29577         * doc/posix-functions/strerror.texi: List more failing platforms.
29578
29579         * doc/posix-functions/strerror.texi: Add a comment.
29580
29581 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29582
29583         fdopendir: fix bug on MacOS X when low on file descriptors
29584
29585         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
29586         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
29587         All callers changed.
29588         (fdopendir): Invoke save_cwd at the top level, not after using
29589         multiple dup() calls to use up file descriptors.  Then retry
29590         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
29591         less than the maximum number of open file descriptors, because
29592         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
29593         on Mac OS X 10.6.4 for tar 1.24
29594         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
29595         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
29596         and for tar 1.25
29597         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
29598
29599 2010-11-07  Bruno Haible  <bruno@clisp.org>
29600
29601         vasnprintf: Support I flag on glibc systems.
29602         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
29603         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
29604         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
29605         snprintf function.
29606         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
29607         glibc systems.
29608         * tests/test-vasnprintf-posix3.c: New file.
29609         * modules/vasnprintf-posix-tests (Files): Add it.
29610         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
29611
29612 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29613
29614         [html] Fix copy/paste bug: Use unique name for compiler warnings.
29615         * MODULES.html.sh: For compiler warnings, use name
29616         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
29617
29618 2010-11-05  Eric Blake  <eblake@redhat.com>
29619
29620         ceil, floor: avoid spurious failure with icc
29621         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
29622         [denormals-as-zero] when optimizing without -mieee-fp option.
29623         * tests/test-floorf2.c (floorf_reference): Likewise.
29624         * tests/test-ceilf1.c (dummy): New function.
29625         (main): Use it to outsmart icc's optimization.
29626         * tests/test-floorf1.c (dummy, main): Likewise.
29627
29628         tests: require working signbit
29629         * modules/ceilf-tests (Depends-on): Add signbit.
29630         * modules/ceill-tests (Depends-on): Likewise.
29631         * modules/floorf-tests (Depends-on): Likewise.
29632         * modules/floorl-tests (Depends-on): Likewise.
29633         * modules/round-tests (Depends-on): Likewise.
29634         * modules/roundf-tests (Depends-on): Likewise.
29635         * modules/roundl-tests (Depends-on): Likewise.
29636         * modules/trunc-tests (Depends-on): Likewise.
29637         * modules/truncf-tests (Depends-on): Likewise.
29638         * modules/truncl-tests (Depends-on): Likewise.
29639
29640         strtod: work around icc bug
29641         * lib/strtod.c (minus_zero): Define to working value.
29642         (strtod): Use it to avoid icc bug.
29643
29644         copysign: enhance tests
29645         * modules/copysign-tests (Files): Add minus-zero.h.
29646         * tests/test-copysign.c (main): Also test zeros.
29647
29648 2010-11-04  Eric Blake  <eblake@redhat.com>
29649
29650         ceil, floor, round, trunc: enhance tests of -0
29651         * tests/test-ceilf1.c (main): Ensure correct sign of result.
29652         * tests/test-ceill.c (main): Likewise.
29653         * tests/test-floorf1.c (main): Likewise.
29654         * tests/test-floorl.c (main): Likewise.
29655         * tests/test-round1.c (main): Likewise.
29656         * tests/test-roundf1.c (main): Likewise.
29657         * tests/test-roundl.c (main): Likewise.
29658         * tests/test-trunc1.c (main): Likewise.
29659         * tests/test-truncf1.c (main): Likewise.
29660         * tests/test-truncl.c (main): Likewise.
29661
29662 2010-11-04  Eric Blake  <eblake@redhat.com>
29663
29664         frexp, tests: work around ICC bug with -zero
29665         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
29666         works with more compilers.
29667         * tests/minus-zero.h: New file.
29668         * modules/ceilf-tests (Files): Include it.
29669         * modules/ceill-tests (Files): Likewise.
29670         * modules/floorf-tests (Files): Likewise.
29671         * modules/floorl-tests (Files): Likewise.
29672         * modules/frexp-nolibm-tests (Files): Likewise.
29673         * modules/frexp-tests (Files): Likewise.
29674         * modules/frexpl-nolibm-tests (Files): Likewise.
29675         * modules/frexpl-tests (Files): Likewise.
29676         * modules/isnan-tests (Files): Likewise.
29677         * modules/isnand-nolibm-tests (Files): Likewise.
29678         * modules/isnand-tests (Files): Likewise.
29679         * modules/isnanf-nolibm-tests (Files): Likewise.
29680         * modules/isnanf-tests (Files): Likewise.
29681         * modules/isnanl-nolibm-tests (Files): Likewise.
29682         * modules/isnanl-tests (Files): Likewise.
29683         * modules/round-tests (Files): Likewise.
29684         * modules/roundf-tests (Files): Likewise.
29685         * modules/roundl-tests (Files): Likewise.
29686         * modules/ldexpl-tests (Files): Likewise.
29687         * modules/signbit-tests (Files): Likewise.
29688         * modules/snprintf-posix-tests (Files): Likewise.
29689         * modules/sprintf-posix-tests (Files): Likewise.
29690         * modules/strtod-tests (Files): Likewise.
29691         * modules/trunc-tests (Files): Likewise.
29692         * modules/truncf-tests (Files): Likewise.
29693         * modules/truncl-tests (Files): Likewise.
29694         * modules/vsnprintf-posix-tests (Files): Likewise.
29695         * modules/vsprintf-posix-tests (Files): Likewise.
29696         * modules/vasnprintf-posix-tests (Files): Likewise.
29697         * modules/vasprintf-posix-tests (Files): Likewise.
29698         * tests/test-ceilf1.c (main): Use it.
29699         * tests/test-ceill.c (main): Likewise.
29700         * tests/test-floorf1.c (main): Likewise.
29701         * tests/test-floorl.c (main): Likewise.
29702         * tests/test-frexp.c (main): Likewise.
29703         * tests/test-frexpl.c (main): Likewise.
29704         * tests/test-isnan.c (main): Likewise.
29705         * tests/test-isnand.h (main): Likewise.
29706         * tests/test-isnanf.h (main): Likewise.
29707         * tests/test-isnanl.h (main): Likewise.
29708         * tests/test-ldexpl.c (main): Likewise.
29709         * tests/test-round.c (main): Likewise.
29710         * tests/test-roundf.c (main): Likewise.
29711         * tests/test-roundl.c (main): Likewise.
29712         * tests/test-signbit.c (test_signbitf, test_signbitd)
29713         (test_signbitl): Likewise.
29714         * tests/test-snprintf-posix.h (test_function): Likewise.
29715         * tests/test-sprintf-posix.h (test_function): Likewise.
29716         * tests/test-strtod.c (main): Likewise.
29717         * tests/test-trunc1.c (main): Likewise.
29718         * tests/test-truncf1.c (main): Likewise.
29719         * tests/test-truncl.c (main): Likewise.
29720
29721         isnanl: work around icc bug
29722         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
29723
29724 2010-11-03  Eric Blake  <eblake@redhat.com>
29725
29726         tests: fix compiler warnings
29727         * tests/test-getopt.h (test_getopt): Fix condition.
29728         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29729         * tests/test-pipe2.c (main): Likewise.
29730         * tests/test-quotearg-simple.c (main): Avoid icc warning.
29731
29732         utimens: fix broken m4 test
29733         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
29734
29735 2010-10-28  Bruno Haible  <bruno@clisp.org>
29736
29737         posix_spawn*, getdtablesize: Relax license.
29738         * modules/posix_spawn (License): Change to LGPLv2+.
29739         * modules/posix_spawnp (License): Likewise.
29740         * modules/posix_spawn-internal (License): Likewise.
29741         * modules/posix_spawnattr_init (License): Likewise.
29742         * modules/posix_spawnattr_getflags (License): Likewise.
29743         * modules/posix_spawnattr_setflags (License): Likewise.
29744         * modules/posix_spawnattr_getpgroup (License): Likewise.
29745         * modules/posix_spawnattr_setpgroup (License): Likewise.
29746         * modules/posix_spawnattr_getschedparam (License): Likewise.
29747         * modules/posix_spawnattr_setschedparam (License): Likewise.
29748         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
29749         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
29750         * modules/posix_spawnattr_getsigdefault (License): Likewise.
29751         * modules/posix_spawnattr_setsigdefault (License): Likewise.
29752         * modules/posix_spawnattr_getsigmask (License): Likewise.
29753         * modules/posix_spawnattr_setsigmask (License): Likewise.
29754         * modules/posix_spawnattr_destroy (License): Likewise.
29755         * modules/posix_spawn_file_actions_init (License): Likewise.
29756         * modules/posix_spawn_file_actions_addclose (License): Likewise.
29757         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
29758         * modules/posix_spawn_file_actions_addopen (License): Likewise.
29759         * modules/posix_spawn_file_actions_destroy (License): Likewise.
29760         * modules/getdtablesize (License): Likewise.
29761         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
29762
29763 2010-10-26  Bruno Haible  <bruno@clisp.org>
29764
29765         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
29766         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
29767         Cygwin and mingw.
29768         Suggested by Eric Blake.
29769
29770 2010-10-26  Bruno Haible  <bruno@clisp.org>
29771
29772         stdio: Work around compilation error due to renameat() on Solaris 10.
29773         * lib/stdio.in.h: Include <unistd.h> on Solaris.
29774         * lib/renameat.c: Don't include <unistd.h> here.
29775         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
29776         Reported by Paul Eggert and Eric Blake.
29777
29778 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
29779
29780         renameat: port to Solaris 10, which declares renameat in unistd.h
29781
29782         * lib/renameat.c: Include unistd.h before stdio.h, because
29783         Solaris 10 declares renameat in unistd.h.  Problem encountered
29784         when building GNU tar 1.24 on Solaris 10.
29785
29786 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29787
29788         fdopendir: fix C89 compilation
29789         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
29790         compilers.
29791
29792 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
29793
29794         inttostr: simplify by removing unnecessary redundancy
29795         * lib/anytostr.c: Don't include verify.h.
29796         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
29797         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
29798         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
29799         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
29800         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
29801         Likewise.
29802         * modules/inttostr (Depends-on): Remove 'verify'.
29803
29804 2010-10-23  Bruno Haible  <bruno@clisp.org>
29805
29806         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
29807         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
29808         Reported by Eric Blake.
29809
29810 2010-10-23  Bruno Haible  <bruno@clisp.org>
29811
29812         Tests: Fix LOCALE_JA on MirBSD 10.
29813         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
29814         to an UTF-8 locale.
29815         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
29816         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29817         Reported by Eric Blake.
29818
29819 2010-10-21  Bruno Haible  <bruno@clisp.org>
29820
29821         nl_langinfo test: Avoid test failure on NetBSD 5.
29822         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
29823         Reported by Eric Blake.
29824
29825 2010-10-21  Eric Blake  <eblake@redhat.com>
29826
29827         c-stack: work around libsigsegv 2.8 bug
29828         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
29829         overflow on at least PowerPC64.
29830
29831 2010-10-17  Bruno Haible  <bruno@clisp.org>
29832
29833         userspec: Drop redundant file.
29834         * modules/userspec (Files): Remove lib/inttostr.h.
29835
29836 2010-10-17  Bruno Haible  <bruno@clisp.org>
29837
29838         nl_langinfo tests: Silence some warnings.
29839         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
29840         Reported by Jim Meyering.
29841
29842 2010-10-17  Bruno Haible  <bruno@clisp.org>
29843
29844         Make use of GCC's attribute __alloc_size__.
29845         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
29846         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
29847         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
29848         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
29849         __alloc_size__.
29850         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29851         Suggested by Jim Meyering.
29852
29853 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
29854
29855         bootstrap: anchor .gitignore entries.
29856         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
29857         with...
29858         (insert_vc_ignore): ... this new function, which prepends `/' to
29859         all .gitignore entries before passing them to
29860         insert_sorted_if_absent.
29861
29862 2010-10-16  Bruno Haible  <bruno@clisp.org>
29863
29864         nextafter: Fix configure check.
29865         * modules/nextafter (configure.ac): Correct expected prototype.
29866
29867 2010-10-16  Bruno Haible  <bruno@clisp.org>
29868
29869         termios: Update documentation.
29870         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
29871
29872 2010-10-16  Bruno Haible  <bruno@clisp.org>
29873
29874         tests: Make them compile with TinyCC.
29875         * tests/test-strstr.c (main): Remove parentheses around array
29876         initializer.
29877
29878 2010-10-15  Eric Blake  <eblake@redhat.com>
29879
29880         ignore-value: make header idempotent
29881         * lib/ignore-value.h: Add double-inclusion guards.
29882         Reported by Stefan Berger.
29883
29884 2010-10-15  Jim Meyering  <meyering@redhat.com>
29885
29886         GNUmakefile: handle "stable" target, not "major"
29887         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
29888         lists in maint.mk and announce-gen.  Without this, "make stable"
29889         would fail to ensure that $(VERSION) is up to date.
29890
29891 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
29892
29893         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
29894         & co.
29895
29896 2010-10-14  Bruno Haible  <bruno@clisp.org>
29897
29898         vasnprintf: Don't set errno to 0.
29899         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
29900         block that sets it to 0.
29901         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
29902
29903 2010-10-14  Bruno Haible  <bruno@clisp.org>
29904
29905         socketlib: Fix.
29906         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
29907         gl_PREREQ_SYS_H_WINSOCK2.
29908         Reported by Ian Beckwith <ianb@erislabs.net>.
29909
29910 2010-10-13  Jim Meyering  <meyering@redhat.com>
29911
29912         test-select-stdin.c: avoid warn_unused_result warnings
29913         * tests/test-select-stdin.c: Include "macros.h".
29914         ASSERT that read and fflush succeed.
29915
29916 2010-10-13  Jim Meyering  <meyering@redhat.com>
29917
29918         git-version-gen: do require git-VC'd files in cwd
29919         * build-aux/git-version-gen: Reject a git version string
29920         if there are no commits associated with the current directory.
29921         This avoids an unlikely false-positive (unrelated dir whose parent
29922         repository also contains a tag matching v*), as pointed out
29923         by Giuseppe Scrivano in
29924         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
29925
29926 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29927
29928         argv-iter: omit nonconforming declaration
29929         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
29930         enum arg_iter_err declaration, which doesn't conform to C99.
29931         Solaris 10 cc warns about this.
29932
29933 2010-10-13  Eric Blake  <eblake@redhat.com>
29934
29935         termios: fix compilation on mingw
29936         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
29937         (gl_TERMIOS_H): Adjust it on mingw.
29938         * modules/termios (Makefile.am): Substitute new key.
29939         * lib/termios.in.h (includes): Make include_next conditional.
29940         * doc/posix-headers/termios.texi (termios.h): Update
29941         documentation.
29942         Reported by Daniel P. Berrange.
29943
29944 2010-10-13  Jim Meyering  <meyering@redhat.com>
29945
29946         git-version-gen: don't require that .git/ be in the current dir
29947         * build-aux/git-version-gen: Adjust this script so that it works
29948         when run from any working directory beneath the top-level .git/-
29949         containing directory.  Inspired by a patch from Giuseppe Scrivano,
29950         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
29951
29952         test-select: avoid warn_unused_result warnings
29953         * tests/test-select.c: Include "macros.h".
29954         ASSERT that each call to read, write, and pipe succeeds.
29955         While not technically required, also check each "close".
29956         * modules/select-tests (Files): Add tests/macros.h.
29957
29958         test-symlinkat: remove declaration of unused local
29959         * tests/test-symlinkat.c (main): Remove unused local, "buf".
29960
29961         test-inttostr: avoid shadowing warnings
29962         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
29963         and use malloc rather than the stack for the same reason as
29964         mentioned in the comment justifying the other allocation.
29965
29966 2010-10-11  Bruno Haible  <bruno@clisp.org>
29967
29968         stdlib: Allow multiple gnulib generated replacements to coexist.
29969         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
29970         Reported by Sam Steingold <sds@gnu.org>.
29971
29972 2010-10-11  Jim Meyering  <meyering@redhat.com>
29973
29974         fix a documentation typo
29975         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
29976
29977 2010-10-11  Eric Blake  <eblake@redhat.com>
29978
29979         futimens: work around Solaris 11 bug
29980         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
29981         * tests/test-futimens.h (test_futimens): Enhance, rather than
29982         weaken test.
29983         * doc/posix-functions/futimens.texi (futimens): Document the bug.
29984
29985 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29986
29987         Indentation.
29988         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
29989         higher-level operators more to the left.
29990
29991 2010-10-11  Jim Meyering  <meyering@redhat.com>
29992
29993         test-futimens: avoid unwarranted test failure on Solaris 5.11
29994         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
29995         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
29996         because it tries to dereference the NULL name argument.
29997
29998 2010-10-11  Bruno Haible  <bruno@clisp.org>
29999
30000         Indentation.
30001         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
30002         indentation.
30003
30004 2010-10-11  Jim Meyering  <meyering@redhat.com>
30005
30006         spawn.in.h: make indentation consistent with parentheses
30007         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
30008         Make indentation consistent with parentheses.
30009
30010 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
30011
30012         Fix mismatched parens in previous commit
30013         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
30014         parens.
30015
30016 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30017
30018         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
30019
30020         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
30021         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
30022         * lib/malloca.c: Include "verify.h".
30023         (verify1): Remove, replacing with a verify call.
30024         * lib/relocwrapper.c (verify1): Likewise.
30025         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
30026         Likewise.
30027         * modules/malloca (Depends-on): Add 'verify'.
30028         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
30029         * modules/vasnprintf (Depends-on): Add 'verify'.
30030         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30031         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30032         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30033         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30034         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30035         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30036         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30037
30038         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
30039
30040         Formerly the style was sometimes 2*X - 1, because the C standard
30041         was wrongly thought to disallow ?: in integral constant expressions.
30042         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
30043         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
30044         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
30045         * lib/stdint.in.h (_verify_intmax_size): Likewise.
30046         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
30047         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
30048         verify that time_t cannot be floating.
30049
30050 2010-10-08  Eric Blake  <eblake@redhat.com>
30051
30052         time: enforce recent POSIX ruling that time_t is integral
30053         * lib/time.in.h (__time_t_must_be_integral): Detect any
30054         problematic systems, allowing the rest of gnulib to assume POSIX.
30055
30056 2010-10-08  Jim Meyering  <meyering@redhat.com>
30057
30058         fdopendir: fix a bug on systems lacking openat and /proc support
30059         OpenBSD 4.7 is one such system.  The most noticeable effect was
30060         failure of any application making nontrivial use of fts: rm, du,
30061         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
30062           ./rm: traversal failed: `a': Bad file descriptor
30063         Debugging that, you see that even though FD 6 was closed just
30064         prior to the opendir call in fd_clone_opendir, its resulting
30065         dir->dd_fd was 8, rather than the expected value of 6:
30066
30067         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
30068         93                close (fd);
30069         (gdb) n
30070         94                dir = fd_clone_opendir (dupfd);
30071         (gdb) n
30072         95                saved_errno = errno;
30073         (gdb) p dir->dd_fd
30074         $11 = 8
30075
30076         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
30077         The problem is that on OpenBSD, fd_clone_opendir has to resort
30078         to using the old-style save/restore CWD mechanism, due to its
30079         lack of openat/proc support, and *that* would steal the FD (6)
30080         that opendir was supposed to use.
30081
30082         The fix is to squirrel away the desired FD so that save_cwd uses a
30083         different one, and then free the dest FD right before calling opendir.
30084         That guarantees opendir will use the required file descriptor.
30085
30086         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
30087
30088 2010-10-08  Bruno Haible  <bruno@clisp.org>
30089
30090         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
30091         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
30092
30093 2010-10-08  Bruno Haible  <bruno@clisp.org>
30094
30095         nanosleep: Make replacement POSIX compliant.
30096         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
30097         is out of range.
30098         Reported by Jim Meyering.
30099
30100 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30101
30102         bootstrap: add hook for altering gnulib.mk, for Bison
30103         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
30104         the Bison bootstrapping process can rewrite file names and variables
30105         in this file before later parts of 'bootstrap' use the file.
30106         Bison wants to include lib/gnulib.mk from the top-level makefile,
30107         so it needs the file names in this file to be relative to the top
30108         level, not relative to lib; plus it needs variable names to be
30109         rewritten.
30110         (slurp): Use the new function.
30111
30112         bootstrap: reformat for readability
30113         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
30114
30115 2010-10-08  Eric Blake  <eblake@redhat.com>
30116
30117         docs: update cygwin progress
30118         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
30119         1.7.7.
30120         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
30121         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
30122         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
30123         * doc/posix-functions/carg.texi (carg): Likewise.
30124         * doc/posix-functions/cargf.texi (cargf): Likewise.
30125         * doc/posix-functions/casin.texi (casin): Likewise.
30126         * doc/posix-functions/casinf.texi (casinf): Likewise.
30127         * doc/posix-functions/casinh.texi (casinh): Likewise.
30128         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
30129         * doc/posix-functions/catan.texi (catan): Likewise.
30130         * doc/posix-functions/catanf.texi (catanf): Likewise.
30131         * doc/posix-functions/catanh.texi (catanh): Likewise.
30132         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
30133         * doc/posix-functions/ccos.texi (ccos): Likewise.
30134         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
30135         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
30136         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
30137         * doc/posix-functions/cexp.texi (cexp): Likewise.
30138         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
30139         * doc/posix-functions/cimag.texi (cimag): Likewise.
30140         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
30141         * doc/posix-functions/clog.texi (clog): Likewise.
30142         * doc/posix-functions/clogf.texi (clogf): Likewise.
30143         * doc/posix-functions/conj.texi (conj): Likewise.
30144         * doc/posix-functions/conjf.texi (conjf): Likewise.
30145         * doc/posix-functions/cpow.texi (cpow): Likewise.
30146         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
30147         * doc/posix-functions/cproj.texi (cproj): Likewise.
30148         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
30149         * doc/posix-functions/creal.texi (creal): Likewise.
30150         * doc/posix-functions/crealf.texi (crealf): Likewise.
30151         * doc/posix-functions/csin.texi (csin): Likewise.
30152         * doc/posix-functions/csinf.texi (csinf): Likewise.
30153         * doc/posix-functions/csinh.texi (csinh): Likewise.
30154         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
30155         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
30156         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
30157         * doc/posix-functions/ctan.texi (ctan): Likewise.
30158         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
30159         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
30160         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
30161         * doc/posix-headers/complex.texi (complex.h): Likewise.
30162
30163 2010-10-07  Jim Meyering  <meyering@redhat.com>
30164
30165         parse-datetime: avoid compilation failure on OpenBSD 4.7
30166         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
30167         This works around a compilation failure on OpenBSD 4.7:
30168         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
30169
30170 2010-10-07  Eric Blake  <eblake@redhat.com>
30171
30172         docs: update cygwin progress
30173         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
30174         1.7.6.
30175         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30176         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
30177         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
30178         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
30179         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
30180         Likewise.
30181         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
30182         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
30183         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
30184         Likewise.
30185         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
30186         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
30187         Likewise.
30188         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
30189         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
30190         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
30191         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
30192         Likewise.
30193         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
30194         Likewise.
30195         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
30196
30197         docs: update parse-datetime history
30198         * doc/parse-datetime.texi (Authors of parse_datetime): Better
30199         documentation of this function's history and alternatives.
30200
30201         cygwin: use more robust version check
30202         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
30203         exclude an eventual cygwin 1.9.1.
30204         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30205         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30206         (gl_FUNC_STRCASESTR): Likewise.
30207         Reported by Bruno Haible.
30208
30209 2010-10-06  Bruno Haible  <bruno@clisp.org>
30210
30211         string, sys_select: Avoid #including large headers unless necessary.
30212         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
30213         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
30214         OSF/1, BeOS, Haiku.
30215         Reported by Jim Meyering.
30216
30217 2010-10-05  Eric Blake  <eblake@redhat.com>
30218
30219         memmem, strstr, strcasestr: fix bug with long periodic needle
30220         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
30221         periodic needle having false positive.
30222         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
30223         and cygwin 1.7.7.
30224         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
30225         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30226         (gl_FUNC_STRCASESTR): Likewise.
30227         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30228         * tests/test-memmem.c (main): Expose the bug.
30229         * tests/test-strcasestr.c (main): Likewise.
30230         * tests/test-strstr.c (main): Likewise.
30231         * tests/test-c-strcasestr.c (main): Likewise.
30232         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
30233         * doc/posix-functions/strstr.texi (strstr): Likewise.
30234         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30235         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
30236
30237 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30238
30239         parse-datetime: do some more renaming
30240         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
30241         parse_datetime, not get_date.  Mention the renaming.
30242         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
30243         in comments.
30244         * m4/bison.m4: Likewise.
30245
30246 2010-10-05  Eric Blake  <eblake@redhat.com>
30247
30248         parse-datetime: better name than get_date
30249         * NEWS: Reword the deprecation notice.
30250         * modules/get_date: Rename to modules/parse-datetime.
30251         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
30252         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
30253         * lib/get_date.y: Rename to lib/parse-datetime.y.
30254         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
30255         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
30256         * doc/getdate.texi: Provide fallback wrapper.
30257         * lib/getdate.h: Move guts, and wrap...
30258         * lib/parse-datetime.h: ...new file.
30259         * lib/parse-datetime.y (get_date): Rename...
30260         (parse_datetime): ...to this.
30261         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
30262         (gl_PARSE_DATETIME): ...to this.
30263         * doc/posix-functions/getdate.texi (get_date): Provide fallback
30264         documentation.
30265         * modules/getdate (Files): Provide fallback docs and header.
30266         (Notice, Depends-on): Update references.
30267         * tests/test-parse-datetime.c: Likewise.
30268         * DEPENDENCIES: Likewise.
30269         * MODULES.html.sh (Date and time <time.h>): Likewise.
30270         * doc/parse-datetime.texi (Date input formats)
30271         (Authors of parse_datetime): Likewise.
30272         * modules/parse-datetime (Files, configure.ac, Makefile.am)
30273         (Include): Likewise.
30274         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
30275         * gnulib-tool: Likewise.
30276         * m4/bison.m4 (gl_BISON): Likewise.
30277         Suggested by Bruno Haible.
30278
30279 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30280
30281         more ports to Solaris tr, which needs [] around ranges
30282         * gnulib-tool: Solaris tr needs [] around ranges.
30283         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
30284         * tests/test-pipe-filter-gi1.c (main): Likewise.
30285         * tests/test-pipe-filter-ii1.c (main): Likewise.
30286
30287 2010-10-05  Eric Blake  <eblake@redhat.com>
30288
30289         bootstrap: fix Solaris regression
30290         * build-aux/bootstrap (check_versions): Solaris tr still needs []
30291         around ranges.
30292         Reported by Pádraig Brady.
30293
30294         bootstrap: work with pkg-config
30295         * build-aux/bootstrap (check_versions): Also transliterate - in
30296         prerequisite name.
30297         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
30298         prerequisites that were already found, to avoid confusion.
30299         Reported by Justin Clift.
30300
30301         faccessat: remove unused wrappers
30302         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
30303         presence of these wrappers dragged in -lgen on Solaris.
30304         Reported by Clemens Brogi; fix suggested by Paul Eggert.
30305
30306 2010-10-05  Jim Meyering  <meyering@redhat.com>
30307
30308         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
30309         * Makefile (sc_pragma_columns): New syntax-check rule.
30310
30311 2010-10-04  Bruno Haible  <bruno@clisp.org>
30312
30313         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
30314         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
30315         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
30316         Reported by Bruce Korb and Eric Blake.
30317
30318 2010-10-04  Bruno Haible  <bruno@clisp.org>
30319
30320         threadlib: Make option --with-libpth-prefix work.
30321         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
30322         use $LIBPTH, not just -lpth.
30323
30324 2010-10-04  Bruno Haible  <bruno@clisp.org>
30325
30326         Avoid line length limitation from HP NonStop system header files.
30327         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
30328         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
30329         * lib/ctype.in.h: Likewise.
30330         * lib/dirent.in.h: Likewise.
30331         * lib/errno.in.h: Likewise.
30332         * lib/fcntl.in.h: Likewise.
30333         * lib/float.in.h: Likewise.
30334         * lib/getopt.in.h: Likewise.
30335         * lib/iconv.in.h: Likewise.
30336         * lib/inttypes.in.h: Likewise.
30337         * lib/langinfo.in.h: Likewise.
30338         * lib/locale.in.h: Likewise.
30339         * lib/math.in.h: Likewise.
30340         * lib/netdb.in.h: Likewise.
30341         * lib/netinet_in.in.h: Likewise.
30342         * lib/poll.in.h: Likewise.
30343         * lib/pthread.in.h: Likewise.
30344         * lib/pty.in.h: Likewise.
30345         * lib/sched.in.h: Likewise.
30346         * lib/se-selinux.in.h: Likewise.
30347         * lib/search.in.h: Likewise.
30348         * lib/signal.in.h: Likewise.
30349         * lib/spawn.in.h: Likewise.
30350         * lib/stdarg.in.h: Likewise.
30351         * lib/stddef.in.h: Likewise.
30352         * lib/stdint.in.h: Likewise.
30353         * lib/stdio.in.h: Likewise.
30354         * lib/stdlib.in.h: Likewise.
30355         * lib/string.in.h: Likewise.
30356         * lib/strings.in.h: Likewise.
30357         * lib/sys_file.in.h: Likewise.
30358         * lib/sys_ioctl.in.h: Likewise.
30359         * lib/sys_select.in.h: Likewise.
30360         * lib/sys_socket.in.h: Likewise.
30361         * lib/sys_stat.in.h: Likewise.
30362         * lib/sys_time.in.h: Likewise.
30363         * lib/sys_times.in.h: Likewise.
30364         * lib/sys_utsname.in.h: Likewise.
30365         * lib/sys_wait.in.h: Likewise.
30366         * lib/sysexits.in.h: Likewise.
30367         * lib/termios.in.h: Likewise.
30368         * lib/time.in.h: Likewise.
30369         * lib/unistd.in.h: Likewise.
30370         * lib/wchar.in.h: Likewise.
30371         * lib/wctype.in.h: Likewise.
30372         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
30373         * modules/ctype (Makefile.am): Likewise.
30374         * modules/dirent (Makefile.am): Likewise.
30375         * modules/errno (Makefile.am): Likewise.
30376         * modules/fcntl-h (Makefile.am): Likewise.
30377         * modules/float (Makefile.am): Likewise.
30378         * modules/getopt-posix (Makefile.am): Likewise.
30379         * modules/iconv-h (Makefile.am): Likewise.
30380         * modules/inttypes (Makefile.am): Likewise.
30381         * modules/langinfo (Makefile.am): Likewise.
30382         * modules/locale (Makefile.am): Likewise.
30383         * modules/math (Makefile.am): Likewise.
30384         * modules/netdb (Makefile.am): Likewise.
30385         * modules/netinet_in (Makefile.am): Likewise.
30386         * modules/poll-h (Makefile.am): Likewise.
30387         * modules/pthread (Makefile.am): Likewise.
30388         * modules/pty (Makefile.am): Likewise.
30389         * modules/sched (Makefile.am): Likewise.
30390         * modules/search (Makefile.am): Likewise.
30391         * modules/selinux-h (Makefile.am): Likewise.
30392         * modules/signal (Makefile.am): Likewise.
30393         * modules/spawn (Makefile.am): Likewise.
30394         * modules/stdarg (Makefile.am): Likewise.
30395         * modules/stddef (Makefile.am): Likewise.
30396         * modules/stdint (Makefile.am): Likewise.
30397         * modules/stdio (Makefile.am): Likewise.
30398         * modules/stdlib (Makefile.am): Likewise.
30399         * modules/string (Makefile.am): Likewise.
30400         * modules/strings (Makefile.am): Likewise.
30401         * modules/sys_file (Makefile.am): Likewise.
30402         * modules/sys_ioctl (Makefile.am): Likewise.
30403         * modules/sys_select (Makefile.am): Likewise.
30404         * modules/sys_socket (Makefile.am): Likewise.
30405         * modules/sys_stat (Makefile.am): Likewise.
30406         * modules/sys_time (Makefile.am): Likewise.
30407         * modules/sys_times (Makefile.am): Likewise.
30408         * modules/sys_utsname (Makefile.am): Likewise.
30409         * modules/sys_wait (Makefile.am): Likewise.
30410         * modules/sysexits (Makefile.am): Likewise.
30411         * modules/termios (Makefile.am): Likewise.
30412         * modules/time (Makefile.am): Likewise.
30413         * modules/unistd (Makefile.am): Likewise.
30414         * modules/wchar (Makefile.am): Likewise.
30415         * modules/wctype (Makefile.am): Likewise.
30416
30417 2010-10-04  Bruno Haible  <bruno@clisp.org>
30418
30419         read-file tests: Avoid a test failure on NonStop Kernel.
30420         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
30421         a regular file.
30422         Reported by Joachim Schmitz <schmitz@hp.com>.
30423
30424 2010-10-03  Bruno Haible  <bruno@clisp.org>
30425
30426         gnulib-tool: Fixes for --create-testdir with --libtool.
30427         * gnulib-tool (func_get_automake_snippet): Don't augment
30428         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
30429         an executable.
30430         (func_create_testdir): Handle module 'alloca' like func_import.
30431         Reported by Bruce Korb <bruce.korb@gmail.com>.
30432
30433 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
30434
30435         Avoid some lines longer than 80 characters.
30436         * lib/stdint.in.h: Break long comment lines.
30437         * lib/math.in.h: Likewise.
30438         (_GL_NUM_UINT_WORDS): New macro, for readability.
30439         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
30440         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
30441         * lib/stdlib.in.h: Likewise.
30442         * lib/spawn.in.h: Likewise.
30443         * lib/sys_socket.in.h: Update an URL.
30444         * lib/sys_stat.in.h: Break long line.
30445
30446 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
30447
30448         Improve pmccabe2html.
30449         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
30450         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
30451         when the sources change. Remove the line in the HTML about "Used
30452         ranges" (which implied that there might be other unused ranges),
30453         rename "Resume" to "Summary" (easier to understand for more users).
30454         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
30455         styles, and some unnecessary blank lines.
30456
30457 2010-10-03  Bruno Haible  <bruno@clisp.org>
30458             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
30459
30460         acl: Add support for ACLs on NonStop Kernel.
30461         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
30462         Check whether the function aclsort() exists.
30463         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
30464         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
30465         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30466         (acl_nontrivial [HAVE_ACLSORT]: New function.
30467         (file_has_acl): Implement for NonStop Kernel.
30468         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30469         (qset_acl): Implement for NonStop Kernel.
30470         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
30471         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30472         (main): Implement for NonStop Kernel.
30473         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
30474         Kernel. Handle this flavor.
30475         * tests/test-set-mode-acl.sh: Likewise.
30476         * tests/test-copy-acl.sh: Likewise.
30477         * tests/test-copy-file.sh: Likewise.
30478
30479 2010-10-03  Bruno Haible  <bruno@clisp.org>
30480
30481         Info about ACLs on NonStop Kernel.
30482         * doc/acl-resources.txt: Add info about NonStop Kernel.
30483         References by Joachim Schmitz <schmitz@hp.com>.
30484
30485 2010-10-02  Bruno Haible  <bruno@clisp.org>
30486
30487         Define missing EDQUOT on NonStop Kernel.
30488         * lib/errno.in.h (EDQUOT): Assign a value if missing.
30489         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
30490         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
30491         missing.
30492         * doc/posix-headers/errno.texi: Mention the NSK bug.
30493         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
30494         Reported by Joachim Schmitz <schmitz@hp.com>.
30495
30496 2010-10-02  Bruno Haible  <bruno@clisp.org>
30497
30498         Update doc for POSIX:2008.
30499         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
30500         Update URL of POSIX specification.
30501
30502 2010-10-02  Bruno Haible  <bruno@clisp.org>
30503
30504         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
30505         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
30506         from gnulib, not from Automake.
30507
30508 2010-10-02  Bruno Haible  <bruno@clisp.org>
30509
30510         New module 'system-posix'.
30511         * modules/system-posix: New file.
30512         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
30513         module is present.
30514         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30515         GNULIB_SYSTEM_POSIX.
30516         * modules/stdlib (Depends-on): Remove sys_wait.
30517         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
30518         * doc/posix-functions/system.texi: Mention the new module.
30519         * doc/posix-headers/stdlib.texi: Likewise.
30520         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
30521         define test_sys_wait_macros to a no-op.
30522         Reported by Sam Steingold <sds@gnu.org>.
30523
30524 2010-09-30  Bruno Haible  <bruno@clisp.org>
30525
30526         More renaming from 'getdate' to 'get_date'.
30527         * doc/get_date.texi: Renamed from doc/getdate.texi.
30528         * modules/get_date (Files): Update.
30529         * MODULES.html.sh (Date and time <time.h>): Update.
30530         * DEPENDENCIES: Update.
30531         * gnulib-tool: Update comment.
30532         * m4/bison.m4 (gl_BISON): Likewise.
30533         * m4/get_date.m4 (gl_GET_DATE): Likewise.
30534
30535 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
30536
30537         bootstrap: support ACLOCAL_FLAGS during aclocal
30538         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
30539         can add additional -I dir for third-party .m4 files.
30540
30541 2010-09-30  Eric Blake  <eblake@redhat.com>
30542
30543         bootstrap: use glibtoolize on MacOS
30544         * build-aux/bootstrap (check_versions): Convert libtool into
30545         libtoolize.
30546         (tool search): Move libtool check earlier, and look for
30547         glibtoolize for MacOS.
30548         (gnulib_tool_options): Auto-add --libtool when appropriate.
30549         Reported by Justin Clift.
30550
30551         poll: fix typo that broke test on MacOS
30552         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
30553         Reported by Justin Clift.
30554
30555         getdate: rename to get_date
30556         Note: getdate.h is not renamed, to minimize client impact.
30557         * modules/getdate: Mark obsolete.  Move old contents...
30558         * modules/get_date: ...to new module name.
30559         * modules/getdate-tests: Move...
30560         * modules/get_date-tests: ...here.
30561         * m4/getdate.m4: Move...
30562         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
30563         * lib/getdate.y: Move...
30564         * lib/get_date.y: ...here.
30565         * tests/test-getdate.c: Move...
30566         * tests/test-get_date.c: ...here.
30567         * doc/posix-functions/getdate.texi (getdate): Update name.
30568         * NEWS: Mention the change.
30569
30570 2010-09-29  Bruno Haible  <bruno@clisp.org>
30571
30572         Separate the module 'waitpid' from the module 'sys_wait'.
30573         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
30574         present.
30575         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
30576         gl_MODULE_INDICATOR_FOR_TESTS.
30577         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
30578         * modules/sys_wait (Depends-on): Remove waitpid.
30579         (Makefile.am): Substitute GNULIB_WAITPID.
30580         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
30581         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
30582         signature only if the 'waitpid' module is present.
30583         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
30584         * NEWS: Mention the change.
30585         * modules/grantpt (Depends-on): Add waitpid.
30586         * modules/wait-process (Depends-on): Likewise.
30587
30588 2010-09-29  Bruno Haible  <bruno@clisp.org>
30589
30590         More tests for module 'sys_wait'.
30591         * modules/sys_wait-c++-tests: New file.
30592         * tests/test-sys_wait-c++.cc: New file.
30593         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
30594         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30595
30596 2010-09-29  Bruno Haible  <bruno@clisp.org>
30597
30598         New module 'waitpid'.
30599         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
30600         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
30601         Don't include <process.h>.
30602         (waitpid): Declare only, using modern idiom.
30603         * m4/waitpid.m4: New file.
30604         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
30605         * modules/waitpid: New file.
30606         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
30607         (Makefile.am): Update.
30608         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30609
30610 2010-09-28  Bruno Haible  <bruno@clisp.org>
30611
30612         poll: Assume ANSI C.
30613         * lib/poll.c (poll): Use an ANSI C declaration.
30614
30615 2010-09-28  Bruno Haible  <bruno@clisp.org>
30616
30617         poll-h: Create poll.h on all platforms.
30618         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
30619         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
30620         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
30621         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
30622         (gl_REPLACE_POLL_H): Don't set POLL_H.
30623         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
30624         * modules/poll-h (Depends-on): Add include_next.
30625         (Makefile.am): Create poll.h unconditionally. Substitute also
30626         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
30627
30628 2010-09-28  Bruno Haible  <bruno@clisp.org>
30629
30630         Tests for module 'poll-h'.
30631         * modules/poll-h-c++-tests: New file.
30632         * tests/test-poll-h-c++.cc: New file.
30633
30634         Tests for module 'poll-h'.
30635         * modules/poll-h-tests: New file.
30636         * tests/test-poll-h.c: New file.
30637
30638 2010-09-28  Bruno Haible  <bruno@clisp.org>
30639
30640         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
30641         * modules/poll-h (Depends-on): Add 'extensions'.
30642
30643 2010-09-28  Bruno Haible  <bruno@clisp.org>
30644
30645         New module 'poll-h'.
30646         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
30647         (poll): Use modern idiom.
30648         * modules/poll-h: New file.
30649         * modules/poll (Files): Remove lib/poll.in.h.
30650         (Depends-on): Add poll-h.
30651         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
30652         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
30653         * m4/poll_h.m4: New file.
30654         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
30655         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
30656         and invoke gl_REPLACE_POLL_H.
30657         * lib/poll.c: Use common idiom.
30658         * tests/test-poll.c: Likewise.
30659         * doc/posix-headers/poll.texi: Mention the poll-h module.
30660         Suggested by Eric Blake.
30661
30662 2010-09-26  Bruno Haible  <bruno@clisp.org>
30663
30664         sys_wait: Implement WSTOPSIG.
30665         * lib/sys_wait.in.h (WSTOPSIG): New macro.
30666         Reported by Simon Josefsson.
30667
30668 2010-09-26  Simon Josefsson  <simon@josefsson.org>
30669
30670         stdlib, sys_wait: Avoid compilation error on mingw.
30671         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
30672
30673 2010-09-26  Bruno Haible  <bruno@clisp.org>
30674
30675         stdlib tests: Avoid code duplication.
30676         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
30677         * modules/sys_wait-tests (Files): Likewise.
30678         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
30679         * tests/test-stdlib.c: Include test-sys_wait.h.
30680         (main): Invoke test_sys_wait_macros.
30681         * tests/test-sys_wait.c: Include test-sys_wait.h.
30682         (main): Invoke test_sys_wait_macros.
30683
30684 2010-09-25  Simon Josefsson  <simon@josefsson.org>
30685
30686         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
30687         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
30688         sure Windows sockets are working before calling getaddrinfo.
30689         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
30690         * doc/gnulib.texi (Windows sockets): Fix typo.
30691
30692 2010-09-25  Bruno Haible  <bruno@clisp.org>
30693
30694         Tests for module 'regex-quote'.
30695         * modules/regex-quote-tests: New file.
30696         * tests/test-regex-quote.c: New file.
30697
30698         New module 'regex-quote'.
30699         * lib/regex-quote.h: New file.
30700         * lib/regex-quote.c: New file.
30701         * modules/regex-quote: New file.
30702         Suggested by Reuben Thomas <rrt@sc3d.org>.
30703
30704 2010-09-24  Bruno Haible  <bruno@clisp.org>
30705
30706         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
30707         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
30708
30709 2010-09-23  Bruno Haible  <bruno@clisp.org>
30710
30711         setenv: Relax license.
30712         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
30713         Blake.
30714         Requested by Eric Blake.
30715
30716 2010-09-22  Bruno Haible  <bruno@clisp.org>
30717
30718         termios: Relax license.
30719         * modules/termios (License): Change to LGPLv2+.
30720         Requested by Eric Blake.
30721
30722 2010-09-22  Bruno Haible  <bruno@clisp.org>
30723
30724         threadlib: Allow the package to change the default to 'no'.
30725         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
30726         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
30727         Reported by Paul Eggert.
30728
30729 2010-09-22  Pádraig Brady  <P@draigbrady.com>
30730             Bruno Haible  <bruno@clisp.org>
30731
30732         Fix endless loop in mbmemcasecoll.
30733         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
30734         byte.
30735         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
30736
30737 2010-09-22  Bruno Haible  <bruno@clisp.org>
30738
30739         Tests for module 'memcoll'.
30740         * modules/memcoll-tests: New file.
30741         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
30742
30743         memcoll, xmemcoll: Clarify size vs. length.
30744         * modules/memcoll.c (memcoll0): Clarify specification.
30745         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
30746         passed to collate_error.
30747
30748 2010-09-22  Bruno Haible  <bruno@clisp.org>
30749
30750         Tests for module 'memcasecmp'.
30751         * modules/memcasecmp-tests: New file.
30752         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
30753
30754 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30755
30756         * lib/pthread.in.h: Add split double-inclusion guard, and include
30757         system <pthread.h> if there is one.  Use @@-style as in other
30758         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
30759         pthread.h doesn't.
30760         (pthread_mutexattr_destroy, pthread_mutexattr_init):
30761         (pthread_mutexattr_settype, pthread_mutex_trylock):
30762         New static inline functions, if there's no system <pthread.h>.
30763         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
30764         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
30765         Approximate with mutexes if the system lacks spinlocks, as in
30766         MacOS.
30767         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
30768         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
30769         @@-style.  Check for spinlocks separately.
30770         (gl_PTHREAD_DEFAULTS): New macro.
30771         * modules/pthread: Redo to use a more typical style for in.h files.
30772
30773 2010-09-21  Eric Blake  <eblake@redhat.com>
30774
30775         net_if: enhance tests
30776         * tests/test-net_if.c (main): Move signature checks earlier.
30777         Print failures to stderr.
30778         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
30779         Document the bug that we do not yet fix.
30780
30781 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30782
30783         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
30784         about gnulib, not GSS.
30785
30786 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30787
30788         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
30789         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
30790         for Emacs.
30791         * build-aux/pmccabe2html: Make Makefile.am example code more
30792         cut-and-paste friendly.
30793
30794 2010-09-21  Simon Josefsson  <simon@josefsson.org>
30795
30796         * tests/test-net_if.c: New file.
30797         * modules/net_if-tests: New file.
30798
30799 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30800
30801         pthread: add pthread_spin_destroy
30802         * lib/pthread.in.h (pthread_spin_destroy): New function.
30803
30804 2010-09-19  Bruno Haible  <bruno@clisp.org>
30805
30806         gnulib-tool: Fix --help output.
30807         * gnulib-tool (func_usage): Fix help message.
30808         Reported by Reuben Thomas <rrt@sc3d.org>.
30809
30810 2010-09-18  Jim Meyering  <meyering@redhat.com>
30811
30812         maint.mk: avoid unexpanded \n in two diagnostics
30813         * top/maint.mk (sc_prohibit_always_true_header_tests):
30814         Don't use a literal \n in a halt=... assignment.  It would not be
30815         expanded, and the two \n bytes would appear in the diagnostic output
30816         rather than the desired newline.  Use halt=$$(printf ... instead.
30817         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30818
30819 2010-09-18  Bruno Haible  <bruno@clisp.org>
30820
30821         netinet_in: Doc tweak.
30822         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
30823         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30824
30825 2010-09-18  Jim Meyering  <meyering@redhat.com>
30826
30827         init.sh: correct an outdated comment
30828         * tests/init.sh (create_exe_shims_):  s/function/alias/
30829
30830         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
30831         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
30832         a file named "*.exe" is removed between the glob expansion and the
30833         processing of that oddly named file.
30834
30835 2010-09-17  Eric Blake  <eblake@redhat.com>
30836
30837         mirbsd: add some more support
30838         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
30839         in BSD family.
30840         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
30841         devices as OpenBSD.
30842         * m4/host-os.m4 (mirbsd): Add MirBSD.
30843
30844         tests: fix unportable assumption on sys/wait.h
30845         * tests/test-sys_wait.c (main): Relax test.
30846         * tests/test-stdlib.c (main): Likewise.
30847
30848         init.sh: accommodate directory with no .exes
30849         * tests/init.sh: Accomodate directory containing only scripts.
30850
30851         tests: avoid compiler warning
30852         * tests/test-stdlib.c (main): Use the variable.
30853
30854         fdutimens, fdutimensat: update signature, again
30855         * lib/utimens.h (gl_futimens): Delete, and move signature...
30856         (fdutimens): ...here.
30857         (fdutimensat): Rearrange signature.
30858         (lutimensat): Rename variable for clarity.
30859         * lib/fdutimensat.c (fdutimensat): Update signature.
30860         * lib/utimens.c (fdutimens): Likewise.
30861         (gl_futimens): Delete.
30862         (utimens, lutimens): Update callers.
30863         * lib/futimens.c (futimens): Likewise.
30864         * tests/test-fdutimensat.c: Likewise.
30865         * tests/test-utimens.c: Likewise.
30866         * tests/test-futimens.h: Update comment.
30867         * NEWS: Mention this.
30868         Suggested by Paul Eggert.
30869
30870 2010-09-17  Bruno Haible  <bruno@clisp.org>
30871
30872         Take over the maintenance of some older macros from Autoconf.
30873         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
30874         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
30875         GNU Autoconf.
30876         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
30877         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
30878
30879 2010-09-17  Eric Blake  <eblake@redhat.com>
30880
30881         fdutimensat: drop atflag validation
30882         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
30883         with valid fd, to close a race scenario where futimens is
30884         unsupported and FILE was replaced by a symlink.
30885         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
30886         accordingly.
30887         Suggested by Paul Eggert.
30888
30889 2010-09-16  Bruno Haible  <bruno@clisp.org>
30890
30891         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
30892         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
30893
30894 2010-09-16  Bruno Haible  <bruno@clisp.org>
30895
30896         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
30897         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
30898         login_tty exists.
30899         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30900
30901 2010-09-16  Bruno Haible  <bruno@clisp.org>
30902
30903         login_tty: Make the replacement code work on BSD systems.
30904         * lib/login_tty.c: Include <sys/ioctl.h>.
30905         (login_tty): Use ioctl TIOCSCTTY when available.
30906         * modules/login_tty (Depends-on): Add sys_ioctl.
30907         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30908
30909 2010-09-16  Bruno Haible  <bruno@clisp.org>
30910
30911         login_tty: Stricter unit test.
30912         * modules/login_tty-tests (Depends-on): Add tcgetsid.
30913         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
30914         and tcgetsid() after login_tty.
30915         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30916
30917 2010-09-16  Bruno Haible  <bruno@clisp.org>
30918
30919         New module 'tcgetsid'.
30920         * lib/tcgetsid.c: New file.
30921         * m4/tcgetsid.m4: New file.
30922         * modules/tcgetsid: New file.
30923         * modules/termios (Depends-on): Add c++defs, warn-on-use.
30924         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
30925         GNULIB_TCGETSID, HAVE_TCGETSID.
30926         * lib/termios.in.h: Include <sys/types.h>.
30927         (tcgetsid): New declaration.
30928         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
30929         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
30930         * doc/posix-functions/tcgetsid.texi: Mention the new module.
30931         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
30932
30933 2010-09-16  Bruno Haible  <bruno@clisp.org>
30934
30935         Tests for module 'termios'.
30936         * modules/termios-c++-tests: New file.
30937         * modules/termios-tests: New file.
30938         * tests/test-termios-c++.cc: New file.
30939         * tests/test-termios.c: New file.
30940
30941         New module 'termios'.
30942         * modules/termios: New file.
30943         * lib/termios.in.h: New file.
30944         * m4/termios_h.m4: New file.
30945         * doc/posix-headers/termios.texi: Mention the new module.
30946
30947 2010-09-16  Eric Blake  <eblake@redhat.com>
30948
30949         fdutimensat: add an atflag parameter
30950         * lib/fdutimensat.c (fdutimensat): Add new parameter.
30951         * lib/utimens.h (fdutimensat): Update prototype.
30952         * tests/test-fdutimensat.c: Adjust test to match.
30953         * NEWS: Document the change.
30954         Suggested by Paul Eggert.
30955
30956 2010-09-16  Bruno Haible  <bruno@clisp.org>
30957
30958         Fix typos in comments.
30959         * lib/striconveh.h: Fix typo in comment.
30960         * lib/login_tty.c (login_tty): Likewise.
30961
30962 2010-09-15  Bruno Haible  <bruno@clisp.org>
30963
30964         stdlib: clarify MirBSD WEXITSTATUS bug
30965         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
30966         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30967
30968 2010-09-15  Eric Blake  <eblake@redhat.com>
30969
30970         stdlib: work around MirBSD WEXITSTATUS bug
30971         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
30972         * modules/stdlib (Depends-on): Add sys_wait.
30973         * tests/test-sys_wait.c (main): Enhance test.
30974         * tests/test-stdlib.c (main): Likewise.
30975         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
30976
30977         docs: mention MacOS issue with WEXITSTATUS(constant)
30978         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
30979         issue.
30980         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30981
30982         strnlen: add tests
30983         * modules/strnlen-tests: New file.
30984         * tests/test-strnlen.c: Likewise.
30985
30986 2010-09-14  Bruno Haible  <bruno@clisp.org>
30987
30988         unistr/base: Avoid link errors when module 'libunistring' is also used.
30989         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
30990         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
30991         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
30992         Declare also when HAVE_LIBUNISTRING is set.
30993         Reported by Pádraig Brady <P@draigbrady.com>.
30994
30995 2010-09-14  Eric Blake  <eblake@redhat.com>
30996
30997         test-rawmemchr: make more robust
30998         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
30999         (Depends-on, configure.ac): Add needed prerequisites to use it.
31000         * modules/memchr-tests (Files, Depends-on, configure.ac):
31001         Likewise, to avoid implicit reliance on memchr module prereqs.
31002         * tests/test-memchr.c (main): Ensure proper masking.
31003         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
31004         reads.
31005
31006         memchr: detect glibc Alpha bug
31007         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
31008         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
31009         Alpha.
31010         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
31011         * tests/test-memchr.c (main): Enhance test.
31012         Reported by Nelson H. F. Beebe.
31013
31014 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31015
31016         fts, getcwd, glob: audit for dirfd returning -1
31017         * lib/fts.c (opendir): Remove #define; no longer used.
31018         (opendirat): New arg PDIR_FD.  All callers changed.
31019         (fts_build, _opendir2): Use new opendirat to avoid the need for
31020         dirfd, or for checking whether dirfd returns a negative value.
31021         Don't use opendir; always use openat followed by fdopendir.
31022         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
31023         it.
31024         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
31025         returns -1 here.
31026         * modules/fts (Depends-on): Remove dirfd.
31027         * modules/getcwd (Depends-on): Likewise.
31028
31029 2010-09-13  Eric Blake  <eblake@redhat.com>
31030
31031         float: fix broken MirBSD header
31032         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
31033         * doc/posix-headers/float.texi (float.h): Document it.
31034
31035 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31036
31037         fts: use O_NOFOLLOW to avoid race condition when opening a directory
31038         * lib/fts.c (opendirat): New arg extra_flags.
31039         (__opendir2): Use it to avoid following symlinks when opening
31040         a directory, if symlinks are not supposed to be followed.  See
31041         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
31042
31043         fdopendir: preserve argument fd before returning
31044         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
31045         (fdopendir_with_dup, fd_clone_opendir): New static functions.
31046         (fdopendir): Use them, arranging for FD to be open to the same
31047         directory that it was when it started.  (It might be temporarily
31048         closed while fdopendir is running, so this not thread- or
31049         signal-safe.)  Be careful to do the right thing even when file
31050         descriptors are scarce and dup fails with errno == EMFILE.  See
31051         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
31052
31053 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
31054
31055         regex: Pass the system regex if its only problem is 32-bit regoff_t.
31056         * NEWS: Document change.
31057         * m4/regex.m4: Disable test for regoff_t size.
31058
31059 2010-09-13  Jim Meyering  <meyering@redhat.com>
31060
31061         fts: don't operate on an invalid file descriptor after failed dup
31062         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
31063         negative file descriptor.
31064
31065 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
31066
31067         savedir: add streamsavedir, deprecate fdsavedir
31068         * NEWS: Mention deprecation of fdsavedir.
31069         * lib/savedir.c (streamsavedir): New extern function, whose name
31070         ends in "savedir" to be consistent with the others.  This differs
31071         from savedirstream in that it doesn't close its argument.  The
31072         next version of GNU tar will use this instead of fdsavedir, to
31073         avoid some race conditions and conserve file descriptors.
31074         (savedirstream): Reimplement as a wrapper around streamsavedir.
31075         (fdsavedir): Add a comment deprecating this function.  As far as
31076         I know, only GNU tar used it, and GNU tar doesn't need it any more.
31077         * lib/savedir.h (streamsavedir): New decl.
31078         (fdsavedir): Add a comment deprecating this.
31079
31080 2010-09-10  Bruno Haible  <bruno@clisp.org>
31081
31082         langinfo: Fix last commit.
31083         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
31084         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
31085         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31086
31087 2010-09-10  Bruno Haible  <bruno@clisp.org>
31088
31089         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
31090         * lib/progreloc.c (O_EXEC): Define fallback.
31091
31092 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
31093
31094         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
31095         * NEWS: Document recent changes to fcntl-h.
31096         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
31097         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
31098         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
31099         Similarly for O_SEARCH; this last was already true, but not documented.
31100         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
31101         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
31102         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
31103         Likewise.
31104         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
31105         is zero, not whether it is defined.
31106         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
31107         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
31108         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
31109
31110 2010-09-10  Bruno Haible  <bruno@clisp.org>
31111
31112         langinfo, nl_langinfo: Fix for IRIX 5.3.
31113         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
31114         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
31115         HAVE_LANGINFO_YESEXPR.
31116         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
31117         HAVE_LANGINFO_YESEXPR.
31118         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
31119         HAVE_LANGINFO_T_FMT_AMPM is 0.
31120         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
31121         HAVE_LANGINFO_YESEXPR is 0.
31122         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
31123         NOEXPR.
31124         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
31125         * doc/posix-functions/nl_langinfo.texi: Likewise.
31126         Reported by Eric Blake.
31127
31128 2010-09-10  Bruno Haible  <bruno@clisp.org>
31129
31130         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
31131         * doc/glibc-functions/login_tty.texi: Mention the include file problem
31132         on FreeBSD 8.0 and OpenBSD 4.6.
31133         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
31134         * m4/pty_h.m4 (gl_PTY_H): Likewise.
31135         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
31136         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
31137         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
31138         ac_includes_default.
31139         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31140
31141 2010-09-09  Eric Blake  <eblake@redhat.com>
31142
31143         strsignal: work around NetBSD bug
31144         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
31145         * lib/string.in.h (includes): Likewise.
31146         * doc/posix-functions/strsignal.texi (strsignal): Document the
31147         bug.
31148         Reported by Nelson H. F. Beebe.
31149
31150         gnulib-tool: work with NetBSD /bin/sh
31151         * gnulib-tool (func_cache_var, func_cache_lookup_module)
31152         (func_get_description, func_get_comment, func_get_status)
31153         (func_get_notice, func_get_applicability, func_get_filelist)
31154         (func_get_dependencies, func_get_autoconf_early_snippet)
31155         (func_get_autoconf_snippet, func_get_automake_snippet)
31156         (func_get_include_directive, func_get_link_directive)
31157         (func_get_license, func_get_maintainer, func_import): Avoid
31158         shell syntax errors from parsing syntax extensions.
31159
31160 2010-09-09  Bruno Haible  <bruno@clisp.org>
31161
31162         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31163         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
31164         a reliable way to determine whether the 'alias' command works.
31165
31166 2010-09-08  Jim Meyering  <meyering@redhat.com>
31167
31168         init.sh: penalize a set-x-impaired shell; don't disqualify it
31169         * tests/init.sh: Too many shells corrupt application stderr when
31170         you set -x, so we can't afford to disqualify them, since at least
31171         on Irix-6.5, that would disqualify all bourne shells.
31172         Instead, use a two-pass approach.
31173         On the first pass, try to find a shell that meets the stricter
31174         condition that set -x does not corrupt stderr.
31175         If no shell meets the stricter condition, retest each candidate
31176         shell, but without that extra condition.  Finally, when
31177         VERBOSE=yes is requested and set -x might cause trouble, simply
31178         issue a warning and refrain from enabling debug output.
31179
31180 2010-09-08  Eric Blake  <eblake@redhat.com>
31181
31182         unsetenv: fix OpenBSD bug
31183         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
31184         * doc/posix-functions/unsetenv.texi (unsetenv): Update
31185         documentation.
31186         Reported by Jim Meyering.
31187
31188         strtod: work around IRIX 6.5 bug
31189         * lib/strtod.c (strtod): Reparse number on shorter string if
31190         exponent parse was invalid.
31191         * tests/test-strtod.c (main): Add check for "0x1p 2".
31192         Reported by Tom G. Christensen.
31193
31194         getopt: optimize previous patch
31195         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
31196         empty variable.  Speed up awk script.
31197         Reported by Paolo Bonzini.
31198
31199 2010-09-08  Jim Meyering  <meyering@redhat.com>
31200
31201         test.sh: disqualify shells for which set -x corrupts stderr
31202         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
31203         and OpenBSD 4.7.  They make it so with "set -x", environment settings
31204         appear in stderr output.  For example, this command:
31205             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
31206         prints "P=1" on those two systems:
31207
31208 2010-09-08  Bruno Haible  <bruno@clisp.org>
31209
31210         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31211         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
31212         commands, because some shells ignore redirections when there is an
31213         error in the command lookup.
31214         Reported by Eric Blake.
31215
31216 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
31217
31218         * lib/regex.h: Fix a mention of `regex_compile' (should be
31219         `re_compile_pattern').
31220         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
31221         (re_set_registers): Correct name of parameter in comment.
31222
31223         * doc/regex.texi: Add documentation for missing syntax flags.
31224         Remove commented-out documentation of defunct syntax option
31225         RE_NO_EMPTY_ALTS.
31226         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
31227         Add documentation of re_set_registers.
31228         Document trick to re-use a pattern buffer by setting fastmap manually.
31229         Update documentation of struct re_pattern_buffer per public members.
31230         Uncomment documentation of equivalence class operators and
31231         collating symbol operators, since they are now implemented,
31232         Explain leftmost-longest matching in relation to alternatives.
31233         Tidy documentation of substring matching.
31234         Remove POSIX documentation, which is done better in
31235         glibc, and refer the reader there. Keep BSD API documentation, as
31236         that is not readily available elsewhere.
31237
31238 2010-09-07  Eric Blake  <eblake@redhat.com>
31239
31240         getopt: handle POSIXLY_CORRECT set but not exported
31241         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
31242         export state of POSIXLY_CORRECT, due to bash set -o posix.
31243         Reported by Dustin J. Mitchell.
31244
31245 2010-09-05  Bruno Haible  <bruno@clisp.org>
31246
31247         gnulib-tool: Highlight the changed options.
31248         * gnulib-tool (func_usage): Display the --import, --add-import,
31249         --remove-import explanations in bold font.
31250
31251 2010-09-06  Karl Berry  <karl@gnu.org>
31252
31253         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
31254
31255 2010-09-05  Bruno Haible  <bruno@clisp.org>
31256
31257         uniwidth/width: Update comment.
31258         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
31259         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
31260
31261 2010-09-05  Bruno Haible  <bruno@clisp.org>
31262
31263         isinf, isnan: Relax license.
31264         * modules/isinf (License): Change from GPL to LGPL, with consent from
31265         Ben Pfaff.
31266         * modules/isnan (License): Likewise.
31267         Requested by Ludovic Courtès.
31268
31269 2010-09-04  Bruno Haible  <bruno@clisp.org>
31270
31271         gnulib-tool: Help migration from --import to --add-import or --update.
31272         * gnulib-tool: Emit a verbose error message when --import is used
31273         without any module name.
31274
31275 2010-09-04  Bruno Haible  <bruno@clisp.org>
31276
31277         Update doc about gnulib-tool.
31278         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
31279         'gnulib-tool --update' in more detail.
31280         Reported by Eric Blake.
31281
31282 2010-09-04  Bruno Haible  <bruno@clisp.org>
31283
31284         gnulib-tool: Change --import. New options --add/remove-import.
31285         * gnulib-tool: New options --add-import, --remove-import.
31286         (func_usage): Document them.
31287         (have_associative): Define always.
31288         (func_import): In import mode, don't merge the specified settings with
31289         the cached settings. Implement remove-import mode.
31290         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
31291         Explain when to use them versus --import.
31292         (Simple update): Use --add-import instead of --import.
31293         * NEWS: Mention the change.
31294
31295 2010-09-04  Bruno Haible  <bruno@clisp.org>
31296
31297         * doc/gnulib-tool.texi (Initial import): Update paragraph about
31298         separate gnulib.mk.
31299
31300 2010-09-04  Bruno Haible  <bruno@clisp.org>
31301
31302         gnulib-tool: Don't talk about CVS any more.
31303         * gnulib-tool (func_usage, func_import): Write "version control"
31304         instead of CVS.
31305
31306 2010-09-04  Jim Meyering  <meyering@redhat.com>
31307
31308         maint.mk: avoid obscure sc_copyright_check failure in coreutils
31309         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
31310         false positives (whose names may be ill-chosen) when searching
31311         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
31312         would cause a false-positive.
31313
31314         avoid coreutils "make distcheck" failure
31315         Coreutils tests with an absolute build directory name that contains
31316         a space.  Not quoting this directory name caused a failure.
31317         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
31318         * tests/test-vc-list-files-cvs.sh: Likewise.
31319
31320 2010-09-04  Bruno Haible  <bruno@clisp.org>
31321
31322         gnulib-tool: Avoid error when run in a package without Makefile.am.
31323         * gnulib-tool: When collecting the m4dirs in a package that does not
31324         have a Makefile.am, eliminate those directories that contain no
31325         gnulib-cache.m4. Fix expression that counts these directories.
31326
31327 2010-09-04  Bruno Haible  <bruno@clisp.org>
31328
31329         update-copyright test: Improve output when perl is missing or too old.
31330         * tests/test-update-copyright.sh: Move test of Perl version down after
31331         the test whether Perl exists. Provide an explanation relating Perl's
31332         error message to Automake's SKIP: message.
31333
31334 2010-09-04  Bruno Haible  <bruno@clisp.org>
31335
31336         Don't augment PATH in TESTS_ENVIRONMENT.
31337         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
31338         set abs_aux_dir instead of augmenting PATH.
31339         * modules/vc-list-files-tests (Makefile.am): Likewise.
31340         * tests/test-update-copyright.sh: Augment PATH here.
31341         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
31342         path_prepend_.
31343         * tests/test-vc-list-files-git.sh: Likewise.
31344
31345 2010-09-04  Jim Meyering  <meyering@redhat.com>
31346
31347         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
31348         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
31349
31350 2010-09-04  Bruno Haible  <bruno@clisp.org>
31351
31352         strdup: Fix compilation error in C++ mode.
31353         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
31354         the macro.
31355
31356 2010-09-04  Bruno Haible  <bruno@clisp.org>
31357
31358         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
31359         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
31360         macro into a function.
31361         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31362
31363 2010-09-04  Bruno Haible  <bruno@clisp.org>
31364
31365         Set PATH_SEPARATOR the same way autoconf does.
31366         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
31367         the value of PATH_SEPARATOR the same way autoconf-generated configure
31368         scripts do.
31369         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
31370         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31371
31372 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31373
31374         Set PATH_SEPARATOR the same way autoconf does.
31375         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
31376         the same way autoconf-generated configure scripts do.
31377         * posix-modules: Likewise.
31378
31379 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31380
31381         hash: fix safe_hasher const typo
31382         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
31383         const; otherwise, there is a type error later.
31384
31385 2010-09-02  Jim Meyering  <meyering@redhat.com>
31386
31387         test-update-copyright.sh: require perl 5.8.0
31388         * tests/test-update-copyright.sh: Require 5.8.0,
31389         which Tom G. Christensen has confirmed is adequate,
31390         while 5.6.1 is not.
31391
31392 2010-09-02  Eric Blake  <eblake@redhat.com>
31393
31394         tests: init.sh improvements for re-exec'ing with zsh
31395         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
31396         -vx through shell re-exec.
31397         Reported by Tom G. Christensen.
31398
31399         wctype: fix typo in previous commit
31400         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
31401         Reported by Ludovic Courtès.
31402
31403 2010-09-02  Jim Meyering  <meyering@redhat.com>
31404
31405         test-update-copyright.sh: skip test if Perl is too old
31406         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
31407         Reported by Tom G. Christensen.
31408
31409 2010-09-02  Bruno Haible  <bruno@clisp.org>
31410
31411         wctype: Avoid compilation error on IRIX 6.5.30.
31412         * lib/wctype.in.h (iswblank): Declare with a replacement if
31413         REPLACE_ISWBLANK is set.
31414         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
31415         declared. Set REPLACE_ISWBLANK.
31416         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
31417         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
31418         * doc/posix-headers/wctype.texi: Likewise.
31419         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31420
31421 2010-09-01  Bruno Haible  <bruno@clisp.org>
31422
31423         New module 'socketlib'.
31424         * modules/socketlib: New file.
31425         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
31426         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
31427         * modules/sockets (Depends-on): Add socketlib.
31428         Suggested by Sam Steingold <sds@gnu.org>.
31429
31430 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31431
31432         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
31433
31434         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
31435         when one needs search access to a directory but not read access.
31436         On systems where it is available, it works in some cases where
31437         O_RDONLY does not, namely on directories that are searchable but
31438         not readable, and which need only to be searchable.  If O_SEARCH
31439         is not available, fall back to the traditional method of using
31440         O_RDONLY.
31441
31442         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
31443         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
31444         when opening a directory that needs only to be searchable.
31445         * lib/chdir-safer.c (chdir_no_follow): Likewise.
31446         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
31447         * lib/openat-proc.c (openat_proc_name): Likewise.
31448         * lib/openat.c (openat_needs_fchdir): Likewise.
31449         * lib/save-cwd.c (save_cwd): Likewise.
31450         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
31451
31452 2010-08-28  Bruno Haible  <bruno@clisp.org>
31453
31454         New module 'host-cpu-c-abi'.
31455         * modules/host-cpu-c-abi: New file.
31456         * m4/host-cpu-c-abi.m4: New file, based on part of
31457         clisp/src/m4/general.m4.
31458         Requested by Sam Steingold <sds@gnu.org>.
31459
31460 2010-08-31  Eric Blake  <eblake@redhat.com>
31461         and Jim Meyering  <meyering@redhat.com>
31462
31463         hash: factor, and guard against misbehaving hasher function
31464         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
31465         of table->hasher's return value.  Also protect against a hash value
31466         so large that adding it to table->bucket results in a NULL pointer.
31467         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
31468         Use it in place of open-coded check-and-abort.
31469
31470 2010-08-30  Bruno Haible  <bruno@clisp.org>
31471
31472         hash: silence spurious clang warning
31473         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
31474         Reported by Eric Blake.
31475
31476 2010-08-30  Eric Blake  <eblake@redhat.com>
31477
31478         strstr, memmem, strcasestr: avoid leaked shell message
31479         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
31480         FreeBSD.
31481         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31482         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31483
31484         tests: silence clang warning
31485         * tests/test-malloca.c (do_allocation): Avoid dead store.
31486
31487 2010-08-29  Bruno Haible  <bruno@clisp.org>
31488
31489         gettext: Fix recent mistake.
31490         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
31491
31492 2010-08-29  Bruno Haible  <bruno@clisp.org>
31493
31494         selinux-h: Offer a --without-selinux option.
31495         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
31496         --without-selinux was specified, skip all tests and define
31497         HAVE_SELINUX_SELINUX_H to 0.
31498         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
31499         set LIB_SELINUX to empty.
31500         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
31501         gl_LIBSELINUX. If --without-selinux was specified, replace
31502         selinux/context.h.
31503         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
31504
31505 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31506             Bruno Haible  <bruno@clisp.org>
31507
31508         Make the module 'realloc-gnu' work again on AIX and OSF/1.
31509         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
31510         of HAVE_REALLOC.
31511         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
31512         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
31513         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
31514         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31515
31516 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31517             Bruno Haible  <bruno@clisp.org>
31518
31519         Make the module 'calloc-gnu' work again on AIX and OSF/1.
31520         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
31521         HAVE_CALLOC.
31522         * lib/xmalloc.c: Update accordingly.
31523         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
31524         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
31525         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
31526
31527 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31528             Bruno Haible  <bruno@clisp.org>
31529
31530         Make the module 'malloc-gnu' work again on AIX and OSF/1.
31531         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
31532         HAVE_MALLOC.
31533         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
31534         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
31535         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31536
31537 2010-08-29  Bruno Haible  <bruno@clisp.org>
31538
31539         Update modules list.
31540         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31541         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
31542         (String handling <string.h>): Add astrxfrm.
31543         (File system functions): Add readlinkat.
31544
31545 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31546
31547         Tests for module 'realloc-gnu'.
31548         * modules/realloc-gnu-tests: New file.
31549         * tests/test-realloc-gnu.c: New file.
31550
31551         Tests for module 'calloc-gnu'.
31552         * modules/calloc-gnu-tests: New file.
31553         * tests/test-calloc-gnu.c: New file.
31554
31555         Tests for module 'malloc-gnu'.
31556         * modules/malloc-gnu-tests: New file.
31557         * tests/test-malloc-gnu.c: New file.
31558
31559 2010-08-28  Bruno Haible  <bruno@clisp.org>
31560
31561         Rename module 'realloc' -> 'realloc-gnu'.
31562         * modules/realloc-gnu: New file, copied from modules/realloc.
31563         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
31564         obsolete.
31565         * modules/mgetgroups (Depends-on): Update.
31566         * doc/posix-functions/realloc.texi: Update.
31567         * NEWS: Mention the change.
31568
31569         Rename module 'calloc' -> 'calloc-gnu'.
31570         * modules/calloc-gnu: New file, copied from modules/calloc.
31571         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
31572         obsolete.
31573         * doc/posix-functions/calloc.texi: Update.
31574         * NEWS: Mention the change.
31575
31576         Rename module 'malloc' -> 'malloc-gnu'.
31577         * modules/malloc-gnu: New file, copied from modules/malloc.
31578         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
31579         obsolete.
31580         * modules/argp (Depends-on): Update.
31581         * modules/regex (Depends-on): Update.
31582         * doc/posix-functions/malloc.texi: Update.
31583         * NEWS: Mention the change.
31584
31585 2010-08-28  Eric Blake  <eblake@redhat.com>
31586
31587         pread, pwrite: add missing dependency
31588         * modules/pread (Depends-on): Add extensions.
31589         * modules/pwrite (Depends-on): Likewise.
31590
31591 2010-08-28  Bruno Haible  <bruno@clisp.org>
31592
31593         unistr/u*-strchr: Fix tests dependencies.
31594         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
31595         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
31596         Reported by Ian Beckwith <ianb@erislabs.net>.
31597
31598 2010-08-28  Bruno Haible  <bruno@clisp.org>
31599
31600         read-file: Don't occupy too much unused memory.
31601         * lib/read-file.c (fread_file): Shrink the buffer at the end.
31602
31603 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
31604             Eric Blake  <eblake@redhat.com>
31605             Bruno Haible  <bruno@clisp.org>
31606
31607         read-file: Avoid memory reallocations with regular files.
31608         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
31609         (fread_file): With regular files, use the remaining length as the
31610         initial buffer size.  Check against overflow.
31611         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
31612         sys_stat.
31613
31614 2010-08-28  Bruno Haible  <bruno@clisp.org>
31615
31616         ftello: Relax license.
31617         * modules/ftello (License): Relax to LGPLv2+.
31618         Reported by Eric Blake.
31619
31620 2010-08-28  Bruno Haible  <bruno@clisp.org>
31621
31622         Avoid relocwrapper link errors due to gnulib replacement functions.
31623         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
31624         function.
31625         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31626
31627 2010-08-28  Bruno Haible  <bruno@clisp.org>
31628
31629         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
31630         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
31631         defined.
31632         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
31633         Suggested by Eric Blake.
31634
31635 2010-08-28  Bruno Haible  <bruno@clisp.org>
31636
31637         sys_socket, netdb: Ensure socklen_t gets defined.
31638         * modules/sys_socket (Depends-on): Add socklen.
31639         * modules/netdb (Depends-on): Likewise.
31640         * modules/getaddrinfo (Depends-on): Remove socklen.
31641         * modules/getsockopt (Depends-on): Likewise.
31642         * modules/setsockopt (Depends-on): Likewise.
31643         * tests/test-sys_socket.c: Check that socklen_t is defined.
31644         * tests/test-netdb.c: Likewise.
31645         * m4/socklen.m4: Update comments.
31646         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31647
31648 2010-08-27  Eric Blake  <eblake@redhat.com>
31649
31650         login_tty: add missing dependency
31651         * modules/login_tty (Depends-on): Add pty.
31652
31653 2010-08-26  Eric Blake  <eblake@redhat.com>
31654
31655         lib-symbol-versions: fix m4 quoting
31656         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
31657         format for AC_LINK_IFELSE.
31658
31659         glob: fix compile test
31660         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
31661
31662         btowc: fix missing file
31663         * modules/btowc (Files): Also ship locale-fr.m4.
31664
31665         lseek: fix link test
31666         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
31667         AC_LINK_IFELSE.
31668
31669         include_next: silence autoconf 2.68 warning
31670         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
31671         AC_COMPILE_IFELSE as special.
31672         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
31673         autoconf < 2.68.
31674
31675         acl: fix compilation test
31676         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
31677         AC_COMPILE_IFELSE.
31678
31679 2010-08-26  Bruno Haible  <bruno@clisp.org>
31680
31681         Modernize AC_TRY_RUN invocations.
31682         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
31683         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
31684         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
31685         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
31686         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
31687         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31688         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
31689         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31690         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31691         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31692         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
31693         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31694         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
31695         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31696         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
31697         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
31698         gl_MBRLEN_NUL_RETVAL): Likewise.
31699         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31700         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31701         Likewise.
31702         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31703         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
31704         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
31705         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
31706         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
31707         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
31708         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
31709         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
31710         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
31711         Likewise.
31712         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31713         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
31714         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31715         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31716         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31717         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
31718         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
31719         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
31720         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31721         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31722
31723 2010-08-26  Bruno Haible  <bruno@clisp.org>
31724
31725         Modernize AC_TRY_LINK invocations.
31726         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
31727         AC_TRY_LINK.
31728         * m4/argp.m4 (gl_ARGP): Likewise.
31729         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
31730         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31731         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
31732         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31733         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31734         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
31735         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
31736         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
31737         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31738         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31739         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31740         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
31741         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
31742         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31743         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31744         * m4/hostent.m4 (gl_HOSTENT): Likewise.
31745         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31746         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
31747         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31748         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
31749         Likewise.
31750         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
31751         Likewise.
31752         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
31753         Likewise.
31754         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31755         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
31756         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
31757         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
31758         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
31759         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31760         * m4/servent.m4 (gl_SERVENT): Likewise.
31761         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
31762         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
31763         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
31764         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
31765         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31766         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
31767         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31768         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31769         * modules/tsearch-tests (configure.ac): Likewise.
31770
31771 2010-08-26  Bruno Haible  <bruno@clisp.org>
31772
31773         Modernize AC_TRY_COMPILE invocations.
31774         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
31775         AC_TRY_COMPILE.
31776         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
31777         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
31778         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31779         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
31780         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31781         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31782         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31783         * m4/lock.m4 (gl_LOCK): Likewise.
31784         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
31785         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31786         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
31787         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31788         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31789         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
31790         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31791         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
31792         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31793         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31794         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31795         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31796         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
31797         extraneous semicolon.
31798
31799 2010-08-26  Jim Meyering  <meyering@redhat.com>
31800
31801         stat-time: relax license LGPL
31802         * modules/stat-time (License): Change from GPL to LGPL,
31803         with consent from all contributors, for use in libguile.
31804         Requested by Ludovic Courtès.
31805
31806 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
31807
31808         poll: return immediately on POLLHUP.
31809         * lib/poll.c (poll): Always set timeout before wait_timeout is
31810         computed.
31811
31812 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31813
31814         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
31815         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
31816         rmdir ("dir/.//"), unlinkat.
31817
31818 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31819
31820         stdbool: avoid spurious failure with modern xlc
31821         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31822
31823 2010-08-24  Bruno Haible  <bruno@clisp.org>
31824
31825         getloadavg: simplify code
31826         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
31827         gl_have_func. Update comments.
31828
31829 2010-08-24  Eric Blake  <eblake@redhat.com>
31830
31831         getloadavg: don't define SVR4 on cygwin
31832         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
31833         only define SVR4 when -lkvm is required.
31834         Reported by Yaakov Selkowitz.
31835
31836 2010-08-24  Bruno Haible  <bruno@clisp.org>
31837
31838         priv-set: fix comment
31839         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
31840
31841 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31842
31843         priv-set: fix comments
31844         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
31845         to match code, as suggested by David Bartley in:
31846         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
31847
31848 2010-08-23  Eric Blake  <eblake@redhat.com>
31849
31850         stdbool: avoid rejecting clang
31851         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31852         * tests/test-stdbool.c: Enable more tests if using the system
31853         <stdbool.h> instead of the gnulib replacement.
31854         (main): Move xlc bug test to a runtime test for all compilers.
31855         Reported by Anders Kaseorg.
31856
31857         argz: fix shell quoting issue
31858         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
31859         Reported by Charles Wilson.
31860
31861 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
31862             Erik Faye-Lund <kusmabite@gmail.com>
31863
31864         poll, select: handle ERROR_BROKEN_PIPE.
31865         * lib/poll.c (win32_compute_revents): Return POLLHUP when
31866         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31867         * lib/select.c (win32_compute_revents): Do not mark a pipe
31868         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31869
31870 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
31871
31872         fts: allow compilation with C++
31873         * lib/fts_.h: Specify extern "C" linkage with C++.
31874
31875 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31876
31877         Fix gnulib-tool sed script de-commentation for AIX sed.
31878         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
31879         sed.
31880
31881 2010-08-17  Eric Blake  <eblake@redhat.com>
31882
31883         test-stddef: test for (some) offsetof bugs
31884         * tests/test-stddef.c: Enhance test to ensure correct type of
31885         offsetof.
31886         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
31887         that we are not fixing at this time.
31888
31889 2010-08-15  Bruno Haible  <bruno@clisp.org>
31890
31891         stpncpy: Allow stpncpy to be defined as a macro.
31892         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
31893         if it's already correctly declared.
31894         * lib/string.in.h (stpncpy): Undefine before redefining.
31895         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
31896
31897 2010-08-14  Bruno Haible  <bruno@clisp.org>
31898
31899         Rename module 'memxfrm' to 'amemxfrm'.
31900         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
31901         (amemxfrm): Renamed from memxfrm.
31902         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
31903         (amemxfrm): Renamed from memxfrm.
31904         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
31905         * NEWS: Mention the change.
31906         * MODULES.html.sh (String handling <string.h>): Update.
31907         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
31908         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
31909         * lib/unicase/u16-casexfrm.c: Likewise.
31910         * lib/unicase/u32-casexfrm.c: Likewise.
31911         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
31912         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
31913         * lib/uninorm/u16-normxfrm.c: Likewise.
31914         * lib/uninorm/u32-normxfrm.c: Likewise.
31915         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
31916         memxfrm.
31917         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
31918         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
31919         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
31920         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
31921         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
31922         Suggested by Paul Eggert.
31923
31924 2010-08-14  Bruno Haible  <bruno@clisp.org>
31925
31926         Tests for module 'astrxfrm'.
31927         * modules/astrxfrm-tests: New file.
31928         * tests/test-astrxfrm.c: New file.
31929
31930         New module 'astrxfrm'.
31931         * lib/astrxfrm.h: New file.
31932         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
31933         * modules/astrxfrm: New file.
31934
31935 2010-08-14  Reuben Thomas <rrt@sc3d.org>
31936
31937         regex: Tweak doc.
31938         * doc/regex.texi (Overview): Don't mention regex.c.
31939         (GNU Regular Expression Compiling): Likewise.
31940         (Match-end-of-line Operator): Mention 'not_eol'.
31941
31942 2010-08-14  Brian Gough  <bjg@gnu.org>
31943             Bruno Haible  <bruno@clisp.org>
31944
31945         git-merge-changelog: add doc relating to use with bzr and hg.
31946         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
31947
31948 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
31949
31950         pthread: fix pthread.h creation for srcdir != builddir
31951         * modules/pthread (Makefile.am): Fix the rule to work also in a
31952         non-srcdir build.
31953
31954 2010-08-13  Karl Berry  <karl@gnu.org>
31955
31956         * doc/regex.texi (Predefined Syntaxes): @smallexample.
31957         * doc/posix-*/*: force line break before @url of POSIX
31958         specifications.
31959         Suggested by Werner Lemberg.
31960
31961 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31962
31963         strtod: fix const diagnostic
31964         * lib/strtod.c (strtod): Don't assign const char * to char *,
31965         as this elicits a warning from GCC when warnings are enabled.
31966
31967 2010-08-10  Pádraig Brady <P@draigbrady.com>
31968         and Eric Blake  <eblake@redhat.com>
31969
31970         copy-acl: ignore ENOTSUP on HP-UX
31971         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
31972         so that it is available for HP-UX.
31973         * lib/copy-acl.c (qcopy_acl): Use it.
31974         Reported by Patrick M. Callahan.
31975
31976 2010-08-10  Eric Blake  <eblake@redhat.com>
31977
31978         open, chown: relax license
31979         * modules/open (License): Change to LGPLv2+, with consent by all
31980         authors, for use in augeas.
31981         * modules/chown (License): Likewise.
31982         * modules/lchown (Likewise): Likewise.
31983         Requested by Adam Stokes.
31984
31985 2010-08-09  Karl Berry  <karl@gnu.org>
31986
31987         * build-aux/ar-lib: new file, import from Automake.
31988         * config/srclist.txt: autocheck for updates.
31989
31990 2010-08-09  Eric Blake  <eblake@redhat.com>
31991
31992         readlinkat: adjust client modules
31993         * modules/areadlinkat (Depends-on): Use readlinkat, not
31994         symlinkat.
31995         * modules/areadlinkat-with-size (Depends-on): Likewise.
31996
31997         mknod: be more vocal about danger of running tests as root
31998         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
31999         root, since that is just asking for problems.
32000         Suggested by Bruno Haible, based on a report by Rainer Tammer.
32001
32002         readlinkat: split into its own module
32003         * modules/symlinkat: Split readlinkat...
32004         * modules/readlinkat: ...into separate module.
32005         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
32006         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
32007         * lib/symlinkat.c (readlinkat): Move...
32008         * lib/readlinkat.c: ...into new file.
32009         * modules/symlinkat-tests: Split readlinkat test...
32010         * modules/readlinkat-tests: ...into separate module.
32011         * tests/test-symlinkat.c: Split...
32012         * tests/test-readlinkat.c: ...into new file.
32013         * NEWS: Document the split.
32014         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32015         * lib/unistd.in.h (readlinkat): Likewise.
32016         Suggested by Bruno Haible.
32017
32018 2010-08-08  Bruno Haible  <bruno@clisp.org>
32019
32020         memxfrm: Speed up.
32021         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
32022         that usually only one call to strxfrm is necessary for each string
32023         part.
32024         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32025
32026 2010-08-07  Karl Berry  <karl@gnu.org>
32027
32028         * doc/posix-headers/limits.texi,
32029         * doc/posix-functions/malloc.texi,
32030         * doc/posix-functions/strsignal.texi: missing @item.
32031         * doc/ld-version-script.texi: spurious leading i.
32032         * doc/regex.texi (Interval Operators): no commas inside @var.
32033
32034 2010-08-01  Bruno Haible  <bruno@clisp.org>
32035
32036         Integrate the regex documentation.
32037         * doc/gnulib.texi: Define 'cn' index.
32038         (Regular expressions): New a chapter that includes regex.texi and
32039         regexprops-generic.texi.
32040         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
32041         syntax.
32042
32043         Whitespace cleanup.
32044         * doc/regex.texi: Remove trailing spaces.
32045
32046         Add regex documentation.
32047         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
32048         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
32049         Written by Kathy A. Hargreaves and Karl Berry.
32050
32051 2010-08-01  Bruno Haible  <bruno@clisp.org>
32052
32053         link: Update documentation.
32054         * doc/posix-functions/link.texi: Update regarding Solaris.
32055
32056 2010-07-31  Bruno Haible  <bruno@clisp.org>
32057
32058         Update modules list.
32059         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
32060         (String handling <string.h>): Add memcmp2, memxfrm.
32061         (Container data structures): Add xlist, xsublist, xoset.
32062         (Core language properties): Add alignof, unused-parameter.
32063         (Process control, Numeric conversion functions <stdlib.h>): Renamed
32064         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
32065         (Unibyte characters <ctype.h>): New section.
32066         (String handling <string.h>): New section.
32067         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
32068         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
32069         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
32070         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
32071         tan, tanh, tanl, y0, y1, yn.
32072         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
32073         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
32074         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
32075         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
32076         unlockpt, vdprintf, vdprintf-posix.
32077         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
32078         (File system functions): Add concat-filename, sys_file, sys_ioctl,
32079         xconcat-filename.
32080         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
32081         getdtablesize, pipe2, pipe2-safer.
32082         (Security): New section.
32083         (Networking functions): Add accept4.
32084         (Signal handling): Add sigpipe.
32085         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
32086         mbmemcasecoll.
32087         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
32088         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
32089         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
32090         pipe-filter-ii.
32091         (Misc): Add argp-version-etc, login_tty, parse-duration.
32092
32093 2010-07-31  Bruno Haible  <bruno@clisp.org>
32094
32095         Improve doc in MODULES.html.
32096         * modules/linkat (Description): Add the word "function".
32097         * modules/mkfifo (Description): Likewise.
32098         * modules/mknod (Description): Likewise.
32099         * modules/remove (Description): Likewise.
32100         * modules/renameat (Description): Likewise.
32101         * modules/stat (Description): Likewise.
32102         * modules/symlink (Description): Likewise.
32103         * modules/unlink (Description): Likewise.
32104
32105 2010-07-31  Bruno Haible  <bruno@clisp.org>
32106
32107         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
32108         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
32109         option --enable/disable-c++ instead of --enable/disable-cxx.
32110         * NEWS: Mention the change.
32111
32112 2010-07-31  Bruno Haible  <bruno@clisp.org>
32113
32114         readlink, areadlink: Relax test a bit.
32115         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
32116         alternative to ENOTDIR.
32117         * tests/test-areadlink.h (test_areadlink): Likewise.
32118         Reported by Rainer Tammer.
32119
32120 2010-07-31  Bruno Haible  <bruno@clisp.org>
32121
32122         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
32123         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
32124         character, perform the search using U_STRCHR.
32125         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
32126         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
32127         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
32128         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
32129         Suggested by Paolo Bonzini.
32130
32131 2010-07-31  Bruno Haible  <bruno@clisp.org>
32132
32133         unistr/u*-strstr: Fix dependencies.
32134         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
32135         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
32136         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
32137
32138 2010-07-31  Bruno Haible  <bruno@clisp.org>
32139
32140         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
32141         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
32142         the beginning of the loop.
32143         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
32144         cases in 'switch' statement.
32145
32146         unistr/u8-strchr: Fix several bugs.
32147         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
32148         the string. When not found, return NULL, not a pointer near the end.
32149
32150         More tests for unistr/u8-strchr.
32151         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
32152         that the function does not read past the first occurrence of the byte
32153         being searched.
32154         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
32155         * tests/unistr/test-u16-strchr.c (main): New function.
32156         * tests/unistr/test-u32-strchr.c (main): New function.
32157
32158 2010-07-31  Bruno Haible  <bruno@clisp.org>
32159
32160         posix-modules: Ignore backup files of documentation files.
32161         * posix-modules: grep only through files named *.texi.
32162
32163 2010-07-31  Bruno Haible  <bruno@clisp.org>
32164
32165         symlinkat: Fix documentation.
32166         * doc/posix-functions/readlinkat.texi: Fix module name.
32167
32168 2010-07-31  Bruno Haible  <bruno@clisp.org>
32169
32170         fchownat: Replace also when chown has the trailing slash bug.
32171         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
32172         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
32173         introduced on 2010-04-10.
32174         Reported by Rainer Tammer.
32175
32176 2010-07-31  Bruno Haible  <bruno@clisp.org>
32177
32178         linkat: Work around AIX 7.1 bug.
32179         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
32180         whether linkat handles trailing slash correctly. If not, replace linkat
32181         and define LINKAT_TRAILING_SLASH_BUG.
32182         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
32183         check whether (fd1,file1) points to a directory if file1 or file2 ends
32184         in a slash. Code taken from lib/link.c.
32185         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
32186         Reported by Rainer Tammer.
32187
32188 2010-07-31  Bruno Haible  <bruno@clisp.org>
32189
32190         Correctly determine whether pow is available in libc on AIX 7 with xlc.
32191         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
32192         This disables an xlc optimization that was causing wrong test results.
32193         Reported by Rainer Tammer.
32194
32195 2010-07-31  Bruno Haible  <bruno@clisp.org>
32196
32197         iconv: Work around AIX 6.1..7.1 bug.
32198         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
32199         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
32200         cross-compiling, guess no on all versions of AIX.
32201         Reported by Rainer Tammer.
32202
32203 2010-07-31  Bruno Haible  <bruno@clisp.org>
32204
32205         readlink: Relax test a bit.
32206         * tests/test-readlink.h (test_readlink): Allow different errno value
32207         when readlink is called with a file name that ends in / and refers to
32208         a file.
32209         Suggested by Eric Blake.
32210         Reported by Rainer Tammer.
32211
32212 2010-07-31  Bruno Haible  <bruno@clisp.org>
32213
32214         copysign: Does not require -lm on glibc systems.
32215         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
32216         gl_COMMON_DOUBLE_MATHFUNC.
32217         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
32218
32219 2010-07-31  Bruno Haible  <bruno@clisp.org>
32220
32221         duplocale: Work around AIX 7.1 bug.
32222         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
32223         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
32224         * lib/duplocale.c (rpl_duplocale): Update comment.
32225         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
32226         Reported by Rainer Tammer.
32227
32228 2010-07-30  Bruno Haible  <bruno@clisp.org>
32229
32230         dirfd: Avoid link error on AIX 7.1.
32231         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
32232         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
32233         exist, set REPLACE_DIRFD.
32234         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
32235         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
32236         * doc/posix-functions/dirfd.texi: Update.
32237         Reported by Rainer Tammer.
32238
32239 2010-07-30  Eric Blake  <eblake@redhat.com>
32240
32241         strtod: next round of AIX fixes
32242         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
32243         exponent.
32244         * tests/test-strtod.c (main): Enhance tests.
32245         * doc/posix-functions/strtod.texi (strtod): Document next bug.
32246         Reported by Rainer Tammer.
32247
32248         futimens: fix configure check
32249         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
32250         Reported by Bruno Haible.
32251
32252 2010-07-30  Bruno Haible  <bruno@clisp.org>
32253
32254         getline: Update regarding AIX.
32255         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
32256         Reported by Rainer Tammer.
32257
32258 2010-07-30  Bruno Haible  <bruno@clisp.org>
32259
32260         wcwidth: Drop replacement on AIX 7.
32261         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
32262         AIX 7.
32263         Reported by Rainer Tammer.
32264
32265 2010-07-30  Bruno Haible  <bruno@clisp.org>
32266
32267         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
32268         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
32269         a 'char *'.
32270         Reported by Rainer Tammer.
32271
32272 2010-07-30  Bruno Haible  <bruno@clisp.org>
32273
32274         unlink: Update regarding AIX.
32275         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
32276         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
32277         Reported by Rainer Tammer.
32278
32279 2010-07-30  Bruno Haible  <bruno@clisp.org>
32280
32281         symlink: Update regarding AIX.
32282         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
32283         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
32284         Reported by Rainer Tammer.
32285
32286 2010-07-30  Bruno Haible  <bruno@clisp.org>
32287
32288         strndup: Update regarding AIX.
32289         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
32290         AIX 7.
32291         Reported by Rainer Tammer.
32292
32293 2010-07-30  Bruno Haible  <bruno@clisp.org>
32294
32295         stat: Update regarding AIX.
32296         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
32297         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
32298         Reported by Rainer Tammer.
32299
32300 2010-07-30  Bruno Haible  <bruno@clisp.org>
32301
32302         truncl: Fix autoconf test.
32303         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
32304         whether truncl works.
32305         Reported by Rainer Tammer.
32306
32307 2010-07-30  Bruno Haible  <bruno@clisp.org>
32308
32309         round: Update regarding AIX.
32310         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
32311         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
32312         Reported by Rainer Tammer.
32313
32314 2010-07-30  Bruno Haible  <bruno@clisp.org>
32315
32316         rename: Update regarding AIX.
32317         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
32318         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
32319         Reported by Rainer Tammer.
32320
32321 2010-07-30  Bruno Haible  <bruno@clisp.org>
32322
32323         printf.m4: Update regarding AIX.
32324         * m4/printf.m4: Update comments regarding AIX.
32325         Reported by Rainer Tammer.
32326
32327 2010-07-30  Bruno Haible  <bruno@clisp.org>
32328
32329         iconv: Update regarding AIX.
32330         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
32331         AIX 7.
32332         Reported by Rainer Tammer.
32333
32334 2010-07-30  Bruno Haible  <bruno@clisp.org>
32335
32336         getopt: Update regarding AIX.
32337         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
32338         no on AIX.
32339         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
32340         Reported by Rainer Tammer.
32341
32342 2010-07-30  Bruno Haible  <bruno@clisp.org>
32343
32344         ldexpl; Update regarding AIX.
32345         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
32346         on AIX 7.
32347         Reported by Rainer Tammer.
32348
32349 2010-07-30  Bruno Haible  <bruno@clisp.org>
32350
32351         frexpl: Update regarding AIX.
32352         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
32353         on AIX 7.
32354         Reported by Rainer Tammer.
32355
32356 2010-07-30  Bruno Haible  <bruno@clisp.org>
32357
32358         open, fopen: Update regarding AIX.
32359         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
32360         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
32361         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
32362         * doc/posix-functions/fopen.texi: Likewise.
32363         Reported by Rainer Tammer.
32364
32365 2010-07-30  Bruno Haible  <bruno@clisp.org>
32366
32367         chown: Update doc regarding AIX.
32368         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
32369         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
32370         Reported by Rainer Tammer.
32371
32372 2010-07-30  Eric Blake  <eblake@redhat.com>
32373
32374         strtod: fix bug in replacement function on AIX
32375         * lib/strtod.c (strtod): Special case broken "0x" parse in
32376         underlying strtod.
32377         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
32378         * doc/posix-functions/strtod.texi (strtod): Likewise.
32379         Reported by Rainer Tammer.
32380
32381 2010-07-30  Bruno Haible  <bruno@clisp.org>
32382
32383         mbrlen: Fix cross-compilation guess for AIX.
32384         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
32385         guess. Leftover from 2008-12-22.
32386
32387 2010-07-30  Bruno Haible  <bruno@clisp.org>
32388
32389         mbrtowc: Fix cross-compilation guess for AIX.
32390         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
32391         guess. Leftover from 2008-12-21.
32392
32393 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
32394
32395         init.sh: work around trap limitation of some shells
32396         * tests/init.sh (setup_): Move exit trap outside of shell function.
32397
32398 2010-07-29  Eric Blake  <eblake@redhat.com>
32399
32400         strtod: aid debugging
32401         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
32402         understanding why strtod is rejected.
32403
32404 2010-07-28  Bruno Haible  <bruno@clisp.org>
32405
32406         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
32407         * lib/unistr/u8-chr.c: Include <string.h>.
32408         * tests/unistr/test-u8-chr.c: Likewise.
32409         * tests/unistr/test-u16-chr.c: Likewise.
32410         * tests/unistr/test-u32-chr.c: Likewise.
32411         * tests/unistr/test-u8-strchr.c: Likewise.
32412         * tests/unistr/test-u16-strchr.c: Likewise.
32413         * tests/unistr/test-u32-strchr.c: Likewise.
32414         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
32415         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
32416         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
32417         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
32418
32419 2010-07-28  Bruno Haible  <bruno@clisp.org>
32420
32421         Use spaces for indentation, not tabs.
32422         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32423
32424 2010-07-27  Bruno Haible  <bruno@clisp.org>
32425
32426         mbspcasecmp: Fix function specification.
32427         * lib/string.in.h (mbspcasecmp): Fix specification comment.
32428         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
32429         Reported by Eric Blake <eblake@redhat.com>.
32430
32431 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
32432
32433         timespec: use cast and not conditional, as truncation isn't possible
32434         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
32435         instead of a conditional.  Comment about the situation in more detail.
32436         This undoes most of the 2009-10-29 patch.
32437
32438 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
32439
32440         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
32441         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
32442         * lib/unistr/u8-strchr.c: Likewise.
32443         * modules/unistr/u8-chr: Depend on memchr.
32444
32445         unistr/u*-strchr: add tests
32446         * modules/unistr/u8-strchr-tests: New file.
32447         * modules/unistr/u16-strchr-tests: New file.
32448         * modules/unistr/u32-strchr-tests: New file.
32449         * tests/unistr/test-strchr.h: New file.
32450         * tests/unistr/test-u8-strchr.c: New file.
32451         * tests/unistr/test-u16-strchr.c: New file.
32452         * tests/unistr/test-u32-strchr.c: New file.
32453
32454         unistr/u*-chr: test multibyte sequences more
32455         * tests/unistr/test-chr.h: Do complete testing of the characters in the
32456         test vector.
32457         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
32458         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
32459         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
32460
32461         unistr/u*-chr: test multibyte sequences
32462         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
32463
32464         unistr/u*-chr: prepare for multibyte tests
32465         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
32466         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
32467         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
32468         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
32469         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
32470         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
32471
32472 2010-07-18  Bruno Haible  <bruno@clisp.org>
32473
32474         unistr/u8-strchr: Optimize non-ASCII argument case.
32475         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
32476         because the first byte often matches anyway.
32477         Reported by Pádraig Brady <P@draigbrady.com>.
32478
32479 2010-07-15  Karl Berry  <karl@gnu.org>
32480
32481         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
32482
32483 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
32484
32485         getcwd: on Solaris, work better if ancestors are inaccessible
32486         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
32487         buffer and size, try again with a large buffer.  This works better
32488         on Solaris, since its getcwd succeeds even if the path to the root
32489         is inaccessible, and this is helpful in common cases such as .zfs
32490         hidden directories.  Problem reported by J Chapman Flack in
32491         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
32492         Use system getcwd if it's declared, not merely if it's partly
32493         working; use the partly-working test only to avoid needless effort
32494         if the system getcwd fails.
32495         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
32496         comment that was already obsolete and is now even more obsolete.
32497         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
32498         now might call strdup.
32499
32500 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
32501
32502         pthread: Add enough so that coreutils/src/sort.c compiles.
32503         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
32504         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
32505         gnulib. Include <sched.h> and <time.h>, as per POSIX.
32506         Include <sys/types.h>, in case it defines pthread_t.
32507         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
32508         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
32509         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
32510         (pthread_rwlockattr_t, pthread_spinlock_t):
32511         New typedefs, if HAVE_PTHREAD_T is not defined.
32512         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
32513         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
32514         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
32515         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
32516         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
32517         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
32518         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
32519         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
32520         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
32521         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
32522         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
32523         New macros.
32524         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
32525         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
32526         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
32527         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
32528         (pthread_spin_unlock): New dummy functions.
32529         (pthread_create): Return EAGAIN; don't set errno.
32530         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
32531         require AC_C_INLINE.
32532         * modules/pthread (Depends-on): Add sched, time.
32533         (pthread.h): Use AM_V_GEN.
32534
32535 2010-07-13  Bruno Haible  <bruno@clisp.org>
32536
32537         striconveh: Don't malloc memory if the result buffer is sufficient.
32538         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
32539         buffer if its size is sufficient.
32540         Reported by Ludovic Courtès <ludo@gnu.org>.
32541
32542 2010-07-13  Bruno Haible  <bruno@clisp.org>
32543
32544         strtod: Add safety check.
32545         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
32546
32547 2010-07-12  Bruno Haible  <bruno@clisp.org>
32548
32549         Unify tests that set gl_cv_func_ldexpl_no_libm.
32550         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
32551         gl_FUNC_LDEXPL.
32552         (gl_FUNC_LDEXPL): Invoke it.
32553         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32554
32555 2010-07-12  Bruno Haible  <bruno@clisp.org>
32556
32557         Unify tests that set gl_cv_func_ldexp_no_libm.
32558         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
32559         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
32560         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
32561         (configure.ac): Simply invoke gl_FUNC_LDEXP.
32562         * modules/strtod (Files): Add m4/ldexp.m4.
32563
32564 2010-07-12  Bruno Haible  <bruno@clisp.org>
32565
32566         Unify tests that set gl_cv_func_frexpl_no_libm.
32567         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
32568         gl_FUNC_FREXPL_NO_LIBM.
32569         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
32570         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32571
32572 2010-07-12  Bruno Haible  <bruno@clisp.org>
32573
32574         Unify tests that set gl_cv_func_frexp_no_libm.
32575         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
32576         gl_FUNC_FREXP_NO_LIBM.
32577         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
32578         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
32579
32580 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32581
32582         memcoll: clarify sizes versus lengths, document better, and tweak perf
32583         * lib/memcoll.c (strcoll_loop, memcoll0):
32584         Improve quality of descriptive comments.  Name variables
32585         consistently as to whether they are lengths (which do not include
32586         terminating null) versus sizes (which do).
32587         * lib/xmemcoll.c (xmemcoll0): Likewise.
32588         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
32589         returned when s1size == 0; this is easier to compile and saves
32590         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
32591
32592 2010-07-12  Bruno Haible  <bruno@clisp.org>
32593
32594         Tests for module '_Exit'.
32595         * modules/_Exit-tests: New file.
32596         * tests/test-_Exit.sh: New file.
32597         * tests/test-_Exit.c: New file.
32598
32599         New module '_Exit'.
32600         * lib/stdlib.in.h (__attribute__): New macro.
32601         (_Exit): New declaration.
32602         * lib/_Exit.c: New file.
32603         * m4/_Exit.m4: New file.
32604         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
32605         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
32606         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
32607         * modules/_Exit: New file.
32608         * tests/test-stdlib-c++.cc (_Exit): Check signature.
32609         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
32610
32611 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32612
32613         strtod: make it more-accurate typically, and don't require libm
32614         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
32615         Include limits.h.  Don't include string.h.
32616         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
32617         (locale_isspace): New function, so that no casts are needed to
32618         check whether *s is a space.
32619         (ldexp): Provide an unused dummy if not available.
32620         (scale_radix_exp, parse_number, underlying_strtod): New functions.
32621         (strtod): Use them.  This implementation prefers to use the
32622         underlying strtod if available, falling back on our own code
32623         only to fix known bugs.  This is more likely to produce an
32624         accurate result.  Also, it avoids the use of libm functions.
32625         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
32626         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
32627         was absent, but it caused a test failure with coreutils.
32628         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
32629         with libm.
32630         * modules/strtod (Makefile.am, Link): libm is no longer needed.
32631         * modules/strtod-tests (Makefile.am): Likewise.
32632
32633 2010-07-11  Pádraig Brady  <P@draigBrady.com>
32634             Bruno Haible  <bruno@clisp.org>
32635
32636         unistr/u8-strchr: Optimize ASCII argument case.
32637         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
32638
32639 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32640
32641         (x)memcoll: minor tweaks
32642         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
32643         is after the type that it qualifies.
32644         (memcoll0): Likewise.
32645         * lib/memcoll.h (memcoll0): Likewise.
32646         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
32647         * lib/xmemcoll.h (xmemcoll0): Likewise.
32648         * lib/memcoll.c (memcoll0): Correct the comment.  This function
32649         differs from memcoll in that the NUL byte is part of the argument.
32650         Omit the abort-checks, as performance is a real issue here.  Plus,
32651         the checks were wrong anyway (an off-by-one error).  Omit local
32652         variable 'diff', as it's a bit clearer that way.
32653         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
32654         no longer needed.
32655
32656 2010-07-08  Chen Guo <chenguo4@yahoo.com>
32657
32658         (x)memcoll: speedup when input is known to be NUL delimited
32659         * lib/memcoll.c: Include stdlib.
32660         (memcoll0): New function.
32661         (strcoll_loop): New function, refactored for use in both memcoll
32662         and memcoll0.
32663         * lib/memcoll.h (memcoll0): Add prototype.
32664         * lib/xmemcoll.c (xmemcoll0): New function.
32665         (collate_error): New function, refactored for use in both xmemcoll
32666         and xmemcoll0.
32667         * lib/xmemcoll.h (xmemcoll0): Add prototype.
32668         * m4/memcoll.m4: add inline invocation.
32669
32670 2010-07-06  Pádraig Brady  <P@draigBrady.com>
32671
32672         * build-aux/bootstrap: Remove any local translations
32673         from the translation project synchronization directory,
32674         so that local only translations are not distributed.
32675
32676 2010-07-04  Bruno Haible  <bruno@clisp.org>
32677
32678         fsusage: Clarify which code applies to which platforms.
32679         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
32680         platform.
32681         * lib/fsusage.c (get_fs_usage): Likewise.
32682
32683 2010-07-04  Bruno Haible  <bruno@clisp.org>
32684
32685         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
32686         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
32687         Reported by Martin Lambers <marlam@marlam.de>.
32688
32689 2010-07-04  Jim Meyering  <meyering@redhat.com>
32690
32691         hash: once again explicitly disallow insertion of NULL
32692         * lib/hash.c (hash_insert0): Reinstate just-removed test:
32693         inserting a NULL pointer cannot work with these functions.
32694         Add a comment with details.
32695         This reverts part of the 2010-07-01 commit, 5bef1a35
32696         "hash: extend module to deal with non-pointer keys".
32697
32698 2010-07-01  Bruno Haible  <bruno@clisp.org>
32699
32700         stdbool: Update doc.
32701         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
32702         Info from Christian Weisgerber <naddy@mips.inka.de>.
32703
32704 2010-07-01  Jim Meyering  <meyering@redhat.com>
32705
32706         hash: extend module to deal with non-pointer keys
32707         * lib/hash.c (hash_insert0): New interface, much like hash_insert
32708         but that allows insertion of non-pointer entries.
32709         Do not disallow an ENTRY value of NULL.
32710         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
32711         * lib/hash.h (hash_insert0): Declare.
32712
32713 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
32714
32715         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
32716         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
32717         not present (i.e. with autoconf 2.59 and when using gettextize, not
32718         gnulib), require AC_GNU_SOURCE instead.
32719
32720 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
32721
32722         idpriv-drop: Fix tests.
32723         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
32724         not to the test-idpriv-droptemp program.
32725
32726 2010-06-29  Bruno Haible  <bruno@clisp.org>
32727
32728         string: Fix syntax error with g++ 2.96.
32729         * lib/string.in.h (__pure__): Remove definition.
32730         (_GL_ATTRIBUTE_PURE): New macro.
32731         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
32732         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
32733         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32734
32735 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
32736
32737         unitypes: Fix bug introduced on 2010-05-18.
32738         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
32739
32740 2010-06-22  Eric Blake  <eblake@redhat.com>
32741
32742         memmem: slight optimization
32743         * lib/str-two-way.h (critical_factorization): Update comments.
32744         Reduce work during factorization phase.
32745         Reported by Carlos Bueno <carlos@bueno.org>.
32746
32747 2010-06-21  Bruno Haible  <bruno@clisp.org>
32748
32749         Fix HAVE_CALLOC_POSIX misnomer.
32750         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
32751         !HAVE_CALLOC_POSIX.
32752         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
32753         HAVE_CALLOC_POSIX.
32754         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
32755         instead of HAVE_CALLOC_POSIX.
32756         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
32757         HAVE_CALLOC_POSIX.
32758
32759         Use modern idiom for calloc() replacement.
32760         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
32761         AC_FUNC_CALLOC.
32762         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
32763         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
32764         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32765         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
32766         (gl_REPLACE_CALLOC): New macro.
32767
32768 2010-06-21  Bruno Haible  <bruno@clisp.org>
32769
32770         Fix HAVE_REALLOC_POSIX misnomer.
32771         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
32772         !HAVE_REALLOC_POSIX.
32773         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
32774         HAVE_REALLOC_POSIX.
32775         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
32776         instead of HAVE_REALLOC_POSIX.
32777         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
32778         HAVE_REALLOC_POSIX.
32779
32780         Use modern idiom for realloc() replacement.
32781         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
32782         AC_FUNC_REALLOC.
32783         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
32784         Autoconf's AC_FUNC_REALLOC.
32785         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32786         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
32787         (gl_REPLACE_REALLOC): New macro.
32788         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32789
32790 2010-06-21  Bruno Haible  <bruno@clisp.org>
32791
32792         Fix HAVE_MALLOC_POSIX misnomer.
32793         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
32794         !HAVE_MALLOC_POSIX.
32795         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
32796         HAVE_MALLOC_POSIX.
32797         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
32798         instead of HAVE_MALLOC_POSIX.
32799         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
32800         HAVE_MALLOC_POSIX.
32801
32802         Use modern idiom for malloc() replacement.
32803         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
32804         AC_FUNC_MALLOC.
32805         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
32806         Autoconf's AC_FUNC_MALLOC.
32807         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32808         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
32809         (gl_REPLACE_MALLOC): New macro.
32810         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32811
32812 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
32813
32814         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
32815         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
32816         This macro takes 3 arguments, not 4.
32817
32818 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
32819
32820         ipv6: fix detection under mingw
32821         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
32822         in6_addr.
32823
32824 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
32825
32826         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
32827         that strtod() works when cross-compiling to a glibc version known
32828         to work.
32829
32830 2010-06-15  Bruno Haible  <bruno@clisp.org>
32831
32832         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
32833
32834 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
32835
32836         select: Correct timeout.
32837         * lib/select.c (rpl_select): Compute wait_timeout correctly.
32838
32839 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32840
32841         git-version-gen: init shell var to avoid env var influence
32842         * build-aux/git-version-gen (v): Init shell var to empty.
32843
32844 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
32845
32846         priv-set: Don't assume that priv.h exists merely because getppriv does.
32847         See Jan Andersen's bug report about AIX 5L in
32848         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
32849         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
32850         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
32851         * lib/priv-set.h: Likewise.
32852         * tests/test-priv-set.c: Likewise.
32853
32854 2010-06-13  Bruno Haible  <bruno@clisp.org>
32855
32856         relocatable: Make it easier to test whether to install wrappers.
32857         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
32858         RELOCATABLE_VIA_WRAPPER.
32859
32860 2010-06-13  Bruno Haible  <bruno@clisp.org>
32861
32862         gnulib-tool: Display specified modules and dependencies differently.
32863         * gnulib-tool (func_show_module_list): New function.
32864         (func_import, func_create_testdir): Invoke it.
32865         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32866
32867 2010-06-13  Bruno Haible  <bruno@clisp.org>
32868
32869         gnulib-tool: Align code of func_import and func_create_testdir.
32870         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
32871         specified_modules.
32872
32873 2010-06-12  Jim Meyering  <meyering@redhat.com>
32874
32875         test-inttostr: avoid spurious failure on Solaris 9
32876         * tests/test-inttostr.c (main): Skip the test when snprintf fails
32877         to accept "%ju".  Reported by Bruno Haible.
32878
32879 2010-06-11  Jim Meyering  <meyering@redhat.com>
32880
32881         test-sys_socket: mark variables as used more readably
32882         * tests/test-sys_socket.c (main): Mark otherwise unused variables
32883         as "used" explicitly via (void) statement casts.  This is more
32884         readable than using them in an artificial return expression.
32885         Suggestion from Bruno Haible.
32886
32887 2010-06-11  Bruno Haible  <bruno@clisp.org>
32888
32889         Avoid some more warnings from "gcc -Wwrite-strings".
32890         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
32891         to 'const char *'.
32892         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
32893         * tests/test-c-strcasestr.c (main): Likewise.
32894         * tests/test-mbscasestr1.c (main): Likewise.
32895         * tests/test-mbscasestr2.c (main): Likewise.
32896         * tests/test-memmem.c (main): Likewise.
32897         * tests/test-strstr.c (main): Likewise.
32898         * tests/test-strcasestr.c (main): Likewise.
32899
32900 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32901
32902         init.sh: change framework_failure_ to fail with status 99, not 1
32903         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
32904         automake's parallel-tests rule that this is an unexpected failure,
32905         even if the test is listed in XFAIL_TESTS.
32906
32907 2010-06-11  Jim Meyering  <meyering@redhat.com>
32908
32909         test-inttostr: avoid warnings about 4-6KB literal strings
32910         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
32911         Include "macros.h", for its definition of ASSERT.
32912         (CK): s/assert/ASSERT/
32913         * modules/inttostr-tests (Files): Add macros.h.
32914
32915         init.sh: don't use $ME_ or skip_ before they are defined
32916         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
32917         their first uses.  Also hoist their companions: warn_, fail_,
32918         framework_failure_, $stderr_fileno.  Prompted by a patch from
32919         Stefano Lattarini.
32920
32921         test-sys_socket: avoid set-but-not-used warnings from gcc
32922         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
32923         avoid warning about set-but-not-used variables.
32924
32925         test-xvasprintf: avoid 'const' discard warnings
32926         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
32927         "const" when assigning from literal strings.
32928         (test_xasprintf): Add "void" in function argument list to placate
32929         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
32930
32931         tests: avoid compilation warnings in argmatch and exclude tests...
32932         in packages that define ARGMATCH_DIE_DECL, like coreutils.
32933         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
32934         Since it always exits, declare with the "noreturn" attribute.
32935         * tests/test-argmatch.c: Likewise.
32936
32937         tests: avoid 'const' discard warnings in mbsstr tests
32938         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
32939         * tests/test-mbsstr2.c (main): Likewise.
32940
32941         test-verify: avoid warning from gcc's -Wmissing-declarations
32942         * tests/test-verify.c (function): Declare to be static.
32943
32944         test-inttostr.c: include <string.h> for use of strcmp
32945         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
32946
32947         test-linkat: avoid failed assertion on "other" architectures
32948         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
32949         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
32950         sparc: https://bugs.launchpad.net/bugs/591968
32951
32952 2010-06-11  Jim Meyering  <meyering@redhat.com>
32953
32954         printf.m4: avoid autoconf's "Expanded Before Required" warning
32955         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
32956         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
32957         autoconf warning.
32958
32959 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
32960
32961         Replacement header templates are now named with ".in", not "_".
32962         * doc/gnulib-intro.texi: Correct.
32963
32964 2010-06-10  Jim Meyering  <meyering@redhat.com>
32965
32966         inttostr-tests: depend on snprintf, not snprintf-posix
32967         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
32968         snprintf-posix, to avoid this aclocal failure:
32969           missing file gnulib-tests/vasnprintf.c
32970           configure.ac:45: error: expected source file, required through \
32971           AC_LIBSOURCES, not found
32972
32973 2010-06-10  Jim Meyering  <meyering@redhat.com>
32974
32975         inttostr: add a new function, inttostr, and tests
32976         The namesake function was not available.  The existence of the
32977         template file, inttostr.c makes its addition nontrivial.
32978         * lib/anytostr.c: Rename from inttostr.c.
32979         (anytostr): Rename from inttostr.
32980         * lib/inttostr.c: New file.
32981         * modules/inttostr (Files): Add anytostr.c.
32982         (Makefile.am): Set lib_SOURCES instead of ...
32983         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
32984         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
32985         * lib/offtostr.c: Likewise.
32986         * lib/uinttostr.c: Likewise.
32987         * lib/umaxtostr.c: Likewise.
32988         * modules/inttostr-tests: New file.
32989         * tests/test-inttostr.c: New file.  Test these functions.
32990
32991 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
32992             Bruno Haible  <bruno@clisp.org>
32993
32994         Add "Extending Gnulib" chapter to manual.
32995         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
32996         chapter.
32997         (Extending Gnulib): New chapter.
32998         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
32999         chapter.
33000
33001 2010-06-09  Bruno Haible  <bruno@clisp.org>
33002
33003         Avoid relocwrapper link errors due to gnulib replacement functions.
33004         * lib/areadlink.c: Use the system's malloc, realloc functions.
33005         (areadlink): Set errno to ENOMEM explicitly.
33006         * modules/areadlink (Depends-on): Remove malloc-posix.
33007         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33008
33009 2010-06-09  Bruno Haible  <bruno@clisp.org>
33010
33011         Avoid relocwrapper link errors due to gnulib replacement functions.
33012         * lib/canonicalize-lgpl.c: Use the system's malloc function.
33013         * lib/malloca.c: Likewise.
33014         * lib/relocatable.c: Likewise.
33015         * lib/progreloc.c: Use the system's malloc, sprintf functions.
33016         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
33017         * lib/setenv.c: Use the system's malloc, realloc functions.
33018         * lib/strerror.c: Use the system's sprintf function.
33019         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33020
33021 2010-06-04  Bruno Haible  <bruno@clisp.org>
33022
33023         Prefer documented low-level autoconf macro names.
33024         * m4/lib-link.m4: Use m4_translit instead of translit.
33025         * m4/environ.m4: Likewise.
33026         * m4/mathfunc.m4: Likewise.
33027         * m4/onceonly.m4: Likewise.
33028         * m4/stdint.m4: Likewise.
33029         Suggested by Eric Blake.
33030
33031 2010-06-04  Martin Lambers  <marlam@marlam.de>
33032             Bruno Haible  <bruno@clisp.org>
33033
33034         havelib: Allow library names with '+' characters.
33035         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
33036         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
33037
33038 2010-06-09  Bruno Haible  <bruno@clisp.org>
33039
33040         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
33041         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
33042         realloc failed.
33043
33044 2010-06-08  Peter Simons  <simons@cryp.to>
33045
33046         maint.mk: make the news-check rule more configurable
33047         * top/maint.mk (news-check-lines-spec): New variable.
33048         (news-check): Use "sed -n 1,10p" in place of "head".
33049
33050 2010-06-07  Jim Meyering  <meyering@redhat.com>
33051
33052         do-release-commit-and-tag: fix typo in --help
33053         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
33054
33055         regex: avoid new dead-code warning with gcc-4.6.0
33056         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
33057         if-block containing a while-loop.  It's been unused for at least
33058         5 years.
33059
33060 2010-06-05  Bruno Haible  <bruno@clisp.org>
33061
33062         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
33063         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
33064
33065 2010-06-04  Bruno Haible  <bruno@clisp.org>
33066
33067         Update to GNU gettext 0.18.1.
33068         * modules/gettext (configure.ac): Require gettext infrastructure from
33069         version 0.18.1.
33070
33071 2010-06-03  Bruno Haible  <bruno@clisp.org>
33072
33073         Don't use AC_LIBOBJ with file names in subdirectories.
33074         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
33075         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
33076         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
33077         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
33078         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
33079         gl_LIBUNISTRING_LIBSOURCE.
33080         (Makefile.am): Augment lib_SOURCES here, conditionally.
33081         * NEWS: Drop requirement for Automake option 'subdir-objects'.
33082
33083 2010-06-03  Bruno Haible  <bruno@clisp.org>
33084
33085         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
33086         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
33087         expansion does not end with a newline.
33088         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
33089         unnecessary newline.
33090
33091 2010-06-03  Bruno Haible  <bruno@clisp.org>
33092
33093         Reduce dependencies.
33094         * tests/test-quotearg.h: New file, extracted from
33095         tests/test-quotearg.c.
33096         * tests/test-quotearg-simple.c: New file, extracted from
33097         tests/test-quotearg.c.
33098         * tests/test-quotearg.c: Don't include <ctype.h>.
33099         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
33100         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
33101         use_quote_double_quotes, use_quotearg_colon): Moved to
33102         tests/test-quotearg.h.
33103         (results_g, flag_results, custom_quotes, custom_results): Moved
33104         to tests/test-quotearg-simple.c.
33105         (main): Moved the part that does not depend on gettext to
33106         tests/test-quotearg-simple.c. Return 77 if the test cannot be
33107         performed.
33108         * modules/quotearg-simple: New file.
33109         * modules/quotearg-simple-tests: New file.
33110         * modules/quotearg (Depends-on): Add quotearg-simple.
33111         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
33112         (Files): Add tests/test-quotearg.h.
33113         Reported by Paolo Bonzini.
33114
33115 2010-06-03  Bruno Haible  <bruno@clisp.org>
33116
33117         Reduce dependencies.
33118         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
33119
33120 2010-06-03  Bruno Haible  <bruno@clisp.org>
33121
33122         time: Undefine more broken macros.
33123         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
33124         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
33125         Reported by Eric Blake.
33126
33127 2010-06-03  Bruno Haible  <bruno@clisp.org>
33128
33129         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
33130         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
33131         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
33132         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
33133         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
33134         Reported by Ludovic Courtès <ludo@gnu.org>.
33135
33136 2010-06-02  Eric Blake  <eblake@redhat.com>
33137
33138         time: work with mingw + pthreads-win32 library
33139         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
33140         if timespec is defined only in pthread.h.
33141         * modules/time (Makefile.am): Substitute it.
33142         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
33143         <pthread.h>, when needed.
33144         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
33145         from the library.
33146
33147 2010-05-31  Bruno Haible  <bruno@clisp.org>
33148
33149         Avoid expanding two macros in the wrong order.
33150         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
33151         gl_LIBUNISTRING if it is defined.
33152         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
33153         autoconf >= 2.64.
33154         Reported by Ludovic Courtès <ludo@gnu.org>.
33155
33156 2010-05-27  Jim Meyering  <meyering@redhat.com>
33157
33158         maint.mk: also prohibit "#undef" of always-defined symbols
33159         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
33160         Allow more than one space before the symbol name.
33161         (sc_prohibit_always-defined_macros): Use grep's -E, now that
33162         the regexp uses alternation.
33163
33164 2010-05-26  Eric Blake  <eblake@redhat.com>
33165
33166         maint.mk: avoid echo -e
33167         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
33168         Convert all uses of echo -* to printf.
33169         Reported by Matthias Bolte.
33170
33171 2010-05-25  Bruno Haible  <bruno@clisp.org>
33172
33173         Update to GNU gettext 0.18, part 2.
33174         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
33175         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
33176
33177 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33178
33179         Add missing include in test-pwrite.c.
33180         * tests/test-pwrite.c: Include string.h, for strcmp.
33181
33182 2010-05-24  Bruno Haible  <bruno@clisp.org>
33183
33184         * NEWS: Mention requirement for Automake option 'subdir-objects'.
33185
33186 2010-05-24  Bruno Haible  <bruno@clisp.org>
33187
33188         Don't use conversion with transliteration in u{8,16,32}_strcoll.
33189         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
33190         iconveh_error argument.
33191         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
33192         U_STRCONV_TO_LOCALE.
33193         * lib/unistr/u16-strcoll.c: Likewise.
33194         * lib/unistr/u32-strcoll.c: Likewise.
33195         * modules/unistr/u8-strcoll (Depends-on): Add
33196         uniconv/u8-strconv-to-enc, localcharset. Remove
33197         uniconv/u8-strconv-to-locale.
33198         (configure.ac): Bump version number.
33199         * modules/unistr/u16-strcoll (Depends-on): Add
33200         uniconv/u16-strconv-to-enc, localcharset. Remove
33201         uniconv/u16-strconv-to-locale.
33202         (configure.ac): Bump version number.
33203         * modules/unistr/u32-strcoll (Depends-on): Add
33204         uniconv/u32-strconv-to-enc, localcharset. Remove
33205         uniconv/u32-strconv-to-locale.
33206         (configure.ac): Bump version number.
33207
33208 2010-05-24  Bruno Haible  <bruno@clisp.org>
33209
33210         Avoid a test failure on NetBSD 5.0.
33211         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
33212         an iconv() bug.
33213
33214 2010-05-24  Bruno Haible  <bruno@clisp.org>
33215
33216         Adjust #include directive style.
33217         * modules/regex (Includes): Recommend to write <regex.h>.
33218
33219 2010-05-24  Bruno Haible  <bruno@clisp.org>
33220
33221         regex: Don't require alloca.
33222         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
33223         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
33224         only inside if (0).
33225
33226 2010-05-23  Jim Meyering  <meyering@redhat.com>
33227
33228         test-renameat.c: include <sys/stat.h>
33229         * tests/test-renameat.c: Include <sys/stat.h>; required for
33230         definition of S_IS* macros.
33231
33232 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
33233
33234         Update maintainer documentation for 'relocatable-prog' module.
33235         * doc/relocatable-maint.texi: Update.
33236         Comments by Bruno Haible.
33237
33238 2010-05-23  Bruno Haible  <bruno@clisp.org>
33239
33240         git-merge-changelog: Enable --split-merged-entry by default.
33241         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
33242         (usage): Don't mention this option any more.
33243         Reported by Ralf Wildenhues.
33244
33245 2010-05-23  Jim Meyering  <meyering@redhat.com>
33246
33247         test-pwrite: do not leave behind a test file named "out"
33248         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
33249         The trivial-looking use of init.sh is really necessary.
33250         It ensures that the temporary file, "out", is created in
33251         a temporary directory, and removed upon termination.
33252         * tests/test-pwrite.sh: Re-add file.
33253         * modules/pwrite-tests: Reference it.
33254
33255 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33256
33257         Fix output redirection buglet in init.sh.
33258         * tests/init.sh: Fix redirection of stderr.
33259
33260 2010-05-20  Simon Josefsson  <simon@josefsson.org>
33261
33262         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
33263
33264 2010-05-17  Simon Josefsson  <simon@josefsson.org>
33265
33266         * modules/valgrind-tests: New file.
33267         * m4/valgrind-tests.m4: New file.
33268         * doc/valgrind-tests.texi: New file.
33269         * doc/gnulib.texi (Running self-tests under valgrind): New
33270         section.
33271
33272 2010-05-19  Bruno Haible  <bruno@clisp.org>
33273
33274         Clean up dead code in recent commit.
33275         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
33276         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
33277         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
33278         Suggested by Paolo Bonzini.
33279
33280 2010-05-19  Bruno Haible  <bruno@clisp.org>
33281
33282         Avoid valgrind error reports from libunistring.
33283         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
33284         * modules/libunistring (Files): Add it.
33285         * modules/libunistring-optional (Files): Likewise.
33286
33287 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
33288             Bruno Haible  <bruno@clisp.org>
33289
33290         New module 'libunistring-optional'.
33291         * modules/libunistring-optional: New file.
33292         * m4/libunistring-base.m4: New file.
33293         * m4/libunistring-optional.m4: New file.
33294         * lib/unicase.in.h: Renamed from lib/unicase.h.
33295         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
33296         * lib/unictype.in.h: Renamed from lib/unictype.h.
33297         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
33298         * lib/uniname.in.h: Renamed from lib/uniname.h.
33299         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
33300         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
33301         * lib/unistr.in.h: Renamed from lib/unistr.h.
33302         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
33303         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
33304         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
33305         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
33306         gl_LIBUNISTRING. If the library was found, determine the installed
33307         version and set LIBUNISTRING_VERSION.
33308         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
33309         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
33310         handle a configuration option --with-included-libunistring.
33311         * modules/libunistring (Files): Add m4/absolute-header.m4.
33312         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
33313         Add m4/libunistring-base.m4.
33314         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33315         (Makefile.am): Build unicase.h from unicase.in.h.
33316         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
33317         Add m4/libunistring-base.m4.
33318         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33319         (Makefile.am): Build uniconv.h from uniconv.in.h.
33320         * modules/unictype/base (Files): Use unictype.in.h instead of
33321         unictype.h. Add m4/libunistring-base.m4.
33322         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33323         (Makefile.am): Build unictype.h from unictype.in.h.
33324         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
33325         Add m4/libunistring-base.m4.
33326         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33327         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
33328         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
33329         Add m4/libunistring-base.m4.
33330         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33331         (Makefile.am): Build uniname.h from uniname.in.h.
33332         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
33333         Add m4/libunistring-base.m4.
33334         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33335         (Makefile.am): Build uninorm.h from uninorm.in.h.
33336         * modules/unistdio/base (Files): Use unistdio.in.h instead of
33337         unistdio.h. Add m4/libunistring-base.m4.
33338         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33339         (Makefile.am): Build unistdio.h from unistdio.in.h.
33340         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
33341         Add m4/libunistring-base.m4.
33342         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33343         (Makefile.am): Build unistr.h from unistr.in.h.
33344         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
33345         Add m4/libunistring-base.m4.
33346         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33347         (Makefile.am): Build unitypes.h from unitypes.in.h.
33348         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
33349         Add m4/libunistring-base.m4.
33350         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33351         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
33352         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
33353         uniwidth.h. Add m4/libunistring-base.m4.
33354         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33355         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
33356         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
33357         instead of augmenting lib_SOURCES.
33358         * modules/unicase/empty-suffix-context: Likewise.
33359         * modules/unicase/locale-language: Likewise.
33360         * modules/unicase/tolower: Likewise.
33361         * modules/unicase/totitle: Likewise.
33362         * modules/unicase/toupper: Likewise.
33363         * modules/unicase/u8-casecmp: Likewise.
33364         * modules/unicase/u8-casecoll: Likewise.
33365         * modules/unicase/u8-casefold: Likewise.
33366         * modules/unicase/u8-casexfrm: Likewise.
33367         * modules/unicase/u8-ct-casefold: Likewise.
33368         * modules/unicase/u8-ct-tolower: Likewise.
33369         * modules/unicase/u8-ct-totitle: Likewise.
33370         * modules/unicase/u8-ct-toupper: Likewise.
33371         * modules/unicase/u8-is-cased: Likewise.
33372         * modules/unicase/u8-is-casefolded: Likewise.
33373         * modules/unicase/u8-is-lowercase: Likewise.
33374         * modules/unicase/u8-is-titlecase: Likewise.
33375         * modules/unicase/u8-is-uppercase: Likewise.
33376         * modules/unicase/u8-prefix-context: Likewise.
33377         * modules/unicase/u8-suffix-context: Likewise.
33378         * modules/unicase/u8-tolower: Likewise.
33379         * modules/unicase/u8-totitle: Likewise.
33380         * modules/unicase/u8-toupper: Likewise.
33381         * modules/unicase/u16-casecmp: Likewise.
33382         * modules/unicase/u16-casecoll: Likewise.
33383         * modules/unicase/u16-casefold: Likewise.
33384         * modules/unicase/u16-casexfrm: Likewise.
33385         * modules/unicase/u16-ct-casefold: Likewise.
33386         * modules/unicase/u16-ct-tolower: Likewise.
33387         * modules/unicase/u16-ct-totitle: Likewise.
33388         * modules/unicase/u16-ct-toupper: Likewise.
33389         * modules/unicase/u16-is-cased: Likewise.
33390         * modules/unicase/u16-is-casefolded: Likewise.
33391         * modules/unicase/u16-is-lowercase: Likewise.
33392         * modules/unicase/u16-is-titlecase: Likewise.
33393         * modules/unicase/u16-is-uppercase: Likewise.
33394         * modules/unicase/u16-prefix-context: Likewise.
33395         * modules/unicase/u16-suffix-context: Likewise.
33396         * modules/unicase/u16-tolower: Likewise.
33397         * modules/unicase/u16-totitle: Likewise.
33398         * modules/unicase/u16-toupper: Likewise.
33399         * modules/unicase/u32-casecmp: Likewise.
33400         * modules/unicase/u32-casecoll: Likewise.
33401         * modules/unicase/u32-casefold: Likewise.
33402         * modules/unicase/u32-casexfrm: Likewise.
33403         * modules/unicase/u32-ct-casefold: Likewise.
33404         * modules/unicase/u32-ct-tolower: Likewise.
33405         * modules/unicase/u32-ct-totitle: Likewise.
33406         * modules/unicase/u32-ct-toupper: Likewise.
33407         * modules/unicase/u32-is-cased: Likewise.
33408         * modules/unicase/u32-is-casefolded: Likewise.
33409         * modules/unicase/u32-is-lowercase: Likewise.
33410         * modules/unicase/u32-is-titlecase: Likewise.
33411         * modules/unicase/u32-is-uppercase: Likewise.
33412         * modules/unicase/u32-prefix-context: Likewise.
33413         * modules/unicase/u32-suffix-context: Likewise.
33414         * modules/unicase/u32-tolower: Likewise.
33415         * modules/unicase/u32-totitle: Likewise.
33416         * modules/unicase/u32-toupper: Likewise.
33417         * modules/unicase/ulc-casecmp: Likewise.
33418         * modules/unicase/ulc-casecoll: Likewise.
33419         * modules/unicase/ulc-casexfrm: Likewise.
33420         * modules/uniconv/u8-conv-from-enc: Likewise.
33421         * modules/uniconv/u8-conv-to-enc: Likewise.
33422         * modules/uniconv/u8-strconv-from-enc: Likewise.
33423         * modules/uniconv/u8-strconv-from-locale: Likewise.
33424         * modules/uniconv/u8-strconv-to-enc: Likewise.
33425         * modules/uniconv/u8-strconv-to-locale: Likewise.
33426         * modules/uniconv/u16-conv-from-enc: Likewise.
33427         * modules/uniconv/u16-conv-to-enc: Likewise.
33428         * modules/uniconv/u16-strconv-from-enc: Likewise.
33429         * modules/uniconv/u16-strconv-from-locale: Likewise.
33430         * modules/uniconv/u16-strconv-to-enc: Likewise.
33431         * modules/uniconv/u16-strconv-to-locale: Likewise.
33432         * modules/uniconv/u32-conv-from-enc: Likewise.
33433         * modules/uniconv/u32-conv-to-enc: Likewise.
33434         * modules/uniconv/u32-strconv-from-enc: Likewise.
33435         * modules/uniconv/u32-strconv-from-locale: Likewise.
33436         * modules/uniconv/u32-strconv-to-enc: Likewise.
33437         * modules/uniconv/u32-strconv-to-locale: Likewise.
33438         * modules/unictype/bidicategory-byname: Likewise.
33439         * modules/unictype/bidicategory-name: Likewise.
33440         * modules/unictype/bidicategory-of: Likewise.
33441         * modules/unictype/bidicategory-test: Likewise.
33442         * modules/unictype/block-list: Likewise.
33443         * modules/unictype/block-test: Likewise.
33444         * modules/unictype/category-C: Likewise.
33445         * modules/unictype/category-Cc: Likewise.
33446         * modules/unictype/category-Cf: Likewise.
33447         * modules/unictype/category-Cn: Likewise.
33448         * modules/unictype/category-Co: Likewise.
33449         * modules/unictype/category-Cs: Likewise.
33450         * modules/unictype/category-L: Likewise.
33451         * modules/unictype/category-Ll: Likewise.
33452         * modules/unictype/category-Lm: Likewise.
33453         * modules/unictype/category-Lo: Likewise.
33454         * modules/unictype/category-Lt: Likewise.
33455         * modules/unictype/category-Lu: Likewise.
33456         * modules/unictype/category-M: Likewise.
33457         * modules/unictype/category-Mc: Likewise.
33458         * modules/unictype/category-Me: Likewise.
33459         * modules/unictype/category-Mn: Likewise.
33460         * modules/unictype/category-N: Likewise.
33461         * modules/unictype/category-Nd: Likewise.
33462         * modules/unictype/category-Nl: Likewise.
33463         * modules/unictype/category-No: Likewise.
33464         * modules/unictype/category-P: Likewise.
33465         * modules/unictype/category-Pc: Likewise.
33466         * modules/unictype/category-Pd: Likewise.
33467         * modules/unictype/category-Pe: Likewise.
33468         * modules/unictype/category-Pf: Likewise.
33469         * modules/unictype/category-Pi: Likewise.
33470         * modules/unictype/category-Po: Likewise.
33471         * modules/unictype/category-Ps: Likewise.
33472         * modules/unictype/category-S: Likewise.
33473         * modules/unictype/category-Sc: Likewise.
33474         * modules/unictype/category-Sk: Likewise.
33475         * modules/unictype/category-Sm: Likewise.
33476         * modules/unictype/category-So: Likewise.
33477         * modules/unictype/category-Z: Likewise.
33478         * modules/unictype/category-Zl: Likewise.
33479         * modules/unictype/category-Zp: Likewise.
33480         * modules/unictype/category-Zs: Likewise.
33481         * modules/unictype/category-and: Likewise.
33482         * modules/unictype/category-and-not: Likewise.
33483         * modules/unictype/category-byname: Likewise.
33484         * modules/unictype/category-name: Likewise.
33485         * modules/unictype/category-none: Likewise.
33486         * modules/unictype/category-of: Likewise.
33487         * modules/unictype/category-or: Likewise.
33488         * modules/unictype/category-test: Likewise.
33489         * modules/unictype/combining-class: Likewise.
33490         * modules/unictype/ctype-alnum: Likewise.
33491         * modules/unictype/ctype-alpha: Likewise.
33492         * modules/unictype/ctype-blank: Likewise.
33493         * modules/unictype/ctype-cntrl: Likewise.
33494         * modules/unictype/ctype-digit: Likewise.
33495         * modules/unictype/ctype-graph: Likewise.
33496         * modules/unictype/ctype-lower: Likewise.
33497         * modules/unictype/ctype-print: Likewise.
33498         * modules/unictype/ctype-punct: Likewise.
33499         * modules/unictype/ctype-space: Likewise.
33500         * modules/unictype/ctype-upper: Likewise.
33501         * modules/unictype/ctype-xdigit: Likewise.
33502         * modules/unictype/decimal-digit: Likewise.
33503         * modules/unictype/digit: Likewise.
33504         * modules/unictype/mirror: Likewise.
33505         * modules/unictype/numeric: Likewise.
33506         * modules/unictype/property-alphabetic: Likewise.
33507         * modules/unictype/property-ascii-hex-digit: Likewise.
33508         * modules/unictype/property-bidi-arabic-digit: Likewise.
33509         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
33510         * modules/unictype/property-bidi-block-separator: Likewise.
33511         * modules/unictype/property-bidi-boundary-neutral: Likewise.
33512         * modules/unictype/property-bidi-common-separator: Likewise.
33513         * modules/unictype/property-bidi-control: Likewise.
33514         * modules/unictype/property-bidi-embedding-or-override: Likewise.
33515         * modules/unictype/property-bidi-eur-num-separator: Likewise.
33516         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
33517         * modules/unictype/property-bidi-european-digit: Likewise.
33518         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
33519         * modules/unictype/property-bidi-left-to-right: Likewise.
33520         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
33521         * modules/unictype/property-bidi-other-neutral: Likewise.
33522         * modules/unictype/property-bidi-pdf: Likewise.
33523         * modules/unictype/property-bidi-segment-separator: Likewise.
33524         * modules/unictype/property-bidi-whitespace: Likewise.
33525         * modules/unictype/property-byname: Likewise.
33526         * modules/unictype/property-combining: Likewise.
33527         * modules/unictype/property-composite: Likewise.
33528         * modules/unictype/property-currency-symbol: Likewise.
33529         * modules/unictype/property-dash: Likewise.
33530         * modules/unictype/property-decimal-digit: Likewise.
33531         * modules/unictype/property-default-ignorable-code-point: Likewise.
33532         * modules/unictype/property-deprecated: Likewise.
33533         * modules/unictype/property-diacritic: Likewise.
33534         * modules/unictype/property-extender: Likewise.
33535         * modules/unictype/property-format-control: Likewise.
33536         * modules/unictype/property-grapheme-base: Likewise.
33537         * modules/unictype/property-grapheme-extend: Likewise.
33538         * modules/unictype/property-grapheme-link: Likewise.
33539         * modules/unictype/property-hex-digit: Likewise.
33540         * modules/unictype/property-hyphen: Likewise.
33541         * modules/unictype/property-id-continue: Likewise.
33542         * modules/unictype/property-id-start: Likewise.
33543         * modules/unictype/property-ideographic: Likewise.
33544         * modules/unictype/property-ids-binary-operator: Likewise.
33545         * modules/unictype/property-ids-trinary-operator: Likewise.
33546         * modules/unictype/property-ignorable-control: Likewise.
33547         * modules/unictype/property-iso-control: Likewise.
33548         * modules/unictype/property-join-control: Likewise.
33549         * modules/unictype/property-left-of-pair: Likewise.
33550         * modules/unictype/property-line-separator: Likewise.
33551         * modules/unictype/property-logical-order-exception: Likewise.
33552         * modules/unictype/property-lowercase: Likewise.
33553         * modules/unictype/property-math: Likewise.
33554         * modules/unictype/property-non-break: Likewise.
33555         * modules/unictype/property-not-a-character: Likewise.
33556         * modules/unictype/property-numeric: Likewise.
33557         * modules/unictype/property-other-alphabetic: Likewise.
33558         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
33559         * modules/unictype/property-other-grapheme-extend: Likewise.
33560         * modules/unictype/property-other-id-continue: Likewise.
33561         * modules/unictype/property-other-id-start: Likewise.
33562         * modules/unictype/property-other-lowercase: Likewise.
33563         * modules/unictype/property-other-math: Likewise.
33564         * modules/unictype/property-other-uppercase: Likewise.
33565         * modules/unictype/property-paired-punctuation: Likewise.
33566         * modules/unictype/property-paragraph-separator: Likewise.
33567         * modules/unictype/property-pattern-syntax: Likewise.
33568         * modules/unictype/property-pattern-white-space: Likewise.
33569         * modules/unictype/property-private-use: Likewise.
33570         * modules/unictype/property-punctuation: Likewise.
33571         * modules/unictype/property-quotation-mark: Likewise.
33572         * modules/unictype/property-radical: Likewise.
33573         * modules/unictype/property-sentence-terminal: Likewise.
33574         * modules/unictype/property-soft-dotted: Likewise.
33575         * modules/unictype/property-space: Likewise.
33576         * modules/unictype/property-terminal-punctuation: Likewise.
33577         * modules/unictype/property-test: Likewise.
33578         * modules/unictype/property-titlecase: Likewise.
33579         * modules/unictype/property-unassigned-code-value: Likewise.
33580         * modules/unictype/property-unified-ideograph: Likewise.
33581         * modules/unictype/property-uppercase: Likewise.
33582         * modules/unictype/property-variation-selector: Likewise.
33583         * modules/unictype/property-white-space: Likewise.
33584         * modules/unictype/property-xid-continue: Likewise.
33585         * modules/unictype/property-xid-start: Likewise.
33586         * modules/unictype/property-zero-width: Likewise.
33587         * modules/unictype/scripts: Likewise.
33588         * modules/unictype/syntax-c-ident: Likewise.
33589         * modules/unictype/syntax-c-whitespace: Likewise.
33590         * modules/unictype/syntax-java-ident: Likewise.
33591         * modules/unictype/syntax-java-whitespace: Likewise.
33592         * modules/unilbrk/u8-possible-linebreaks: Likewise.
33593         * modules/unilbrk/u8-width-linebreaks: Likewise.
33594         * modules/unilbrk/u16-possible-linebreaks: Likewise.
33595         * modules/unilbrk/u16-width-linebreaks: Likewise.
33596         * modules/unilbrk/u32-possible-linebreaks: Likewise.
33597         * modules/unilbrk/u32-width-linebreaks: Likewise.
33598         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
33599         * modules/unilbrk/ulc-width-linebreaks: Likewise.
33600         * modules/uniname/uniname: Likewise.
33601         * modules/uninorm/canonical-decomposition: Likewise.
33602         * modules/uninorm/composition: Likewise.
33603         * modules/uninorm/decomposing-form: Likewise.
33604         * modules/uninorm/decomposition: Likewise.
33605         * modules/uninorm/filter: Likewise.
33606         * modules/uninorm/nfc: Likewise.
33607         * modules/uninorm/nfd: Likewise.
33608         * modules/uninorm/nfkc: Likewise.
33609         * modules/uninorm/nfkd: Likewise.
33610         * modules/uninorm/u8-normalize: Likewise.
33611         * modules/uninorm/u8-normcmp: Likewise.
33612         * modules/uninorm/u8-normcoll: Likewise.
33613         * modules/uninorm/u8-normxfrm: Likewise.
33614         * modules/uninorm/u16-normalize: Likewise.
33615         * modules/uninorm/u16-normcmp: Likewise.
33616         * modules/uninorm/u16-normcoll: Likewise.
33617         * modules/uninorm/u16-normxfrm: Likewise.
33618         * modules/uninorm/u32-normalize: Likewise.
33619         * modules/uninorm/u32-normcmp: Likewise.
33620         * modules/uninorm/u32-normcoll: Likewise.
33621         * modules/uninorm/u32-normxfrm: Likewise.
33622         * modules/unistdio/u8-asnprintf: Likewise.
33623         * modules/unistdio/u8-asprintf: Likewise.
33624         * modules/unistdio/u8-snprintf: Likewise.
33625         * modules/unistdio/u8-sprintf: Likewise.
33626         * modules/unistdio/u8-u8-asnprintf: Likewise.
33627         * modules/unistdio/u8-u8-asprintf: Likewise.
33628         * modules/unistdio/u8-u8-snprintf: Likewise.
33629         * modules/unistdio/u8-u8-sprintf: Likewise.
33630         * modules/unistdio/u8-u8-vasnprintf: Likewise.
33631         * modules/unistdio/u8-u8-vasprintf: Likewise.
33632         * modules/unistdio/u8-u8-vsnprintf: Likewise.
33633         * modules/unistdio/u8-u8-vsprintf: Likewise.
33634         * modules/unistdio/u8-vasnprintf: Likewise.
33635         * modules/unistdio/u8-vasprintf: Likewise.
33636         * modules/unistdio/u8-vsnprintf: Likewise.
33637         * modules/unistdio/u8-vsprintf: Likewise.
33638         * modules/unistdio/u16-asnprintf: Likewise.
33639         * modules/unistdio/u16-asprintf: Likewise.
33640         * modules/unistdio/u16-snprintf: Likewise.
33641         * modules/unistdio/u16-sprintf: Likewise.
33642         * modules/unistdio/u16-u16-asnprintf: Likewise.
33643         * modules/unistdio/u16-u16-asprintf: Likewise.
33644         * modules/unistdio/u16-u16-snprintf: Likewise.
33645         * modules/unistdio/u16-u16-sprintf: Likewise.
33646         * modules/unistdio/u16-u16-vasnprintf: Likewise.
33647         * modules/unistdio/u16-u16-vasprintf: Likewise.
33648         * modules/unistdio/u16-u16-vsnprintf: Likewise.
33649         * modules/unistdio/u16-u16-vsprintf: Likewise.
33650         * modules/unistdio/u16-vasnprintf: Likewise.
33651         * modules/unistdio/u16-vasprintf: Likewise.
33652         * modules/unistdio/u16-vsnprintf: Likewise.
33653         * modules/unistdio/u16-vsprintf: Likewise.
33654         * modules/unistdio/u32-asnprintf: Likewise.
33655         * modules/unistdio/u32-asprintf: Likewise.
33656         * modules/unistdio/u32-snprintf: Likewise.
33657         * modules/unistdio/u32-sprintf: Likewise.
33658         * modules/unistdio/u32-u32-asnprintf: Likewise.
33659         * modules/unistdio/u32-u32-asprintf: Likewise.
33660         * modules/unistdio/u32-u32-snprintf: Likewise.
33661         * modules/unistdio/u32-u32-sprintf: Likewise.
33662         * modules/unistdio/u32-u32-vasnprintf: Likewise.
33663         * modules/unistdio/u32-u32-vasprintf: Likewise.
33664         * modules/unistdio/u32-u32-vsnprintf: Likewise.
33665         * modules/unistdio/u32-u32-vsprintf: Likewise.
33666         * modules/unistdio/u32-vasnprintf: Likewise.
33667         * modules/unistdio/u32-vasprintf: Likewise.
33668         * modules/unistdio/u32-vsnprintf: Likewise.
33669         * modules/unistdio/u32-vsprintf: Likewise.
33670         * modules/unistdio/ulc-asnprintf: Likewise.
33671         * modules/unistdio/ulc-asprintf: Likewise.
33672         * modules/unistdio/ulc-fprintf: Likewise.
33673         * modules/unistdio/ulc-snprintf: Likewise.
33674         * modules/unistdio/ulc-sprintf: Likewise.
33675         * modules/unistdio/ulc-vasnprintf: Likewise.
33676         * modules/unistdio/ulc-vasprintf: Likewise.
33677         * modules/unistdio/ulc-vfprintf: Likewise.
33678         * modules/unistdio/ulc-vsnprintf: Likewise.
33679         * modules/unistdio/ulc-vsprintf: Likewise.
33680         * modules/unistr/u8-check: Likewise.
33681         * modules/unistr/u8-chr: Likewise.
33682         * modules/unistr/u8-cmp: Likewise.
33683         * modules/unistr/u8-cmp2: Likewise.
33684         * modules/unistr/u8-cpy: Likewise.
33685         * modules/unistr/u8-cpy-alloc: Likewise.
33686         * modules/unistr/u8-endswith: Likewise.
33687         * modules/unistr/u8-mblen: Likewise.
33688         * modules/unistr/u8-mbsnlen: Likewise.
33689         * modules/unistr/u8-mbtouc: Likewise.
33690         * modules/unistr/u8-mbtouc-unsafe: Likewise.
33691         * modules/unistr/u8-mbtoucr: Likewise.
33692         * modules/unistr/u8-move: Likewise.
33693         * modules/unistr/u8-next: Likewise.
33694         * modules/unistr/u8-prev: Likewise.
33695         * modules/unistr/u8-set: Likewise.
33696         * modules/unistr/u8-startswith: Likewise.
33697         * modules/unistr/u8-stpcpy: Likewise.
33698         * modules/unistr/u8-stpncpy: Likewise.
33699         * modules/unistr/u8-strcat: Likewise.
33700         * modules/unistr/u8-strchr: Likewise.
33701         * modules/unistr/u8-strcmp: Likewise.
33702         * modules/unistr/u8-strcoll: Likewise.
33703         * modules/unistr/u8-strcpy: Likewise.
33704         * modules/unistr/u8-strcspn: Likewise.
33705         * modules/unistr/u8-strdup: Likewise.
33706         * modules/unistr/u8-strlen: Likewise.
33707         * modules/unistr/u8-strmblen: Likewise.
33708         * modules/unistr/u8-strmbtouc: Likewise.
33709         * modules/unistr/u8-strncat: Likewise.
33710         * modules/unistr/u8-strncmp: Likewise.
33711         * modules/unistr/u8-strncpy: Likewise.
33712         * modules/unistr/u8-strnlen: Likewise.
33713         * modules/unistr/u8-strpbrk: Likewise.
33714         * modules/unistr/u8-strrchr: Likewise.
33715         * modules/unistr/u8-strspn: Likewise.
33716         * modules/unistr/u8-strstr: Likewise.
33717         * modules/unistr/u8-strtok: Likewise.
33718         * modules/unistr/u8-to-u16: Likewise.
33719         * modules/unistr/u8-to-u32: Likewise.
33720         * modules/unistr/u8-uctomb: Likewise.
33721         * modules/unistr/u16-check: Likewise.
33722         * modules/unistr/u16-chr: Likewise.
33723         * modules/unistr/u16-cmp: Likewise.
33724         * modules/unistr/u16-cmp2: Likewise.
33725         * modules/unistr/u16-cpy: Likewise.
33726         * modules/unistr/u16-cpy-alloc: Likewise.
33727         * modules/unistr/u16-endswith: Likewise.
33728         * modules/unistr/u16-mblen: Likewise.
33729         * modules/unistr/u16-mbsnlen: Likewise.
33730         * modules/unistr/u16-mbtouc: Likewise.
33731         * modules/unistr/u16-mbtouc-unsafe: Likewise.
33732         * modules/unistr/u16-mbtoucr: Likewise.
33733         * modules/unistr/u16-move: Likewise.
33734         * modules/unistr/u16-next: Likewise.
33735         * modules/unistr/u16-prev: Likewise.
33736         * modules/unistr/u16-set: Likewise.
33737         * modules/unistr/u16-startswith: Likewise.
33738         * modules/unistr/u16-stpcpy: Likewise.
33739         * modules/unistr/u16-stpncpy: Likewise.
33740         * modules/unistr/u16-strcat: Likewise.
33741         * modules/unistr/u16-strchr: Likewise.
33742         * modules/unistr/u16-strcmp: Likewise.
33743         * modules/unistr/u16-strcoll: Likewise.
33744         * modules/unistr/u16-strcpy: Likewise.
33745         * modules/unistr/u16-strcspn: Likewise.
33746         * modules/unistr/u16-strdup: Likewise.
33747         * modules/unistr/u16-strlen: Likewise.
33748         * modules/unistr/u16-strmblen: Likewise.
33749         * modules/unistr/u16-strmbtouc: Likewise.
33750         * modules/unistr/u16-strncat: Likewise.
33751         * modules/unistr/u16-strncmp: Likewise.
33752         * modules/unistr/u16-strncpy: Likewise.
33753         * modules/unistr/u16-strnlen: Likewise.
33754         * modules/unistr/u16-strpbrk: Likewise.
33755         * modules/unistr/u16-strrchr: Likewise.
33756         * modules/unistr/u16-strspn: Likewise.
33757         * modules/unistr/u16-strstr: Likewise.
33758         * modules/unistr/u16-strtok: Likewise.
33759         * modules/unistr/u16-to-u32: Likewise.
33760         * modules/unistr/u16-to-u8: Likewise.
33761         * modules/unistr/u16-uctomb: Likewise.
33762         * modules/unistr/u32-check: Likewise.
33763         * modules/unistr/u32-chr: Likewise.
33764         * modules/unistr/u32-cmp: Likewise.
33765         * modules/unistr/u32-cmp2: Likewise.
33766         * modules/unistr/u32-cpy: Likewise.
33767         * modules/unistr/u32-cpy-alloc: Likewise.
33768         * modules/unistr/u32-endswith: Likewise.
33769         * modules/unistr/u32-mblen: Likewise.
33770         * modules/unistr/u32-mbsnlen: Likewise.
33771         * modules/unistr/u32-mbtouc: Likewise.
33772         * modules/unistr/u32-mbtouc-unsafe: Likewise.
33773         * modules/unistr/u32-mbtoucr: Likewise.
33774         * modules/unistr/u32-move: Likewise.
33775         * modules/unistr/u32-next: Likewise.
33776         * modules/unistr/u32-prev: Likewise.
33777         * modules/unistr/u32-set: Likewise.
33778         * modules/unistr/u32-startswith: Likewise.
33779         * modules/unistr/u32-stpcpy: Likewise.
33780         * modules/unistr/u32-stpncpy: Likewise.
33781         * modules/unistr/u32-strcat: Likewise.
33782         * modules/unistr/u32-strchr: Likewise.
33783         * modules/unistr/u32-strcmp: Likewise.
33784         * modules/unistr/u32-strcoll: Likewise.
33785         * modules/unistr/u32-strcpy: Likewise.
33786         * modules/unistr/u32-strcspn: Likewise.
33787         * modules/unistr/u32-strdup: Likewise.
33788         * modules/unistr/u32-strlen: Likewise.
33789         * modules/unistr/u32-strmblen: Likewise.
33790         * modules/unistr/u32-strmbtouc: Likewise.
33791         * modules/unistr/u32-strncat: Likewise.
33792         * modules/unistr/u32-strncmp: Likewise.
33793         * modules/unistr/u32-strncpy: Likewise.
33794         * modules/unistr/u32-strnlen: Likewise.
33795         * modules/unistr/u32-strpbrk: Likewise.
33796         * modules/unistr/u32-strrchr: Likewise.
33797         * modules/unistr/u32-strspn: Likewise.
33798         * modules/unistr/u32-strstr: Likewise.
33799         * modules/unistr/u32-strtok: Likewise.
33800         * modules/unistr/u32-to-u16: Likewise.
33801         * modules/unistr/u32-to-u8: Likewise.
33802         * modules/unistr/u32-uctomb: Likewise.
33803         * modules/uniwbrk/u8-wordbreaks: Likewise.
33804         * modules/uniwbrk/u16-wordbreaks: Likewise.
33805         * modules/uniwbrk/u32-wordbreaks: Likewise.
33806         * modules/uniwbrk/ulc-wordbreaks: Likewise.
33807         * modules/uniwbrk/wordbreak-property: Likewise.
33808         * modules/uniwidth/u8-strwidth: Likewise.
33809         * modules/uniwidth/u8-width: Likewise.
33810         * modules/uniwidth/u16-strwidth: Likewise.
33811         * modules/uniwidth/u16-width: Likewise.
33812         * modules/uniwidth/u32-strwidth: Likewise.
33813         * modules/uniwidth/u32-width: Likewise.
33814         * modules/uniwidth/width: Likewise.
33815         * modules/unicase/cased-tests (Makefile.am): Link all test programs
33816         with $(LIBUNISTRING).
33817         * modules/unicase/ignorable-tests: Likewise.
33818         * modules/unicase/locale-language-tests: Likewise.
33819         * modules/unicase/tolower-tests: Likewise.
33820         * modules/unicase/totitle-tests: Likewise.
33821         * modules/unicase/toupper-tests: Likewise.
33822         * modules/unicase/u8-casecmp-tests: Likewise.
33823         * modules/unicase/u8-casecoll-tests: Likewise.
33824         * modules/unicase/u8-casefold-tests: Likewise.
33825         * modules/unicase/u8-is-cased-tests: Likewise.
33826         * modules/unicase/u8-is-casefolded-tests: Likewise.
33827         * modules/unicase/u8-is-lowercase-tests: Likewise.
33828         * modules/unicase/u8-is-titlecase-tests: Likewise.
33829         * modules/unicase/u8-is-uppercase-tests: Likewise.
33830         * modules/unicase/u8-tolower-tests: Likewise.
33831         * modules/unicase/u8-totitle-tests: Likewise.
33832         * modules/unicase/u8-toupper-tests: Likewise.
33833         * modules/unicase/u16-casecmp-tests: Likewise.
33834         * modules/unicase/u16-casecoll-tests: Likewise.
33835         * modules/unicase/u16-casefold-tests: Likewise.
33836         * modules/unicase/u16-is-cased-tests: Likewise.
33837         * modules/unicase/u16-is-casefolded-tests: Likewise.
33838         * modules/unicase/u16-is-lowercase-tests: Likewise.
33839         * modules/unicase/u16-is-titlecase-tests: Likewise.
33840         * modules/unicase/u16-is-uppercase-tests: Likewise.
33841         * modules/unicase/u16-tolower-tests: Likewise.
33842         * modules/unicase/u16-totitle-tests: Likewise.
33843         * modules/unicase/u16-toupper-tests: Likewise.
33844         * modules/unicase/u32-casecmp-tests: Likewise.
33845         * modules/unicase/u32-casecoll-tests: Likewise.
33846         * modules/unicase/u32-casefold-tests: Likewise.
33847         * modules/unicase/u32-is-cased-tests: Likewise.
33848         * modules/unicase/u32-is-casefolded-tests: Likewise.
33849         * modules/unicase/u32-is-lowercase-tests: Likewise.
33850         * modules/unicase/u32-is-titlecase-tests: Likewise.
33851         * modules/unicase/u32-is-uppercase-tests: Likewise.
33852         * modules/unicase/u32-tolower-tests: Likewise.
33853         * modules/unicase/u32-totitle-tests: Likewise.
33854         * modules/unicase/u32-toupper-tests: Likewise.
33855         * modules/unicase/ulc-casecmp-tests: Likewise.
33856         * modules/unicase/ulc-casecoll-tests: Likewise.
33857         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
33858         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
33859         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
33860         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
33861         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
33862         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
33863         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
33864         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
33865         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
33866         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
33867         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
33868         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
33869         * modules/unictype/bidicategory-byname-tests: Likewise.
33870         * modules/unictype/bidicategory-name-tests: Likewise.
33871         * modules/unictype/bidicategory-of-tests: Likewise.
33872         * modules/unictype/bidicategory-test-tests: Likewise.
33873         * modules/unictype/block-list-tests: Likewise.
33874         * modules/unictype/block-of-tests: Likewise.
33875         * modules/unictype/block-test-tests: Likewise.
33876         * modules/unictype/category-C-tests: Likewise.
33877         * modules/unictype/category-Cc-tests: Likewise.
33878         * modules/unictype/category-Cf-tests: Likewise.
33879         * modules/unictype/category-Cn-tests: Likewise.
33880         * modules/unictype/category-Co-tests: Likewise.
33881         * modules/unictype/category-Cs-tests: Likewise.
33882         * modules/unictype/category-L-tests: Likewise.
33883         * modules/unictype/category-Ll-tests: Likewise.
33884         * modules/unictype/category-Lm-tests: Likewise.
33885         * modules/unictype/category-Lo-tests: Likewise.
33886         * modules/unictype/category-Lt-tests: Likewise.
33887         * modules/unictype/category-Lu-tests: Likewise.
33888         * modules/unictype/category-M-tests: Likewise.
33889         * modules/unictype/category-Mc-tests: Likewise.
33890         * modules/unictype/category-Me-tests: Likewise.
33891         * modules/unictype/category-Mn-tests: Likewise.
33892         * modules/unictype/category-N-tests: Likewise.
33893         * modules/unictype/category-Nd-tests: Likewise.
33894         * modules/unictype/category-Nl-tests: Likewise.
33895         * modules/unictype/category-No-tests: Likewise.
33896         * modules/unictype/category-P-tests: Likewise.
33897         * modules/unictype/category-Pc-tests: Likewise.
33898         * modules/unictype/category-Pd-tests: Likewise.
33899         * modules/unictype/category-Pe-tests: Likewise.
33900         * modules/unictype/category-Pf-tests: Likewise.
33901         * modules/unictype/category-Pi-tests: Likewise.
33902         * modules/unictype/category-Po-tests: Likewise.
33903         * modules/unictype/category-Ps-tests: Likewise.
33904         * modules/unictype/category-S-tests: Likewise.
33905         * modules/unictype/category-Sc-tests: Likewise.
33906         * modules/unictype/category-Sk-tests: Likewise.
33907         * modules/unictype/category-Sm-tests: Likewise.
33908         * modules/unictype/category-So-tests: Likewise.
33909         * modules/unictype/category-Z-tests: Likewise.
33910         * modules/unictype/category-Zl-tests: Likewise.
33911         * modules/unictype/category-Zp-tests: Likewise.
33912         * modules/unictype/category-Zs-tests: Likewise.
33913         * modules/unictype/category-and-not-tests: Likewise.
33914         * modules/unictype/category-and-tests: Likewise.
33915         * modules/unictype/category-byname-tests: Likewise.
33916         * modules/unictype/category-name-tests: Likewise.
33917         * modules/unictype/category-none-tests: Likewise.
33918         * modules/unictype/category-of-tests: Likewise.
33919         * modules/unictype/category-or-tests: Likewise.
33920         * modules/unictype/category-test-withtable-tests: Likewise.
33921         * modules/unictype/combining-class-tests: Likewise.
33922         * modules/unictype/ctype-alnum-tests: Likewise.
33923         * modules/unictype/ctype-alpha-tests: Likewise.
33924         * modules/unictype/ctype-blank-tests: Likewise.
33925         * modules/unictype/ctype-cntrl-tests: Likewise.
33926         * modules/unictype/ctype-digit-tests: Likewise.
33927         * modules/unictype/ctype-graph-tests: Likewise.
33928         * modules/unictype/ctype-lower-tests: Likewise.
33929         * modules/unictype/ctype-print-tests: Likewise.
33930         * modules/unictype/ctype-punct-tests: Likewise.
33931         * modules/unictype/ctype-space-tests: Likewise.
33932         * modules/unictype/ctype-upper-tests: Likewise.
33933         * modules/unictype/ctype-xdigit-tests: Likewise.
33934         * modules/unictype/decimal-digit-tests: Likewise.
33935         * modules/unictype/digit-tests: Likewise.
33936         * modules/unictype/mirror-tests: Likewise.
33937         * modules/unictype/numeric-tests: Likewise.
33938         * modules/unictype/property-alphabetic-tests: Likewise.
33939         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
33940         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
33941         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
33942         * modules/unictype/property-bidi-block-separator-tests: Likewise.
33943         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
33944         * modules/unictype/property-bidi-common-separator-tests: Likewise.
33945         * modules/unictype/property-bidi-control-tests: Likewise.
33946         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
33947         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
33948         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
33949         * modules/unictype/property-bidi-european-digit-tests: Likewise.
33950         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
33951         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
33952         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
33953         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
33954         * modules/unictype/property-bidi-pdf-tests: Likewise.
33955         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
33956         * modules/unictype/property-bidi-whitespace-tests: Likewise.
33957         * modules/unictype/property-byname-tests: Likewise.
33958         * modules/unictype/property-combining-tests: Likewise.
33959         * modules/unictype/property-composite-tests: Likewise.
33960         * modules/unictype/property-currency-symbol-tests: Likewise.
33961         * modules/unictype/property-dash-tests: Likewise.
33962         * modules/unictype/property-decimal-digit-tests: Likewise.
33963         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
33964         * modules/unictype/property-deprecated-tests: Likewise.
33965         * modules/unictype/property-diacritic-tests: Likewise.
33966         * modules/unictype/property-extender-tests: Likewise.
33967         * modules/unictype/property-format-control-tests: Likewise.
33968         * modules/unictype/property-grapheme-base-tests: Likewise.
33969         * modules/unictype/property-grapheme-extend-tests: Likewise.
33970         * modules/unictype/property-grapheme-link-tests: Likewise.
33971         * modules/unictype/property-hex-digit-tests: Likewise.
33972         * modules/unictype/property-hyphen-tests: Likewise.
33973         * modules/unictype/property-id-continue-tests: Likewise.
33974         * modules/unictype/property-id-start-tests: Likewise.
33975         * modules/unictype/property-ideographic-tests: Likewise.
33976         * modules/unictype/property-ids-binary-operator-tests: Likewise.
33977         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
33978         * modules/unictype/property-ignorable-control-tests: Likewise.
33979         * modules/unictype/property-iso-control-tests: Likewise.
33980         * modules/unictype/property-join-control-tests: Likewise.
33981         * modules/unictype/property-left-of-pair-tests: Likewise.
33982         * modules/unictype/property-line-separator-tests: Likewise.
33983         * modules/unictype/property-logical-order-exception-tests: Likewise.
33984         * modules/unictype/property-lowercase-tests: Likewise.
33985         * modules/unictype/property-math-tests: Likewise.
33986         * modules/unictype/property-non-break-tests: Likewise.
33987         * modules/unictype/property-not-a-character-tests: Likewise.
33988         * modules/unictype/property-numeric-tests: Likewise.
33989         * modules/unictype/property-other-alphabetic-tests: Likewise.
33990         * modules/unictype/property-other-default-ignorable-code-point-tests:
33991         Likewise.
33992         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
33993         * modules/unictype/property-other-id-continue-tests: Likewise.
33994         * modules/unictype/property-other-id-start-tests: Likewise.
33995         * modules/unictype/property-other-lowercase-tests: Likewise.
33996         * modules/unictype/property-other-math-tests: Likewise.
33997         * modules/unictype/property-other-uppercase-tests: Likewise.
33998         * modules/unictype/property-paired-punctuation-tests: Likewise.
33999         * modules/unictype/property-paragraph-separator-tests: Likewise.
34000         * modules/unictype/property-pattern-syntax-tests: Likewise.
34001         * modules/unictype/property-pattern-white-space-tests: Likewise.
34002         * modules/unictype/property-private-use-tests: Likewise.
34003         * modules/unictype/property-punctuation-tests: Likewise.
34004         * modules/unictype/property-quotation-mark-tests: Likewise.
34005         * modules/unictype/property-radical-tests: Likewise.
34006         * modules/unictype/property-sentence-terminal-tests: Likewise.
34007         * modules/unictype/property-soft-dotted-tests: Likewise.
34008         * modules/unictype/property-space-tests: Likewise.
34009         * modules/unictype/property-terminal-punctuation-tests: Likewise.
34010         * modules/unictype/property-test-tests: Likewise.
34011         * modules/unictype/property-titlecase-tests: Likewise.
34012         * modules/unictype/property-unassigned-code-value-tests: Likewise.
34013         * modules/unictype/property-unified-ideograph-tests: Likewise.
34014         * modules/unictype/property-uppercase-tests: Likewise.
34015         * modules/unictype/property-variation-selector-tests: Likewise.
34016         * modules/unictype/property-white-space-tests: Likewise.
34017         * modules/unictype/property-xid-continue-tests: Likewise.
34018         * modules/unictype/property-xid-start-tests: Likewise.
34019         * modules/unictype/property-zero-width-tests: Likewise.
34020         * modules/unictype/scripts-tests: Likewise.
34021         * modules/unictype/syntax-c-ident-tests: Likewise.
34022         * modules/unictype/syntax-c-whitespace-tests: Likewise.
34023         * modules/unictype/syntax-java-ident-tests: Likewise.
34024         * modules/unictype/syntax-java-whitespace-tests: Likewise.
34025         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
34026         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
34027         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
34028         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
34029         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
34030         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
34031         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
34032         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
34033         * modules/uniname/uniname-tests: Likewise.
34034         * modules/uninorm/canonical-decomposition-tests: Likewise.
34035         * modules/uninorm/compat-decomposition-tests: Likewise.
34036         * modules/uninorm/composition-tests: Likewise.
34037         * modules/uninorm/decomposing-form-tests: Likewise.
34038         * modules/uninorm/decomposition-tests: Likewise.
34039         * modules/uninorm/filter-tests: Likewise.
34040         * modules/uninorm/nfc-tests: Likewise.
34041         * modules/uninorm/nfd-tests: Likewise.
34042         * modules/uninorm/nfkc-tests: Likewise.
34043         * modules/uninorm/nfkd-tests: Likewise.
34044         * modules/uninorm/u8-normcmp-tests: Likewise.
34045         * modules/uninorm/u8-normcoll-tests: Likewise.
34046         * modules/uninorm/u16-normcmp-tests: Likewise.
34047         * modules/uninorm/u16-normcoll-tests: Likewise.
34048         * modules/uninorm/u32-normcmp-tests: Likewise.
34049         * modules/uninorm/u32-normcoll-tests: Likewise.
34050         * modules/unistdio/u8-asnprintf-tests: Likewise.
34051         * modules/unistdio/u8-vasnprintf-tests: Likewise.
34052         * modules/unistdio/u8-vasprintf-tests: Likewise.
34053         * modules/unistdio/u8-vsnprintf-tests: Likewise.
34054         * modules/unistdio/u8-vsprintf-tests: Likewise.
34055         * modules/unistdio/u16-asnprintf-tests: Likewise.
34056         * modules/unistdio/u16-vasnprintf-tests: Likewise.
34057         * modules/unistdio/u16-vasprintf-tests: Likewise.
34058         * modules/unistdio/u16-vsnprintf-tests: Likewise.
34059         * modules/unistdio/u16-vsprintf-tests: Likewise.
34060         * modules/unistdio/u32-asnprintf-tests: Likewise.
34061         * modules/unistdio/u32-vasnprintf-tests: Likewise.
34062         * modules/unistdio/u32-vasprintf-tests: Likewise.
34063         * modules/unistdio/u32-vsnprintf-tests: Likewise.
34064         * modules/unistdio/u32-vsprintf-tests: Likewise.
34065         * modules/unistdio/ulc-asnprintf-tests: Likewise.
34066         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
34067         * modules/unistdio/ulc-vasprintf-tests: Likewise.
34068         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
34069         * modules/unistdio/ulc-vsprintf-tests: Likewise.
34070         * modules/unistr/u8-check-tests: Likewise.
34071         * modules/unistr/u8-chr-tests: Likewise.
34072         * modules/unistr/u8-cmp-tests: Likewise.
34073         * modules/unistr/u8-cmp2-tests: Likewise.
34074         * modules/unistr/u8-cpy-alloc-tests: Likewise.
34075         * modules/unistr/u8-cpy-tests: Likewise.
34076         * modules/unistr/u8-mblen-tests: Likewise.
34077         * modules/unistr/u8-mbsnlen-tests: Likewise.
34078         * modules/unistr/u8-mbtouc-tests: Likewise.
34079         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
34080         * modules/unistr/u8-mbtoucr-tests: Likewise.
34081         * modules/unistr/u8-move-tests: Likewise.
34082         * modules/unistr/u8-next-tests: Likewise.
34083         * modules/unistr/u8-prev-tests: Likewise.
34084         * modules/unistr/u8-set-tests: Likewise.
34085         * modules/unistr/u8-stpcpy-tests: Likewise.
34086         * modules/unistr/u8-stpncpy-tests: Likewise.
34087         * modules/unistr/u8-strcat-tests: Likewise.
34088         * modules/unistr/u8-strcmp-tests: Likewise.
34089         * modules/unistr/u8-strcoll-tests: Likewise.
34090         * modules/unistr/u8-strcpy-tests: Likewise.
34091         * modules/unistr/u8-strdup-tests: Likewise.
34092         * modules/unistr/u8-strlen-tests: Likewise.
34093         * modules/unistr/u8-strmblen-tests: Likewise.
34094         * modules/unistr/u8-strmbtouc-tests: Likewise.
34095         * modules/unistr/u8-strncat-tests: Likewise.
34096         * modules/unistr/u8-strncmp-tests: Likewise.
34097         * modules/unistr/u8-strncpy-tests: Likewise.
34098         * modules/unistr/u8-strnlen-tests: Likewise.
34099         * modules/unistr/u8-to-u16-tests: Likewise.
34100         * modules/unistr/u8-to-u32-tests: Likewise.
34101         * modules/unistr/u8-uctomb-tests: Likewise.
34102         * modules/unistr/u16-check-tests: Likewise.
34103         * modules/unistr/u16-chr-tests: Likewise.
34104         * modules/unistr/u16-cmp-tests: Likewise.
34105         * modules/unistr/u16-cmp2-tests: Likewise.
34106         * modules/unistr/u16-cpy-alloc-tests: Likewise.
34107         * modules/unistr/u16-cpy-tests: Likewise.
34108         * modules/unistr/u16-mblen-tests: Likewise.
34109         * modules/unistr/u16-mbsnlen-tests: Likewise.
34110         * modules/unistr/u16-mbtouc-tests: Likewise.
34111         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
34112         * modules/unistr/u16-mbtoucr-tests: Likewise.
34113         * modules/unistr/u16-move-tests: Likewise.
34114         * modules/unistr/u16-next-tests: Likewise.
34115         * modules/unistr/u16-prev-tests: Likewise.
34116         * modules/unistr/u16-set-tests: Likewise.
34117         * modules/unistr/u16-stpcpy-tests: Likewise.
34118         * modules/unistr/u16-stpncpy-tests: Likewise.
34119         * modules/unistr/u16-strcat-tests: Likewise.
34120         * modules/unistr/u16-strcmp-tests: Likewise.
34121         * modules/unistr/u16-strcoll-tests: Likewise.
34122         * modules/unistr/u16-strcpy-tests: Likewise.
34123         * modules/unistr/u16-strdup-tests: Likewise.
34124         * modules/unistr/u16-strlen-tests: Likewise.
34125         * modules/unistr/u16-strmblen-tests: Likewise.
34126         * modules/unistr/u16-strmbtouc-tests: Likewise.
34127         * modules/unistr/u16-strncat-tests: Likewise.
34128         * modules/unistr/u16-strncmp-tests: Likewise.
34129         * modules/unistr/u16-strncpy-tests: Likewise.
34130         * modules/unistr/u16-strnlen-tests: Likewise.
34131         * modules/unistr/u16-to-u32-tests: Likewise.
34132         * modules/unistr/u16-to-u8-tests: Likewise.
34133         * modules/unistr/u16-uctomb-tests: Likewise.
34134         * modules/unistr/u32-check-tests: Likewise.
34135         * modules/unistr/u32-chr-tests: Likewise.
34136         * modules/unistr/u32-cmp-tests: Likewise.
34137         * modules/unistr/u32-cmp2-tests: Likewise.
34138         * modules/unistr/u32-cpy-alloc-tests: Likewise.
34139         * modules/unistr/u32-cpy-tests: Likewise.
34140         * modules/unistr/u32-mblen-tests: Likewise.
34141         * modules/unistr/u32-mbsnlen-tests: Likewise.
34142         * modules/unistr/u32-mbtouc-tests: Likewise.
34143         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
34144         * modules/unistr/u32-mbtoucr-tests: Likewise.
34145         * modules/unistr/u32-move-tests: Likewise.
34146         * modules/unistr/u32-next-tests: Likewise.
34147         * modules/unistr/u32-prev-tests: Likewise.
34148         * modules/unistr/u32-set-tests: Likewise.
34149         * modules/unistr/u32-stpcpy-tests: Likewise.
34150         * modules/unistr/u32-stpncpy-tests: Likewise.
34151         * modules/unistr/u32-strcat-tests: Likewise.
34152         * modules/unistr/u32-strcmp-tests: Likewise.
34153         * modules/unistr/u32-strcoll-tests: Likewise.
34154         * modules/unistr/u32-strcpy-tests: Likewise.
34155         * modules/unistr/u32-strdup-tests: Likewise.
34156         * modules/unistr/u32-strlen-tests: Likewise.
34157         * modules/unistr/u32-strmblen-tests: Likewise.
34158         * modules/unistr/u32-strmbtouc-tests: Likewise.
34159         * modules/unistr/u32-strncat-tests: Likewise.
34160         * modules/unistr/u32-strncmp-tests: Likewise.
34161         * modules/unistr/u32-strncpy-tests: Likewise.
34162         * modules/unistr/u32-strnlen-tests: Likewise.
34163         * modules/unistr/u32-to-u16-tests: Likewise.
34164         * modules/unistr/u32-to-u8-tests: Likewise.
34165         * modules/unistr/u32-uctomb-tests: Likewise.
34166         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
34167         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
34168         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
34169         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
34170         * modules/uniwidth/u8-strwidth-tests: Likewise.
34171         * modules/uniwidth/u8-width-tests: Likewise.
34172         * modules/uniwidth/u16-strwidth-tests: Likewise.
34173         * modules/uniwidth/u16-width-tests: Likewise.
34174         * modules/uniwidth/u32-strwidth-tests: Likewise.
34175         * modules/uniwidth/u32-width-tests: Likewise.
34176         * modules/uniwidth/width-tests: Likewise.
34177
34178 2010-05-18  Richard Jones  <rjones@redhat.com>
34179
34180         doc: users.txt: list hivex
34181         * users.txt: Add hivex.
34182
34183 2010-05-18  Richard Jones  <rjones@redhat.com>
34184
34185         doc: users.txt: list febootstrap
34186         * users.txt: Add febootstrap.
34187
34188 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
34189
34190         bootstrap: fix an error when gnulib is not used as a git submodule
34191         * build-aux/bootstrap (gnulib_path): If its length is zero then
34192         assign "gnulib" to it.
34193         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
34194
34195 2010-05-16  Bruno Haible  <bruno@clisp.org>
34196
34197         Avoid autoconf warnings about AM_ICONV.
34198         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
34199         2.64.
34200
34201 2010-05-16  Bruno Haible  <bruno@clisp.org>
34202
34203         absolute-header: Make the macro usable in more situations.
34204         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
34205         from gl_ABSOLUTE_HEADER.
34206         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
34207
34208 2010-05-16  James Youngman  <jay@gnu.org>
34209
34210         doc: update users.txt
34211         * users.txt: Add CSSC.
34212
34213 2010-05-16  Jim Meyering  <meyering@redhat.com>
34214
34215         init.sh: fix an error in the previous change; add more comments
34216         * tests/init.sh: Compare exit code in loop against 9, not 2.
34217         Patch by Bruno Haible.
34218         Make the two tests more similar by adding an empty "then" clause.
34219         Add comments.
34220
34221         init.sh: avoid unnecessary shell re-exec
34222         * tests/init.sh: Improve the re-exec-required check to first test the
34223         current shell.  If it passes the test, do not search for a shell that
34224         does pass, and do not re-exec.  This test is particularly contorted to
34225         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
34226         of $(...) evokes a syntax error and causes immediate shell exit with
34227         status 2.  Bruno Haible reported that the re-exec made it impossible
34228         to single-step through any init.sh-using script.
34229
34230 2010-05-16  Bruno Haible  <bruno@clisp.org>
34231
34232         Fix collision between gnulib's and libintl's printf replacements.
34233         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
34234         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
34235         (printf): When using GNU C, map the __printf__ function to rpl_printf
34236         via __asm__. When not using GNU C, define rpl_printf instead of
34237         __printf__.
34238         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
34239         commit.
34240         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
34241         commit.
34242         * m4/asm-underscore.m4: New file.
34243         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
34244         * modules/stdio (Files): Add m4/asm-underscore.m4.
34245         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
34246         Reported by Ben Pfaff.
34247
34248 2010-05-16  Bruno Haible  <bruno@clisp.org>
34249
34250         verify: Avoid skipping the test on openSUSE 11.0.
34251         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
34252
34253 2010-05-13  Bruno Haible  <bruno@clisp.org>
34254
34255         Avoid useless warnings from G++.
34256         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
34257         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
34258         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34259
34260 2010-05-11  Jim Meyering  <meyering@redhat.com>
34261
34262         maint.mk: tweak preceding change
34263         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
34264         regexps tighter by anchoring at EOL, and make the new group "shy"
34265         for slightly decreased overhead.
34266
34267 2010-05-11  Eric Blake  <eblake@redhat.com>
34268
34269         maint.mk: gnulib doesn't guarantee NSIG
34270         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
34271
34272 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34273
34274         test-pwrite.c: Remove unused variable declaration.
34275         * tests/test-pwrite.c (main): Remove read_buf declaration.
34276
34277         Remove useless test-pwrite.sh file.
34278         * tests/test-pwrite.sh: Delete file.
34279         * modules/pwrite-tests: Remove references.
34280         Reported by Bruno Haible.
34281
34282 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34283
34284         init.sh: fix a typo
34285         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
34286
34287 2010-05-10  Jim Meyering  <meyering@redhat.com>
34288
34289         maint.mk: avoid using a temporary file in the always-defined-macros check
34290         * top/maint.mk (.re-defmac): Remove rule.
34291         (gl_trap_): Remove definition.
34292         (sc_prohibit_always-defined_macros): Rewrite not to create and
34293         depend on a temporary file.  Instead, depend on GNU grep's ability
34294         to read a list of regular expressions from stdin when given "-f -".
34295
34296 2010-05-09  Bruno Haible  <bruno@clisp.org>
34297
34298         Update to GNU gettext 0.18, part 1.
34299         * m4/gettext.m4: Update to GNU gettext 0.18.
34300         * m4/intl.m4: Likewise.
34301         * m4/po.m4: Likewise.
34302         * modules/gettext (Files): Add m4/fcntl-o.m4.
34303         (configure.ac): Require gettext infrastructure from version 0.18.
34304
34305 2010-05-09  Jim Meyering  <meyering@redhat.com>
34306
34307         init.sh: enable MALLOC_PERTURB_
34308         * tests/init.sh: Enable glibc's malloc-perturbing option.
34309
34310         maint.mk: improve sc_cross_check_PATH_usage_in_tests
34311         With my recent change in init.sh from the two-line form:
34312             -#   : ${srcdir=.}
34313             -#   . "$srcdir/init.sh"; path_prepend_ .
34314             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
34315         I noticed that using the one-line form would cause this test
34316         to fail with a false-positive, or to stop working altogether,
34317         depending on whether help-version changed or all the tests did.
34318         * top/maint.mk (_hv_regex): Remove this definition.
34319         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
34320         (_hv_regex_strong): Use a stronger regex to check for conformance.
34321         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
34322         Give a separate diagnostic for lack of conforming use.
34323
34324         maint.mk: prohibit definition of symbols defined by gnulib
34325         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
34326         definition of symbols defined by gnulib.
34327
34328 2010-05-09  Bruno Haible  <bruno@clisp.org>
34329
34330         acl: Avoid test failure on Cygwin-hosted mingw.
34331         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
34332
34333 2010-05-09  Bruno Haible  <bruno@clisp.org>
34334
34335         error: Use system's fcntl function.
34336         * lib/error.c (fcntl): Undefine.
34337
34338 2010-05-09  Jim Meyering  <meyering@redhat.com>
34339
34340         verify: adjust formatting to be more consistent
34341         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
34342         argument-list '('s, and after one comma.
34343
34344 2010-05-09  Bruno Haible  <bruno@clisp.org>
34345
34346         error: More reliable output on mingw.
34347         * lib/error.c: Include <windows.h>.
34348         (is_open): New function.
34349         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
34350         defined.
34351
34352 2010-05-09  Bruno Haible  <bruno@clisp.org>
34353
34354         vasnprintf: Fix syntax errors in libintl build on mingw.
34355         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
34356         pad_ourselves and prec_ourselves after use.
34357
34358 2010-05-08  Bruno Haible  <bruno@clisp.org>
34359
34360         * lib/config.charset: Update comments for Cygwin 1.7.
34361         * lib/localcharset.c: Likewise.
34362
34363 2010-05-07  Jim Meyering  <meyering@redhat.com>
34364
34365         init.sh: improve comments
34366         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
34367         . "${srcdir=.}/init.sh"; path_prepend_ .
34368         Add a note about path_prepend_ and the alternative of using
34369         TESTS_ENVIRONMENT.
34370
34371 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34372
34373         exclude: Unescape hashed patterns in wildcard mode.
34374         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
34375         to the hash list.
34376         * tests/test-exclude8.sh: New test case.
34377         * modules/exclude-tests: Add new test.
34378
34379 2010-05-05  Eric Blake  <eblake@redhat.com>
34380
34381         verify: automate tests
34382         * modules/verify-tests: New module.
34383         * tests/test-verify.sh: New file.
34384         * tests/test-verify.c: Guard each negative test with a unique id.
34385         Also avoid warning about unused left hand of comma expressions.
34386
34387 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
34388
34389         Further improvements to verify.h, suggested by Eric Blake.
34390         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
34391         the GL_* versions, to avoid collision with OpenGL.
34392         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
34393         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
34394         than testing merely whether it's defined.
34395
34396         Modify verify.h to pacify gcc -Wredundant_decls.
34397         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
34398         These use the prefix "GL_" since they're likely to be useful elsewhere.
34399         We may need to break them out into a different .h file.
34400         (__COUNTER__): Define to 0 if the compiler doesn't support it.
34401         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
34402         of verify_function__.
34403
34404 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34405
34406         Tests for module pwrite.
34407         * modules/pwrite-tests: New file.
34408         * tests/test-pwrite.sh: New file.
34409         * tests/test-pwrite.c: New file.
34410
34411         New module pwrite.
34412         * lib/unistd.in.h (pwrite): New declaration.
34413         * lib/pwrite.c: New file, from glibc with modifications.
34414         * m4/pwrite.m4: New file.
34415         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
34416         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
34417         REPLACE_PWRITE.
34418         * modules/pwrite: New file.
34419         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
34420         REPLACE_PWRITE.
34421         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
34422         * doc/posix-functions/pwrite.texi: Mention the new module.
34423
34424 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34425
34426         pread: Update documentation.
34427         * doc/posix-functions/pread.texi: Mention the 'pread' module.
34428
34429 2010-05-04  Eric Blake  <eblake@redhat.com>
34430
34431         docs: update cygwin progress
34432         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
34433         this bug.
34434         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
34435         Added in cygwin 1.7.2.
34436         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
34437         Likewise.
34438         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
34439         Likewise.
34440         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34441         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
34442         * doc/glibc-functions/accept4.texi (accept4): Likewise.
34443         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
34444         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
34445         Mention nproc module.
34446         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
34447         bug in cygwin 1.7.5 addition.
34448         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
34449         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
34450         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
34451         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
34452         1.7.5.
34453         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
34454         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
34455         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
34456         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
34457         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
34458         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
34459         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
34460         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
34461         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
34462         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
34463         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
34464         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
34465         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
34466         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
34467         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
34468         Likewise.
34469         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
34470         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
34471         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
34472         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
34473         Likewise.
34474         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
34475         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
34476         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
34477         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
34478         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
34479         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
34480         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
34481         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
34482         Likewise.
34483         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
34484         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
34485         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
34486         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
34487         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
34488         Likewise.
34489         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
34490         Likewise.
34491         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
34492         Likewise.
34493         * doc/glibc-functions/xdrrec_endofrecord.texi
34494         (xdrrec_endofrecord): Likewise.
34495         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
34496         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
34497         Likewise.
34498         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
34499         Likewise.
34500
34501 2010-05-04  Jim Meyering  <meyering@redhat.com>
34502
34503         gendocs.sh: make its "-s FILE" option more useful
34504         * build-aux/gendocs.sh: When honoring the -s FILE option, update
34505         $PACKAGE to reflect the probably-different basename of "FILE".
34506
34507 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34508
34509         bootstrap: don't ignore download_po_files failure
34510         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
34511         failure.
34512
34513 2010-05-03  Jim Meyering  <meyering@redhat.com>
34514
34515         maint.mk: allow to pass options to gendocs.sh
34516         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
34517         (gendocs_options_): New overridable variable.
34518
34519         gnu-web-doc-update: don't ignore configure or build failure
34520         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
34521
34522         announce-gen: backslash-escape '@'s in --help output
34523         * build-aux/announce-gen: Fix syntax errors.
34524
34525         maint.mk, announce-gen: allow project-specific announcement mail headers
34526         * top/maint.mk (translation_project_): Define default.
34527         (announcement_Cc_, announcement_mail_headers_): Likewise.
34528         (announcement): Invoke announce-gen with new --mail-headers option.
34529         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
34530
34531         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
34532         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
34533         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
34534         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
34535         line in the "err2" output file when running "make check" in verbose
34536         mode (i.e., with set -x enabled).
34537
34538 2010-05-03  Bruno Haible  <bruno@clisp.org>
34539
34540         wctob: Fix for weird platforms.
34541         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
34542         argument value.
34543
34544 2010-05-03  Jim Meyering  <meyering@redhat.com>
34545
34546         maint.mk: prohibit unwarranted use of <strings.h>
34547         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
34548         strings.h in a file that does not also use strcasecmp, strncasecmp,
34549         ffs or ffsll.
34550
34551         maint.mk: remove obsolete comments
34552         * top/maint.mk: Remove stale, commented-out rules.
34553
34554 2010-05-02  Bruno Haible  <bruno@clisp.org>
34555
34556         wcwidth: Declare also when it's aliased.
34557         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
34558         macro.
34559
34560 2010-05-02  Bruno Haible  <bruno@clisp.org>
34561
34562         Fix regression from 2010-04-25.
34563         * gnulib-tool (func_modules_transitive_closure): Check the status of
34564         all modules, not only of the tests that are of the form foo-tests where
34565         foo is a module.
34566
34567 2010-05-02  Bruno Haible  <bruno@clisp.org>
34568
34569         wctob: Work around nasty Cygwin 1.7.2 bug.
34570         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
34571         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
34572
34573 2010-05-01  Bruno Haible  <bruno@clisp.org>
34574
34575         fpurge: Sharper test.
34576         * tests/test-fpurge.c (main): Add one more ftell check.
34577         * modules/fpurge-tests (Depends-on): Add ftell.
34578         Suggested by Eric Blake.
34579
34580 2010-05-01  Bruno Haible  <bruno@clisp.org>
34581
34582         ftello: Another test.
34583         * tests/test-ftello3.c: New file.
34584         * modules/ftello-tests (Files): Add it.
34585         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34586         MOSTLYCLEANFILES.
34587
34588         ftell: Another test.
34589         * tests/test-ftell3.c: New file.
34590         * modules/ftell-tests (Files): Add it.
34591         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34592         MOSTLYCLEANFILES.
34593
34594 2010-05-01  Bruno Haible  <bruno@clisp.org>
34595
34596         ftell, ftello: Work around Solaris bug.
34597         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
34598         * lib/ftello.c: Include stdio-impl.h.
34599         (ftello): On Solaris, when _IOWRT is set, compute the result without
34600         looking at _IOREAD.
34601         * modules/ftello (Files): Add lib/stdio-impl.h.
34602         * doc/posix-functions/ftell.texi: Mention Solaris bug.
34603         * doc/posix-functions/ftello.texi: Likewise.
34604         Reported by Eric Blake.
34605
34606 2010-05-01  Bruno Haible  <bruno@clisp.org>
34607
34608         freading: Adapt to special meaning of _IOREAD flag on Solaris.
34609         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
34610         the _IOWRT flag is also set.
34611
34612 2010-05-01  Bruno Haible  <bruno@clisp.org>
34613
34614         Fix doc about a HP-UX stdio bug.
34615         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
34616         * doc/posix-functions/ftello.texi: Likewise.
34617
34618 2010-05-01  Bruno Haible  <bruno@clisp.org>
34619
34620         lseek test: Fix failure on Solaris.
34621         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
34622         output.
34623
34624 2010-04-30  Jim Meyering  <meyering@redhat.com>
34625
34626         bootstrap: don't ignore failure to generate po*/Makevars
34627         * build-aux/bootstrap (with_gettext): Don't ignore failure
34628         to create po/Makevars or runtime-po/Makevars.
34629
34630 2010-04-29  Eric Blake  <eblake@redhat.com>
34631
34632         headers: relax license to LGPLv2+
34633         * modules/fcntl-h (License): Relax license.
34634         * modules/getopt-posix (License): Likewise.
34635         * modules/locale (License): Likewise.
34636         * modules/math (License): Likewise.
34637         * modules/pty (License): Likewise.
34638         * modules/sched (License): Likewise.
34639         * modules/search (License): Likewise.
34640         * modules/spawn (License): Likewise.
34641         * modules/stdarg (License): Likewise.
34642         * modules/sysexits (License): Likewise.
34643
34644 2010-04-29  Jim Meyering  <meyering@redhat.com>
34645
34646         inttypes: relax license to LGPLv2+
34647         * modules/inttypes (License): Relax license.
34648
34649 2010-04-29  Simon Josefsson  <simon@josefsson.org>
34650
34651         * top/maint.mk (indent): Run twice to produce idempotent results.
34652
34653 2010-04-28  Bruno Haible  <bruno@clisp.org>
34654
34655         getdate: Generate getdate.c in the source directory.
34656         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
34657         MOSTLYCLEANFILES.
34658         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
34659
34660 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
34661
34662         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
34663         is not declared as a const *; avoid warnings in that case.
34664
34665 2010-04-28  Eric Blake  <eblake@redhat.com>
34666
34667         canonicalize-lgpl: avoid compiler warning
34668         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
34669         declaration' / 'extraneous semicolon' warning with some compilers.
34670         Reported by Andreas Gruenbacher.
34671
34672 2010-04-28  Jim Meyering  <meyering@redhat.com>
34673
34674         init.sh: ensure a more reliable exit status when exiting via trap
34675         * tests/init.sh (setup_): Don't rely on $? in signal handler.
34676         Inspired by patches from Dmitry V. Levin.
34677         Also trap on signal 3 (SIGQUIT).
34678
34679 2010-04-27  Bruno Haible  <bruno@clisp.org>
34680
34681         Update doc about utimes().
34682         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
34683         'utimens' module.
34684         Reported by Andreas Gruenbacher <agruen@suse.de>.
34685
34686 2010-04-27  Eric Blake  <eblake@redhat.com>
34687
34688         full-read, full-write: relax license
34689         * modules/full-read (License): Drop to LGPLv2+.
34690         * modules/full-write (License): Likewise.
34691         * modules/safe-read (License): Likewise.
34692         * modules/safe-write (License): Likewise.
34693
34694         pthread: mention library for linking
34695         * modules/pthread (Link): Mention $(LIB_PTHREAD).
34696
34697 2010-04-27  Jim Meyering  <meyering@redhat.com>
34698
34699         maint.mk: fix a bug introduced in last change
34700         * top/maint.mk (gl_assured_headers_): Now that all names are on
34701         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
34702         is not anchored to end of word, it should be adequate.
34703
34704         maint.mk: avoid side-effect in latest syntax-check
34705         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
34706         to run commands via $(shell...), and hence to incur cost only when
34707         the new rule is actually run.
34708
34709         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
34710         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
34711         and use that to create a regexp used to detect all #if HAVE_..._H uses.
34712         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
34713         (gl_assured_headers_, az_, AZ_): Define.
34714         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
34715
34716 2010-04-26  Jim Meyering  <jim@meyering.net>
34717             Bruno Haible  <bruno@clisp.org>
34718
34719         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
34720         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
34721         Prompted by an exchange with Gilles Espinasse.
34722
34723 2010-04-26  Jim Meyering  <meyering@redhat.com>
34724
34725         git-version-gen: aesthetic tweak
34726         * build-aux/git-version-gen: Use "$nl" rather than a literal,
34727         so that the command remains on a single line.
34728
34729 2010-04-26  Eric Blake  <eblake@redhat.com>
34730
34731         git-version-gen: allow use on EBCDIC hosts
34732         * build-aux/git-version-gen (dirty): Use literal rather than tying
34733         ourselves to ascii.
34734         Reported by Steve Goetze.
34735
34736 2010-04-25  Bruno Haible  <bruno@clisp.org>
34737
34738         netdb: Add support for GNULIB_POSIXCHECK.
34739         * lib/netdb.in.h: Include warn-on-use.h.
34740         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
34741         functions are used when GNULIB_POSIXCHECK is defined and the
34742         getaddrinfo module is not in use.
34743         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
34744         freeaddrinfo, gai_strerror, getnameinfo are declared.
34745         * modules/netdb (Depends-on): Add warn-on-use.
34746         (Makefile.am): Include warn-on-use.h in netdb.h.
34747
34748 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
34749
34750         build: avoid "make check" failure without .git/ directory
34751         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
34752         there is no .git/ directory.
34753
34754 2010-04-25  Bruno Haible  <bruno@clisp.org>
34755
34756         ptsname: Fix misuse of ttyname_r.
34757         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
34758         of errno.
34759
34760 2010-04-25  Bruno Haible  <bruno@clisp.org>
34761
34762         ttyname_r: Make it work on Solaris 10.
34763         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
34764         if the system function has the POSIX declaration. Test whether the
34765         function fails if the buffer is less than 128 bytes large.
34766         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
34767         system's ttyname_r function. Provide a reasonably large buffer.
34768         * modules/ttyname_r (Depends-on): Add extensions.
34769         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
34770
34771 2010-04-25  Bruno Haible  <bruno@clisp.org>
34772
34773         Use the 'extensions' module for some more functions on Solaris.
34774         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
34775         module.
34776         * doc/posix-functions/ctime_r.texi: Likewise.
34777         * doc/posix-functions/getgrgid_r.texi: Likewise.
34778         * doc/posix-functions/getgrnam_r.texi: Likewise.
34779         * doc/posix-functions/getpwnam_r.texi: Likewise.
34780         * doc/posix-functions/getpwuid_r.texi: Likewise.
34781         * doc/posix-functions/readdir_r.texi: Likewise.
34782         * doc/posix-functions/sigwait.texi: Likewise.
34783         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
34784         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
34785
34786 2010-04-25  Bruno Haible  <bruno@clisp.org>
34787
34788         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
34789         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
34790         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
34791         * lib/ttyname_r.c: Include <limits.h>.
34792         (ttyname_r): Define using the system's ttyname_r function, if it exists
34793         and not on Solaris.
34794         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
34795         set.
34796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
34797         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
34798         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
34799         Reported by Simon Josefsson.
34800
34801 2010-04-25  Bruno Haible  <bruno@clisp.org>
34802
34803         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
34804         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
34805         * doc/posix-functions/ctime_r.texi: Likewise.
34806         * doc/posix-functions/getgrgid_r.texi: Likewise.
34807         * doc/posix-functions/getgrnam_r.texi: Likewise.
34808         * doc/posix-functions/getlogin_r.texi: Likewise.
34809         * doc/posix-functions/getpwnam_r.texi: Likewise.
34810         * doc/posix-functions/getpwuid_r.texi: Likewise.
34811         * doc/posix-functions/readdir_r.texi: Likewise.
34812         * doc/posix-functions/sigwait.texi: Likewise.
34813         * doc/posix-functions/ttyname_r.texi: Likewise.
34814         Reported by Simon Josefsson.
34815
34816 2010-04-25  Bruno Haible  <bruno@clisp.org>
34817
34818         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
34819         * gnulib-tool (func_usage): Document that --with-*-tests options apply
34820         also to --create-testdir.
34821         (func_acceptable): Don't consider the status of *-tests modules here.
34822         (func_modules_transitive_closure): Consider it here, before including a
34823         test module.
34824         (func_import, func_create_testdir): Set inc_all_direct_tests,
34825         inc_all_indirect_tests.
34826         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
34827         --create-testdir and --create-megatestdir.
34828
34829 2010-04-25  Bruno Haible  <bruno@clisp.org>
34830
34831         gnulib-tool: Add --without-*-tests options.
34832         * gnulib-tool (func_usage): Document the --without-*-tests options.
34833         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
34834         excl_unportable_tests): New variables.
34835         Fail if they are specified with --import or --update.
34836         (func_acceptable): Respect the excl_*_tests variables.
34837         (func_import): Set the excl_*_tests variables to empty.
34838
34839 2010-04-25  Simon Josefsson  <simon@josefsson.org>
34840             Bruno Haible  <bruno@clisp.org>
34841
34842         Work around a MacOS X 10.4 bug with openpty.
34843         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
34844         * tests/test-openpty.c (main): Close the master side explicitly.
34845
34846 2010-04-25  Bruno Haible  <bruno@clisp.org>
34847
34848         strnlen: Fix a C++ test error on MacOS X and Solaris.
34849         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
34850         the function is not declared.
34851         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
34852         Simon Josefsson.
34853
34854 2010-04-24  Bruno Haible  <bruno@clisp.org>
34855
34856         Avoid a gcc warning.
34857         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
34858         of correct type for %08lx directive.
34859         Reported by Eric Blake.
34860
34861 2010-04-24  Bruno Haible  <bruno@clisp.org>
34862
34863         vasnprintf: Correct errno value in case of out-of-memory.
34864         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
34865         or sprintf. Use the errno value from SNPRINTF or sprintf.
34866         Reported by Ian Beckwith <ianb@erislabs.net>.
34867
34868 2010-04-24  Bruno Haible  <bruno@clisp.org>
34869
34870         ansi-c++-opt: Find correct compiler when cross-compiling.
34871         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
34872         AC_CHECK_PROGS.
34873         Reported by Simon Josefsson.
34874
34875 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
34876
34877         vc-list-files: Add support for subversion
34878         * build-aux/vc-list-files: Use "svn list" to generate the list of
34879         files controlled by subversion.
34880
34881 2010-04-23  Jim Meyering  <meyering@redhat.com>
34882
34883         vc-list-files tests: convert to use init.sh
34884         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
34885         path_prepend_.
34886         Use Exit, not exit.
34887         Use skip_ rather than open coding it.
34888         Remove trap set-up and compare definitions.
34889         * tests/test-vc-list-files-git.sh: Likewise.
34890         * modules/vc-list-files-tests (Files): Add tests/init.sh.
34891
34892 2010-04-22  Simon Josefsson  <simon@josefsson.org>
34893
34894         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
34895         backup files.
34896
34897 2010-04-21  Simon Josefsson  <simon@josefsson.org>
34898
34899         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
34900
34901 2010-04-20  Eric Blake  <eblake@redhat.com>
34902
34903         tests: be robust to ignored SIGPIPE
34904         * tests/test-select-in.sh: Consume all output.
34905         * tests/test-lseek.sh: Check correct exit status, while avoiding
34906         EPIPE.
34907
34908 2010-04-20  Simon Josefsson  <simon@josefsson.org>
34909             Bruno Haible  <bruno@clisp.org>
34910
34911         visibility: Don't use -fvisibility if it leads to a warning.
34912         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
34913         yes, don't pretend that visibility works if it leads to a warning.
34914         Reported by Mike Gran <spk121@yahoo.com>.
34915
34916 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
34917
34918         * build-aux/bootstrap: Use "git -h" for testing for supported options
34919         instead of "git --help".  The short-form option only shows a summary,
34920         and doesn't layout the full man page.  Grep for the full option name
34921         in the summary, too.
34922
34923 2010-04-19  Bruno Haible  <bruno@clisp.org>
34924
34925         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
34926         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
34927         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
34928         mention of RELOCATABLE_STRIP.
34929         Reported by Sylvain Beucler <beuc@beuc.net>.
34930
34931 2010-04-19  Bruno Haible  <bruno@clisp.org>
34932
34933         * lib/diffseq.h: Fix typo in comment.
34934         Reported by Eric Blake.
34935
34936 2010-04-19  Bruno Haible  <bruno@clisp.org>
34937
34938         ioctl: Move autoconf macro to a .m4 file.
34939         * m4/ioctl.m4: New file, extracted from modules/ioctl.
34940         * modules/ioctl (Files): Add it.
34941         (configure.ac): Simply invoke gl_FUNC_IOCTL.
34942         Reported by Ian Beckwith <ianb@erislabs.net>.
34943
34944 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
34945             Bruno Haible  <bruno@clisp.org>
34946
34947         diffseq: Accommodate use-case with abstract arrays.
34948         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
34949         is not defined.
34950         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
34951         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
34952
34953 2010-04-18  Bruno Haible  <bruno@clisp.org>
34954
34955         * doc/posix-headers/stdbool.texi: More precise wording.
34956
34957 2010-04-17  Jim Meyering  <meyering@redhat.com>
34958
34959         maint.mk: use gnu-style indentation in an embedded perl script
34960         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
34961         Rename variable: s/two/last_two_bytes/
34962
34963 2010-04-16  Eric Blake  <eblake@redhat.com>
34964
34965         test-stdbool: skip test that fails with Solaris CC
34966         * tests/test-stdbool.c (f): Skip test that causes compilation
34967         error under buggy C++ compiler.
34968         * lib/stdbool.in.h: Document the limitation.
34969         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
34970
34971         setenv: allow compilation with C++
34972         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
34973         register keyword.
34974
34975         stdint: allow test to pass with C++
34976         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
34977
34978         getopt: allow compilation with C++
34979         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
34980         struct.
34981         * lib/getopt.c (_getopt_internal_r): Use correct type.
34982         Reported by Dagobert Michelson, via Joel E. Denny.
34983
34984 2010-04-16  Bruno Haible  <bruno@clisp.org>
34985
34986         Override netdb.h always.
34987         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
34988         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
34989         Reported by Ludovic Courtès <ludo@gnu.org>.
34990
34991 2010-04-15  Bruno Haible  <bruno@clisp.org>
34992
34993         openpty: Fix mistake from 2010-03-21.
34994         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
34995         Reported by Simon Josefsson.
34996
34997 2010-04-15  Eric Blake  <eblake@redhat.com>
34998
34999         test-forkpty: fix expected signature
35000         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
35001         Reported by Simon Josefsson.
35002
35003 2010-04-15  Jim Meyering  <meyering@redhat.com>
35004
35005         maint.mk: texinfo_suffix_re_: correct the default regexp
35006         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
35007
35008         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
35009         make it configurable via texinfo_suffix_re_.
35010
35011 2010-04-14  Eric Blake  <eblake@redhat.com>
35012
35013         strtok_r: relax license to LGPLv2+
35014         * modules/strtok_r (License): Relax license.
35015         Reported by Matthias Bolte.
35016
35017 2010-04-14  Simon Josefsson  <simon@josefsson.org>
35018
35019         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
35020         version 1.4.4 by default instead of requiring the libgcrypt
35021         version used during build.  This makes it possible to use the
35022         application with older but still binary compatible libgcrypt
35023         versions.
35024
35025 2010-04-13  Eric Blake  <eblake@redhat.com>
35026
35027         getopt-gnu: match recent glibc fixes and posix ruling
35028         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
35029         '+' handling, when requesting extensions.
35030         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
35031         'W;' handling.
35032         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
35033         * doc/posix-functions/getopt.texi (getopt): Document this.
35034         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35035         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35036         Likewise.
35037
35038         getopt: merge bug fixes from glibc
35039         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
35040         diagnostics.  Honor '+:' correctly.  Reject ';'.
35041
35042         getopt-posix: detect MacOS bug
35043         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
35044         optind when missing a required argument.
35045         * doc/posix-functions/getopt.texi (getopt): Document the bug.
35046         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35047         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35048         Likewise.
35049
35050         getopt-posix: avoid spurious failure on Solaris
35051         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
35052         an indicator that setting optind=1 is sufficient for reset.
35053
35054         getopt-posix: avoid spurious failure on FreeBSD
35055         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
35056         in POSIX mode, since the m4 test uses it.
35057
35058         gnulib-tool: silence warning on BSD sh
35059         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
35060
35061 2010-04-13  Jim Meyering  <meyering@redhat.com>
35062
35063         doc: users.txt: GNU patch now uses gnulib
35064         * users.txt: Add patch.
35065
35066 2010-04-12  Jim Meyering  <meyering@redhat.com>
35067
35068         maint.mk: generate more concise timing data for syntax-check rules
35069         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
35070         " done" from each line that reports a syntax-check test duration.
35071
35072 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
35073
35074         git-version-gen: use "git update-index..." rather than "git status"
35075         * build-aux/git-version-gen: Use git update-index --refresh, not
35076         "git status".  With some versions of git, "git status" would fail
35077         to update the index and result in an unwarranted "-dirty" suffix.
35078
35079 2010-04-11  Jim Meyering  <meyering@redhat.com>
35080
35081         openat: correct formatting (no semantic change)
35082         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
35083         Suggested by Bruno Haible.
35084
35085 2010-04-11  Bruno Haible  <bruno@clisp.org>
35086
35087         Stricter declaration checking in testdirs.
35088         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35089         If for_tests is true, augment AM_CPPFLAGS to define
35090         GNULIB_STRICT_CHECKING.
35091         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
35092         GNULIB_STRICT_CHECKING is defined, verify that the function is
35093         declared.
35094
35095 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
35096             Bruno Haible  <bruno@clisp.org>
35097
35098         libunistring: Improve configure output.
35099         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
35100         Don't say "consider installing GNU libunistring" when checking again
35101         with libiconv.
35102
35103 2010-04-11  Bruno Haible  <bruno@clisp.org>
35104
35105         libunistring: Correct value of $LTLIBUNISTRING.
35106         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
35107         correct the value of $LTLIBUNISTRING.
35108
35109 2010-04-11  Bruno Haible  <bruno@clisp.org>
35110
35111         havelib: Add static libraries to LIBS in the right order.
35112         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
35113         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
35114
35115 2010-04-11  Bruno Haible  <bruno@clisp.org>
35116
35117         libunistring: Detect libunistring also when it depends on libiconv.
35118         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
35119         the second AC_LIB_HAVE_LINKFLAGS invocation.
35120
35121 2010-04-11  James Youngman  <jay@gnu.org>
35122
35123         close-stream: declare local scalars to be "const"
35124         * lib/close-stream.c (close_stream): Make boolean variables const
35125         to document the fact that we set but do not change them.
35126
35127 2010-04-11  Bruno Haible  <bruno@clisp.org>
35128
35129         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
35130
35131 2010-04-11  Jim Meyering  <meyering@redhat.com>
35132
35133         maint.mk: don't include dist-check.mk
35134         * top/maint.mk: Remove bogus include directive.
35135
35136         maint.mk: improve empty-line-at-EOF check
35137         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
35138         solution, rather than tail+Perl-based one.  The latter would read
35139         a few kilobytes from the end of each file, and did not handle empty
35140         files properly.
35141
35142         maint.mk: print the elapsed time for each syntax-check rule
35143         * top/maint.mk (sc_m_rules_): Save start time in a file.
35144         (sc_z_rules_): New rules: remove temp file and print elapsed time.
35145         (local-check): Interpose the .z rules
35146
35147 2010-04-11  Jim Meyering  <meyering@redhat.com>
35148
35149         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
35150         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
35151         empty file with one that ends in an empty line.
35152
35153 2010-04-10  Bruno Haible  <bruno@clisp.org>
35154
35155         mkdir: Make it work on mingw64.
35156         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
35157         * lib/mkdir.c: Update comment.
35158         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
35159
35160 2010-04-10  Bruno Haible  <bruno@clisp.org>
35161
35162         Don't override improved macro from newer autoconf.
35163         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
35164         autoconf >= 2.62.
35165         Reported by Joel E. Denny <jdenny@clemson.edu>.
35166
35167 2010-04-10  Jim Meyering  <meyering@redhat.com>
35168
35169         maint.mk: new syntax-check rule: prohibit empty lines at end of file
35170         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
35171
35172         maint.mk: correct a diagnostic
35173         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
35174         in diagnostic; now use $prohibit.
35175
35176 2010-04-10  Bruno Haible  <address@hidden>
35177
35178         fchownat: Fix a C++ test error on Solaris 8.
35179         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
35180         the function does not exist.
35181
35182 2010-04-10  Bruno Haible  <bruno@clisp.org>
35183
35184         vasnprintf: Add more tests.
35185         * tests/test-vasnprintf-posix.c: Include <errno.h>.
35186         (test_function): Test converting an invalid wide string.
35187
35188         vasnprintf: Correct handling of unconvertible wide string arguments.
35189         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
35190         VASNPRINTF.
35191         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
35192         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
35193         smaller than the expected maximum need for the directive. Set errno to
35194         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
35195         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
35196         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
35197         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
35198         * modules/vasnprintf (Files): Add m4/printf.m4.
35199         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35200
35201 2010-04-10  Bruno Haible  <bruno@clisp.org>
35202
35203         vasnprintf: Fix crash in %ls directive.
35204         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
35205         string is passed as argument to %ls, with no precision and no width.
35206         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35207
35208 2010-04-10  Bruno Haible  <bruno@clisp.org>
35209
35210         vasnprintf: Fix multiple test failures on mingw.
35211         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
35212         _snprintf, or snwprintf, not _snwprintf.
35213
35214 2010-04-10  Bruno Haible  <bruno@clisp.org>
35215
35216         write: Fix a C++ test error on mingw.
35217         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
35218
35219 2010-04-10  Bruno Haible  <bruno@clisp.org>
35220
35221         vasnprintf test: Reduce code duplication.
35222         * tests/test-vasnprintf.c (test_function): New function, extracted from
35223         test_vasnprintf.
35224         (test_vasnprintf, test_asnprintf): Invoke it.
35225
35226 2010-04-10  Bruno Haible  <bruno@clisp.org>
35227
35228         strnlen: Fix warning in C++ mode on MacOS X.
35229         * lib/string.in.h (strnlen): Use the modern idiom.
35230         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
35231         defining strnlen as a macro already in <config.h>.
35232         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35233         REPLACE_STRNLEN.
35234         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
35235         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35236
35237 2010-04-08  James Youngman  <jay@gnu.org>
35238
35239         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
35240         the example.
35241
35242 2010-04-09  Jim Meyering  <meyering@redhat.com>
35243
35244         maint.mk: print better diagnostic when there is no $(_hv_file)
35245         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
35246         announce that when $(_hv_file) (aka help-version) does not exist.
35247
35248         init.sh: run tr in the "C" locale to avoid multibyte interpretation
35249         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
35250         not try to interpret its random input bytes.  Jarno Rajahalme reported
35251         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
35252         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
35253         (mktempd_): Likewise, just in case.
35254
35255         ftruncate: add two years to projected module removal date: 2012
35256         * m4/ftruncate.m4: Adjust comments.
35257
35258         ftruncate: mark module as obsolete; even MinGW provides it, now
35259         * modules/ftruncate (Status): Obsolete.
35260         (Notice): Say that.
35261         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
35262         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
35263
35264 2010-04-08  Bruno Haible  <bruno@clisp.org>
35265
35266         Fix side effects from tests-related modules.
35267         * modules/dprintf-posix (Comment): New section.
35268         * modules/fprintf-posix (Comment): Likewise.
35269         * modules/obstack-printf-posix (Comment): Likewise.
35270         * modules/printf-posix (Comment): Likewise.
35271         * modules/snprintf-posix (Comment): Likewise.
35272         * modules/sprintf-posix (Comment): Likewise.
35273         * modules/vasnprintf-posix (Comment): Likewise.
35274         * modules/vasprintf-posix (Comment): Likewise.
35275         * modules/vdprintf-posix (Comment): Likewise.
35276         * modules/vfprintf-posix (Comment): Likewise.
35277         * modules/vprintf-posix (Comment): Likewise.
35278         * modules/vsnprintf-posix (Comment): Likewise.
35279         * modules/vsprintf-posix (Comment): Likewise.
35280         * modules/xprintf-posix (Comment): Likewise.
35281         * modules/xvasprintf-posix (Comment): Likewise.
35282         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
35283         * modules/floorf-tests (Depends-on): Likewise.
35284         * modules/round-tests (Depends-on): Likewise.
35285         * modules/roundf-tests (Depends-on): Likewise.
35286         * modules/trunc-tests (Depends-on): Likewise.
35287         * modules/truncf-tests (Depends-on): Likewise.
35288         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
35289         'fprintf-posix' module is not present.
35290         * tests/test-floorf2.c (check): Likewise.
35291         * tests/test-trunc2.c (check): Likewise.
35292         * tests/test-truncf2.c (check): Likewise.
35293         * tests/test-round2.c (equal): Likewise.
35294         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35295
35296 2010-04-07  Karl Berry  <karl@gnu.org>
35297
35298         * config/srclist.txt,
35299         * config/srclistvars.sh,
35300         * config/srclist-update: doc fixes.
35301
35302 2010-04-07  Jim Meyering  <meyering@redhat.com>
35303
35304         maint.mk: add a PATH crosschecking syntax-check rule
35305         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
35306         Useful if you use a test like the one in help-version (coreutils,
35307         diffutils, grep, gzip) that ensures $(VERSION) matches what is
35308         printed by prog --version.
35309
35310 2010-04-06  Bruno Haible  <bruno@clisp.org>
35311
35312         Fix link error on mingw.
35313         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
35314         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
35315
35316 2010-04-06  Bruno Haible  <bruno@clisp.org>
35317
35318         Assume rmdir exists.
35319         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
35320
35321 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
35322
35323         doc: update users.txt
35324         * users.txt: Add gcal.
35325
35326 2010-04-06  Jim Meyering  <meyering@redhat.com>
35327
35328         init.sh: simply unset TMPDIR rather than risking env -i
35329         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
35330         although it probably works fine on all Unix-based systems, some
35331         systems (Cygwin?) cannot tolerate a totally cleared environment.
35332         Suggestion from Eric Blake.
35333
35334 2010-04-06  Jim Meyering  <meyering@redhat.com>
35335
35336         init.sh: portability fix: use env's POSIX-specified -i option not -u
35337         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
35338         than unportable env -u.  Solaris 5.11's env lacks support for -u.
35339
35340 2010-04-05  Bruno Haible  <bruno@clisp.org>
35341
35342         btowc: Work around Cygwin 1.7.2 bug.
35343         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
35344         does not map NUL to 0.
35345         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
35346
35347 2010-04-05  Bruno Haible  <bruno@clisp.org>
35348
35349         Make the multithread modules work on Cygwin 1.7.2.
35350         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
35351         imported symbols can be declared weak, so that it returns "no" on
35352         Cygwin 1.7.2.
35353
35354 2010-04-05  Bruno Haible  <bruno@clisp.org>
35355
35356         Use the module 'strncat'.
35357         * modules/unistr/u8-strncat (Depends-on): Add strncat.
35358
35359         Tests for module 'strncat'.
35360         * modules/strncat-tests: New file.
35361         * tests/test-strncat.c: New file.
35362
35363         New module 'strncat'.
35364         * lib/string.in.h (strncat): New declaration.
35365         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
35366         * m4/strncat.m4: New file, based on m4/memchr.m4.
35367         * modules/strncat: New file.
35368         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
35369         is declared.
35370         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
35371         REPLACE_STRNCAT.
35372         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
35373         REPLACE_STRNCAT.
35374         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
35375         module.
35376         * tests/test-string-c++.cc: Check signature of strncat.
35377
35378 2010-04-05  Jim Meyering  <meyering@redhat.com>
35379
35380         xstrtoumax-tests: convert to use init.sh
35381         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
35382         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35383         Use Exit, not exit.
35384         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35385
35386         xstrtoimax-tests: convert to use init.sh
35387         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
35388         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35389         Use Exit, not exit.
35390         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35391
35392 2010-04-05  Bruno Haible  <bruno@clisp.org>
35393
35394         sys_socket: Avoid #define replacements in C++ mode.
35395         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
35396         warning to the function if possible, rather than #defining the symbol
35397         to a dysfunctional alias.
35398
35399 2010-04-05  Bruno Haible  <bruno@clisp.org>
35400
35401         fseeko: Fix C++ test error on mingw.
35402         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
35403         gl_FUNC_FSEEKO.
35404         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
35405         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
35406         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
35407         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
35408
35409 2010-04-05  Bruno Haible  <bruno@clisp.org>
35410
35411         duplocale: Improve test output.
35412         * tests/test-duplocale.c (main): Print reason for skipped test.
35413
35414 2010-04-05  Bruno Haible  <bruno@clisp.org>
35415
35416         Assume rmdir exists.
35417         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
35418         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
35419
35420 2010-04-05  Bruno Haible  <bruno@clisp.org>
35421
35422         Fix link error on Solaris 8 with cc.
35423         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
35424
35425 2010-04-05  Bruno Haible  <bruno@clisp.org>
35426
35427         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35428         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
35429
35430 2010-04-05  Bruno Haible  <bruno@clisp.org>
35431
35432         vasprintf: Update documentation.
35433         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
35434
35435 2010-04-05  Bruno Haible  <bruno@clisp.org>
35436
35437         ptsname: Improve test.
35438         * tests/test-ptsname.c (main): Also try the various master names of BSD
35439         systems.
35440
35441 2010-04-05  Bruno Haible  <bruno@clisp.org>
35442
35443         memchr: Avoid a possible C++ test error.
35444         * lib/string.in.h (memchr): Provide declaration if function is missing.
35445         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
35446         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
35447         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
35448         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
35449
35450 2010-04-05  Bruno Haible  <bruno@clisp.org>
35451
35452         strtok_r: Improve idiom.
35453         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
35454         AC_LIBOBJ is used.
35455
35456 2010-04-05  Bruno Haible  <bruno@clisp.org>
35457
35458         strdup: Improve idiom.
35459         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
35460         AC_LIBOBJ is used.
35461         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
35462         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
35463         when AC_LIBOBJ is used.
35464
35465 2010-04-05  Bruno Haible  <bruno@clisp.org>
35466
35467         mbsinit, mbrtowc, wcrtomb: Improve idioms.
35468         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
35469         don't set REPLACE_MBSINIT to 1.
35470         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
35471         don't set REPLACE_MBRTOWC to 1.
35472         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
35473         exist, don't set REPLACE_MBSRTOWCS to 1.
35474         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
35475         exist, don't set REPLACE_MBSNRTOWCS to 1.
35476         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
35477         don't set REPLACE_WCRTOMB to 1.
35478         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
35479         exist, don't set REPLACE_WCSRTOMBS to 1.
35480         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
35481         exist, don't set REPLACE_WCSNRTOMBS to 1.
35482
35483 2010-04-05  Bruno Haible  <bruno@clisp.org>
35484
35485         ldexpl: Improve idiom.
35486         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
35487         make sure to set HAVE_DECL_LDEXPL to 0.
35488
35489 2010-04-05  Jim Meyering  <meyering@redhat.com>
35490
35491         xstrtol-tests: convert to use init.sh
35492         * modules/xstrtol-tests (Files): Add tests/init.sh.
35493         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35494         Use Exit, not exit.
35495         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35496
35497         atexit-tests: convert to use init.sh
35498         * modules/atexit-tests (Files): Add tests/init.sh.
35499         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35500         Use Exit, not exit.
35501         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35502
35503         init.sh: fix typo
35504         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
35505
35506         init.sh: make it easier for a test script to write to the tty, ...
35507         when using automake's parallel-tests mode.
35508         * tests/init.sh (stderr_fileno_): Define overridable variable.
35509         (warn_): New function, to use it.
35510         (fail_, skip_, framework_failure_): Use warn_.
35511
35512 2010-04-04  Bruno Haible  <bruno@clisp.org>
35513
35514         btowc: Avoid warning.
35515         * lib/btowc.c: Include <stdlib.h>.
35516         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
35517
35518 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35519             Bruno Haible  <bruno@clisp.org>
35520
35521         wchar: Port to NetBSD 1.5.
35522         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
35523         * lib/wctype.in.h (WEOF): Likewise.
35524
35525 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35526             Bruno Haible  <bruno@clisp.org>
35527
35528         Port extended stdio to NetBSD 1.5.
35529         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
35530         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
35531         older.
35532
35533 2010-04-04  Bruno Haible  <bruno@clisp.org>
35534
35535         string: Remove unused substitution.
35536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35537         HAVE_DECL_STRERROR.
35538         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
35539
35540 2010-04-04  Bruno Haible  <bruno@clisp.org>
35541
35542         strtod: Avoid a possible C++ test error.
35543         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
35544         set REPLACE_STRTOD.
35545
35546 2010-04-04  Bruno Haible  <bruno@clisp.org>
35547
35548         strerror: Update documentation.
35549         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
35550
35551 2010-04-04  Bruno Haible  <bruno@clisp.org>
35552
35553         stdio: Fix some C++ test errors on Solaris 8 with GCC.
35554         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
35555         _GL_CXXALIAS_SYS_CAST.
35556
35557 2010-04-04  Bruno Haible  <bruno@clisp.org>
35558
35559         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35560         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
35561         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
35562         REPLACE_FREXPL to 1.
35563         * doc/posix-functions/frexpl.texi: Update documentation.
35564
35565 2010-04-04  Bruno Haible  <bruno@clisp.org>
35566
35567         math: Fix some C++ test errors on Solaris 8 and Cygwin.
35568         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
35569
35570 2010-04-04  Bruno Haible  <bruno@clisp.org>
35571
35572         Implement nanosleep for native Windows.
35573         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
35574
35575 2010-04-04  Bruno Haible  <bruno@clisp.org>
35576
35577         math: Fix some C++ test errors on Solaris 8.
35578         * lib/math.in.h (truncf, trunc): Use simpler idiom.
35579
35580 2010-04-04  Bruno Haible  <bruno@clisp.org>
35581
35582         math: Fix some C++ test errors on Cygwin.
35583         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
35584         truncl): Provide declaration if the system does not have it.
35585         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
35586         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
35587         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
35588         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
35589         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
35590         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
35591         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
35592         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
35593         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
35594         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
35595         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
35596         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
35597         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
35598         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
35599         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
35600         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
35601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
35602         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35603         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35604         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
35605         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35606         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35607
35608 2010-04-04  Bruno Haible  <bruno@clisp.org>
35609
35610         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
35611         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35612         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
35613         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35614         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35615         * m4/isinf.m4 (gl_ISINF): Likewise.
35616         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35617
35618 2010-04-04  Bruno Haible  <bruno@clisp.org>
35619
35620         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
35621         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35622
35623 2010-04-04  Bruno Haible  <bruno@clisp.org>
35624
35625         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
35626         * modules/tmpfile (configure.ac): Update.
35627
35628         tmpfile: Fix C++ test error on mingw.
35629         * lib/stdio.in.h (tmpfile): New declaration.
35630         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
35631         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
35632         * modules/tmpfile (Depends-on): Add stdio.
35633         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35634         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
35635         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
35636         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
35637         REPLACE_TMPFILE.
35638         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
35639
35640 2010-04-04  Bruno Haible  <bruno@clisp.org>
35641
35642         ioctl: Fix C++ test error on mingw.
35643         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
35644         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
35645         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
35646
35647 2010-04-03  Bruno Haible  <bruno@clisp.org>
35648
35649         wcwidth: Fix C++ test error on mingw.
35650         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
35651         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
35652         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
35653
35654 2010-04-03  Bruno Haible  <bruno@clisp.org>
35655
35656         nanosleep: Fix C++ test error on mingw.
35657         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
35658         * lib/time.in.h (nanosleep): Use modern idiom.
35659         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
35660         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
35661         REPLACE_NANOSLEEP to 1.
35662         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
35663         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
35664
35665 2010-04-03  Bruno Haible  <bruno@clisp.org>
35666
35667         strptime: Fix C++ test error on mingw.
35668         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
35669         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
35670         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
35671         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
35672         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
35673         not REPLACE_STRPTIME.
35674         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
35675         REPLACE_STRPTIME.
35676
35677 2010-04-03  Bruno Haible  <bruno@clisp.org>
35678
35679         timegm: Fix C++ test error on mingw.
35680         * lib/time.in.h (timegm): Use modern idiom.
35681         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
35682         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
35683         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
35684         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
35685
35686 2010-04-03  Bruno Haible  <bruno@clisp.org>
35687
35688         timegm: Assume declaration if function exists.
35689         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
35690         if it exists. Don't clobber ac_cv_func_timegm.
35691
35692 2010-04-03  Bruno Haible  <bruno@clisp.org>
35693
35694         time_r: Fix C++ test error on mingw.
35695         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
35696         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
35697         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
35698         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
35699         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
35700
35701 2010-04-03  Bruno Haible  <bruno@clisp.org>
35702
35703         time_r: Minor updates.
35704         * modules/time_r (Description): Mention the provided functions.
35705         * lib/time_r.c: Don't include <string.h>.
35706         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
35707         * doc/posix-functions/localtime_r.texi: Likewise.
35708
35709 2010-04-03  Bruno Haible  <bruno@clisp.org>
35710
35711         time: Fix regression introduced on 2010-03-08.
35712         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
35713         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
35714
35715 2010-04-03  Jim Meyering  <meyering@redhat.com>
35716
35717         maint.mk: don't silently disable project-specific syntax-check rules
35718         * top/maint.mk (_prohibit_regexp): Define, to help people realize
35719         that they need to convert their project-specific syntax-check rules
35720         to use the new _sc_search_regexp.
35721
35722 2010-04-03  Bruno Haible  <bruno@clisp.org>
35723
35724         fchdir: Fix regression introduced on 2010-03-08.
35725         * lib/unistd.in.h (fchdir): Fix declaration.
35726         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
35727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
35728         REPLACE_FCHDIR.
35729         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
35730         REPLACE_FCHDIR.
35731
35732 2010-04-03  Bruno Haible  <bruno@clisp.org>
35733
35734         getpagesize: Fix C++ test error on mingw.
35735         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
35736         system does not declare the function.
35737         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
35738         declared.
35739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35740         HAVE_DECL_GETPAGESIZE.
35741         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
35742
35743 2010-04-03  Bruno Haible  <bruno@clisp.org>
35744
35745         stdio: Make C++ tests work on mingw.
35746         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
35747         does not declare the function.
35748
35749 2010-04-03  Bruno Haible  <bruno@clisp.org>
35750
35751         ftello: Fix C++ test error on mingw.
35752         * lib/stdio.in.h (ftello): Use modern idiom.
35753         * lib/ftello.c (ftello): Renamed from rpl_ftello.
35754         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
35755         is missing and that it needs to be replaced.
35756         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
35757         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
35758         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
35759
35760 2010-04-03  Bruno Haible  <bruno@clisp.org>
35761
35762         fseeko: Fix C++ test error on mingw.
35763         * lib/stdio.in.h (fseeko): Use modern idiom.
35764         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
35765         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
35766         is missing and that it needs to be replaced.
35767         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
35768         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
35769         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
35770
35771 2010-04-03  Bruno Haible  <bruno@clisp.org>
35772
35773         mkstemp: Fix C++ test error on mingw.
35774         * lib/stdlib.in.h (mkstemp): Use modern idiom.
35775         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
35776         function is missing and that it needs to be replaced.
35777         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
35778         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
35779
35780 2010-04-03  Bruno Haible  <bruno@clisp.org>
35781
35782         stpncpy: Fix C++ test error on mingw.
35783         * lib/string.in.h (stpncpy): Use modern idiom.
35784         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
35785         function is missing and that it needs to be replaced.
35786         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35787         REPLACE_STPNCPY.
35788         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
35789
35790 2010-04-03  Bruno Haible  <bruno@clisp.org>
35791
35792         sys_stat: Fix C++ test error on mingw.
35793         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
35794         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
35795
35796 2010-04-03  Bruno Haible  <bruno@clisp.org>
35797
35798         pty: Update doc.
35799         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
35800
35801 2010-04-03  Bruno Haible  <bruno@clisp.org>
35802
35803         unistd: Fix C++ test error on mingw.
35804         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
35805
35806 2010-04-03  Bruno Haible  <bruno@clisp.org>
35807
35808         Update doc regarding mingw.
35809         * doc/glibc-functions/openpty.texi: Update regarding mingw.
35810         * doc/glibc-functions/login_tty.texi: Likewise.
35811         * doc/glibc-functions/forkpty.texi: Likewise.
35812
35813 2010-04-03  Bruno Haible  <bruno@clisp.org>
35814
35815         stdlib: Avoid compilation failure of c-strtold on mingw.
35816         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
35817
35818 2010-04-03  Bruno Haible  <bruno@clisp.org>
35819
35820         locale: Make C++ tests work on Cygwin and mingw.
35821         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
35822         cannot provide the function.
35823         Reported by Simon Josefsson.
35824
35825 2010-04-03  Bruno Haible  <bruno@clisp.org>
35826
35827         localename: Port to MacOS X 10.6.
35828         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
35829         memory layout of the locales in MacOS X 10.6 as well.
35830         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
35831
35832 2010-04-02  Bruno Haible  <bruno@clisp.org>
35833
35834         gnulib-tool: Ensure that long-running tests are executed last.
35835         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
35836         running tests after the one for the other tests.
35837
35838 2010-04-02  Bruno Haible  <bruno@clisp.org>
35839
35840         gnulib-tool: Ensure the tests in the main directory are executed first.
35841         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
35842         start with the current directory.
35843
35844 2010-04-02  Bruno Haible  <bruno@clisp.org>
35845
35846         Tests for module 'havelib', moved here from GNU gettext.
35847         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
35848         modifications.
35849         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
35850         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
35851         with modifications.
35852         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
35853         modifications.
35854         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
35855         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
35856         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
35857         with modifications.
35858         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
35859         with modifications.
35860         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
35861         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
35862         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
35863         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
35864         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
35865         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
35866         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
35867         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
35868         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
35869         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
35870         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
35871         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
35872         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
35873         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
35874         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
35875         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
35876         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
35877         with modifications.
35878         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
35879         with modifications.
35880         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
35881         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
35882         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
35883         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
35884         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
35885         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
35886         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
35887         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
35888         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
35889         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
35890         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
35891         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
35892         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
35893         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
35894         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
35895         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
35896         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
35897         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
35898         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
35899         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
35900         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
35901         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
35902         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
35903         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
35904         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
35905         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
35906         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
35907         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
35908         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
35909         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
35910         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
35911         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
35912         * tests/havelib/rpathx/rpathx.c: New file, from
35913         gettext/autoconf-lib-link.
35914         * tests/havelib/rpathx/Makefile.am: New file, from
35915         gettext/autoconf-lib-link.
35916         * tests/havelib/rpathx/configure.ac: New file, from
35917         gettext/autoconf-lib-link with modifications.
35918         * tests/havelib/rpathy/rpathy.c: New file, from
35919         gettext/autoconf-lib-link.
35920         * tests/havelib/rpathy/Makefile.am: New file, from
35921         gettext/autoconf-lib-link.
35922         * tests/havelib/rpathy/configure.ac: New file, from
35923         gettext/autoconf-lib-link with modifications.
35924         * tests/havelib/rpathz/rpathz.c: New file, from
35925         gettext/autoconf-lib-link.
35926         * tests/havelib/rpathz/Makefile.am: New file, from
35927         gettext/autoconf-lib-link.
35928         * tests/havelib/rpathz/configure.ac: New file, from
35929         gettext/autoconf-lib-link with modifications.
35930         * tests/havelib/rpathlx/usex.c: New file, from
35931         gettext/autoconf-lib-link.
35932         * tests/havelib/rpathlx/Makefile.am: New file, from
35933         gettext/autoconf-lib-link.
35934         * tests/havelib/rpathlx/configure.ac: New file, from
35935         gettext/autoconf-lib-link with modifications.
35936         * tests/havelib/rpathly/usey.c: New file, from
35937         gettext/autoconf-lib-link.
35938         * tests/havelib/rpathly/Makefile.am: New file, from
35939         gettext/autoconf-lib-link.
35940         * tests/havelib/rpathly/configure.ac: New file, from
35941         gettext/autoconf-lib-link with modifications.
35942         * tests/havelib/rpathlz/usez.c: New file, from
35943         gettext/autoconf-lib-link.
35944         * tests/havelib/rpathlz/Makefile.am: New file, from
35945         gettext/autoconf-lib-link.
35946         * tests/havelib/rpathlz/configure.ac: New file, from
35947         gettext/autoconf-lib-link with modifications.
35948         * tests/havelib/rpathlyx/usey.c: New file, from
35949         gettext/autoconf-lib-link.
35950         * tests/havelib/rpathlyx/Makefile.am: New file, from
35951         gettext/autoconf-lib-link.
35952         * tests/havelib/rpathlyx/configure.ac: New file, from
35953         gettext/autoconf-lib-link with modifications.
35954         * tests/havelib/rpathlzyx/usez.c: New file, from
35955         gettext/autoconf-lib-link.
35956         * tests/havelib/rpathlzyx/Makefile.am: New file, from
35957         gettext/autoconf-lib-link.
35958         * tests/havelib/rpathlzyx/configure.ac: New file, from
35959         gettext/autoconf-lib-link with modifications.
35960         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
35961         with modifications.
35962
35963 2010-04-02  Bruno Haible  <bruno@clisp.org>
35964
35965         gnulib-tool: Create distributed built sources also for the tests.
35966         * gnulib-tool (func_create_testdir): Also generate distributed built
35967         sources in the tests directory.
35968
35969 2010-04-02  Bruno Haible  <bruno@clisp.org>
35970
35971         gnulib-tool: Obey user's environment variables.
35972         * gnulib-tool (func_create_testdir): When creating built sources,
35973         respect the environment variables for autoconf, automake, etc. given by
35974         the user.
35975
35976 2010-04-02  Bruno Haible  <bruno@clisp.org>
35977
35978         gnulib-tool: Provide the value of --m4-base to modules.
35979         * gnulib-tool (func_import, func_create_testdir): Emit a definition
35980         of gl_m4_base.
35981
35982 2010-04-02  Eric Blake  <eblake@redhat.com>
35983
35984         maint.mk: fix some fallout
35985         * NEWS: Document the incompatible change, and its effect on cfg.mk.
35986         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
35987
35988 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35989
35990         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
35991         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
35992         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
35993         (sc_cast_of_x_alloc_return_value): Likewise.
35994         (sc_cast_of_alloca_return_value): Likewise.
35995         (sc_space_tab): Likewise.
35996         (sc_prohibit_atoi_atof): Likewise.
35997         (sc_prohibit_magic_number_exit): Likewise.
35998         (sc_error_exit_success): Likewise.
35999         (sc_file_system): Likewise.
36000         (sc_prohibit_have_config_h): Likewise.
36001         (sc_require_config_h): Likewise.
36002         (sc_prohibit_HAVE_MBRTOWC): Likewise.
36003         (sc_obsolete_symbols): Likewise.
36004         (sc_changelog): Likewise.
36005         (sc_program_name): Likewise.
36006         (sc_the_the): Likewise.
36007         (sc_trailing_blank): Likewise.
36008         (sc_two_space_separator_in_usage): Likewise.
36009         (sc_useless_cpp_parens): Likewise.
36010         (sc_GPL_version): Likewise.
36011         (sc_GFDL_version): Likewise.
36012         (sc_texinfo_acronym): Likewise.
36013         (sc_prohibit_cvs_keyword): Likewise.
36014         (sc_prohibit_stat_st_blocks): Likewise.
36015         (sc_prohibit_S_IS_definition): Likewise.
36016         (sc_redundant_const): Likewise.
36017         (sc_makefile_TAB_only_indentation): Likewise.
36018         (sc_m4_quote_check): Likewise.
36019         (sc_makefile_path_separator_check): Likewise.
36020         (sc_copyright_check): Likewise.
36021         (sc_Wundef_boolean): Likewise.
36022         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
36023
36024         maint.mk: match 0 or more whitespace-before-function-call '('
36025         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
36026         that have zero or two-and-more spaces between the function name
36027         and the open parenthesis.
36028         (sc_error_message_warn_fatal): Likewise.
36029         (sc_error_message_uppercase): Likewise.
36030         (sc_error_message_period): Likewise.
36031
36032 2010-03-31  Eric Blake  <eblake@redhat.com>
36033
36034         maint.mk: check for [ as well as test
36035         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
36036         Based on a libvirt report by Matthias Bolte.
36037
36038         gnumakefile: don't squelch _version output
36039         * top/GNUmakefile (_version): Create one-shot dependency rather
36040         than using $(shell) when version must be regenerated.
36041         (_autoreconf): Run verbosely, by default.
36042
36043         sys_time: avoid compiler warnings
36044         * lib/sys_time.in.h (includes): Ensure gcc pragma is
36045         unconditional, fixing regression from 2010-03-29.
36046         Reported by Simon Josefsson.
36047
36048 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
36049
36050         maint.mk: s/_header_without_use/_sc_header_without_use/
36051         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
36052         (sc_prohibit_assert_without_use): Use the new name.
36053         (sc_prohibit_close_stream_without_use): Likewise.
36054         (sc_prohibit_getopt_without_use): Likewise.
36055         (sc_prohibit_quotearg_without_use): Likewise.
36056         (sc_prohibit_quote_without_use): Likewise.
36057         (sc_prohibit_long_options_without_use): Likewise.
36058         (sc_prohibit_inttostr_without_use): Likewise.
36059         (sc_prohibit_ignore_value_without_use): Likewise.
36060         (sc_prohibit_error_without_use): Likewise.
36061         (sc_prohibit_xalloc_without_use): Likewise.
36062         (sc_prohibit_hash_without_use): Likewise.
36063         (sc_prohibit_hash_pjw_without_use): Likewise.
36064         (sc_prohibit_safe_read_without_use): Likewise.
36065         (sc_prohibit_argmatch_without_use): Likewise.
36066         (sc_prohibit_canonicalize_without_use): Likewise.
36067         (sc_prohibit_root_dev_ino_without_use): Likewise.
36068         (sc_prohibit_openat_without_use): Likewise.
36069         (sc_prohibit_c_ctype_without_use): Likewise.
36070         (sc_prohibit_signal_without_use): Likewise.
36071         (sc_prohibit_intprops_without_use): Likewise.
36072
36073 2010-03-30  Eric Blake  <eblake@redhat.com>
36074
36075         maint: improve module indicators
36076         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
36077         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
36078         columns, and avoid extra macro expansion.
36079
36080         fdopendir: work around FreeBSD bug
36081         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36082         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
36083         * modules/dirent (Makefile.am): Substitute it.
36084         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
36085         declaration.
36086         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
36087         fix.
36088         Reported by Christian Weisgerber <naddy@mips.inka.de>.
36089
36090 2010-03-29  Bruno Haible  <bruno@clisp.org>
36091
36092         Emit #pragma system_header after the inclusion guard, not before.
36093         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
36094         guard that spans the entire file, not before. This enables an
36095         optimization in GCC's preprocessor.
36096         * lib/ctype.in.h: Likewise.
36097         * lib/dirent.in.h: Likewise.
36098         * lib/errno.in.h: Likewise.
36099         * lib/float.in.h: Likewise.
36100         * lib/getopt.in.h: Likewise.
36101         * lib/iconv.in.h: Likewise.
36102         * lib/langinfo.in.h: Likewise.
36103         * lib/locale.in.h: Likewise.
36104         * lib/math.in.h: Likewise.
36105         * lib/netdb.in.h: Likewise.
36106         * lib/netinet_in.in.h: Likewise.
36107         * lib/pty.in.h: Likewise.
36108         * lib/sched.in.h: Likewise.
36109         * lib/se-selinux.in.h: Likewise.
36110         * lib/search.in.h: Likewise.
36111         * lib/spawn.in.h: Likewise.
36112         * lib/stdarg.in.h: Likewise.
36113         * lib/stdint.in.h: Likewise.
36114         * lib/string.in.h: Likewise.
36115         * lib/strings.in.h: Likewise.
36116         * lib/sys_file.in.h: Likewise.
36117         * lib/sys_ioctl.in.h: Likewise.
36118         * lib/sys_time.in.h: Likewise.
36119         * lib/sys_times.in.h: Likewise.
36120         * lib/sys_utsname.in.h: Likewise.
36121         * lib/sys_wait.in.h: Likewise.
36122         * lib/sysexits.in.h: Likewise.
36123         * lib/wctype.in.h: Likewise.
36124
36125 2010-03-28  James Youngman  <jay@gnu.org>
36126
36127         save-cwd: don't leak a file descriptor when the caller execs.
36128         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
36129         saved file descriptor.
36130         * modules/save-cwd (Depends-on): Depend on cloexec.
36131
36132 2010-03-29  Bruno Haible  <bruno@clisp.org>
36133
36134         Remove vestiges of fts-lgpl module.
36135         * lib/fts_.h: Assume GNULIB_FTS is 1.
36136         * lib/fts.c: Likewise.
36137         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36138
36139 2010-03-28  Bruno Haible  <bruno@clisp.org>
36140
36141         Fix definition of tests witness macro.
36142         * gnulib-tool (func_import): Fix definition of witness macro.
36143
36144 2010-03-28  Bruno Haible  <bruno@clisp.org>
36145
36146         Fix ioctl's protoype on glibc systems.
36147         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
36148         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
36149         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
36150         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
36151         signature. If not, arrange to replace the ioctl function.
36152         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36153         REPLACE_IOCTL.
36154         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
36155         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
36156         Reported by Ludovic Courtès <ludo@gnu.org>.
36157
36158 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
36159
36160         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
36161         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
36162         made it so grep -r --include=GLOB* ... did not work.
36163
36164 2010-03-26  Jim Meyering  <meyering@redhat.com>
36165             Eric Blake  <eblake@redhat.com>
36166
36167         maint.mk: prohibit use of test's -o and -a operators
36168         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
36169
36170 2010-03-28  Bruno Haible  <bruno@clisp.org>
36171
36172         Remove unused GNULIB_XYZ macro definitions.
36173         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
36174         invocation.
36175
36176 2010-03-28  Bruno Haible  <bruno@clisp.org>
36177
36178         Mark privileged tests modules.
36179         * modules/idpriv-drop-tests (Status): New section.
36180         * modules/idpriv-droptemp-tests (Status): New section.
36181
36182 2010-03-28  Bruno Haible  <bruno@clisp.org>
36183
36184         Split C++ tests into separate tests modules.
36185         * modules/dirent-c++-tests: New file, extracted from
36186         modules/dirent-tests.
36187         * modules/dirent-tests: Depend on it.
36188         * modules/fcntl-h-c++-tests: New file, extracted from
36189         modules/fcntl-h-tests.
36190         * modules/fcntl-h-tests: Depend on it.
36191         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
36192         * modules/glob-tests: Depend on it.
36193         * modules/iconv-h-c++-tests: New file, extracted from
36194         modules/iconv-h-tests.
36195         * modules/iconv-h-tests: Depend on it.
36196         * modules/langinfo-c++-tests: New file, extracted from
36197         modules/langinfo-tests.
36198         * modules/langinfo-tests: Depend on it.
36199         * modules/locale-c++-tests: New file, extracted from
36200         modules/locale-tests.
36201         * modules/locale-tests: Depend on it.
36202         * modules/math-c++-tests: New file, extracted from modules/math-tests.
36203         * modules/math-tests: Depend on it.
36204         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
36205         * modules/pty-tests: Depend on it.
36206         * modules/search-c++-tests: New file, extracted from
36207         modules/search-tests.
36208         * modules/search-tests: Depend on it.
36209         * modules/signal-c++-tests: New file, extracted from
36210         modules/signal-tests.
36211         * modules/signal-tests: Depend on it.
36212         * modules/spawn-c++-tests: New file, extracted from
36213         modules/spawn-tests.
36214         * modules/spawn-tests: Depend on it.
36215         * modules/stdio-c++-tests: New file, extracted from
36216         modules/stdio-tests.
36217         * modules/stdio-tests: Depend on it.
36218         * modules/stdlib-c++-tests: New file, extracted from
36219         modules/stdlib-tests.
36220         * modules/stdlib-tests: Depend on it.
36221         * modules/string-c++-tests: New file, extracted from
36222         modules/string-tests.
36223         * modules/string-tests: Depend on it.
36224         * modules/sys_ioctl-c++-tests: New file, extracted from
36225         modules/sys_ioctl-tests.
36226         * modules/sys_ioctl-tests: Depend on it.
36227         * modules/sys_select-c++-tests: New file, extracted from
36228         modules/sys_select-tests.
36229         * modules/sys_select-tests: Depend on it.
36230         * modules/sys_socket-c++-tests: New file, extracted from
36231         modules/sys_socket-tests.
36232         * modules/sys_socket-tests: Depend on it.
36233         * modules/sys_stat-c++-tests: New file, extracted from
36234         modules/sys_stat-tests.
36235         * modules/sys_stat-tests: Depend on it.
36236         * modules/sys_time-c++-tests: New file, extracted from
36237         modules/sys_time-tests.
36238         * modules/sys_time-tests: Depend on it.
36239         * modules/time-c++-tests: New file, extracted from modules/time-tests.
36240         * modules/time-tests: Depend on it.
36241         * modules/unistd-c++-tests: New file, extracted from
36242         modules/unistd-tests.
36243         * modules/unistd-tests: Depend on it.
36244         * modules/wchar-c++-tests: New file, extracted from
36245         modules/wchar-tests.
36246         * modules/wchar-tests: Depend on it.
36247         * modules/wctype-c++-tests: New file, extracted from
36248         modules/wctype-tests.
36249         * modules/wctype-tests: Depend on it.
36250         Reported by Simon Josefsson.
36251
36252 2010-03-28  Bruno Haible  <bruno@clisp.org>
36253
36254         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
36255         * gnulib-tool (func_exists_module): New function, extracted from
36256         func_verify_module.
36257         (func_verify_module): Use it.
36258         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
36259         'foo' only if 'foo' exists.
36260         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
36261         module.
36262
36263 2010-03-28  Bruno Haible  <bruno@clisp.org>
36264
36265         gnulib-tool: Add support for special categories of tests.
36266         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
36267         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
36268         (func_usage): Document them.
36269         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
36270         inc_unportable_tests, inc_all_tests): New variables.
36271         (func_acceptable): Consider these variables.
36272         (func_modules_transitive_closure): Make it work when the 'Status' field
36273         consists of multiple words.
36274         (func_import): Store and restore the values of inc_cxx_tests,
36275         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
36276         inc_all_tests in gnulib-comp.m4.
36277         (func_create_testdir): Set inc_all_tests to true.
36278         * doc/gnulib.texi (Extra tests modules): New section.
36279         Suggested by Jim Meyering.
36280
36281 2010-03-28  Bruno Haible  <bruno@clisp.org>
36282
36283         ansi-c++-opt: Allow turning off the C++ build by default.
36284         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
36285         gl_CXX_CHOICE_DEFAULT_NO is defined.
36286         Requested by Eric Blake.
36287
36288 2010-03-28  Bruno Haible  <bruno@clisp.org>
36289
36290         unistd: Avoid #define replacements in C++ mode.
36291         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
36292         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
36293         setsockopt, shutdown, select): In C++, attach a warning to the function
36294         if possible, rather than #defining the symbol to a dysfunctional alias.
36295         Reported by John W. Eaton <jwe@gnu.org>.
36296
36297 2010-03-28  Bruno Haible  <bruno@clisp.org>
36298
36299         Fix link errors on mingw.
36300         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
36301         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
36302         $(LIBSOCKET).
36303         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
36304         $(LIBSOCKET).
36305
36306 2010-03-28  Bruno Haible  <bruno@clisp.org>
36307             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36308
36309         lib-ignore: Determine different options for different compilers.
36310         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
36311         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
36312         Add comments.
36313         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
36314         * NEWS: Mention the change.
36315
36316 2010-03-27  Bruno Haible  <bruno@clisp.org>
36317
36318         Remove unused GNULIB_XYZ macro definitions.
36319         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36320         * modules/fseek (configure.ac): Likewise.
36321         * modules/ioctl (configure.ac): Likewise.
36322         * modules/open (configure.ac): Likewise.
36323         * modules/stdlib-safer (configure.ac): Likewise.
36324
36325 2010-03-27  Bruno Haible  <bruno@clisp.org>
36326
36327         Add a remark about certain modules.
36328         * modules/malloc (Comment): New section.
36329         * modules/realloc (Comment): Likewise.
36330         * modules/sigpipe (Comment): Likewise.
36331
36332 2010-03-27  Bruno Haible  <bruno@clisp.org>
36333
36334         Resolve conflict between the two kinds of module indicators.
36335         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
36336         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
36337         * modules/canonicalize (configure.ac): Invoke
36338         gl_MODULE_INDICATOR_FOR_TESTS.
36339         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
36340         GNULIB_XYZ.
36341         * tests/test-dirent-c++.cc: Likewise.
36342         * tests/test-dirent-safer.c: Likewise.
36343         * tests/test-dup2.c: Likewise.
36344         * tests/test-fchdir.c: Likewise.
36345         * tests/test-fcntl-h-c++.cc: Likewise.
36346         * tests/test-getopt.c: Likewise.
36347         * tests/test-getopt.h: Likewise.
36348         * tests/test-langinfo-c++.cc: Likewise.
36349         * tests/test-locale-c++.cc: Likewise.
36350         * tests/test-math-c++.cc: Likewise.
36351         * tests/test-pty-c++.cc: Likewise.
36352         * tests/test-search-c++.cc: Likewise.
36353         * tests/test-signal-c++.cc: Likewise.
36354         * tests/test-spawn-c++.cc: Likewise.
36355         * tests/test-stdio-c++.cc: Likewise.
36356         * tests/test-stdlib-c++.cc: Likewise.
36357         * tests/test-string-c++.cc: Likewise.
36358         * tests/test-sys_ioctl-c++.cc: Likewise.
36359         * tests/test-sys_select-c++.cc: Likewise.
36360         * tests/test-sys_socket-c++.cc: Likewise.
36361         * tests/test-sys_stat-c++.cc: Likewise.
36362         * tests/test-sys_time-c++.cc: Likewise.
36363         * tests/test-time-c++.cc: Likewise.
36364         * tests/test-unistd-c++.cc: Likewise.
36365         * tests/test-wchar-c++.cc: Likewise.
36366         * tests/uninorm/test-u8-nfc.c: Likewise.
36367         * tests/uninorm/test-u8-nfd.c: Likewise.
36368         * tests/uninorm/test-u8-nfkc.c: Likewise.
36369         * tests/uninorm/test-u8-nfkd.c: Likewise.
36370         * tests/uninorm/test-u16-nfc.c: Likewise.
36371         * tests/uninorm/test-u16-nfd.c: Likewise.
36372         * tests/uninorm/test-u16-nfkc.c: Likewise.
36373         * tests/uninorm/test-u16-nfkd.c: Likewise.
36374         * tests/uninorm/test-u32-nfc.c: Likewise.
36375         * tests/uninorm/test-u32-nfc-big.c: Likewise.
36376         * tests/uninorm/test-u32-nfd.c: Likewise.
36377         * tests/uninorm/test-u32-nfd-big.c: Likewise.
36378         * tests/uninorm/test-u32-nfkc.c: Likewise.
36379         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
36380         * tests/uninorm/test-u32-nfkd.c: Likewise.
36381         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
36382         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36383
36384 2010-03-27  Bruno Haible  <bruno@clisp.org>
36385
36386         Distinguish two kinds of module indicators.
36387         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
36388         gl_MODULE_INDICATOR.
36389         (gl_MODULE_INDICATOR): New macro.
36390         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36391         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
36392         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36393         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36394         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36395         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36396         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36397         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36398         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36399         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36400         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36401         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36402         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36403         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36404         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36405         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36406         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36407         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36408         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36409         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36410         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36411         * modules/cloexec (configure.ac): Likewise.
36412         * modules/getopt-gnu (configure.ac): Likewise.
36413         * modules/uninorm/u8-normalize (configure.ac): Likewise.
36414         * modules/uninorm/u16-normalize (configure.ac): Likewise.
36415         * modules/uninorm/u32-normalize (configure.ac): Likewise.
36416         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
36417
36418 2010-03-27  Bruno Haible  <bruno@clisp.org>
36419
36420         New module description field 'Comment'.
36421         * gnulib-tool: New option --extract-comment.
36422         (func_usage): Document it.
36423         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
36424         (func_get_comment): New function.
36425         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
36426
36427 2010-03-27  Bruno Haible  <bruno@clisp.org>
36428
36429         Addendum to 2010-02-07 commit.
36430         * gnulib-tool (func_usage): Document --extract-applicability option.
36431
36432 2010-03-27  Bruno Haible  <bruno@clisp.org>
36433
36434         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
36435         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
36436         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
36437         rather than link errors.
36438
36439 2010-03-27  Bruno Haible  <bruno@clisp.org>
36440
36441         Avoid side effects from tests-related modules on the compilation of lib.
36442         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
36443         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
36444         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
36445         parameter. Emit into AM_CPPFLAGS a definition of the designated C
36446         macro.
36447         (func_import): Define a witness macro. Assign it a value that depends
36448         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
36449         tests-related modules.
36450         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
36451         Reported by Jim Meyering.
36452
36453 2010-03-27  Bruno Haible  <bruno@clisp.org>
36454
36455         Factorize common .m4 code.
36456         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
36457         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
36458         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
36459         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
36460         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36461         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
36462         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
36463         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36464         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36465         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36466         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
36467         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36468         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36469         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36470         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36471         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
36472         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36473         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36474         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36475         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
36476         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
36477         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36478         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36479         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36480         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36481         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36482         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
36483         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
36484         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
36485         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36486         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36487         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36488
36489 2010-03-27  Bruno Haible  <bruno@clisp.org>
36490
36491         Fix a compilation error on Cygwin with g++ >= 4.3.
36492         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
36493         if it is undefined or if we alias it to chmod.
36494         (lstat): Don't warn about the use of this function if it is undefined
36495         or if we alias it to stat.
36496         Reported by Simon Josefsson.
36497
36498 2010-03-27  Bruno Haible  <bruno@clisp.org>
36499
36500         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
36501         * modules/getlogin (configure.ac): Update.
36502
36503         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
36504         * modules/getlogin_r (configure.ac): Update.
36505
36506         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
36507         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
36508         * modules/inet_ntop (configure.ac): Update.
36509
36510         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
36511         * modules/inet_pton (configure.ac): Update.
36512
36513         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
36514         * modules/mbslen (configure.ac): Update.
36515
36516         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
36517         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
36518         * modules/forkpty (configure.ac): Update.
36519         * modules/openpty (configure.ac): Update.
36520
36521 2010-03-26  Simon Josefsson  <simon@josefsson.org>
36522
36523         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
36524         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
36525
36526 2010-03-25  Eric Blake  <eblake@redhat.com>
36527
36528         maint: use pragma consistently across replacement headers
36529         * lib/ctype.in.h (system_header): Hoist for consistent placement.
36530         * lib/dirent.in.h (system_header): Likewise.
36531         * lib/errno.in.h (system_header): Likewise.
36532         * lib/float.in.h (system_header): Likewise.
36533         * lib/getopt.in.h (system_header): Likewise.
36534         * lib/iconv.in.h (system_header): Likewise.
36535         * lib/inttypes.in.h (system_header): Likewise.
36536         * lib/langinfo.in.h (system_header): Likewise.
36537         * lib/locale.in.h (system_header): Likewise.
36538         * lib/math.in.h (system_header): Likewise.
36539         * lib/netdb.in.h (system_header): Likewise.
36540         * lib/netinet_in.in.h (system_header): Likewise.
36541         * lib/pty.in.h (system_header): Likewise.
36542         * lib/sched.in.h (system_header): Likewise.
36543         * lib/se-selinux.in.h (system_header): Likewise.
36544         * lib/search.in.h (system_header): Likewise.
36545         * lib/spawn.in.h (system_header): Likewise.
36546         * lib/stdarg.in.h (system_header): Likewise.
36547         * lib/stdint.in.h (system_header): Likewise.
36548         * lib/string.in.h (system_header): Likewise.
36549         * lib/strings.in.h (system_header): Likewise.
36550         * lib/sys_file.in.h (system_header): Likewise.
36551         * lib/sys_ioctl.in.h (system_header): Likewise.
36552         * lib/sys_socket.in.h (system_header): Likewise.
36553         * lib/sys_times.in.h (system_header): Likewise.
36554         * lib/sys_utsname.in.h (system_header): Likewise.
36555         * lib/sys_wait.in.h (system_header): Likewise.
36556         * lib/sysexits.in.h (system_header): Likewise.
36557         * lib/unistd.in.h (system_header): Likewise.
36558         * lib/wctype.in.h (system_header): Likewise.
36559
36560         arpa/inet: fix mingw compilation warning
36561         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
36562         Reported by Matthew Bolte.
36563
36564 2010-03-25  Bruno Haible  <bruno@clisp.org>
36565
36566         Avoid collision between gnulib wrapper and libintl wrapper.
36567         * lib/printf.c (printf): Don't define if a printf wrapper is already
36568         defined in intl/printf.c.
36569         Reported by Michel Boaventura <michel@michelboaventura.com>.
36570
36571 2010-03-25  Bruno Haible  <bruno@clisp.org>
36572
36573         Use ANSI C.
36574         * lib/readutmp.h (getutent): Provide ANSI C prototype.
36575
36576 2010-03-25  Bruno Haible  <bruno@clisp.org>
36577
36578         Minor formatting changes.
36579         * lib/acosl.c: Insert space before function argument list.
36580         * lib/argz.c: Likewise.
36581         * lib/asinl.c: Likewise.
36582         * lib/expl.c: Likewise.
36583         * lib/gen-uni-tables.c: Likewise.
36584         * lib/gettext.h: Likewise.
36585         * lib/glthread/lock.h: Likewise.
36586         * lib/tanl.c: Likewise.
36587         * lib/uniname/uniname.c: Likewise.
36588         * tests/test-idpriv-drop.c: Likewise.
36589         * tests/test-idpriv-droptemp.c: Likewise.
36590         * tests/test-lock.c: Likewise.
36591         * tests/test-tls.c: Likewise.
36592         * lib/argp-help.c: Insert space before function-like macro argument
36593         list.
36594         * lib/memcmp.c: Likewise.
36595         * tests/test-base64.c: Likewise.
36596         * lib/localename.c: Insert space before sizeof's argument list.
36597         * lib/safe-alloc.h: Likewise.
36598         * lib/file-set.h: Insert space before macro argument list.
36599         * tests/test-argp.c: Likewise.
36600         * lib/argp-namefrob.h: Insert space before function parameter list.
36601         * lib/getaddrinfo.c: Likewise.
36602         * lib/netdb.in.h: Likewise.
36603         * lib/parse-duration.h: Likewise.
36604         * lib/parse-duration.c: Likewise.
36605         * lib/poll.c: Likewise.
36606         * lib/select.c: Likewise.
36607         * lib/trim.h: Likewise.
36608         * tests/test-usleep.c: Likewise.
36609         * lib/ldexpl.c: Insert space before function parameter list and before
36610         function argument list.
36611         * lib/logl.c: Likewise.
36612         * lib/sqrtl.c: Likewise.
36613         * lib/trim.c: Likewise.
36614         * lib/cosl.c: Use GNU style indentation. Insert space before function
36615         argument list.
36616         * lib/sinl.c: Likewise.
36617         * lib/tsearch.c: Insert space after 'for'.
36618         Reported by Jim Meyering.
36619
36620 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
36621
36622         * maint.mk (sc_Wundef_boolean): Check for the presence of the
36623         config header before grepping, as it's not present before
36624         autoreconf/configure are run.  Reported by Simon Josefsson.
36625
36626 2010-03-23  Bruno Haible  <bruno@clisp.org>
36627
36628         pt_chown: Make it work with automake < 1.11.
36629         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
36630         Reported by Simon Josefsson.
36631
36632 2010-03-23  Bruno Haible  <bruno@clisp.org>
36633
36634         pt_chown: Don't depend on GPLed modules.
36635         * lib/pt_chown.c: Don't include idpriv.h.
36636         (main): Don't drop privileges.
36637         * modules/pt_chown (Depends-on): Remove idpriv-drop.
36638         Reported by Simon Josefsson.
36639
36640 2010-03-24  Simon Josefsson  <simon@josefsson.org>
36641
36642         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
36643         suggestions from karl@freefriends.org (Karl Berry).
36644
36645 2010-03-22  Eric Blake  <eblake@redhat.com>
36646
36647         gethostname: further tweaks
36648         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
36649         are overriding gethostname.
36650         Suggested by Bruno Haible.
36651
36652 2010-03-21  Bruno Haible  <bruno@clisp.org>
36653
36654         Fix comments.
36655         * lib/forkpty.c (rpl_forkpty): Fix comment.
36656         * lib/openpty.c (rpl_openpty): Likewise.
36657         Reported by Eric Blake.
36658
36659 2010-03-22  Eric Blake  <eblake@redhat.com>
36660
36661         gethostname: fix build on mingw
36662         * lib/unistd.in.h (includes): Work around fact that mingw
36663         <winsock2.h> re-includes <unistd.h>, by avoiding any
36664         redeclarations if we are being included by <winsock2.h>.
36665         Reported by Matthias Bolte.
36666
36667 2010-03-21  Bruno Haible  <bruno@clisp.org>
36668
36669         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36670         * lib/forkpty.c (forkpty): New replacement function, from glibc with
36671         modifications.
36672         * lib/pty.in.h (forkpty): Update declaration. Add comments.
36673         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
36674         provide the replacement.
36675         * modules/forkpty (Depends-on): Add openpty, login_tty.
36676         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
36677         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
36678         * doc/glibc-functions/forkpty.texi: More supported platforms.
36679         * config/srclist.txt: Add forkpty.c (commented).
36680
36681 2010-03-21  Bruno Haible  <bruno@clisp.org>
36682
36683         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
36684         (Makefile.am): Verify that PTY_LIB is defined.
36685
36686         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
36687
36688 2010-03-21  Bruno Haible  <bruno@clisp.org>
36689
36690         Tests for module 'login_tty'.
36691         * modules/login_tty-tests: New file.
36692         * tests/test-login_tty.c: New file.
36693
36694         New module 'login_tty'.
36695         * lib/login_tty.c: New file.
36696         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
36697         * modules/login_tty: New file.
36698         * doc/glibc-functions/login_tty.texi: Mention the new module.
36699
36700 2010-03-21  Bruno Haible  <bruno@clisp.org>
36701
36702         login_tty: Documentation.
36703         * doc/glibc-functions/login_tty.texi: New file.
36704         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
36705
36706 2010-03-21  Bruno Haible  <bruno@clisp.org>
36707
36708         pty: Consistent macro naming.
36709         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
36710         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
36711         * modules/pty (configure.ac): Update.
36712
36713 2010-03-21  Bruno Haible  <bruno@clisp.org>
36714
36715         Tests for openpty: Make stricter.
36716         * tests/test-openpty.c (main): Add test of canonical processing and
36717         erase.
36718         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
36719
36720         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36721         * lib/openpty.c (openpty): New replacement function.
36722         * lib/pty.in.h: Include <termios.h>.
36723         (openpty): Update declaration. Add comments.
36724         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
36725         is not declared, arrange to provide the replacement. Check for _getpty
36726         and posix_openpt.
36727         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
36728         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
36729         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
36730         * modules/pty-tests (test_pty_c___LDADD): New variable.
36731         * doc/glibc-functions/openpty.texi: More supported platforms.
36732
36733 2010-03-21  Bruno Haible  <bruno@clisp.org>
36734
36735         setenv: Tweaks.
36736         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
36737         the test program.
36738         * doc/posix-functions/setenv.texi: Update platforms list.
36739
36740 2010-03-21  Bruno Haible  <bruno@clisp.org>
36741
36742         New module 'unlockpt'.
36743         * lib/unlockpt.c: New file, from glibc with modifications.
36744         * m4/unlockpt.m4: New file.
36745         * modules/unlockpt: New file.
36746         * lib/stdlib.in.h (unlockpt): New declaration.
36747         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
36748         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
36749         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
36750         HAVE_UNLOCKPT.
36751         * doc/posix-functions/unlockpt.texi: Mention the new module.
36752         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
36753         * config/srclist.txt: Add unlockpt.c (commented).
36754
36755 2010-03-21  Jim Meyering  <meyering@redhat.com>
36756
36757         maint.mk: prohibit inclusion of "intprops.h" without use
36758         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
36759
36760 2010-03-21  Bruno Haible  <bruno@clisp.org>
36761
36762         New module 'grantpt'.
36763         * lib/grantpt.c: New file, from glibc with modifications.
36764         * m4/grantpt.m4: New file.
36765         * modules/grantpt: New file.
36766         * lib/stdlib.in.h (grantpt): New declaration.
36767         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
36768         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
36769         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
36770         HAVE_GRANTPT.
36771         * doc/posix-functions/grantpt.texi: Mention the new module.
36772         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
36773         * config/srclist.txt: Add grantpt.c (commented).
36774
36775 2010-03-21  Bruno Haible  <bruno@clisp.org>
36776
36777         New module 'pt_chown'.
36778         * lib/pt_chown.c: New file, from glibc with modifications.
36779         * lib/pty-private.h: New file, from glibc with modifications.
36780         * modules/pt_chown: New file.
36781         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
36782
36783 2010-03-21  Bruno Haible  <bruno@clisp.org>
36784
36785         Tests for module 'ptsname'.
36786         * modules/ptsname-tests: New file.
36787         * tests/test-ptsname.c: New file.
36788
36789         New module 'ptsname'.
36790         * lib/ptsname.c: New file, from glibc with modifications.
36791         * m4/ptsname.m4: New file.
36792         * modules/ptsname: New file.
36793         * lib/stdlib.in.h (ptsname): New declaration.
36794         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
36795         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
36796         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
36797         HAVE_PTSNAME.
36798         * doc/posix-functions/ptsname.texi: Mention the new module.
36799         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
36800         * config/srclist.txt: Add ptsname.c (commented).
36801
36802 2010-03-21  Bruno Haible  <bruno@clisp.org>
36803
36804         Tests for module 'ttyname_r'.
36805         * modules/ttyname_r-tests: New file.
36806         * tests/test-ttyname_r.c: New file.
36807
36808         New module 'ttyname_r'.
36809         * lib/ttyname_r.c: New file.
36810         * m4/ttyname_r.m4: New file.
36811         * modules/ttyname_r: New file.
36812         * lib/unistd.in.h (ttyname_r): New declaration.
36813         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
36814         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
36815         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
36816         HAVE_TTYNAME_R.
36817         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
36818         * doc/posix-functions/ttyname_r.texi: Mention the new module.
36819
36820 2010-03-20  Bruno Haible  <bruno@clisp.org>
36821
36822         signal: Undefine macro definitions in C++ mode.
36823         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
36824         sigfillset): Undefine macro definitions from the system header in C++
36825         mode.
36826         Reported by John W. Eaton <jwe@gnu.org>.
36827
36828 2010-03-20  Bruno Haible  <bruno@clisp.org>
36829
36830         Ensure no #include statements inside extern "C" { ... }.
36831         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
36832         contain #include statements.
36833         * lib/time.in.h: Likewise.
36834
36835 2010-03-20  Bruno Haible  <bruno@clisp.org>
36836
36837         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
36838         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
36839         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
36840         Reported by John W. Eaton <jwe@gnu.org>.
36841
36842 2010-03-20  Bruno Haible  <bruno@clisp.org>
36843
36844         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
36845         Reported by Jim Meyering.
36846
36847 2010-03-20  Bruno Haible  <bruno@clisp.org>
36848
36849         pipe: Set errno upon failure.
36850         * lib/pipe.h: Specify that when -1 is returned, errno is set.
36851         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
36852         errno value in error message.
36853
36854 2010-03-20  Bruno Haible  <bruno@clisp.org>
36855             Jim Meyering  <meyering@redhat.com>
36856
36857         lchown: Avoid "unused variable" warning.
36858         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
36859
36860 2010-03-20  Bruno Haible  <bruno@clisp.org>
36861
36862         Work around unlink() bug on MacOS X 10.5.6.
36863         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
36864         attempting to unlink a parent directory.
36865         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
36866         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
36867         activate for the replacement function.
36868         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
36869
36870 2010-03-20  Bruno Haible  <bruno@clisp.org>
36871
36872         Fix link errors on Solaris 8.
36873         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
36874         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
36875
36876 2010-03-19  Jim Meyering  <meyering@redhat.com>
36877
36878         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
36879         The _LIBC implementation of build_range_exp correctly honors the
36880         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
36881         However, the non-_LIBC implementation would ignore that syntax-bit
36882         flag and return REG_ERANGE unconditionally.
36883         This change makes it honor that flag.
36884         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
36885         Make two pointer parameters "const".
36886         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
36887         (parse_bracket_exp): Update caller.
36888
36889         regex.m4: correct the reversed range endpoint ([b-a]) test
36890         * m4/regex.m4: When requiring that [b-a] evoke failure,
36891         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
36892         test pass once again for x86-based systems.
36893
36894 2010-03-19  Bruno Haible  <bruno@clisp.org>
36895
36896         scandir: Fix link error on Solaris 8.
36897         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
36898         macros.
36899
36900 2010-03-19  Bruno Haible  <bruno@clisp.org>
36901
36902         getusershell: Fix documentation.
36903         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
36904         module.
36905         * doc/glibc-functions/setusershell.texi: Likewise.
36906
36907         getusershell: Provide declaration, missing on Solaris 9.
36908         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
36909         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
36910         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
36911         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
36912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36913         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
36914         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
36915         HAVE_GETUSERSHELL.
36916         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
36917
36918 2010-03-19  Bruno Haible  <bruno@clisp.org>
36919
36920         wctype: Provide iswblank function.
36921         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
36922         exists and is fine.
36923         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
36924         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
36925         * tests/test-wctype.c (main): Re-enable the iswblank tests.
36926         * doc/posix-functions/iswblank.texi: Update.
36927
36928 2010-03-19  Bruno Haible  <bruno@clisp.org>
36929
36930         Tests of module 'pty' in C++ mode.
36931         * modules/pty-tests: New file.
36932         * tests/test-pty-c++.cc: New file.
36933         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36934
36935 2010-03-19  Eric Blake  <eblake@redhat.com>
36936
36937         logb: fix documentation
36938         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
36939         1.5 declaration bug.
36940
36941         forkpty, openpty: prefer glibc's const-safe prototype
36942         * lib/forkpty.c (rpl_forkpty): New file.
36943         * lib/openpty.c (rpl_openpty): Likewise.
36944         * modules/forkpty (Files): Distribute it.
36945         * modules/openpty (Files): Likewise.
36946         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
36947         check...
36948         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
36949         replacement for for non-const BSD signature.
36950         * modules/pty (Makefile.am): Substitute witnesses.
36951         * lib/pty.in.h (forkpty, openpty): Declare replacements.
36952         * tests/test-forkpty.c: Update signature check.
36953         * tests/test-openpty.c: Likewise.
36954         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
36955         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36956
36957         forkpty, openpty: split functions into new modules
36958         * modules/pty (Makefile.am): Substitute new witnesses.
36959         (Libraries): Move library detection...
36960         * modules/forkpty: ...into new module.
36961         * modules/openpty: Another new module.
36962         * modules/pty-tests: Rename and split...
36963         * modules/forkpty-tests: ...to this...
36964         * modules/openpty-tests: ...and this.
36965         * tests/test-pty.c: Rename and split...
36966         * tests/test-forkpty.c: ...to this...
36967         * tests/test-openpty.c: ...and this.
36968         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
36969         (gl_PTY): Split library searching...
36970         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
36971         (gl_FORKPTY, gl_OPENPTY): New macros.
36972         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
36973         * NEWS: Mention the split.
36974         * MODULES.html.sh (Misc): Document the modules.
36975         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
36976         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36977
36978         pty: improve replacement header
36979         * lib/pty.in.h: New file.
36980         * modules/pty (Files): Ship it.
36981         (Makefile.am): Always build replacement.
36982         * m4/pty.m4: Rename...
36983         * m4/pty_h.m4: ...to this.
36984         (gl_PTY): Modernize setting of witness macros; update check of
36985         forkpty to take proper advantage of cache.
36986         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
36987
36988         getopt: avoid compiler warning
36989         * lib/getopt.c (attribute_hidden): Remove unused macro.
36990
36991 2010-03-18  Bruno Haible  <bruno@clisp.org>
36992
36993         Fix link errors on Solaris 8.
36994         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
36995         * modules/search-tests (test_search_c___LDADD): Likewise.
36996         * modules/signal-tests (test_signal_c___LDADD): Likewise.
36997         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
36998         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
36999         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
37000         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
37001         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
37002         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
37003
37004 2010-03-18  Bruno Haible  <bruno@clisp.org>
37005
37006         Fix bug introduced on 2010-03-14.
37007         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
37008         (gl_SPAWN_H): Require it.
37009         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
37010         Reported by Simon Josefsson.
37011
37012 2010-03-18  Bruno Haible  <bruno@clisp.org>
37013
37014         Fix typo introduced on 2009-12-31.
37015         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
37016         posix_spawn_file_actions_adddup2.
37017
37018 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
37019         and Eric Blake  <eblake@redhat.com>
37020
37021         test-vc-list-files-git: make more robust
37022         * tests/test-vc-list-files-git.sh: Unset problematic environment
37023         variables.  Chain commands together.
37024
37025 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
37026
37027         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
37028         `AC_CHECK_DECL' invocation.
37029
37030 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
37031
37032         * lib/inttostr.c (inttostr): Make sure the invocation of verify
37033         appears before executable statements. Suggested by Petr Sumbera
37034         <Petr.Sumbera@Sun.COM>.
37035
37036 2010-03-14  Bruno Haible  <bruno@clisp.org>
37037
37038         * tests/test-flock.c (test_exclusive): Comment out a test that causes
37039         portability problems. Instead use a simpler test.
37040         (main): Check that invalid arguments are rejected only on Linux.
37041
37042 2010-03-14  Bruno Haible  <bruno@clisp.org>
37043
37044         Fix bug introduced on 2009-12-31.
37045         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37046         gl_PREREQ_SYS_H_WINSOCK2 always.
37047         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
37048         SYS_SOCKET_H variable.
37049         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
37050         Update comments.
37051         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
37052         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37053         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37054         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37055         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
37056
37057 2010-03-14  Bruno Haible  <bruno@clisp.org>
37058
37059         Fix values returned by sinl, cosl.
37060         * lib/trigl.h: Add specification comments.
37061         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
37062         that combines the values from the precomputed table with the values of
37063         the Chebyshev polynomials.
37064
37065 2010-03-14  Bruno Haible  <bruno@clisp.org>
37066
37067         Fix compilation error when modules 'posix_spawn[p]' are not used.
37068         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
37069         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
37070
37071 2010-03-14  Bruno Haible  <bruno@clisp.org>
37072
37073         Fix compilation error on mingw when module 'time_r' is not used.
37074         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
37075         is 1.
37076         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
37077         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37078         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
37079         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
37080
37081 2010-03-14  Bruno Haible  <bruno@clisp.org>
37082
37083         Fix compilation error with Sun C.
37084         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
37085         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
37086         instead of GCC specific ULONG_LONG_MAX.
37087         * lib/xstrtoll.c: Likewise.
37088         * lib/xstrtoull.c: Likewise.
37089
37090 2010-03-13  Bruno Haible  <bruno@clisp.org>
37091
37092         Allow the user to disable C++ code and tests.
37093         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
37094         (gl_PROG_ANSI_CXX): Require it.
37095
37096 2010-03-13  Bruno Haible  <bruno@clisp.org>
37097
37098         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
37099         cases.
37100
37101 2010-03-13  Bruno Haible  <bruno@clisp.org>
37102
37103         Test that gnulib does not break the standard C++ headers.
37104         * tests/test-locale-c++2.cc: New file.
37105         * modules/locale-tests (Files): Add it.
37106         (Makefile.am): Compile it for test-locale-c++.
37107         * tests/test-math-c++2.cc: New file.
37108         * modules/math-tests (Files): Add it.
37109         (Makefile.am): Compile it for test-math-c++.
37110         * tests/test-signal-c++2.cc: New file.
37111         * modules/signal-tests (Files): Add it.
37112         (Makefile.am): Compile it for test-signal-c++.
37113         * tests/test-stdio-c++2.cc: New file.
37114         * modules/stdio-tests (Files): Add it.
37115         (Makefile.am): Compile it for test-stdio-c++.
37116         * tests/test-stdlib-c++2.cc: New file.
37117         * modules/stdlib-tests (Files): Add it.
37118         (Makefile.am): Compile it for test-stdlib-c++.
37119         * tests/test-string-c++2.cc: New file.
37120         * modules/string-tests (Files): Add it.
37121         (Makefile.am): Compile it for test-string-c++.
37122         * tests/test-time-c++2.cc: New file.
37123         * modules/time-tests (Files): Add it.
37124         (Makefile.am): Compile it for test-time-c++.
37125         Reported by John W. Eaton <jwe@gnu.org>.
37126
37127 2010-03-13  Bruno Haible  <bruno@clisp.org>
37128
37129         * gnulib-tool (func_usage): Clarify which options are available for
37130         --create-testdir and --create-megatestdir.
37131
37132 2010-03-13  Bruno Haible  <bruno@clisp.org>
37133
37134         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
37135         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
37136         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
37137         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
37138         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
37139         when appropriate.
37140         Reported by Jim Meyering.
37141
37142 2010-03-12  Simon Josefsson  <simon@josefsson.org>
37143
37144         * gnulib-tool (func_import): Explain origin of code.
37145
37146 2010-03-12  Bruno Haible  <bruno@clisp.org>
37147
37148         Fix problem with automake's definition of CXXLINK.
37149         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
37150         Reported by Simon Josefsson and Ludovic Courtès.
37151
37152 2010-03-12  Bruno Haible  <bruno@clisp.org>
37153
37154         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
37155         stable releases.
37156
37157 2010-03-11  Bruno Haible  <bruno@clisp.org>
37158
37159         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
37160         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
37161         whether the system provides one variant or multiple variants of the
37162         function.
37163         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
37164         C++ compilers.
37165         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
37166         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
37167         Reported by Jim Meyering.
37168
37169 2010-03-09  Simon Josefsson  <simon@josefsson.org>
37170
37171         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
37172
37173 2010-03-08  Bruno Haible  <bruno@clisp.org>
37174
37175         gnulib-tool: Add support for --libtool in --create-testdir.
37176         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
37177         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
37178
37179 2010-03-08  Eric Blake  <eblake@redhat.com>
37180
37181         gnulib-tool.texi: mention possibility of git submodule
37182         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
37183         submodules.
37184         * doc/.gitignore: Ignore another generated file.
37185
37186 2010-03-08  Karl Berry  <karl@gnu.org>
37187
37188         * doc/gnulib-tool.texi (VCS Issues): Mention third option
37189         of committing gnulib files while skipping others.
37190
37191 2010-03-07  Bruno Haible  <bruno@clisp.org>
37192
37193         Tests of module 'wctype' in C++ mode.
37194         * tests/test-wctype-c++.cc: New file.
37195         * modules/wctype-tests (Files): Add it and tests/signature.h.
37196         (Depends-on): Add ansi-c++-opt.
37197         (Makefile.am): Arrange to compile and run test-wctype-c++.
37198
37199         Tests of module 'wchar' in C++ mode.
37200         * tests/test-wchar-c++.cc: New file.
37201         * modules/wchar-tests (Files): Add it and tests/signature.h.
37202         (Depends-on): Add ansi-c++-opt.
37203         (Makefile.am): Arrange to compile and run test-wchar-c++.
37204         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
37205         gl_MODULE_INDICATOR.
37206
37207         Tests of module 'unistd' in C++ mode.
37208         * tests/test-unistd-c++.cc: New file.
37209         * modules/unistd-tests (Files): Add it and tests/signature.h.
37210         (Depends-on): Add ansi-c++-opt.
37211         (Makefile.am): Arrange to compile and run test-unistd-c++.
37212         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
37213         gl_MODULE_INDICATOR.
37214
37215         Tests of module 'time' in C++ mode.
37216         * tests/test-time-c++.cc: New file.
37217         * modules/time-tests (Files): Add it and tests/signature.h.
37218         (Depends-on): Add ansi-c++-opt.
37219         (Makefile.am): Arrange to compile and run test-time-c++.
37220         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37221
37222         Tests of module 'sys_time' in C++ mode.
37223         * tests/test-sys_time-c++.cc: New file.
37224         * modules/sys_time-tests (Files): Add it and tests/signature.h.
37225         (Depends-on): Add ansi-c++-opt.
37226         (Makefile.am): Arrange to compile and run test-sys_time-c++.
37227         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
37228         gl_MODULE_INDICATOR.
37229
37230         Tests of module 'sys_stat' in C++ mode.
37231         * tests/test-sys_stat-c++.cc: New file.
37232         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
37233         (Depends-on): Add ansi-c++-opt.
37234         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
37235         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
37236         gl_MODULE_INDICATOR.
37237
37238         Tests of module 'sys_socket' in C++ mode.
37239         * tests/test-sys_socket-c++.cc: New file.
37240         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
37241         (Depends-on): Add ansi-c++-opt.
37242         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
37243         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
37244         gl_MODULE_INDICATOR.
37245
37246         Tests of module 'sys_select' in C++ mode.
37247         * tests/test-sys_select-c++.cc: New file.
37248         * modules/sys_select-tests (Files): Add it and tests/signature.h.
37249         (Depends-on): Add ansi-c++-opt.
37250         (Makefile.am): Arrange to compile and run test-sys_select-c++.
37251         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
37252         gl_MODULE_INDICATOR.
37253
37254         Tests of module 'sys_ioctl' in C++ mode.
37255         * tests/test-sys_ioctl-c++.cc: New file.
37256         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
37257         (Depends-on): Add ansi-c++-opt.
37258         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
37259         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
37260         gl_MODULE_INDICATOR.
37261
37262         Tests of module 'string' in C++ mode.
37263         * tests/test-string-c++.cc: New file.
37264         * modules/string-tests (Files): Add it and tests/signature.h.
37265         (Depends-on): Add ansi-c++-opt.
37266         (Makefile.am): Arrange to compile and run test-string-c++.
37267         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
37268         gl_MODULE_INDICATOR.
37269
37270         Tests of module 'stdlib' in C++ mode.
37271         * tests/test-stdlib-c++.cc: New file.
37272         * modules/stdlib-tests (Files): Add it and tests/signature.h.
37273         (Depends-on): Add ansi-c++-opt.
37274         (Makefile.am): Arrange to compile and run test-stdlib-c++.
37275         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
37276         gl_MODULE_INDICATOR.
37277
37278         Tests of module 'stdio' in C++ mode.
37279         * tests/test-stdio-c++.cc: New file.
37280         * modules/stdio-tests (Files): Add it and tests/signature.h.
37281         (Depends-on): Add ansi-c++-opt.
37282         (Makefile.am): Arrange to compile and run test-stdio-c++.
37283         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
37284         gl_MODULE_INDICATOR.
37285
37286         Tests of module 'spawn' in C++ mode.
37287         * tests/test-spawn-c++.cc: New file.
37288         * modules/spawn-tests (Files): Add it and tests/signature.h.
37289         (Depends-on): Add ansi-c++-opt.
37290         (Makefile.am): Arrange to compile and run test-spawn-c++.
37291         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
37292         gl_MODULE_INDICATOR.
37293
37294         Tests of module 'signal' in C++ mode.
37295         * tests/test-signal-c++.cc: New file.
37296         * modules/signal-tests (Files): Add it and tests/signature.h.
37297         (Depends-on): Add ansi-c++-opt.
37298         (Makefile.am): Arrange to compile and run test-signal-c++.
37299         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
37300         gl_MODULE_INDICATOR.
37301
37302         Tests of module 'search' in C++ mode.
37303         * tests/test-search-c++.cc: New file.
37304         * modules/search-tests (Files): Add it and tests/signature.h.
37305         (Depends-on): Add ansi-c++-opt.
37306         (Makefile.am): Arrange to compile and run test-search-c++.
37307         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
37308         gl_MODULE_INDICATOR.
37309
37310         Tests of module 'math' in C++ mode.
37311         * tests/test-math-c++.cc: New file.
37312         * modules/math-tests (Files): Add it and tests/signature.h.
37313         (Depends-on): Add ansi-c++-opt.
37314         (Makefile.am): Arrange to compile and run test-math-c++.
37315         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37316
37317         Tests of module 'locale' in C++ mode.
37318         * tests/test-locale-c++.cc: New file.
37319         * modules/locale-tests (Files): Add it and tests/signature.h.
37320         (Depends-on): Add ansi-c++-opt.
37321         (Makefile.am): Arrange to compile and run test-locale-c++.
37322         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
37323         gl_MODULE_INDICATOR.
37324
37325         Tests of module 'langinfo' in C++ mode.
37326         * tests/test-langinfo-c++.cc: New file.
37327         * modules/langinfo-tests (Files): Add it and tests/signature.h.
37328         (Depends-on): Add ansi-c++-opt.
37329         (Makefile.am): Arrange to compile and run test-langinfo-c++.
37330         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
37331         gl_MODULE_INDICATOR.
37332
37333         Tests of module 'iconv-h' in C++ mode.
37334         * tests/test-iconv-h-c++.cc: New file.
37335         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
37336         (Depends-on): Add ansi-c++-opt.
37337         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
37338
37339         Tests of module 'glob' in C++ mode.
37340         * tests/test-glob-c++.cc: New file.
37341         * modules/glob-tests (Files): Add it.
37342         (Depends-on): Add ansi-c++-opt.
37343         (Makefile.am): Arrange to compile and run test-glob-c++.
37344
37345         Tests of module 'fcntl-h' in C++ mode.
37346         * tests/test-fcntl-h-c++.cc: New file.
37347         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
37348         (Depends-on): Add ansi-c++-opt.
37349         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
37350         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
37351         gl_MODULE_INDICATOR.
37352
37353         Tests of module 'dirent' in C++ mode.
37354         * tests/test-dirent-c++.cc: New file.
37355         * modules/dirent-tests (Files): Add it and tests/signature.h.
37356         (Depends-on): Add ansi-c++-opt.
37357         (Makefile.am): Arrange to compile and run test-dirent-c++.
37358         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
37359         gl_MODULE_INDICATOR.
37360
37361         New module 'ansi-c++-opt'.
37362         * modules/ansi-c++-opt: New file.
37363         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
37364
37365         Document C++ namespace mode.
37366         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
37367
37368         wctype: Avoid #define replacements in C++ mode.
37369         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
37370         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
37371         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
37372         In C++, define a namespaced alias symbol.
37373         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
37374         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
37375         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
37376         rule.
37377
37378         wchar: Avoid #define replacements in C++ mode.
37379         * lib/wchar.in.h: Include c++defs.h.
37380         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
37381         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
37382         symbol.
37383         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
37384         * modules/wchar (Depends-on): Add c++defs.
37385         (Makefile.am): Update wchar.h rule.
37386
37387         unistd: Avoid #define replacements in C++ mode.
37388         * lib/unistd.in.h: Include c++defs.h.
37389         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
37390         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
37391         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
37392         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
37393         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
37394         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
37395         symbol.
37396         (environ): Update.
37397         * modules/unistd (Depends-on): Add c++defs.
37398         (Makefile.am): Update unistd.h rule.
37399
37400         time: Avoid #define replacements in C++ mode.
37401         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
37402         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
37403         define a namespaced alias symbol.
37404         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
37405         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
37406         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
37407         * modules/time (Depends-on): Add c++defs, warn-on-use.
37408         (Makefile.am): Update time.h rule.
37409         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37410         * modules/nanosleep (configure.ac): Likewise.
37411         * modules/strptime (configure.ac): Likewise.
37412         * modules/timegm (configure.ac): Likewise.
37413
37414         sys_time: Avoid #define replacements in C++ mode.
37415         * lib/sys_time.in.h: Include c++defs.h.
37416         (gettimeofday): In C++, define a namespaced alias symbol.
37417         * modules/sys_time (Depends-on): Add c++defs.
37418         (Makefile.am): Update sys/time.h rule.
37419
37420         sys_stat: Avoid #define replacements in C++ mode.
37421         * lib/sys_stat.in.h: Include c++defs.h.
37422         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
37423         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
37424         namespaced alias symbol.
37425         In C++, define a namespaced alias symbol.
37426         * modules/sys_stat (Depends-on): Add c++defs.
37427         (Makefile.am): Update sys/stat.h rule.
37428
37429         sys_socket: Avoid #define replacements in C++ mode.
37430         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
37431         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
37432         definitions also when the system has a <sys/socket.h>.
37433         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37434         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
37435         In C++, define a namespaced alias symbol.
37436         * modules/sys_socket (Depends-on): Add c++defs.
37437         (Makefile.am): Update sys/socket.h rule.
37438
37439         sys_select: Avoid #define replacements in C++ mode.
37440         * lib/sys_select.in.h: Include c++defs.h. Enable the function
37441         definitions also when the system has a <sys/select.h>.
37442         (select): In C++, define a namespaced alias symbol.
37443         * modules/sys_select (Depends-on): Add c++defs.
37444         (Makefile.am): Update sys/select.h rule.
37445
37446         sys_ioctl: Avoid #define replacements in C++ mode.
37447         * lib/sys_ioctl.in.h: Include c++defs.h.
37448         (ioctl): In C++, define a namespaced alias symbol.
37449         * modules/sys_ioctl (Depends-on): Add c++defs.
37450         (Makefile.am): Update sys/ioctl.h rule.
37451
37452         string: Avoid #define replacements in C++ mode.
37453         * lib/string.in.h: Include c++defs.h.
37454         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
37455         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37456         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37457         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
37458         strsignal, strverscmp): In C++, define a namespaced alias symbol.
37459         * modules/string (Depends-on): Add c++defs.
37460         (Makefile.am): Update string.h rule.
37461
37462         stdlib: Avoid #define replacements in C++ mode.
37463         * lib/stdlib.in.h: Include c++defs.h.
37464         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
37465         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
37466         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
37467         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
37468         symbol.
37469         * modules/stdlib (Depends-on): Add c++defs.
37470         (Makefile.am): Update stdlib.h rule.
37471
37472         stdio: Avoid #define replacements in C++ mode.
37473         * lib/stdio.in.h: Include c++defs.h.
37474         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
37475         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
37476         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
37477         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
37478         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
37479         namespaced alias symbol.
37480         * modules/stdio (Depends-on): Add c++defs.
37481         (Makefile.am): Update stdio.h rule.
37482
37483         spawn: Avoid #define replacements in C++ mode.
37484         * lib/spawn.in.h: Include c++defs.h.
37485         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37486         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37487         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37488         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37489         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37490         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37491         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37492         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37493         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37494         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37495         In C++, define a namespaced alias symbol.
37496         * modules/spawn (Depends-on): Add c++defs.
37497         (Makefile.am): Update spawn.h rule.
37498
37499         signal: Avoid #define replacements in C++ mode.
37500         * lib/signal.in.h: Include c++defs.h.
37501         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37502         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
37503         namespaced alias symbol.
37504         * modules/signal (Depends-on): Add c++defs.
37505         (Makefile.am): Update signal.h rule.
37506
37507         search: Avoid #define replacements in C++ mode.
37508         * lib/search.in.h: Include c++defs.h.
37509         (_gl_search_compar_fn, _gl_search_action_fn): New types.
37510         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
37511         symbol.
37512         * modules/search (Depends-on): Add c++defs.
37513         (Makefile.am): Update search.h rule.
37514
37515         math: Avoid #define replacements in C++ mode.
37516         * lib/math.in.h: Include c++defs.h.
37517         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
37518         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
37519         trunc, truncl): In C++, define a namespaced alias symbol.
37520         * modules/math (Depends-on): Add c++defs.
37521         (Makefile.am): Update math.h rule.
37522
37523         locale: Avoid #define replacements in C++ mode.
37524         * lib/locale.in.h: Include c++defs.h.
37525         (duplocale): In C++, define a namespaced alias symbol.
37526         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
37527         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
37528         * modules/locale (Depends-on): Add c++defs.
37529         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
37530
37531         langinfo: Avoid #define replacements in C++ mode.
37532         * lib/langinfo.in.h: Include c++defs.h.
37533         (nl_langinfo): In C++, define a namespaced alias symbol.
37534         * modules/langinfo (Depends-on): Add c++defs.
37535         (Makefile.am): Update langinfo.h rule.
37536
37537         iconv-h: Avoid #define replacements in C++ mode.
37538         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
37539         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
37540         symbol.
37541         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37542         whenever iconv is present.
37543         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
37544         (Makefile.am): Update iconv.h rule.
37545
37546         glob: Avoid #define replacements in C++ mode.
37547         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
37548         (_gl_glob_errfunc_fn): New type.
37549         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
37550         symbol.
37551         * modules/glob (Depends-on): Add c++defs, warn-on-use.
37552         (Makefile.am): Update glob.h rule.
37553
37554         fcntl-h: Avoid #define replacements in C++ mode.
37555         * lib/fcntl.in.h: Include c++defs.h.
37556         (fcntl, open, openat): In C++, define a namespaced alias symbol.
37557         * modules/fcntl-h (Depends-on): Add c++defs.
37558         (Makefile.am): Update fcntl.h rule.
37559
37560         dirent: Avoid #define replacements in C++ mode.
37561         * lib/dirent.in.h: Include c++defs.h.
37562         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
37563         namespaced alias symbol.
37564         (dirfd): Update declaration.
37565         * modules/dirent (Depends-on): Add c++defs.
37566         (Makefile.am): Update dirent.h rule.
37567
37568         ctype: Make it usable in C++ code.
37569         * lib/ctype.in.h: Include c++defs.h.
37570         (isblank): Declare as extern "C".
37571         * modules/ctype (Depends-on): Add c++defs.
37572         (Makefile.am): Update ctype.h rule.
37573
37574         New module 'c++defs'.
37575         * modules/c++defs: New file.
37576         * build-aux/c++defs.h: New file.
37577         Reported by John W. Eaton <jwe@gnu.org>.
37578
37579 2010-03-07  Bruno Haible  <bruno@clisp.org>
37580
37581         logb: Provide missing declaration for Cygwin.
37582         * lib/math.in.h (logb): New declaration.
37583         * m4/logb.m4: New file.
37584         * modules/logb (Files): Add m4/logb.m4.
37585         (Depends-on): Add math.
37586         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
37587         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
37588         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
37589         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
37590         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
37591
37592 2010-03-07  Bruno Haible  <bruno@clisp.org>
37593
37594         Fix test-cond link error.
37595         * tests/test-cond.c: Include <stdio.h>.
37596
37597 2010-03-07  Bruno Haible  <bruno@clisp.org>
37598
37599         Fix test-dirent-safer link error.
37600         * modules/dirent-safer-tests (Makefile.am): Define
37601         test_dirent_safer_LDADD.
37602
37603 2010-03-07  Bruno Haible  <bruno@clisp.org>
37604
37605         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
37606         among default module list.
37607
37608 2010-03-07  Bruno Haible  <bruno@clisp.org>
37609
37610         Fix link error on platforms with GNU libiconv.
37611         * modules/unistr/u8-strcoll-tests (Makefile): Define
37612         test_u8_strcoll_LDADD.
37613         * modules/unistr/u16-strcoll-tests (Makefile): Define
37614         test_u16_strcoll_LDADD.
37615         * modules/unistr/u32-strcoll-tests (Makefile): Define
37616         test_u32_strcoll_LDADD.
37617
37618 2010-03-07  Bruno Haible  <bruno@clisp.org>
37619
37620         Use POSIX declarations for socket functions.
37621         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
37622         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
37623         rpl_sendto): Change declaration to match POSIX.
37624         * lib/connect.c (rpl_connect): Likewise.
37625         * lib/accept.c (rpl_accept): Likewise.
37626         * lib/bind.c (rpl_bind): Likewise.
37627         * lib/getpeername.c (rpl_getpeername): Likewise.
37628         * lib/getsockname.c (rpl_getsockname): Likewise.
37629         * lib/recv.c (rpl_recv): Likewise.
37630         * lib/send.c (rpl_send): Likewise.
37631         * lib/recvfrom.c (rpl_recvfrom): Likewise.
37632         * lib/sendto.c (rpl_sendto): Likewise.
37633
37634 2010-03-06  Bruno Haible  <bruno@clisp.org>
37635
37636         Clarify access, euidaccess, faccessat.
37637         * doc/posix-functions/faccessat.texi: Mention security problem under
37638         "Other problems", not "Portability problems".
37639         * doc/posix-functions/access.texi: Likewise. Mention a related security
37640         problem.
37641         * doc/glibc-functions/euidaccess.texi: Mention security problems.
37642         * lib/euidaccess.c: Add comments about platforms.
37643         * lib/unistd.in.h (access, euidaccess): Add warnings.
37644
37645 2010-03-07  Bruno Haible  <bruno@clisp.org>
37646
37647         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
37648         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
37649         (POSIX_SPAWN_SETSCHEDULER): Likewise.
37650         (POSIX_SPAWN_USEVFORK): Define in a way that works when
37651         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37652         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
37653         declare when POSIX_SPAWN_SETSCHEDULER is zero.
37654         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
37655         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
37656         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
37657         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
37658         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
37659         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
37660         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
37661         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
37662         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
37663         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
37664         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
37665         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
37666         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
37667         Likewise.
37668         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
37669         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
37670         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
37671         Likewise.
37672         * tests/test-spawn.c (main): Make it work when
37673         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37674
37675 2010-03-07  Bruno Haible  <bruno@clisp.org>
37676
37677         Fix incorrect Makefile.am generation in German locale.
37678         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37679         Execute sed command with character range in C locale.
37680
37681 2010-03-06  Bruno Haible  <bruno@clisp.org>
37682
37683         Tests for module 'iconv-h'.
37684         * modules/iconv-h-tests: New file.
37685         * tests/test-iconv-h.c: New file.
37686
37687         New module 'iconv-h'.
37688         * modules/iconv-h: New file.
37689         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
37690         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
37691         (configure.ac): Remove gl_ICONV_H.
37692         (Makefile.am): Remove rule for iconv.h.
37693
37694 2010-03-06  Bruno Haible  <bruno@clisp.org>
37695
37696         More consistent naming of *.m4 files.
37697         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
37698         * modules/wctype (Files): Update.
37699
37700         More consistent naming of *.m4 files.
37701         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
37702         * modules/wchar (Files): Update.
37703
37704 2010-03-06  Jim Meyering  <meyering@redhat.com>
37705
37706         euidaccess: relax license to LGPLv2+
37707         * modules/euidaccess (License): Relax to LGPLv2+.
37708
37709 2010-03-06  Bruno Haible  <bruno@clisp.org>
37710
37711         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
37712         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
37713         (Makefile.am): Augment lib_SOURCES instead.
37714
37715 2010-03-04  Jim Meyering  <meyering@redhat.com>
37716
37717         utime: remove obsolete module
37718         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
37719         unnecessary for years, and has been marked as obsolete for 10 months.
37720         * modules/utime: Remove file.
37721         * lib/utime.c: Remove file.
37722         * m4/utime.m4: Remove file.
37723         * m4/utimes-null.m4: Remove file.
37724         * doc/posix-functions/utime.texi (utime): Remove reference to
37725         the module.  Move the sole "fixed by gnulib" item into the
37726         "problems not fixed by Gnulib" list.
37727         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
37728
37729 2010-03-05  Simon Josefsson  <simon@josefsson.org>
37730
37731         * modules/exit (License): Relax license to LGPLv2+.
37732         (Status): Mark as obsolete.
37733         * NEWS: Mention deprecated 'exit' module.
37734         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
37735         of now obsolete 'exit'.
37736
37737 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37738
37739         fts-lgpl: remove unused module
37740         * modules/fts-lgpl: Remove.
37741         * MODULES.html.sh (func_all_modules): Adjust.
37742         * check-module (find_included_lib_files): Adjust.
37743         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
37744
37745 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
37746
37747         copy-acl: enhance Solaris ACL error handling
37748         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
37749         * lib/set-mode-acl.c (qset_acl): Likewise.
37750
37751 2010-03-02  Bruno Haible  <bruno@clisp.org>
37752
37753         spawn: Don't override the system defined values on FreeBSD 8.
37754         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
37755         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
37756         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
37757         if HAVE_POSIX_SPAWN is 1.
37758         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
37759
37760 2010-03-01  Bruno Haible  <bruno@clisp.org>
37761
37762         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
37763         regarding Automake.
37764
37765 2010-02-25  Bruno Haible  <bruno@clisp.org>
37766
37767         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
37768         * gnulib-tool: Define 'echo' as a function only before the ksh alias
37769         setting, not afterwards.
37770         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
37771
37772 2010-02-24  Eric Blake  <eblake@redhat.com>
37773
37774         bootstrap, git-version-gen: use timestamp
37775         * build-aux/git-version-gen (scriptversion): Force UTC.
37776         * build-aux/bootstrap (scriptversion): New variable.
37777
37778         bootstrap: allow older git
37779         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
37780         older than 1.6.4.  Requested by the libvirt project.
37781
37782 2010-02-23  Eric Blake  <eblake@redhat.com>
37783
37784         warn-on-use: work with old autoconf
37785         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
37786         AS_VAR semantics of autoconf 2.60.
37787         Reported by Bruno Haible.
37788
37789         bootstrap: improve some comments
37790         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
37791         clarification comments.
37792
37793         gettimeofday: provide correct function
37794         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
37795         when replacement is declared, otherwise provide gettimeofday.
37796         Reported by Michael Goffioul.
37797
37798 2010-02-23  Jim Meyering  <meyering@redhat.com>
37799
37800         lib-ignore: relax license to "unlimited", not LGPLv2+
37801         * modules/lib-ignore (License): Relax to "unlimited".
37802
37803 2010-02-23  Jim Meyering  <meyering@redhat.com>
37804
37805         lib-ignore: relax license to LGPLv2+
37806         * modules/lib-ignore (License): Relax to LGPLv2+.
37807
37808 2010-02-22  Eric Blake  <eblake@redhat.com>
37809
37810         lseek: avoid bash 3.2 broken pipe bug
37811         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
37812         warning from bash 3.2.
37813         Reported by Ben Pfaff, with analysis from Bruno Haible.
37814
37815         bootstrap: support non-FSF copyright holder
37816         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
37817         bootstrap.conf override of COPYRIGHT_HOLDER.
37818         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
37819
37820         bootstrap: interoperate with gettext 0.14.1
37821         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
37822
37823         bootstrap: allow for alternate submodule location
37824         * build-aux/bootstrap (gnulib_path): New variable; use instead of
37825         hardcoding submodule location.
37826         (gnulib_mk): Allow direct use of Makefile.am.
37827
37828         bootstrap: use GNULIB_SRCDIR to reduce disk usage
37829         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
37830         rather than reconfiguring where the submodule points.
37831
37832         gettimeofday: restore support for platforms that lack function
37833         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
37834         replacement if function is missing.
37835         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
37836         * modules/sys_time (Makefile.am): Substitute it.
37837         * lib/sys_time.in.h (gettimeofday): Check it.
37838         Reported by Michael Goffioul.
37839
37840 2010-02-21  Bruno Haible  <bruno@clisp.org>
37841
37842         * lib/stdio.in.h (obstack_printf): Fix typo.
37843
37844 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
37845
37846         vc-list-files: use bzr ls's -R option
37847         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
37848         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
37849
37850 2010-02-21  Jim Meyering  <meyering@redhat.com>
37851
37852         init.sh: fix EXEEXT shims to work also for names like test-prog
37853         * tests/init.sh: Re-exec a better shell, when needed.
37854         If the current shell lacks support for posix $(...), an init.sh-using
37855         test will now try to find a shell that supports that.  If EXEEXT is
37856         nonempty, we also require support for hyphen-in-alias-name and shell
37857         substitutions like ${var#glob}.  Failure to find such a shell results
37858         in a skipped test.
37859
37860 2010-02-21  Bruno Haible  <bruno@clisp.org>
37861
37862         Really work around around "broken pipe" error message from bash 3.2.
37863         * gnulib-tool (func_reset_sigpipe): Remove function.
37864         (echo): In bash 3.2, define to a function that uses printf.
37865         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
37866
37867 2010-02-20  Bruno Haible  <bruno@clisp.org>
37868
37869         Restore support for automake 1.9.6 with autoconf 2.61.
37870         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
37871         Reported by James Youngman <jay@gnu.org>.
37872
37873 2010-02-20  Bruno Haible  <bruno@clisp.org>
37874
37875         Improve *printf warning condition.
37876         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
37877         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
37878         and the function is overridden due to SIGPIPE emulation.
37879
37880 2010-02-20  Bruno Haible  <bruno@clisp.org>
37881
37882         * lib/stdio.in.h: Tweak comments.
37883
37884 2010-02-19  Bruno Haible  <bruno@clisp.org>
37885
37886         Make it easier to find modules. New gnulib-tool option '--find'.
37887         * gnulib-tool: New option --find.
37888         (func_usage): Document it.
37889         (func_sanitize_modulelist): New function, extracted from
37890         func_all_modules.
37891         (func_all_modules): Invoke it.
37892         * doc/gnulib-tool.texi (Which modules?): New node.
37893
37894 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
37895
37896         * lib/sys_select.in.h: Provide select replacement even if
37897         sys/select.h exists on a system, for Interix.
37898
37899 2010-02-18  Jim Meyering  <meyering@redhat.com>
37900
37901         init.sh: don't use $(...) just yet
37902         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
37903         to accommodate e.g., Solaris' /bin/sh.
37904
37905 2010-02-17  Bruno Haible  <bruno@clisp.org>
37906
37907         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
37908         Reported by Ludovic Courtès <ludo@gnu.org>.
37909
37910 2010-02-16  Simon Josefsson  <simon@josefsson.org>
37911
37912         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
37913         linking with -lintl.
37914
37915 2010-02-17  Simon Josefsson  <simon@josefsson.org>
37916
37917         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
37918         if not provided by the system's netdb.h.  Reported by
37919         ludo@gnu.org (Ludovic Courtès).
37920
37921 2010-02-15  Jim Meyering  <meyering@redhat.com>
37922
37923         init.sh: improve portability and efficiency
37924         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
37925         "dummy" in a for loop.
37926         Use '!', not '^' to select the complement of a character set used
37927         in a "case" statement.
37928         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
37929         Suggestions from Eric Blake.
37930
37931         init.sh: automatically accommodate programs with the .exe suffix
37932         Automatically arrange for an invocation of "prog" to execute the
37933         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
37934         may use the simpler "prog", yet still work when built on a system
37935         that requires specifying the added suffix.
37936         Do this by constructing a function named "prog" that invokes
37937         "prog.exe" for each .exe file in selected directories.
37938         * tests/init.sh (find_exe_basenames_): New function.
37939         (create_exe_shim_functions_): New function.
37940         (path_prepend_): Use it.
37941
37942         maint.mk: mark syntax-check sc_*.m rules as .PHONY
37943         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
37944         "make -t syntax-check" doesn't create a ton of sc_*.m files.
37945
37946 2010-02-14  Jim Meyering  <meyering@redhat.com>
37947
37948         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
37949         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
37950         (sc_prohibit_hash_pjw_without_use): New rule.
37951
37952         maint.mk: allow the default upload destination dir to be overridden
37953         * top/maint.mk (upload_dest_dir_): Define with a default that
37954         preserves the status quo.
37955         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
37956         Reported by Peter Simons.
37957
37958         maint.mk: prohibit inclusion of "hash.h" without_use
37959         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
37960
37961 2010-02-10  Jim Meyering  <meyering@redhat.com>
37962
37963         maint.mk: prohibit inclusion of "ignore-value.h" without_use
37964         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
37965
37966 2010-02-09  Eric Blake  <ebb9@byu.net>
37967         and Bruno Haible  <bruno@clisp.org>
37968
37969         obstack-printf-posix: ensure declaration
37970         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
37971         extracted from gl_FUNC_OBSTACK_PRINTF.
37972         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
37973         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37974         Likewise.
37975         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
37976         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
37977         0.
37978
37979 2010-02-08  Bruno Haible  <bruno@clisp.org>
37980
37981         gnulib-tool: Fix typo in 2010-02-07 commit.
37982         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
37983         Reported by Eric Blake.
37984
37985 2010-02-07  Bruno Haible  <bruno@clisp.org>
37986
37987         gnulib-tool: Fix up caching patches.
37988         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
37989         option --no-cache. Use associative arrays when supported by the shell.
37990         (sed_comments): New variable.
37991         (modcache): Renamed from do_cache.
37992         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
37993         abbreviate unnecessarily.
37994         (have_associative): New variable.
37995         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
37996         way also for ksh and zsh.
37997         (func_init_sed_convert_to_cache_statements): New function, extracted
37998         from func_cache_lookup_module. Add support for associative arrays.
37999         Don't set the c_MODULE_cached variable here. Ignore all lines before
38000         the first field header. Remove only the final newline, not all trailing
38001         newlines. Support empty fields correctly. Limit the use of 'eval' to
38002         assignments.
38003         (func_get_description, func_get_status, func_get_notice,
38004         func_get_applicability, func_get_filelist, func_get_dependencies,
38005         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
38006         func_get_automake_snippet, func_get_include_directive,
38007         func_get_link_directive, func_get_license, func_get_maintainer):
38008         Update documentation. List the unoptimized code first. Add support for
38009         associative arrays. Limit the use of 'eval' to assignments.
38010         (func_get_applicability): Undo stylistic pessimisations.
38011         (func_get_automake_snippet, func_get_include_directive): Reduce code
38012         duplication.
38013         (func_modules_transitive_closure, func_modules_add_dummy,
38014         func_modules_notice, func_modules_to_filelist, func_add_file,
38015         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
38016         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
38017         func_create_testdir, func_create_megatestdir): Update documentation.
38018
38019 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38020
38021         * gnulib-tool (func_cache_lookup_module): Store the module name
38022         belonging to the cache variable; error out if two different
38023         module names map to the same cache variable name.
38024
38025 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38026
38027         gnulib-tool: Make caching optional.
38028         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
38029         Update matching short versions of --no-changelog.
38030         (func_usage): Update.
38031         (sed_extract_cache_prog): Renamed from ...
38032         (sed_extract_prog): ... this; revert to old extraction script.
38033         (func_get_description, func_get_status)
38034         (func_get_notice, func_get_applicability, func_get_filelist)
38035         (func_get_dependencies, func_get_autoconf_early_snippet)
38036         (func_get_autoconf_snippet, func_get_automake_snippet)
38037         (func_get_include_directive, func_get_link_directive)
38038         (func_get_license, func_get_maintainer): If $do_cache is false,
38039         use old, non-caching extraction scripts.
38040         Suggestion by Bruno Haible.
38041
38042 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38043
38044         gnulib-tool: cache module metainformation.
38045         * gnulib-tool (sed_extract_prog): Match newline before each
38046         header, and rewrite header to a shell variable suffix.
38047         (func_cache_var, func_cache_lookup_module): New functions,
38048         to turn a module name into a cache variable prefix, and to
38049         look up and cache module metainformation.
38050         (func_get_description, func_get_status)
38051         (func_get_notice, func_get_applicability, func_get_filelist)
38052         (func_get_dependencies, func_get_autoconf_early_snippet)
38053         (func_get_autoconf_snippet, func_get_automake_snippet)
38054         (func_get_include_directive, func_get_link_directive)
38055         (func_get_license, func_get_maintainer): Use
38056         func_cache_lookup_module.
38057
38058 2010-02-07  Bruno Haible  <bruno@clisp.org>
38059
38060         fnctl: Fix missing dependency.
38061         * modules/fcntl (Depends-on): Add getdtablesize.
38062         Reported by John W. Eaton <jwe@gnu.org>.
38063
38064 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38065
38066         Argp: fix recognition of short alias options.
38067
38068         * lib/argp-parse.c (convert_options): Fix improper use of
38069         `|' between character values.
38070         * tests/test-argp.c (group1_option): New alias option
38071         --read (-r).
38072         (group1_parser): Special handling for 'r'.
38073         (test15): New test case.
38074         (test_fun): Add test15.
38075         * tests/test-argp-2.sh: Update expected --help and --usage
38076         outputs.
38077
38078 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38079
38080         * tests/test-argp.c: Fix indentation.
38081
38082 2010-02-04  Eric Blake  <ebb9@byu.net>
38083
38084         gettimeofday: expose type of second argument
38085         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
38086         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
38087         * tests/test-gettimeofday.c: Use it to silence warning.
38088         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
38089         the issue.
38090
38091 2010-02-03  Jim Meyering  <meyering@redhat.com>
38092
38093         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
38094         * lib/regcomp.c (TYPE_SIGNED): Define.
38095         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
38096
38097         regcomp.c: avoid a new -Wshadow warning
38098         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
38099
38100 2010-02-01  Jim Meyering  <meyering@redhat.com>
38101
38102         removing useless parentheses in cpp #define directives
38103         For motivation, see commit c0221df4, "define STREQ(a,b)
38104         consistently, removing useless parentheses"
38105         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
38106         * lib/mountlist.c (MNT_IGNORE): Likewise.
38107         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
38108
38109 2010-02-01  Eric Blake  <ebb9@byu.net>
38110
38111         sys_time: use link-warning
38112         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
38113         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
38114         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
38115         * modules/sys_time (Depends-on): Add warn-on-use.
38116         (Makefile.am): Always build replacement.
38117         (configure.ac): Update substitutions.
38118         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
38119         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
38120         bother with SYS_TIME_H.
38121         * modules/gettimeofday (configure.ac): Declare indicator.
38122         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
38123         in use.
38124
38125         closein-tests: silence compiler warning
38126         * tests/test-closein.c (main): Ignore fread result.
38127         * modules/closein-tests (Depends-on): Add ignore-value.
38128
38129         tests: silence warning about system return
38130         * tests/test-areadlink-with-size.c (main): Ignore system result.
38131         * tests/test-areadlink.c (main): Likewise.
38132         * tests/test-areadlinkat-with-size.c (main): Likewise.
38133         * tests/test-areadlinkat.c (main): Likewise.
38134         * tests/test-canonicalize-lgpl.c (main): Likewise.
38135         * tests/test-canonicalize.c (main): Likewise.
38136         * tests/test-chown.c (main): Likewise.
38137         * tests/test-fchownat.c (main): Likewise.
38138         * tests/test-fdutimensat.c (main): Likewise.
38139         * tests/test-fstatat.c (main): Likewise.
38140         * tests/test-futimens.c (main): Likewise.
38141         * tests/test-lchown.c (main): Likewise.
38142         * tests/test-link.c (main): Likewise.
38143         * tests/test-linkat.c (main): Likewise.
38144         * tests/test-lstat.c (main): Likewise.
38145         * tests/test-mkdir.c (main): Likewise.
38146         * tests/test-mkdirat.c (main): Likewise.
38147         * tests/test-mkfifo.c (main): Likewise.
38148         * tests/test-mkfifoat.c (main): Likewise.
38149         * tests/test-mknod.c (main): Likewise.
38150         * tests/test-readlink.c (main): Likewise.
38151         * tests/test-remove.c (main): Likewise.
38152         * tests/test-rename.c (main): Likewise.
38153         * tests/test-renameat.c (main): Likewise.
38154         * tests/test-rmdir.c (main): Likewise.
38155         * tests/test-symlink.c (main): Likewise.
38156         * tests/test-symlinkat.c (main): Likewise.
38157         * tests/test-unlink.c (main): Likewise.
38158         * tests/test-unlinkat.c (main): Likewise.
38159         * tests/test-utimens.c (main): Likewise.
38160         * tests/test-utimensat.c (main): Likewise.
38161         * modules/areadlink-tests (Depends-on): Add ignore-value.
38162         * modules/areadlink-with-size-tests (Depends-on): Likewise.
38163         * modules/areadlinkat-tests (Depends-on): Likewise.
38164         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
38165         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38166         * modules/canonicalize-tests (Depends-on): Likewise.
38167         * modules/chown-tests (Depends-on): Likewise.
38168         * modules/fdutimensat-tests (Depends-on): Likewise.
38169         * modules/futimens-tests (Depends-on): Likewise.
38170         * modules/lchown-tests (Depends-on): Likewise.
38171         * modules/link-tests (Depends-on): Likewise.
38172         * modules/linkat-tests (Depends-on): Likewise.
38173         * modules/lstat-tests (Depends-on): Likewise.
38174         * modules/mkdir-tests (Depends-on): Likewise.
38175         * modules/mkfifo-tests (Depends-on): Likewise.
38176         * modules/mkfifoat-tests (Depends-on): Likewise.
38177         * modules/mknod-tests (Depends-on): Likewise.
38178         * modules/openat-tests (Depends-on): Likewise.
38179         * modules/readlink-tests (Depends-on): Likewise.
38180         * modules/remove-tests (Depends-on): Likewise.
38181         * modules/rename-tests (Depends-on): Likewise.
38182         * modules/renameat-tests (Depends-on): Likewise.
38183         * modules/rmdir-tests (Depends-on): Likewise.
38184         * modules/symlink-tests (Depends-on): Likewise.
38185         * modules/symlinkat-tests (Depends-on): Likewise.
38186         * modules/unlink-tests (Depends-on): Likewise.
38187         * modules/utimens-tests (Depends-on): Likewise.
38188         * modules/utimensat-tests (Depends-on): Likewise.
38189
38190 2010-01-31  Bruno Haible  <bruno@clisp.org>
38191
38192         Perform the same test for many <math.h> functions.
38193         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
38194         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
38195         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
38196         of gl_MATHFUNC.
38197         * modules/acos (configure.ac): Likewise.
38198         * modules/asin (configure.ac): Likewise.
38199         * modules/atan (configure.ac): Likewise.
38200         * modules/atan2 (configure.ac): Likewise.
38201         * modules/cbrt (configure.ac): Likewise.
38202         * modules/copysign (configure.ac): Likewise.
38203         * modules/cos (configure.ac): Likewise.
38204         * modules/cosh (configure.ac): Likewise.
38205         * modules/erf (configure.ac): Likewise.
38206         * modules/erfc (configure.ac): Likewise.
38207         * modules/exp (configure.ac): Likewise.
38208         * modules/fmod (configure.ac): Likewise.
38209         * modules/hypot (configure.ac): Likewise.
38210         * modules/j0 (configure.ac): Likewise.
38211         * modules/j1 (configure.ac): Likewise.
38212         * modules/jn (configure.ac): Likewise.
38213         * modules/lgamma (configure.ac): Likewise.
38214         * modules/log (configure.ac): Likewise.
38215         * modules/log10 (configure.ac): Likewise.
38216         * modules/log1p (configure.ac): Likewise.
38217         * modules/pow (configure.ac): Likewise.
38218         * modules/remainder (configure.ac): Likewise.
38219         * modules/sin (configure.ac): Likewise.
38220         * modules/sinh (configure.ac): Likewise.
38221         * modules/tan (configure.ac): Likewise.
38222         * modules/tanh (configure.ac): Likewise.
38223         * modules/y0 (configure.ac): Likewise.
38224         * modules/y1 (configure.ac): Likewise.
38225         * modules/yn (configure.ac): Likewise.
38226         Suggested by Paolo Bonzini.
38227
38228 2010-01-31  Bruno Haible  <bruno@clisp.org>
38229
38230         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
38231
38232 2010-01-31  Bruno Haible  <bruno@clisp.org>
38233
38234         Work around getdelim() bug on FreeBSD 8.0.
38235         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
38236         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
38237         not work.
38238         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
38239         is 1.
38240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
38241         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
38242         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
38243         a non-zero size.
38244         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
38245
38246 2010-01-31  Bruno Haible  <bruno@clisp.org>
38247
38248         Work around getline() bug on FreeBSD 8.0.
38249         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
38250         and a non-zero size.
38251         * tests/test-getline.c (main): Likewise.
38252         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
38253         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
38254
38255 2010-01-28  Eric Blake  <ebb9@byu.net>
38256
38257         regex: fix build failure
38258         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
38259         platforms.
38260
38261 2010-01-28  Jim Meyering  <meyering@redhat.com>
38262
38263         regex: do not ignore memory allocation failure
38264         * lib/regex_internal.c (create_cd_newstate): Detect
38265         re_node_set_init_copy failure.   Extracted from glibc commit
38266         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38267
38268         regex: sync more white-space changes from libc
38269         * lib/regex_internal.c: White-space only changes.
38270         * lib/regexec.c: Likewise.
38271
38272         regex: add many uses of __attribute_warn_unused_result__
38273         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
38274         * lib/regexec.c: Likewise.
38275         Extracted from a messy glibc commit.
38276
38277         regcomp.c: spelling and merge-artifact from glibc
38278         * lib/regcomp.c: Merge remainder of glibc's
38279         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38280
38281         regcomp.c: sync white-space changes from glibc
38282         * lib/regcomp.c: Merge to accommodate white space
38283         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38284
38285         regcomp.c: do not ignore internal return values
38286         * lib/regcomp.c: Do not ignore internal return values.
38287         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
38288         but without its white-space changes and spelling fixes.
38289
38290         regex_internal.h: define __attribute_warn_unused_result__
38291         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
38292
38293         maint: add a syntax-check rule to check for vulnerable Makefile.in
38294         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
38295
38296 2010-01-27  Jim Meyering  <meyering@redhat.com>
38297
38298         ncftpput-ftp: clean up spaces
38299         * build-aux/ncftpput-ftp: Make Copyright line consistent.
38300         Remove trailing blanks.
38301
38302 2010-01-27  Simon Josefsson  <simon@josefsson.org>
38303
38304         * build-aux/git-version-gen: Fix copyright statement.
38305         * build-aux/gnupload: Likewise.
38306         * tests/test-arcfour.c: Likewise.
38307         * tests/test-arctwo.c: Likewise.
38308         * tests/test-count-one-bits.c: Likewise.
38309         * tests/test-crc.c: Likewise.
38310         * tests/test-des.c: Likewise.
38311         * tests/test-gc-arcfour.c: Likewise.
38312         * tests/test-gc-arctwo.c: Likewise.
38313         * tests/test-gc-des.c: Likewise.
38314         * tests/test-gc-hmac-md5.c: Likewise.
38315         * tests/test-gc-hmac-sha1.c: Likewise.
38316         * tests/test-gc-md2.c: Likewise.
38317         * tests/test-gc-md4.c: Likewise.
38318         * tests/test-gc-md5.c: Likewise.
38319         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38320         * tests/test-gc-rijndael.c: Likewise.
38321         * tests/test-gc-sha1.c: Likewise.
38322         * tests/test-gc.c: Likewise.
38323         * tests/test-gethostname.c: Likewise.
38324         * tests/test-gettimeofday.c: Likewise.
38325         * tests/test-hash.c: Likewise.
38326         * tests/test-hmac-md5.c: Likewise.
38327         * tests/test-hmac-sha1.c: Likewise.
38328         * tests/test-md2.c: Likewise.
38329         * tests/test-md4.c: Likewise.
38330         * tests/test-md5.c: Likewise.
38331         * tests/test-memchr.c: Likewise.
38332         * tests/test-memchr2.c: Likewise.
38333         * tests/test-memcmp.c: Likewise.
38334         * tests/test-memmem.c: Likewise.
38335         * tests/test-memrchr.c: Likewise.
38336         * tests/test-rawmemchr.c: Likewise.
38337         * tests/test-read-file.c: Likewise.
38338         * tests/test-rijndael.c: Likewise.
38339         * tests/test-sockets.c: Likewise.
38340         * tests/test-strchrnul.c: Likewise.
38341         * tests/test-strstr.c: Likewise.
38342         * tests/test-strtod.c: Likewise.
38343         * build-aux/ncftpput-ftp: Likewise.
38344
38345 2010-01-26  Eric Blake  <ebb9@byu.net>
38346
38347         ignore-value: update recommended header name
38348         * modules/ignore-value (Include): Only use <> for headers that
38349         exist in glibc.
38350
38351 2010-01-26  Jim Meyering  <meyering@redhat.com>
38352
38353         test-userspec.c: avoid compiler warnings
38354         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
38355         and "initialization discards qualifiers..." warnings.
38356         Put the first "uid" in its own scope, and make char* members "const".
38357
38358 2010-01-25  Bruno Haible  <bruno@clisp.org>
38359
38360         gnulib-tool: Make warning diagnostics consistent.
38361         * gnulib-tool (func_warning): New function.
38362         Use it everywhere where gnulib-tool produces output to stderr and it is
38363         not a fatal error.
38364
38365 2010-01-25  Bruno Haible  <bruno@clisp.org>
38366
38367         Fix test dependencies.
38368         * modules/xstrtol-tests (Depends-on): Add inttypes.
38369         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
38370
38371 2010-01-25 Pádraig Brady <P@draigBrady.com>
38372
38373         syntax-check: detect incorrect boolean macro values in config.h
38374         * modules/maintainer-makefile (configure.ac): Parameterize the location
38375         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
38376         The logic is from Eric Blake and the location indicated by Jim Meyering.
38377         Note the more natural CONFIG_HEADER name is prohibited by automake
38378         for backwards compatibility reasons.
38379         * top/maint.mk (sc_Wundef_boolean): New rule.
38380
38381 2010-01-25  Jim Meyering  <meyering@redhat.com>
38382
38383         bootstrap: detect MacOS 10.6's shasum, too
38384         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
38385         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
38386
38387 2010-01-23  Jim Meyering  <meyering@redhat.com>
38388
38389         xstrtoll: new module
38390         * modules/xstrtoll: New file.
38391         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
38392         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
38393         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
38394         ./configure fails if you use this module and lack "long long".
38395         * modules/xstrtoll-tests: New module.
38396         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
38397         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
38398         new init.sh-based test framework.
38399
38400 2010-01-24  Bruno Haible  <bruno@clisp.org>
38401
38402         Tests for module 'yn'.
38403         * modules/yn-tests: New file.
38404         * tests/test-yn.c: New file.
38405
38406         Tests for module 'y1'.
38407         * modules/y1-tests: New file.
38408         * tests/test-y1.c: New file.
38409
38410         Tests for module 'y0'.
38411         * modules/y0-tests: New file.
38412         * tests/test-y0.c: New file.
38413
38414         Tests for module 'tanh'.
38415         * modules/tanh-tests: New file.
38416         * tests/test-tanh.c: New file.
38417
38418         Tests for module 'tan'.
38419         * modules/tan-tests: New file.
38420         * tests/test-tan.c: New file.
38421
38422         Tests for module 'sqrt'.
38423         * modules/sqrt-tests: New file.
38424         * tests/test-sqrt.c: New file.
38425
38426         Tests for module 'sinh'.
38427         * modules/sinh-tests: New file.
38428         * tests/test-sinh.c: New file.
38429
38430         Tests for module 'sin'.
38431         * modules/sin-tests: New file.
38432         * tests/test-sin.c: New file.
38433
38434         Tests for module 'rint'.
38435         * modules/rint-tests: New file.
38436         * tests/test-rint.c: New file.
38437
38438         Tests for module 'remainder'.
38439         * modules/remainder-tests: New file.
38440         * tests/test-remainder.c: New file.
38441
38442         Tests for module 'pow'.
38443         * modules/pow-tests: New file.
38444         * tests/test-pow.c: New file.
38445
38446         Tests for module 'nextafter'.
38447         * modules/nextafter-tests: New file.
38448         * tests/test-nextafter.c: New file.
38449
38450         Tests for module 'modf'.
38451         * modules/modf-tests: New file.
38452         * tests/test-modf.c: New file.
38453
38454         Tests for module 'logb'.
38455         * modules/logb-tests: New file.
38456         * tests/test-logb.c: New file.
38457
38458         Tests for module 'log1p'.
38459         * modules/log1p-tests: New file.
38460         * tests/test-log1p.c: New file.
38461
38462         Tests for module 'log10'.
38463         * modules/log10-tests: New file.
38464         * tests/test-log10.c: New file.
38465
38466         Tests for module 'log'.
38467         * modules/log-tests: New file.
38468         * tests/test-log.c: New file.
38469
38470         Tests for module 'lgamma'.
38471         * modules/lgamma-tests: New file.
38472         * tests/test-lgamma.c: New file.
38473
38474         Tests for module 'ldexp'.
38475         * modules/ldexp-tests: New file.
38476         * tests/test-ldexp.c: New file.
38477
38478         Tests for module 'jn'.
38479         * modules/jn-tests: New file.
38480         * tests/test-jn.c: New file.
38481
38482         Tests for module 'j1'.
38483         * modules/j1-tests: New file.
38484         * tests/test-j1.c: New file.
38485
38486         Tests for module 'j0'.
38487         * modules/j0-tests: New file.
38488         * tests/test-j0.c: New file.
38489
38490         Tests for module 'hypot'.
38491         * modules/hypot-tests: New file.
38492         * tests/test-hypot.c: New file.
38493
38494         Tests for module 'fmod'.
38495         * modules/fmod-tests: New file.
38496         * tests/test-fmod.c: New file.
38497
38498         Tests for module 'fabs'.
38499         * modules/fabs-tests: New file.
38500         * tests/test-fabs.c: New file.
38501
38502         Tests for module 'exp'.
38503         * modules/exp-tests: New file.
38504         * tests/test-exp.c: New file.
38505
38506         Tests for module 'erfc'.
38507         * modules/erfc-tests: New file.
38508         * tests/test-erfc.c: New file.
38509
38510         Tests for module 'erf'.
38511         * modules/erf-tests: New file.
38512         * tests/test-erf.c: New file.
38513
38514         Tests for module 'cosh'.
38515         * modules/cosh-tests: New file.
38516         * tests/test-cosh.c: New file.
38517
38518         Tests for module 'cos'.
38519         * modules/cos-tests: New file.
38520         * tests/test-cos.c: New file.
38521
38522         Tests for module 'copysign'.
38523         * modules/copysign-tests: New file.
38524         * tests/test-copysign.c: New file.
38525
38526         Tests for module 'cbrt'.
38527         * modules/cbrt-tests: New file.
38528         * tests/test-cbrt.c: New file.
38529
38530         Tests for module 'atan2'.
38531         * modules/atan2-tests: New file.
38532         * tests/test-atan2.c: New file.
38533
38534         Tests for module 'atan'.
38535         * modules/atan-tests: New file.
38536         * tests/test-atan.c: New file.
38537
38538         Tests for module 'asin'.
38539         * modules/asin-tests: New file.
38540         * tests/test-asin.c: New file.
38541
38542         Tests for module 'acos'.
38543         * modules/acos-tests: New file.
38544         * tests/test-acos.c: New file.
38545
38546 2010-01-24  Bruno Haible  <bruno@clisp.org>
38547
38548         Fix tests for common <math.h> functions.
38549         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
38550         code snippet that references the function pointer, rather than merely
38551         calling the function. Substitute the FUNC_LIBM variable.
38552         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
38553         * modules/acos (configure.ac): Likewise.
38554         * modules/asin (configure.ac): Likewise.
38555         * modules/atan (configure.ac): Likewise.
38556         * modules/atan2 (configure.ac): Likewise.
38557         * modules/cbrt (configure.ac): Likewise.
38558         * modules/copysign (configure.ac): Likewise.
38559         * modules/cos (configure.ac): Likewise.
38560         * modules/cosh (configure.ac): Likewise.
38561         * modules/erf (configure.ac): Likewise.
38562         * modules/erfc (configure.ac): Likewise.
38563         * modules/exp (configure.ac): Likewise.
38564         * modules/fabs (configure.ac): Likewise.
38565         * modules/fmod (configure.ac): Likewise.
38566         * modules/hypot (configure.ac): Likewise.
38567         * modules/j0 (configure.ac): Likewise.
38568         * modules/j1 (configure.ac): Likewise.
38569         * modules/jn (configure.ac): Likewise.
38570         * modules/ldexp (configure.ac): Likewise.
38571         * modules/lgamma (configure.ac): Likewise.
38572         * modules/log (configure.ac): Likewise.
38573         * modules/log10 (configure.ac): Likewise.
38574         * modules/log1p (configure.ac): Likewise.
38575         * modules/logb (configure.ac): Likewise.
38576         * modules/modf (configure.ac): Likewise.
38577         * modules/nextafter (configure.ac): Likewise.
38578         * modules/pow (configure.ac): Likewise.
38579         * modules/remainder (configure.ac): Likewise.
38580         * modules/rint (configure.ac): Likewise.
38581         * modules/sin (configure.ac): Likewise.
38582         * modules/sinh (configure.ac): Likewise.
38583         * modules/tan (configure.ac): Likewise.
38584         * modules/tanh (configure.ac): Likewise.
38585         * modules/y0 (configure.ac): Likewise.
38586         * modules/y1 (configure.ac): Likewise.
38587         * modules/yn (configure.ac): Likewise.
38588
38589 2010-01-24  Bruno Haible  <bruno@clisp.org>
38590
38591         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
38592         * tests/test-acosl.c (x): New variable.
38593         (main): Store argument in x and fetch it from x.
38594         * tests/test-asinl.c (x): New variable.
38595         (main): Store argument in x and fetch it from x.
38596         * tests/test-atanl.c (x): New variable.
38597         (main): Store argument in x and fetch it from x.
38598         * tests/test-cosl.c (x): New variable.
38599         (main): Store argument in x and fetch it from x.
38600         * tests/test-expl.c (x): New variable.
38601         (main): Store argument in x and fetch it from x.
38602         * tests/test-logl.c (x): New variable.
38603         (main): Store argument in x and fetch it from x.
38604         * tests/test-sinl.c (x): New variable.
38605         (main): Store argument in x and fetch it from x.
38606         * tests/test-sqrtl.c (x): New variable.
38607         (main): Store argument in x and fetch it from x.
38608         * tests/test-tanl.c (x): New variable.
38609         (main): Store argument in x and fetch it from x.
38610
38611 2010-01-24  Bruno Haible  <bruno@clisp.org>
38612
38613         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
38614         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
38615         assignments to the initial TESTS_ENVIRONMENT.
38616         * doc/gnulib.texi (Unit test modules): Document it.
38617         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
38618         TESTS_ENVIRONMENT.
38619         * modules/btowc-tests (Makefile.am): Likewise.
38620         * modules/c-stack-tests (Makefile.am): Likewise.
38621         * modules/c-strcase-tests (Makefile.am): Likewise.
38622         * modules/copy-file-tests (Makefile.am): Likewise.
38623         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
38624         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
38625         * modules/mbrtowc-tests (Makefile.am): Likewise.
38626         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38627         * modules/mbscasestr-tests (Makefile.am): Likewise.
38628         * modules/mbschr-tests (Makefile.am): Likewise.
38629         * modules/mbscspn-tests (Makefile.am): Likewise.
38630         * modules/mbsinit-tests (Makefile.am): Likewise.
38631         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38632         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
38633         * modules/mbspbrk-tests (Makefile.am): Likewise.
38634         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38635         * modules/mbsrchr-tests (Makefile.am): Likewise.
38636         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
38637         * modules/mbsspn-tests (Makefile.am): Likewise.
38638         * modules/mbsstr-tests (Makefile.am): Likewise.
38639         * modules/nl_langinfo-tests (Makefile.am): Likewise.
38640         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
38641         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38642         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38643         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38644         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38645         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
38646         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38647         * modules/wcrtomb-tests (Makefile.am): Likewise.
38648         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
38649         * modules/wcsrtombs-tests (Makefile.am): Likewise.
38650         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
38651         assignments from TESTS_ENVIRONMENT.
38652         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
38653         augmentation.
38654         * modules/argp-version-etc-tests (Makefile.am): Likewise.
38655         * modules/atexit-tests (Makefile.am): Likewise.
38656         * modules/binary-io-tests (Makefile.am): Likewise.
38657         * modules/closein-tests (Makefile.am): Likewise.
38658         * modules/dprintf-posix-tests (Makefile.am): Likewise.
38659         * modules/exclude-tests (Makefile.am): Likewise.
38660         * modules/fflush-tests (Makefile.am): Likewise.
38661         * modules/fpending-tests (Makefile.am): Likewise.
38662         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38663         * modules/freadahead-tests (Makefile.am): Likewise.
38664         * modules/freadptr-tests (Makefile.am): Likewise.
38665         * modules/freadseek-tests (Makefile.am): Likewise.
38666         * modules/fseek-tests (Makefile.am): Likewise.
38667         * modules/fseeko-tests (Makefile.am): Likewise.
38668         * modules/ftell-tests (Makefile.am): Likewise.
38669         * modules/ftello-tests (Makefile.am): Likewise.
38670         * modules/idpriv-drop-tests (Makefile.am): Likewise.
38671         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
38672         * modules/lseek-tests (Makefile.am): Likewise.
38673         * modules/parse-duration-tests (Makefile.am): Likewise.
38674         * modules/perror-tests (Makefile.am): Likewise.
38675         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
38676         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
38677         * modules/pipe-tests (Makefile.am): Likewise.
38678         * modules/pread-tests (Makefile.am): Likewise.
38679         * modules/printf-posix-tests (Makefile.am): Likewise.
38680         * modules/select-tests (Makefile.am): Likewise.
38681         * modules/sigpipe-tests (Makefile.am): Likewise.
38682         * modules/tsearch-tests (Makefile.am): Likewise.
38683         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
38684         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
38685         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38686         * modules/uniwidth/width-tests (Makefile.am): Likewise.
38687         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
38688         * modules/version-etc-tests (Makefile.am): Likewise.
38689         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38690         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38691         * modules/xalloc-die-tests (Makefile.am): Likewise.
38692         * modules/xprintf-posix-tests (Makefile.am): Likewise.
38693         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38694         * modules/xstrtol-tests (Makefile.am): Likewise.
38695         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38696         * modules/yesno-tests (Makefile.am): Likewise.
38697         Suggested by Jim Meyering.
38698
38699 2010-01-24  Bruno Haible  <bruno@clisp.org>
38700
38701         More documentation.
38702         * doc/gnulib.texi (Writing modules): New chapter.
38703         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
38704         the new chapter.
38705
38706 2010-01-24  Jim Meyering  <meyering@redhat.com>
38707
38708         maint.mk: do not prepend "./" after filtering
38709         * top/maint.mk (_prepend_srcdir_prefix): New variable
38710         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
38711         "./" when $(srcdir) is ".".
38712
38713         define STREQ(a,b) consistently, removing useless parentheses
38714         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
38715         since the only risk is that "a" or "b" contains an unparenthesized
38716         comma, but if either did that, STREQ would have 3 or more arguments.
38717         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
38718         * lib/fts.c (STREQ): Remove unnecessary parentheses.
38719         * lib/hash-triple.c (STREQ): Likewise.
38720         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
38721         * lib/getugroups.c (STREQ): Likewise.
38722
38723 2010-01-23  Jim Meyering  <meyering@redhat.com>
38724
38725         maint.mk: fix syntax-check in a non-srcdir build directory
38726         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
38727         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
38728
38729 2010-01-22  Jim Meyering  <meyering@redhat.com>
38730
38731         userspec: add unit tests
38732         * tests/test-userspec.c: New file.
38733         * modules/userspec-tests: Likewise.
38734
38735 2010-01-21  Jim Meyering  <meyering@redhat.com>
38736
38737         maint.mk: handle source file names containing "." robustly
38738         * top/maint.mk (_dot_escaped_srcdir): Define.
38739         (VC_LIST): Use it in LHS of sed substitution.
38740
38741 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
38742
38743         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
38744         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
38745         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
38746         from a non-srcdir build.
38747
38748 2010-01-20  Eric Blake  <ebb9@byu.net>
38749
38750         warn-on-use: use instead of link-warning
38751         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
38752         * modules/unistd (Depends-on, Makefile.am): Likewise.
38753         * modules/arpa_inet (Depends-on): Replace link-warning with
38754         warn-on-use.
38755         (Makefile.am): Update rules accordingly.
38756         * modules/ctype (Depends-on, Makefile.am): Likewise.
38757         * modules/dirent (Depends-on, Makefile.am): Likewise.
38758         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
38759         * modules/inttypes (Depends-on, Makefile.am): Likewise.
38760         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38761         * modules/locale (Depends-on, Makefile.am): Likewise.
38762         * modules/math (Depends-on, Makefile.am): Likewise.
38763         * modules/search (Depends-on, Makefile.am): Likewise.
38764         * modules/signal (Depends-on, Makefile.am): Likewise.
38765         * modules/spawn (Depends-on, Makefile.am): Likewise.
38766         * modules/stdlib (Depends-on, Makefile.am): Likewise.
38767         * modules/string (Depends-on, Makefile.am): Likewise.
38768         * modules/strings (Depends-on, Makefile.am): Likewise.
38769         * modules/sys_file (Depends-on, Makefile.am): Likewise.
38770         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
38771         * modules/sys_select (Depends-on, Makefile.am): Likewise.
38772         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
38773         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
38774         * modules/sys_times (Depends-on, Makefile.am): Likewise.
38775         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38776         * modules/wchar (Depends-on, Makefile.am): Likewise.
38777         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
38778         should be poisoned.
38779         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
38780         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
38781         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
38782         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38783         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38784         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38785         * m4/math_h.m4 (gl_MATH_H): Likewise.
38786         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38787         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38788         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38789         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38790         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38791         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38792         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
38793         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
38794         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
38795         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38796         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38797         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38798         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38799         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
38800         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38801         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38802         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
38803         GL_LINK_WARNING.
38804         * lib/ctype.in.h: Likewise.
38805         * lib/dirent.in.h: Likewise.
38806         * lib/fcntl.in.h: Likewise.
38807         * lib/inttypes.in.h: Likewise.
38808         * lib/langinfo.in.h: Likewise.
38809         * lib/locale.in.h: Likewise.
38810         * lib/math.in.h: Likewise.
38811         * lib/search.in.h: Likewise.
38812         * lib/signal.in.h: Likewise.
38813         * lib/spawn.in.h: Likewise.
38814         * lib/stdio.in.h: Likewise.
38815         * lib/stdlib.in.h: Likewise.
38816         * lib/string.in.h: Likewise.
38817         * lib/strings.in.h: Likewise.
38818         * lib/sys_file.in.h: Likewise.
38819         * lib/sys_ioctl.in.h: Likewise.
38820         * lib/sys_select.in.h: Likewise.
38821         * lib/sys_socket.in.h: Likewise.
38822         * lib/sys_stat.in.h: Likewise.
38823         * lib/sys_times.in.h: Likewise.
38824         * lib/sys_utsname.in.h: Likewise.
38825         * lib/unistd.in.h: Likewise.
38826         * lib/wchar.in.h: Likewise.
38827
38828 2010-01-20  Bruno Haible  <bruno@clisp.org>
38829
38830         Avoid duplicate -lm.
38831         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
38832         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
38833         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
38834         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
38835         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
38836         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
38837         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
38838         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
38839         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
38840         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
38841         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
38842         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
38843         Reported by Paolo Bonzini.
38844
38845 2010-01-19  Bruno Haible  <bruno@clisp.org>
38846
38847         langinfo, nl_langinfo: Relicense under LGPLv2+.
38848         * modules/langinfo (License): Change to LGPLv2+.
38849         * modules/nl_langinfo (License): Likewise.
38850         Patch by David Lutterkort <lutter@redhat.com>.
38851
38852 2010-01-19  Bruno Haible  <bruno@clisp.org>
38853
38854         Avoid compilation error with cc on OSF/1 5.1.
38855         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
38856         statement, not before.
38857         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38858
38859 2010-01-18  Bruno Haible  <bruno@clisp.org>
38860
38861         Avoid a link error due to the __printf__ symbol.
38862         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
38863         and 2.6.x.
38864         (__format__, __printf__): Remove definitions.
38865         * lib/argp-fmtstream.h: Likewise.
38866         * lib/argp.h: Likewise.
38867         * lib/error.h: Likewise.
38868         * lib/vasnprintf.h: Likewise.
38869         * lib/xprintf.h: Likewise.
38870         * lib/xvasprintf.h: Likewise.
38871         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38872
38873 2010-01-18  Bruno Haible  <bruno@clisp.org>
38874
38875         Tests for module 'tanl'.
38876         * modules/tanl-tests: New file.
38877         * tests/test-tanl.c: New file.
38878
38879         Tests for module 'sqrtl'.
38880         * modules/sqrtl-tests: New file.
38881         * tests/test-sqrtl.c: New file.
38882
38883         Tests for module 'sinl'.
38884         * modules/sinl-tests: New file.
38885         * tests/test-sinl.c: New file.
38886
38887         Tests for module 'logl'.
38888         * modules/logl-tests: New file.
38889         * tests/test-logl.c: New file.
38890
38891         Tests for module 'expl'.
38892         * modules/expl-tests: New file.
38893         * tests/test-expl.c: New file.
38894
38895         Tests for module 'cosl'.
38896         * modules/cosl-tests: New file.
38897         * tests/test-cosl.c: New file.
38898
38899         Tests for module 'atanl'.
38900         * modules/atanl-tests: New file.
38901         * tests/test-atanl.c: New file.
38902
38903         Tests for module 'asinl'.
38904         * modules/asinl-tests: New file.
38905         * tests/test-asinl.c: New file.
38906
38907         Tests for module 'acosl'.
38908         * modules/acosl-tests: New file.
38909         * tests/test-acosl.c: New file.
38910
38911         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38912         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
38913         tanl): Use the standard gnulib idiom.
38914         * lib/cosl.c: Don't include trigl.c and sincosl.c.
38915         * lib/sinl.c: Likewise.
38916         * lib/tanl.c: Don't include trigl.c.
38917         (kernel_tanl): Make static.
38918         * lib/sincosl.c: Include trigl.h first.
38919         * lib/trigl.c: Likewise.
38920         * m4/acosl.m4: New file.
38921         * m4/asinl.m4: New file.
38922         * m4/atanl.m4: New file.
38923         * m4/cosl.m4: New file.
38924         * m4/expl.m4: New file.
38925         * m4/logl.m4: New file.
38926         * m4/sinl.m4: New file.
38927         * m4/sqrtl.m4: New file.
38928         * m4/tanl.m4: New file.
38929         * m4/mathl.m4: Remove file.
38930         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
38931         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38932         Don't initialize GNULIB_MATHL.
38933         * modules/acosl: New file.
38934         * modules/asinl: New file.
38935         * modules/atanl: New file.
38936         * modules/cosl: New file.
38937         * modules/expl: New file.
38938         * modules/logl: New file.
38939         * modules/sinl: New file.
38940         * modules/sqrtl: New file.
38941         * modules/tanl: New file.
38942         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
38943         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
38944         substitute GNULIB_MATHL.
38945         * modules/mathl: Rewritten.
38946         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
38947         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
38948         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
38949         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
38950         * doc/posix-functions/expl.texi: Mention the 'expl' module.
38951         * doc/posix-functions/logl.texi: Mention the 'logl' module.
38952         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
38953         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
38954         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
38955
38956 2010-01-18  Bruno Haible  <bruno@clisp.org>
38957
38958         sqrt: Make gl_FUNC_SQRT requirable.
38959         * m4/sqrt.m4: New file.
38960         * modules/sqrt (Files): Add it.
38961         (configure.ac): Invoke gl_FUNC_SQRT.
38962
38963 2010-01-18  Bruno Haible  <bruno@clisp.org>
38964
38965         New modules for common <math.h> functions.
38966         * m4/mathfunc.m4: New file.
38967         * modules/acos: New file.
38968         * modules/asin: New file.
38969         * modules/atan: New file.
38970         * modules/atan2: New file.
38971         * modules/cbrt: New file.
38972         * modules/copysign: New file.
38973         * modules/cos: New file.
38974         * modules/cosh: New file.
38975         * modules/erf: New file.
38976         * modules/erfc: New file.
38977         * modules/exp: New file.
38978         * modules/fabs: New file.
38979         * modules/fmod: New file.
38980         * modules/hypot: New file.
38981         * modules/j0: New file.
38982         * modules/j1: New file.
38983         * modules/jn: New file.
38984         * modules/ldexp: New file.
38985         * modules/lgamma: New file.
38986         * modules/log: New file.
38987         * modules/log10: New file.
38988         * modules/log1p: New file.
38989         * modules/logb: New file.
38990         * modules/modf: New file.
38991         * modules/nextafter: New file.
38992         * modules/pow: New file.
38993         * modules/remainder: New file.
38994         * modules/rint: New file.
38995         * modules/sin: New file.
38996         * modules/sinh: New file.
38997         * modules/sqrt: New file.
38998         * modules/tan: New file.
38999         * modules/tanh: New file.
39000         * modules/y0: New file.
39001         * modules/y1: New file.
39002         * modules/yn: New file.
39003         * doc/posix-functions/acos.texi: Mention the 'acos' module.
39004         * doc/posix-functions/asin.texi: Mention the 'asin' module.
39005         * doc/posix-functions/atan.texi: Mention the 'atan' module.
39006         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
39007         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
39008         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
39009         * doc/posix-functions/cos.texi: Mention the 'cos' module.
39010         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
39011         * doc/posix-functions/erf.texi: Mention the 'erf' module.
39012         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
39013         * doc/posix-functions/exp.texi: Mention the 'exp' module.
39014         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
39015         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
39016         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
39017         * doc/posix-functions/j0.texi: Mention the 'j0' module.
39018         * doc/posix-functions/j1.texi: Mention the 'j1' module.
39019         * doc/posix-functions/jn.texi: Mention the 'jn' module.
39020         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
39021         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
39022         * doc/posix-functions/log.texi: Mention the 'log' module.
39023         * doc/posix-functions/log10.texi: Mention the 'log10' module.
39024         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
39025         * doc/posix-functions/logb.texi: Mention the 'logb' module.
39026         * doc/posix-functions/modf.texi: Mention the 'modf' module.
39027         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
39028         * doc/posix-functions/pow.texi: Mention the 'pow' module.
39029         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
39030         * doc/posix-functions/rint.texi: Mention the 'rint' module.
39031         * doc/posix-functions/sin.texi: Mention the 'sin' module.
39032         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
39033         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
39034         * doc/posix-functions/tan.texi: Mention the 'tan' module.
39035         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
39036         * doc/posix-functions/y0.texi: Mention the 'y0' module.
39037         * doc/posix-functions/y1.texi: Mention the 'y1' module.
39038         * doc/posix-functions/yn.texi: Mention the 'yn' module.
39039
39040 2010-01-18  Jim Meyering  <meyering@redhat.com>
39041
39042         ignore-value: relax license to LGPLv2+
39043         * modules/ignore-value (License): Relax to LGPLv2+.
39044
39045         getdate: don't leak when TZ contains two or more '"'s
39046         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
39047         double quote in TZ after the first one.
39048
39049         readtokens: do not leak internal token_lengths buffer
39050         * lib/readtokens.c (readtokens): Free the local, lengths,
39051         when the supplied "token_lengths" parameter is NULL.
39052
39053 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39054
39055         Fix a couple of missing LIBTHREAD link failures on AIX.
39056         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
39057         $(LIBTHREAD).
39058         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
39059
39060         Link test-poll against INET_PTON_LIB.
39061         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
39062         for inet_pton on Solaris 10.
39063
39064 2010-01-17  Bruno Haible  <bruno@clisp.org>
39065
39066         unistdio/*-sprintf: Fix typo in module description.
39067         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
39068         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
39069         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
39070         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
39071         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
39072         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
39073         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
39074         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39075
39076 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39077
39078         gnulib-tool: fix filelist for AIX, HP-UX ksh.
39079         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
39080         variables in shell case patterns, for AIX and HP-UX ksh.
39081
39082         Split large sed scripts, for HP-UX sed.
39083         * modules/stdio: Split sed scripts around 50 sed commands,
39084         to avoid HP-UX limit of 99 commands, in the near future.
39085         * modules/string: Likewise.
39086         * modules/unistd: Likewise.
39087
39088         gnulib-tool: avoid writing in the current directory.
39089         * gnulib-tool (func_emit_lib_Makefile_am)
39090         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
39091         not in the current directory, so concurrent gnulib-tool
39092         instances do not interfere.
39093
39094 2010-01-16  Jim Meyering  <meyering@redhat.com>
39095
39096         doc: update users.txt
39097         * users.txt: Add grep.
39098         (diffutils, gzip): Update URLs.
39099
39100 2010-01-12  Bruno Haible  <bruno@clisp.org>
39101
39102         posix_spawn: Avoid test failure on Cygwin.
39103         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
39104         characters.
39105         Reported by Simon Josefsson.
39106
39107 2010-01-12  Bruno Haible  <bruno@clisp.org>
39108
39109         * tests/test-cond.c (main): When skipping the test, show the reason.
39110
39111 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39112
39113         * lib/striconv.c (str_cd_iconv): Avoid if before free.
39114
39115 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39116
39117         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
39118         VC_LIST_ALWAYS_EXCLUDE_REGEX.
39119
39120 2010-01-12  Eric Blake  <ebb9@byu.net>
39121
39122         build: guarantee AS_VAR_IF
39123         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
39124         (gl_AS_VAR_IF): Move...
39125         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
39126         Reported by Simon Josefsson.
39127
39128 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39129
39130         * lib/stdio.in.h: Fix typo.
39131
39132 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39133
39134         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
39135         libgpg-error.
39136
39137 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39138
39139         * tests/test-xalloc-die.sh: Use $EXEEXT.
39140
39141 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39142             Bruno Haible  <bruno@clisp.org>
39143
39144         getlogin, getlogin_r: Avoid test failure.
39145         * tests/test-getlogin.c: Include <stdio.h>.
39146         (main): Skip the test when the function fails because stdin is not a
39147         tty.
39148         * tests/test-getlogin_r.c: Include <stdio.h>.
39149         (main): Skip the test when the function fails because stdin is not a
39150         tty.
39151
39152 2010-01-11  Eric Blake  <ebb9@byu.net>
39153
39154         tests: avoid more large file warnings
39155         * tests/test-fflush.c: Avoid warning about ftell use.
39156         * tests/test-fseek.c: Avoid warning about fseek use.
39157
39158 2010-01-10  Bruno Haible  <bruno@clisp.org>
39159
39160         nproc: Work better on Linux when /proc and /sys are not mounted.
39161         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
39162         as lower bound when, on glibc/Linux systems,
39163         sysconf (_SC_NPROCESSORS_CONF) returns 1.
39164         Suggested by Pádraig Brady <P@draigbrady.com>.
39165         Reported by Dmitry V. Levin <ldv@altlinux.org>.
39166
39167         nproc: Refactor.
39168         * lib/nproc.c (num_processors_via_affinity_mask): New function,
39169         extracted from num_processors.
39170         (num_processors): Call it.
39171
39172 2010-01-11  Jim Meyering  <meyering@redhat.com>
39173
39174         utimecmp: avoid new warning from upcoming gcc-4.5.0
39175         * lib/utimecmp.c (BILLION): Define using #define rather than an
39176         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
39177
39178 2010-01-11  Eric Blake  <ebb9@byu.net>
39179
39180         math: add portability warnings for classification macros
39181         * modules/math (Depends-on): Add warn-on-use.
39182         (Makefile.am): Provide new substitutions.
39183         * m4/math_h.m4 (gl_MATH_H): Require inline.
39184         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
39185         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
39186         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
39187         implement warnings.
39188
39189         unistd: warn on use of environ without module
39190         * modules/unistd (Depends-on): Add warn-on-use.
39191         (Makefile.am): Provide new substitutions.
39192         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
39193         * lib/unistd.in.h (environ): Wrap with a warning helper function.
39194
39195         stdio: warn on suspicious uses
39196         * modules/stdio (Depends-on): Add warn-on-use.
39197         (Makefile.am): Provide new substitutions.
39198         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
39199         fseeko.
39200         * lib/stdio.in.h (gets): Always warn on use.
39201         (fseek, ftell): Adjust when warnings are issued, and honor
39202         _GL_NO_LARGE_FILES as a way to silence the warning.
39203         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
39204         any warning about large file offsets.
39205         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
39206         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
39207         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
39208         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
39209         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
39210         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
39211         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
39212         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
39213
39214         warn-on-use: new module
39215         * modules/warn-on-use: New file.
39216         * build-aux/warn-on-use.h: Likewise.
39217         * m4/warn-on-use.m4: Likewise.
39218         * MODULES.html.sh (Support for building): Mention it.
39219
39220 2010-01-10  Bruno Haible  <bruno@clisp.org>
39221
39222         Tests for module 'unistr/u32-strdup'.
39223         * modules/unistr/u32-strdup-tests: New file.
39224         * tests/unistr/test-u32-strdup.c: New file.
39225
39226         Tests for module 'unistr/u16-strdup'.
39227         * modules/unistr/u16-strdup-tests: New file.
39228         * tests/unistr/test-u16-strdup.c: New file.
39229
39230         Tests for module 'unistr/u8-strdup'.
39231         * modules/unistr/u8-strdup-tests: New file.
39232         * tests/unistr/test-u8-strdup.c: New file.
39233         * tests/unistr/test-strdup.h: New file.
39234
39235         Tests for module 'unistr/u32-strncmp'.
39236         * modules/unistr/u32-strncmp-tests: New file.
39237         * tests/unistr/test-u32-strncmp.c: New file.
39238
39239         Tests for module 'unistr/u16-strncmp'.
39240         * modules/unistr/u16-strncmp-tests: New file.
39241         * tests/unistr/test-u16-strncmp.c: New file.
39242
39243         Tests for module 'unistr/u8-strncmp'.
39244         * modules/unistr/u8-strncmp-tests: New file.
39245         * tests/unistr/test-u8-strncmp.c: New file.
39246         * tests/unistr/test-strncmp.h: New file.
39247
39248         Tests for module 'unistr/u32-strcoll'.
39249         * modules/unistr/u32-strcoll-tests: New file.
39250         * tests/unistr/test-u32-strcoll.c: New file.
39251
39252         Tests for module 'unistr/u16-strcoll'.
39253         * modules/unistr/u16-strcoll-tests: New file.
39254         * tests/unistr/test-u16-strcoll.c: New file.
39255
39256         Tests for module 'unistr/u8-strcoll'.
39257         * modules/unistr/u8-strcoll-tests: New file.
39258         * tests/unistr/test-u8-strcoll.c: New file.
39259
39260         Tests for module 'unistr/u32-strcmp'.
39261         * modules/unistr/u32-strcmp-tests: New file.
39262         * tests/unistr/test-u32-strcmp.c: New file.
39263         * tests/unistr/test-u32-strcmp.h: New file.
39264
39265         Tests for module 'unistr/u16-strcmp'.
39266         * modules/unistr/u16-strcmp-tests: New file.
39267         * tests/unistr/test-u16-strcmp.c: New file.
39268         * tests/unistr/test-u16-strcmp.h: New file.
39269
39270         Tests for module 'unistr/u8-strcmp'.
39271         * modules/unistr/u8-strcmp-tests: New file.
39272         * tests/unistr/test-u8-strcmp.c: New file.
39273         * tests/unistr/test-u8-strcmp.h: New file.
39274         * tests/unistr/test-strcmp.h: New file.
39275
39276         Tests for module 'unistr/u32-strncat'.
39277         * modules/unistr/u32-strncat-tests: New file.
39278         * tests/unistr/test-u32-strncat.c: New file.
39279
39280         Tests for module 'unistr/u16-strncat'.
39281         * modules/unistr/u16-strncat-tests: New file.
39282         * tests/unistr/test-u16-strncat.c: New file.
39283
39284         Tests for module 'unistr/u8-strncat'.
39285         * modules/unistr/u8-strncat-tests: New file.
39286         * tests/unistr/test-u8-strncat.c: New file.
39287         * tests/unistr/test-strncat.h: New file.
39288
39289         Tests for module 'unistr/u32-strcat'.
39290         * modules/unistr/u32-strcat-tests: New file.
39291         * tests/unistr/test-u32-strcat.c: New file.
39292
39293         Tests for module 'unistr/u16-strcat'.
39294         * modules/unistr/u16-strcat-tests: New file.
39295         * tests/unistr/test-u16-strcat.c: New file.
39296
39297         Tests for module 'unistr/u8-strcat'.
39298         * modules/unistr/u8-strcat-tests: New file.
39299         * tests/unistr/test-u8-strcat.c: New file.
39300         * tests/unistr/test-strcat.h: New file.
39301
39302         Tests for module 'unistr/u32-stpncpy'.
39303         * modules/unistr/u32-stpncpy-tests: New file.
39304         * tests/unistr/test-u32-stpncpy.c: New file.
39305
39306         Tests for module 'unistr/u16-stpncpy'.
39307         * modules/unistr/u16-stpncpy-tests: New file.
39308         * tests/unistr/test-u16-stpncpy.c: New file.
39309
39310         Tests for module 'unistr/u8-stpncpy'.
39311         * modules/unistr/u8-stpncpy-tests: New file.
39312         * tests/unistr/test-u8-stpncpy.c: New file.
39313         * tests/unistr/test-stpncpy.h: New file.
39314
39315         Tests for module 'unistr/u32-strncpy'.
39316         * modules/unistr/u32-strncpy-tests: New file.
39317         * tests/unistr/test-u32-strncpy.c: New file.
39318
39319         Tests for module 'unistr/u16-strncpy'.
39320         * modules/unistr/u16-strncpy-tests: New file.
39321         * tests/unistr/test-u16-strncpy.c: New file.
39322
39323         Tests for module 'unistr/u8-strncpy'.
39324         * modules/unistr/u8-strncpy-tests: New file.
39325         * tests/unistr/test-u8-strncpy.c: New file.
39326         * tests/unistr/test-strncpy.h: New file.
39327
39328         Tests for module 'unistr/u32-stpcpy'.
39329         * modules/unistr/u32-stpcpy-tests: New file.
39330         * tests/unistr/test-u32-stpcpy.c: New file.
39331
39332         Tests for module 'unistr/u16-stpcpy'.
39333         * modules/unistr/u16-stpcpy-tests: New file.
39334         * tests/unistr/test-u16-stpcpy.c: New file.
39335
39336         Tests for module 'unistr/u8-stpcpy'.
39337         * modules/unistr/u8-stpcpy-tests: New file.
39338         * tests/unistr/test-u8-stpcpy.c: New file.
39339         * tests/unistr/test-stpcpy.h: New file.
39340
39341         Tests for module 'unistr/u32-strcpy'.
39342         * modules/unistr/u32-strcpy-tests: New file.
39343         * tests/unistr/test-u32-strcpy.c: New file.
39344
39345         Tests for module 'unistr/u16-strcpy'.
39346         * modules/unistr/u16-strcpy-tests: New file.
39347         * tests/unistr/test-u16-strcpy.c: New file.
39348
39349         Tests for module 'unistr/u8-strcpy'.
39350         * modules/unistr/u8-strcpy-tests: New file.
39351         * tests/unistr/test-u8-strcpy.c: New file.
39352         * tests/unistr/test-strcpy.h: New file.
39353
39354         Tests for module 'unistr/u32-strnlen'.
39355         * modules/unistr/u32-strnlen-tests: New file.
39356         * tests/unistr/test-u32-strnlen.c: New file.
39357
39358         Tests for module 'unistr/u16-strnlen'.
39359         * modules/unistr/u16-strnlen-tests: New file.
39360         * tests/unistr/test-u16-strnlen.c: New file.
39361
39362         Tests for module 'unistr/u8-strnlen'.
39363         * modules/unistr/u8-strnlen-tests: New file.
39364         * tests/unistr/test-u8-strnlen.c: New file.
39365         * tests/unistr/test-strnlen.h: New file.
39366
39367         Tests for module 'unistr/u32-strlen'.
39368         * modules/unistr/u32-strlen-tests: New file.
39369         * tests/unistr/test-u32-strlen.c: New file.
39370
39371         Tests for module 'unistr/u16-strlen'.
39372         * modules/unistr/u16-strlen-tests: New file.
39373         * tests/unistr/test-u16-strlen.c: New file.
39374
39375         Tests for module 'unistr/u8-strlen'.
39376         * modules/unistr/u8-strlen-tests: New file.
39377         * tests/unistr/test-u8-strlen.c: New file.
39378
39379         Tests for module 'unistr/u32-prev'.
39380         * modules/unistr/u32-prev-tests: New file.
39381         * tests/unistr/test-u32-prev.c: New file.
39382
39383         Tests for module 'unistr/u16-prev'.
39384         * modules/unistr/u16-prev-tests: New file.
39385         * tests/unistr/test-u16-prev.c: New file.
39386
39387         Tests for module 'unistr/u8-prev'.
39388         * modules/unistr/u8-prev-tests: New file.
39389         * tests/unistr/test-u8-prev.c: New file.
39390
39391         Tests for module 'unistr/u32-next'.
39392         * modules/unistr/u32-next-tests: New file.
39393         * tests/unistr/test-u32-next.c: New file.
39394
39395         Tests for module 'unistr/u16-next'.
39396         * modules/unistr/u16-next-tests: New file.
39397         * tests/unistr/test-u16-next.c: New file.
39398
39399         Tests for module 'unistr/u8-next'.
39400         * modules/unistr/u8-next-tests: New file.
39401         * tests/unistr/test-u8-next.c: New file.
39402
39403         Tests for module 'unistr/u32-strmbtouc'.
39404         * modules/unistr/u32-strmbtouc-tests: New file.
39405         * tests/unistr/test-u32-strmbtouc.c: New file.
39406
39407         Tests for module 'unistr/u16-strmbtouc'.
39408         * modules/unistr/u16-strmbtouc-tests: New file.
39409         * tests/unistr/test-u16-strmbtouc.c: New file.
39410
39411         Tests for module 'unistr/u8-strmbtouc'.
39412         * modules/unistr/u8-strmbtouc-tests: New file.
39413         * tests/unistr/test-u8-strmbtouc.c: New file.
39414
39415         Tests for module 'unistr/u32-strmblen'.
39416         * modules/unistr/u32-strmblen-tests: New file.
39417         * tests/unistr/test-u32-strmblen.c: New file.
39418
39419         Tests for module 'unistr/u16-strmblen'.
39420         * modules/unistr/u16-strmblen-tests: New file.
39421         * tests/unistr/test-u16-strmblen.c: New file.
39422
39423         Tests for module 'unistr/u8-strmblen'.
39424         * modules/unistr/u8-strmblen-tests: New file.
39425         * tests/unistr/test-u8-strmblen.c: New file.
39426
39427         Tests for module 'unistr/u32-cpy-alloc'.
39428         * modules/unistr/u32-cpy-alloc-tests: New file.
39429         * tests/unistr/test-u32-cpy-alloc.c: New file.
39430
39431         Tests for module 'unistr/u16-cpy-alloc'.
39432         * modules/unistr/u16-cpy-alloc-tests: New file.
39433         * tests/unistr/test-u16-cpy-alloc.c: New file.
39434
39435         Tests for module 'unistr/u8-cpy-alloc'.
39436         * modules/unistr/u8-cpy-alloc-tests: New file.
39437         * tests/unistr/test-u8-cpy-alloc.c: New file.
39438         * tests/unistr/test-cpy-alloc.h: New file.
39439
39440         Tests for module 'unistr/u32-mbsnlen'.
39441         * modules/unistr/u32-mbsnlen-tests: New file.
39442         * tests/unistr/test-u32-mbsnlen.c: New file.
39443
39444         Tests for module 'unistr/u16-mbsnlen'.
39445         * modules/unistr/u16-mbsnlen-tests: New file.
39446         * tests/unistr/test-u16-mbsnlen.c: New file.
39447
39448         Tests for module 'unistr/u8-mbsnlen'.
39449         * modules/unistr/u8-mbsnlen-tests: New file.
39450         * tests/unistr/test-u8-mbsnlen.c: New file.
39451
39452         Tests for module 'unistr/u32-chr'.
39453         * modules/unistr/u32-chr-tests: New file.
39454         * tests/unistr/test-u32-chr.c: New file.
39455
39456         Tests for module 'unistr/u16-chr'.
39457         * modules/unistr/u16-chr-tests: New file.
39458         * tests/unistr/test-u16-chr.c: New file.
39459
39460         Tests for module 'unistr/u8-chr'.
39461         * modules/unistr/u8-chr-tests: New file.
39462         * tests/unistr/test-u8-chr.c: New file.
39463         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
39464
39465         Tests for module 'unistr/u32-cmp2'.
39466         * modules/unistr/u32-cmp2-tests: New file.
39467         * tests/unistr/test-u32-cmp2.c: New file.
39468
39469         Tests for module 'unistr/u16-cmp2'.
39470         * modules/unistr/u16-cmp2-tests: New file.
39471         * tests/unistr/test-u16-cmp2.c: New file.
39472
39473         Tests for module 'unistr/u8-cmp2'.
39474         * modules/unistr/u8-cmp2-tests: New file.
39475         * tests/unistr/test-u8-cmp2.c: New file.
39476         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
39477
39478         Tests for module 'unistr/u32-cmp'.
39479         * modules/unistr/u32-cmp-tests: New file.
39480         * tests/unistr/test-u32-cmp.c: New file.
39481
39482         Tests for module 'unistr/u16-cmp'.
39483         * modules/unistr/u16-cmp-tests: New file.
39484         * tests/unistr/test-u16-cmp.c: New file.
39485
39486         Tests for module 'unistr/u8-cmp'.
39487         * modules/unistr/u8-cmp-tests: New file.
39488         * tests/unistr/test-u8-cmp.c: New file.
39489         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
39490
39491         Tests for module 'unistr/u32-set'.
39492         * modules/unistr/u32-set-tests: New file.
39493         * tests/unistr/test-u32-set.c: New file.
39494
39495         Tests for module 'unistr/u16-set'.
39496         * modules/unistr/u16-set-tests: New file.
39497         * tests/unistr/test-u16-set.c: New file.
39498
39499         Tests for module 'unistr/u8-set'.
39500         * modules/unistr/u8-set-tests: New file.
39501         * tests/unistr/test-u8-set.c: New file.
39502         * tests/unistr/test-set.h: New file.
39503
39504         Tests for module 'unistr/u32-move'.
39505         * modules/unistr/u32-move-tests: New file.
39506         * tests/unistr/test-u32-move.c: New file.
39507
39508         Tests for module 'unistr/u16-move'.
39509         * modules/unistr/u16-move-tests: New file.
39510         * tests/unistr/test-u16-move.c: New file.
39511
39512         Tests for module 'unistr/u8-move'.
39513         * modules/unistr/u8-move-tests: New file.
39514         * tests/unistr/test-u8-move.c: New file.
39515         * tests/unistr/test-move.h: New file.
39516
39517         Tests for module 'unistr/u32-cpy'.
39518         * modules/unistr/u32-cpy-tests: New file.
39519         * tests/unistr/test-u32-cpy.c: New file.
39520
39521         Tests for module 'unistr/u16-cpy'.
39522         * modules/unistr/u16-cpy-tests: New file.
39523         * tests/unistr/test-u16-cpy.c: New file.
39524
39525         Tests for module 'unistr/u8-cpy'.
39526         * modules/unistr/u8-cpy-tests: New file.
39527         * tests/unistr/test-u8-cpy.c: New file.
39528         * tests/unistr/test-cpy.h: New file.
39529
39530 2010-01-09  Bruno Haible  <bruno@clisp.org>
39531
39532         Tests for module 'unistr/u32-uctomb'.
39533         * modules/unistr/u32-uctomb-tests: New file.
39534         * tests/unistr/test-u32-uctomb.c: New file.
39535
39536         Tests for module 'unistr/u16-uctomb'.
39537         * modules/unistr/u16-uctomb-tests: New file.
39538         * tests/unistr/test-u16-uctomb.c: New file.
39539
39540         Tests for module 'unistr/u8-uctomb'.
39541         * modules/unistr/u8-uctomb-tests: New file.
39542         * tests/unistr/test-u8-uctomb.c: New file.
39543
39544         Tests for module 'unistr/u32-mbtoucr'.
39545         * modules/unistr/u32-mbtoucr-tests: New file.
39546         * tests/unistr/test-u32-mbtoucr.c: New file.
39547
39548         Tests for module 'unistr/u16-mbtoucr'.
39549         * modules/unistr/u16-mbtoucr-tests: New file.
39550         * tests/unistr/test-u16-mbtoucr.c: New file.
39551
39552         Tests for module 'unistr/u8-mbtoucr'.
39553         * modules/unistr/u8-mbtoucr-tests: New file.
39554         * tests/unistr/test-u8-mbtoucr.c: New file.
39555
39556         Tests for module 'unistr/u32-mbtouc'.
39557         * modules/unistr/u32-mbtouc-tests: New file.
39558         * tests/unistr/test-u32-mbtouc.c: New file.
39559
39560         Tests for module 'unistr/u16-mbtouc'.
39561         * modules/unistr/u16-mbtouc-tests: New file.
39562         * tests/unistr/test-u16-mbtouc.c: New file.
39563
39564         Tests for module 'unistr/u8-mbtouc'.
39565         * modules/unistr/u8-mbtouc-tests: New file.
39566         * tests/unistr/test-u8-mbtouc.c: New file.
39567
39568         Tests for module 'unistr/u32-mbtouc-unsafe'.
39569         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
39570         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
39571         * tests/unistr/test-u32-mbtouc.h: New file.
39572
39573         Tests for module 'unistr/u16-mbtouc-unsafe'.
39574         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
39575         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
39576         * tests/unistr/test-u16-mbtouc.h: New file.
39577
39578         Tests for module 'unistr/u8-mbtouc-unsafe'.
39579         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
39580         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
39581         * tests/unistr/test-u8-mbtouc.h: New file.
39582
39583         Tests for module 'unistr/u32-mblen'.
39584         * modules/unistr/u32-mblen-tests: New file.
39585         * tests/unistr/test-u32-mblen.c: New file.
39586
39587         Tests for module 'unistr/u16-mblen'.
39588         * modules/unistr/u16-mblen-tests: New file.
39589         * tests/unistr/test-u16-mblen.c: New file.
39590
39591         Tests for module 'unistr/u8-mblen'.
39592         * modules/unistr/u8-mblen-tests: New file.
39593         * tests/unistr/test-u8-mblen.c: New file.
39594
39595         Tests for module 'unistr/u32-to-u16'.
39596         * modules/unistr/u32-to-u16-tests: New file.
39597         * tests/unistr/test-u32-to-u16.c: New file.
39598
39599         Tests for module 'unistr/u32-to-u8'.
39600         * modules/unistr/u32-to-u8-tests: New file.
39601         * tests/unistr/test-u32-to-u8.c: New file.
39602
39603         Tests for module 'unistr/u16-to-u32'.
39604         * modules/unistr/u16-to-u32-tests: New file.
39605         * tests/unistr/test-u16-to-u32.c: New file.
39606
39607         Tests for module 'unistr/u16-to-u8'.
39608         * modules/unistr/u16-to-u8-tests: New file.
39609         * tests/unistr/test-u16-to-u8.c: New file.
39610
39611         Tests for module 'unistr/u8-to-u32'.
39612         * modules/unistr/u8-to-u32-tests: New file.
39613         * tests/unistr/test-u8-to-u32.c: New file.
39614
39615         Tests for module 'unistr/u8-to-u16'.
39616         * modules/unistr/u8-to-u16-tests: New file.
39617         * tests/unistr/test-u8-to-u16.c: New file.
39618
39619         Tests for module 'unistr/u32-check'.
39620         * modules/unistr/u32-check-tests: New file.
39621         * tests/unistr/test-u32-check.c: New file.
39622
39623         Tests for module 'unistr/u16-check'.
39624         * modules/unistr/u16-check-tests: New file.
39625         * tests/unistr/test-u16-check.c: New file.
39626
39627         Tests for module 'unistr/u8-check'.
39628         * modules/unistr/u8-check-tests: New file.
39629         * tests/unistr/test-u8-check.c: New file.
39630
39631         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
39632         (category_equals): New function.
39633         (main): Add more tests.
39634         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
39635
39636         * tests/unictype/test-bidi_byname.c (main): Add more tests.
39637
39638 2010-01-10  Bruno Haible  <bruno@clisp.org>
39639
39640         unistr/u*-strcoll: Try harder to distinguish different strings.
39641         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
39642         compare s1 and s2 to see if they are different.
39643
39644 2010-01-10  Bruno Haible  <bruno@clisp.org>
39645
39646         unistr/u*-stpncpy: Fix the return value.
39647         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
39648         description of the return value consistent with stpncpy in glibc.
39649         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
39650         written non-NUL unit.
39651
39652 2010-01-10  Bruno Haible  <bruno@clisp.org>
39653
39654         unistr/u*-next: Add missing dependencies.
39655         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
39656         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
39657         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
39658
39659 2010-01-10  Bruno Haible  <bruno@clisp.org>
39660
39661         unistr/u8-mbsnlen: Fix return value for incomplete character.
39662         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
39663         u8_mblen.
39664         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
39665         Remove unistr/u8-mblen.
39666         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
39667         u16_mblen.
39668         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
39669         Remove unistr/u16-mblen.
39670
39671 2010-01-10  Bruno Haible  <bruno@clisp.org>
39672
39673         wchar: Fix compilation error when <wchar.h> is used from coreutils.
39674         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
39675         Reported by Brian Gough <bjg@gnu.org> and
39676         Chris Clayton <chris2553@googlemail.com> via
39677         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
39678
39679 2010-01-09  Bruno Haible  <bruno@clisp.org>
39680
39681         unistr/u16-to-u32: Reject invalid input.
39682         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
39683         u16_mbtouc.
39684         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
39685         Remove unistr/u16-mbtouc.
39686
39687         unistr/u16-to-u8: Reject invalid input.
39688         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
39689         u16_mbtouc.
39690         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
39691         Remove unistr/u16-mbtouc.
39692
39693         unistr/u8-to-u32: Reject invalid input.
39694         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
39695         u8_mbtouc.
39696         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
39697         Remove unistr/u8-mbtouc.
39698
39699         unistr/u8-to-u16: Reject invalid input.
39700         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
39701         u8_mbtouc.
39702         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
39703         Remove unistr/u8-mbtouc.
39704
39705 2010-01-09  Bruno Haible  <bruno@clisp.org>
39706
39707         Tests for module 'getlogin'.
39708         * modules/getlogin-tests: New file.
39709         * tests/test-getlogin.c: New file.
39710
39711         New module 'getlogin'.
39712         * lib/unistd.in.h (getlogin): New declaration.
39713         * lib/getlogin.c: New file.
39714         * m4/getlogin.m4: New file.
39715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
39716         HAVE_GETLOGIN.
39717         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
39718         HAVE_GETLOGIN.
39719         * modules/getlogin: New file.
39720         * doc/posix-functions/getlogin.texi: Mention the new module.
39721         Reported by John W. Eaton <jwe@gnu.org>.
39722
39723 2010-01-09  Bruno Haible  <bruno@clisp.org>
39724
39725         getlogin_r: Support for native Windows.
39726         * lib/getlogin_r.c: Include <windows.h>
39727         (getlogin_r): Implement for native Windows.
39728         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
39729         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
39730         via John W. Eaton <jwe@gnu.org>.
39731
39732 2010-01-09  Bruno Haible  <bruno@clisp.org>
39733
39734         getlogin_r: Small fixes.
39735         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
39736         succeeds.
39737         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
39738         before testing whether getlogin_r is declared. No need to set
39739         HAVE_DECL_GETLOGIN_R to 1.
39740         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
39741
39742 2010-01-09  Bruno Haible  <bruno@clisp.org>
39743
39744         * lib/unistd.in.h (getlogin_r): Add comment.
39745
39746 2010-01-09  Bruno Haible  <bruno@clisp.org>
39747
39748         Tests for module 'getlogin_r'.
39749         * modules/getlogin_r-tests: New file.
39750         * tests/test-getlogin_r.c: New file.
39751
39752 2010-01-09  Jim Meyering  <meyering@redhat.com>
39753
39754         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
39755         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
39756         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
39757
39758 2010-01-08  Simon Josefsson  <simon@josefsson.org>
39759
39760         * lib/dup2.c (rpl_dup2): Improve comment.
39761
39762 2010-01-08  Eric Blake  <ebb9@byu.net>
39763
39764         maint.mk: allow packages to add makefile @@ exceptions
39765         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
39766         (sc_makefile_check): Rename...
39767         (sc_makefile_at_at_check): ...to this, and use hook.
39768
39769         dup2: work around mingw bug
39770         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
39771         Reported by Simon Josefsson.
39772
39773 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
39774
39775         glob: Fix C++ compilation.
39776         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
39777         C++.
39778
39779 2010-01-07  Bruno Haible  <bruno@clisp.org>
39780
39781         Fix indentation of wctype.in.h, broken since 2007-01-06.
39782         * lib/wctype.in.h: Fix indentation of preprocessor directives.
39783
39784 2010-01-07  Bruno Haible  <bruno@clisp.org>
39785
39786         mbslen: Avoid collision with system function.
39787         * lib/string.in.h [MirBSD]: Include <wchar.h>.
39788         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
39789         * m4/mbslen.m4: New file.
39790         * modules/mbslen (Files): Add it.
39791         (configure.ac): Invoke gl_MBSLEN.
39792         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
39793         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
39794         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
39795         via Ian Beckwith <ianb@erislabs.net>.
39796
39797 2010-01-07  Bruno Haible  <bruno@clisp.org>
39798
39799         dirent: Document the last fix.
39800         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
39801
39802 2010-01-07  Bruno Haible  <bruno@clisp.org>
39803
39804         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
39805         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
39806         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
39807         va_list are defined.
39808         * doc/posix-headers/stdio.texi: Document the bug of missing types.
39809         Reported by Eric Blake.
39810
39811 2010-01-07  Bruno Haible  <bruno@clisp.org>
39812
39813         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
39814         * modules/xlist (Depends-on): Add 'list',
39815         * modules/xoset (Depends-on): Add 'oset'.
39816         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39817
39818 2010-01-07  Bruno Haible  <bruno@clisp.org>
39819
39820         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
39821         * doc/posix-functions/strncasecmp.texi: Likewise.
39822
39823 2010-01-07  Bruno Haible  <bruno@clisp.org>
39824
39825         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
39826
39827 2010-01-07  John W. Eaton  <jwe@octave.org>
39828
39829         wctype: allow C++ use
39830         * lib/wctype.in.h: Add extern "C" block for C++.
39831
39832 2010-01-06  Eric Blake  <ebb9@byu.net>
39833
39834         maint.mk: detect incorrect GFDL usage
39835         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
39836
39837 2010-01-06  Jim Meyering  <meyering@redhat.com>
39838         and Eric Blake  <ebb9@byu.net>
39839
39840         maint.mk: ignore multi-line copyright in NEWS
39841         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
39842
39843 2010-01-06  Eric Blake  <ebb9@byu.net>
39844
39845         select: add missing dependency
39846         * modules/select-tests (Depends-on): Move sockets dependency...
39847         * modules/select (Depends-on): ...here.
39848         Reported by Ian Beckwith.
39849
39850         doc: regenerate INSTALL
39851         * doc/INSTALL: Reflect recent autoconf update.
39852         * doc/INSTALL.ISO: Likewise.
39853         * doc/INSTALL.UTF-8: Likewise.
39854
39855         pread: fix compilation on glibc
39856         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
39857         Reported by Ralf Wildenhues.
39858
39859         dirent: fix test failure
39860         * lib/dirent.in.h (includes): Guarantee ino_t.
39861         Reported by Ralf Wildenhues.
39862
39863 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
39864
39865         linkat, renameat: avoid bad free
39866         * lib/at-func2.c (at_func2): Fix typo.
39867         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
39868
39869 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39870
39871         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
39872         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
39873         to avoid failure of symlink test later.
39874
39875 2010-01-06  Eric Blake  <ebb9@byu.net>
39876
39877         stdio, unistd: guarantee ssize_t
39878         * lib/unistd.in.h (includes): Ensure that types required by POSIX
39879         2008 are exposed when needed.
39880         * lib/stdio.in.h (includes): Likewise.
39881         Reported by Ralf Wildenhues.
39882
39883 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
39884
39885         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
39886         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
39887         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
39888
39889 2010-01-06  Jim Meyering  <meyering@redhat.com>
39890
39891         readtokens: this module *does* require xalloc.h
39892         It uses only functions that were omitted by the old syntax-check rule.
39893         * lib/readtokens.c: Include "xalloc.h" once again.
39894         * modules/readtokens (Depends-on): Add xalloc.
39895         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
39896
39897 2010-01-05  Eric Blake  <ebb9@byu.net>
39898
39899         maint: support 'make announcement' from a VPATH build
39900         * top/maint.mk (announcement): Look for correct NEWS file.
39901
39902 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
39903
39904         utimens (fdutimens): ignore a negative FD, per contract
39905         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
39906         when we have a valid file descriptor.  Otherwise, using a brand
39907         new glibc (with just-patched futimens that now fails with EBADF)
39908         would cause this function to fail with ENOSYS.
39909         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
39910         See also http://bugzilla.redhat.com/552320.
39911
39912 2010-01-05  Eric Blake  <ebb9@byu.net>
39913
39914         strcase: document what it provides
39915         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
39916         gnulib module.
39917         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
39918         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
39919
39920 2010-01-05  Jim Meyering  <meyering@redhat.com>
39921
39922         maint: remove useless inclusions of "xalloc.h"
39923         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
39924         * lib/readtokens.c: Likewise.
39925         * lib/same.c: Likewise.
39926         * modules/getloadavg (Depends-on): Remove xalloc.
39927         * modules/readtokens: Likewise.
39928         * modules/same: Likewise.
39929
39930         maint.mk: include 4 more function names in alloca.h-checking regexp
39931         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
39932         regexp.  Before, we would give a false-positive (saying alloca.h
39933         is included unnecessarily) when the only uses involved omitted symbols.
39934
39935         xalloc.h: use consistent formatting
39936         * lib/xalloc.h: Move declarations to start in the first column.
39937
39938 2010-01-05  Eric Blake  <ebb9@byu.net>
39939
39940         mkdir: avoid xalloc
39941         * lib/mkdir.c (includes): Drop unused header.
39942         Reported by John W. Eaton.
39943
39944 2010-01-04  Jim Meyering  <meyering@redhat.com>
39945
39946         nl_langinfo: avoid configure-time syntax error
39947         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
39948         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
39949         the empty string.  Don't let that provoke a shell syntax error.
39950
39951         regcomp, regexec, fnmatch: avoid array bounds read error
39952         * lib/regcomp.c (build_equiv_class): From glibc:
39953         Use only the low 24 bits of a findidx return value as an index
39954         into the weights array.  Patch by Ulrich Drepper:
39955         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
39956         * lib/regexec.c (check_node_accept_bytes): Likewise.
39957         * lib/fnmatch_loop.c (FCT): Likewise.
39958
39959         regcomp: skip collseq lookup when there are no rules
39960         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
39961         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
39962
39963         regcomp: recognize ill-formed { } expressions
39964         * lib/regcomp.c (parse_dup_op): From glibc:
39965         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
39966
39967         regcomp: fix typo in comment
39968         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
39969         s/satisfy/satisfies/.
39970
39971         regcomp: sync from glibc: remove dead store
39972         * lib/regcomp.c (duplicate_node_closure): Remove useless
39973         search_duplicated_node call and dead store.
39974
39975         regcomp: sync from glibc; always use nl_langinfo
39976         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
39977         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
39978         * modules/regex (Depends-on): Add nl_langinfo.
39979
39980 2010-01-04  Eric Blake  <ebb9@byu.net>
39981
39982         fdopendir: fix configure test
39983         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
39984
39985 2010-01-01  Bruno Haible  <bruno@clisp.org>
39986
39987         wchar: Remove unused configure check.
39988         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
39989
39990 2010-01-01  Eric Blake  <ebb9@byu.net>
39991
39992         headers: make check of system header explicit
39993         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
39994         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
39995         ourselves.
39996         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39997         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39998         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
39999         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
40000         internals.
40001         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
40002         missing.
40003         Suggested by Bruno Haible.
40004
40005 2010-01-01  Jim Meyering  <meyering@redhat.com>
40006
40007         ChangeLog: tweak to eliminate unnecessary copyright line
40008         * ChangeLog: Remove a copyright line that was mistakenly updated
40009         by today's update-copyright run.  Reported by Eric Blake.
40010
40011         test-update-copyright: don't let envvar setting cause test failure
40012         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40013
40014 2010-01-01  Bruno Haible  <bruno@clisp.org>
40015
40016         localename: Avoid gcc warning.
40017         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
40018         function if it is not used.
40019
40020 2010-01-01  Jim Meyering  <meyering@redhat.com>
40021
40022         update nearly all FSF copyright year lists to include 2010
40023         Use the same procedure as for 2009, outlined in
40024         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
40025
40026         version-etc: set COPYRIGHT_YEAR to 2010
40027         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
40028
40029 2009-12-31  Eric Blake  <ebb9@byu.net>
40030
40031         doc: correct availability of cygwin 1.5.x getopt
40032         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
40033         variables.
40034         * doc/posix-functions/opterr.texi (opterr): Likewise.
40035         * doc/posix-functions/optind.texi (optind): Likewise.
40036         * doc/posix-functions/optopt.texi (optopt): Likewise.
40037         * doc/posix-functions/tzname.texi (tzname): Likewise.
40038
40039         openat: update maintainer
40040         * modules/openat (Maintainer): Add myself.
40041
40042         utimens: avoid shadowing warning
40043         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
40044         buffers into one, to avoid shadowing, as well as avoiding a
40045         redundant stat.
40046         Reported by Jim Meyering.
40047
40048         test-dup2: avoid compiler warning
40049         * tests/test-dup2.c (is_inheritable): Only define if used.
40050
40051 2010-01-01  Bruno Haible  <bruno@clisp.org>
40052
40053         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
40054         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
40055         defined, use wctomb instead of wcrtomb.
40056
40057 2010-01-01  Bruno Haible  <bruno@clisp.org>
40058
40059         iconv: Reject native Solaris iconv.
40060         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
40061         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
40062
40063 2009-12-31  Bruno Haible  <bruno@clisp.org>
40064
40065         * tests/test-signal.c (main): Remove test of 'SIG'.
40066
40067 2009-12-31  Bruno Haible  <bruno@clisp.org>
40068
40069         spawn: Fix incomplete fix.
40070         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40071         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40072         warnings for GNULIB_POSIXCHECK again.
40073         Reported by Eric Blake.
40074
40075 2009-12-31  Bruno Haible  <bruno@clisp.org>
40076
40077         Avoid namespace pollution on glibc systems.
40078         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
40079         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
40080         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
40081         glibc systems.
40082
40083 2009-12-31  Bruno Haible  <bruno@clisp.org>
40084
40085         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
40086         (gl_REPLACE_WCHAR_H): Turn into a no-op.
40087         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
40088         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
40089         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
40090         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
40091         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
40092
40093 2009-12-31  Bruno Haible  <bruno@clisp.org>
40094
40095         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
40096         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
40097         afterwards.
40098
40099 2009-12-31  Bruno Haible  <bruno@clisp.org>
40100
40101         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
40102         SYS_UTSNAME_H.
40103
40104 2009-12-31  Bruno Haible  <bruno@clisp.org>
40105
40106         spawn: Fix misapplied patch.
40107         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40108         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40109         warnings for GNULIB_POSIXCHECK.
40110
40111 2009-12-31  Bruno Haible  <bruno@clisp.org>
40112
40113         times: Update after sys_times changed.
40114         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
40115         * modules/times (Files): Add it.
40116         (configure.ac): Invoke gl_FUNC_TIMES.
40117
40118 2009-12-31  Bruno Haible  <bruno@clisp.org>
40119
40120         Use AC_C_INLINE where necessary.
40121         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
40122         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40123         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
40124         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
40125         * m4/mbfile.m4 (gl_MBFILE): Likewise.
40126         * m4/mbiter.m4 (gl_MBITER): Likewise.
40127         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40128         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40129         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
40130         * modules/u64 (configure.ac): Likewise.
40131
40132 2009-12-31  Bruno Haible  <bruno@clisp.org>
40133
40134         Use AC_C_INLINE instead of module 'inline' where possible.
40135         * modules/inline (Description): Clarify purpose.
40136         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
40137         * modules/count-one-bits (Depends-on): Remove inline.
40138         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
40139         * modules/openat (Depends-on): Remove inline.
40140         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
40141         instead of depending on module 'inline'.
40142         * modules/filevercmp (Depends-on, configure.ac): Likewise.
40143         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
40144         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
40145         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
40146         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
40147         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
40148         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
40149         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
40150         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
40151         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
40152         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
40153         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
40154         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
40155         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
40156         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
40157         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
40158         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
40159         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
40160         Likewise.
40161         * modules/unictype/property-ascii-hex-digit (Depends-on,
40162         configure.ac): Likewise.
40163         * modules/unictype/property-bidi-arabic-digit (Depends-on,
40164         configure.ac): Likewise.
40165         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
40166         configure.ac): Likewise.
40167         * modules/unictype/property-bidi-block-separator (Depends-on,
40168         configure.ac): Likewise.
40169         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
40170         configure.ac): Likewise.
40171         * modules/unictype/property-bidi-common-separator (Depends-on,
40172         configure.ac): Likewise.
40173         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
40174         Likewise.
40175         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
40176         configure.ac): Likewise.
40177         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
40178         configure.ac): Likewise.
40179         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
40180         configure.ac): Likewise.
40181         * modules/unictype/property-bidi-european-digit (Depends-on,
40182         configure.ac): Likewise.
40183         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
40184         configure.ac): Likewise.
40185         * modules/unictype/property-bidi-left-to-right (Depends-on,
40186         configure.ac): Likewise.
40187         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
40188         configure.ac): Likewise.
40189         * modules/unictype/property-bidi-other-neutral (Depends-on,
40190         configure.ac): Likewise.
40191         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
40192         Likewise.
40193         * modules/unictype/property-bidi-segment-separator (Depends-on,
40194         configure.ac): Likewise.
40195         * modules/unictype/property-bidi-whitespace (Depends-on,
40196         configure.ac): Likewise.
40197         * modules/unictype/property-combining (Depends-on, configure.ac):
40198         Likewise.
40199         * modules/unictype/property-composite (Depends-on, configure.ac):
40200         Likewise.
40201         * modules/unictype/property-currency-symbol (Depends-on,
40202         configure.ac): Likewise.
40203         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
40204         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
40205         Likewise.
40206         * modules/unictype/property-default-ignorable-code-point (Depends-on,
40207         configure.ac): Likewise.
40208         * modules/unictype/property-deprecated (Depends-on, configure.ac):
40209         Likewise.
40210         * modules/unictype/property-diacritic (Depends-on, configure.ac):
40211         Likewise.
40212         * modules/unictype/property-extender (Depends-on, configure.ac):
40213         Likewise.
40214         * modules/unictype/property-format-control (Depends-on, configure.ac):
40215         Likewise.
40216         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
40217         Likewise.
40218         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
40219         Likewise.
40220         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
40221         Likewise.
40222         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
40223         Likewise.
40224         * modules/unictype/property-hyphen (Depends-on, configure.ac):
40225         Likewise.
40226         * modules/unictype/property-id-continue (Depends-on, configure.ac):
40227         Likewise.
40228         * modules/unictype/property-id-start (Depends-on, configure.ac):
40229         Likewise.
40230         * modules/unictype/property-ideographic (Depends-on, configure.ac):
40231         Likewise.
40232         * modules/unictype/property-ids-binary-operator (Depends-on,
40233         configure.ac): Likewise.
40234         * modules/unictype/property-ids-trinary-operator (Depends-on,
40235         configure.ac): Likewise.
40236         * modules/unictype/property-ignorable-control (Depends-on,
40237         configure.ac): Likewise.
40238         * modules/unictype/property-iso-control (Depends-on, configure.ac):
40239         Likewise.
40240         * modules/unictype/property-join-control (Depends-on, configure.ac):
40241         Likewise.
40242         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
40243         Likewise.
40244         * modules/unictype/property-line-separator (Depends-on, configure.ac):
40245         Likewise.
40246         * modules/unictype/property-logical-order-exception (Depends-on,
40247         configure.ac): Likewise.
40248         * modules/unictype/property-lowercase (Depends-on, configure.ac):
40249         Likewise.
40250         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
40251         * modules/unictype/property-non-break (Depends-on, configure.ac):
40252         Likewise.
40253         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
40254         Likewise.
40255         * modules/unictype/property-numeric (Depends-on, configure.ac):
40256         Likewise.
40257         * modules/unictype/property-other-alphabetic (Depends-on,
40258         configure.ac): Likewise.
40259         * modules/unictype/property-other-default-ignorable-code-point
40260         (Depends-on, configure.ac): Likewise.
40261         * modules/unictype/property-other-grapheme-extend (Depends-on,
40262         configure.ac): Likewise.
40263         * modules/unictype/property-other-id-continue (Depends-on,
40264         configure.ac): Likewise.
40265         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
40266         Likewise.
40267         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
40268         Likewise.
40269         * modules/unictype/property-other-math (Depends-on, configure.ac):
40270         Likewise.
40271         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
40272         Likewise.
40273         * modules/unictype/property-paired-punctuation (Depends-on,
40274         configure.ac): Likewise.
40275         * modules/unictype/property-paragraph-separator (Depends-on,
40276         configure.ac): Likewise.
40277         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
40278         Likewise.
40279         * modules/unictype/property-pattern-white-space (Depends-on,
40280         configure.ac): Likewise.
40281         * modules/unictype/property-private-use (Depends-on, configure.ac):
40282         Likewise.
40283         * modules/unictype/property-punctuation (Depends-on, configure.ac):
40284         Likewise.
40285         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
40286         Likewise.
40287         * modules/unictype/property-radical (Depends-on, configure.ac):
40288         Likewise.
40289         * modules/unictype/property-sentence-terminal (Depends-on,
40290         configure.ac): Likewise.
40291         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
40292         Likewise.
40293         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
40294         * modules/unictype/property-terminal-punctuation (Depends-on,
40295         configure.ac): Likewise.
40296         * modules/unictype/property-titlecase (Depends-on, configure.ac):
40297         Likewise.
40298         * modules/unictype/property-unassigned-code-value (Depends-on,
40299         configure.ac): Likewise.
40300         * modules/unictype/property-unified-ideograph (Depends-on,
40301         configure.ac): Likewise.
40302         * modules/unictype/property-uppercase (Depends-on, configure.ac):
40303         Likewise.
40304         * modules/unictype/property-variation-selector (Depends-on,
40305         configure.ac): Likewise.
40306         * modules/unictype/property-white-space (Depends-on, configure.ac):
40307         Likewise.
40308         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
40309         Likewise.
40310         * modules/unictype/property-xid-start (Depends-on, configure.ac):
40311         Likewise.
40312         * modules/unictype/property-zero-width (Depends-on, configure.ac):
40313         Likewise.
40314         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
40315         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
40316         Likewise.
40317
40318 2009-12-31  Bruno Haible  <bruno@clisp.org>
40319
40320         Remove unnecessary AC_C_INLINE invocation.
40321         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
40322         since 2009-08-21.
40323
40324 2009-12-31  Jim Meyering  <meyering@redhat.com>
40325
40326         maint.mk: don't require explicit gpg_key_ID in cfg.mk
40327         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
40328         With this change, we can all remove the gpg_key_ID = ... definition
40329         from our respective cfg.mk files.
40330
40331         maint.mk: create announcement template in ~/, not in /tmp
40332         * top/maint.mk (emit_upload_commands): Adjust.
40333         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
40334         Remove temporary file, .ci-msg.
40335
40336 2009-12-31  Eric Blake  <ebb9@byu.net>
40337
40338         link-warning: always build headers with link warnings
40339         * modules/arpa_inet (Makefile.am): Always build replacement
40340         header.
40341         * modules/ctype (Makefile.am): Likewise.
40342         * modules/dirent (Makefile.am): Likewise.
40343         * modules/inttypes (Makefile.am): Likewise.
40344         * modules/langinfo (Makefile.am): Likewise.
40345         * modules/locale (Makefile.am): Likewise.
40346         * modules/spawn (Makefile.am): Likewise.
40347         * modules/sys_file (Makefile.am): Likewise.
40348         * modules/sys_ioctl (Makefile.am): Likewise.
40349         * modules/sys_select (Makefile.am): Likewise.
40350         * modules/sys_socket (Makefile.am): Likewise.
40351         * modules/sys_times (Makefile.am): Likewise.
40352         * modules/sys_utsname (Makefile.am): Likewise.
40353         * modules/sys_wait (Makefile.am): Likewise.
40354         * modules/wchar (Makefile.am): Likewise.
40355         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
40356         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
40357         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
40358         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
40359         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
40360         Likewise.
40361         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40362         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
40363         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
40364         Likewise.
40365         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
40366         Likewise.
40367         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
40368         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
40369         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
40370         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40371         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
40372         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40373         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40374         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
40375         (gl_WCHAR_H_DEFAULTS): Likewise.
40376
40377 2009-12-31  Eric Blake  <ebb9@byu.net>
40378
40379         signal, spawn: use link warnings
40380         * lib/signal.in.h (sigset_t): Make unconditional.
40381         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
40382         (sigpending, sigprocmask, sigaction): Add link warnings.
40383         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
40384         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
40385         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
40386         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
40387         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
40388         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
40389         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
40390         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
40391         (posix_spawn_file_actions_destroy)
40392         (posix_spawn_file_actions_addopen)
40393         (posix_spawn_file_actions_addclose)
40394         (posix_spawn_file_actions_adddup2): Likewise.
40395         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
40396         * tests/test-signal.c (main): Enhance test.
40397
40398         spawn: improve wrapper support
40399         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
40400         (gl_SPAWN_H_DEFAULTS): New defaults.
40401         * modules/spawn (Makefile.am): Substitute them.
40402         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
40403         Only declare if missing or broken.
40404
40405         sys_times, sys_utsname: use include_next
40406         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
40407         header.
40408         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
40409         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40410         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40411         * modules/sys_times (Depends-on): Add include_next.
40412         (Makefile.am): Substitute additional values.
40413         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
40414         * lib/sys_times.in.h (includes): Include native header, if
40415         available.
40416         * lib/sys_utsname.in.h (includes): Likewise.
40417         * tests/test-sys_times.c (main): Enhance test.
40418
40419         fdutimensat: revert prior patch
40420         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
40421         utimens.h.
40422         Reported by Bruno Haible.
40423
40424 2009-12-30  Eric Blake  <ebb9@byu.net>
40425
40426         sys_wait: drop link-warning dependency
40427         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
40428         link-warning efforts.
40429         * lib/sys_wait.in.h: Likewise.
40430
40431         fdutimensat: remove bogus dependency
40432         * modules/fdutimensat (Depends-on): Drop inline.
40433
40434         unistd: fix typo
40435         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
40436
40437 2009-12-30  Bruno Haible  <bruno@clisp.org>
40438
40439         Fix compilation error with Solaris cc.
40440         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
40441         * lib/unicase/u16-is-invariant.c: Likewise.
40442         * lib/unicase/u32-is-invariant.c: Likewise.
40443         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40444
40445 2009-12-30  Bruno Haible  <bruno@clisp.org>
40446
40447         Fix test crash.
40448         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
40449         locales.
40450         Reported by Simon Josefsson <simon@josefsson.org>.
40451
40452 2009-12-30  Bruno Haible  <bruno@clisp.org>
40453
40454         Fix compilation error on most platforms.
40455         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
40456         Reported by Simon Josefsson <simon@josefsson.org>
40457         and Nelson H. F. Beebe <beebe@math.utah.edu>.
40458
40459 2009-12-30  Eric Blake  <ebb9@byu.net>
40460
40461         futimens, utimensat: work around ntfs-3g bug
40462         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
40463         a ctime bug is present, and expand workaround to cover ntfs-3g.
40464         * lib/utimens.c (fdutimens, lutimens): Likewise.
40465         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
40466         (validate_timespec): Adjust return value.
40467         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
40468         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40469         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
40470
40471 2009-12-29  Eric Blake  <ebb9@byu.net>
40472
40473         link-warning: make usage consistent
40474         * modules/ctype (Depends-on): Add link-warning.
40475         (Makefile.am): Update rules accordingly.
40476         * modules/langinfo (Depends-on, Makefile.am): Likewise.
40477         * modules/locale (Depends-on, Makefile.am): Likewise.
40478         * modules/sys_file (Makefile.am): Likewise.
40479         * modules/getopt-posix (Makefile.am): Delete unused link warning
40480         efforts.
40481         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
40482         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
40483         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
40484         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
40485
40486         stdio: remove unused variables
40487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
40488         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
40489         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
40490
40491         tests: test more substitute headers
40492         * modules/ctype-tests: New file.
40493         * modules/dirent-tests: Likewise.
40494         * modules/spawn-tests: Likewise.
40495         * modules/sys_file-tests: Likewise.
40496         * modules/sys_ioctl-tests: Likewise.
40497         * modules/sys_wait-tests: Likewise.
40498         * tests/test-ctype.c: Likewise.
40499         * tests/test-dirent.c: Likewise.
40500         * tests/test-spawn.c: Likewise.
40501         * tests/test-sys_file.c: Likewise.
40502         * tests/test-sys_ioctl.c: Likewise.
40503         * tests/test-sys_wait.c: Likewise.
40504         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
40505         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
40506         whether or not flock is in use.
40507
40508         tests: remove License section from module
40509         * modules/arpa_inet-tests: Remove unneeded section.
40510         * modules/byteswap-tests: Likewise.
40511         * modules/ceilf-tests: Likewise.
40512         * modules/ceill-tests: Likewise.
40513         * modules/crypto/des-tests: Likewise.
40514         * modules/crypto/gc-arcfour-tests: Likewise.
40515         * modules/crypto/gc-arctwo-tests: Likewise.
40516         * modules/crypto/gc-des-tests: Likewise.
40517         * modules/crypto/gc-hmac-md5-tests: Likewise.
40518         * modules/crypto/gc-hmac-sha1-tests: Likewise.
40519         * modules/crypto/gc-md2-tests: Likewise.
40520         * modules/crypto/gc-md4-tests: Likewise.
40521         * modules/crypto/gc-md5-tests: Likewise.
40522         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
40523         * modules/crypto/gc-rijndael-tests: Likewise.
40524         * modules/crypto/gc-sha1-tests: Likewise.
40525         * modules/crypto/gc-tests: Likewise.
40526         * modules/crypto/md2-tests: Likewise.
40527         * modules/crypto/md4-tests: Likewise.
40528         * modules/fcntl-h-tests: Likewise.
40529         * modules/floorf-tests: Likewise.
40530         * modules/floorl-tests: Likewise.
40531         * modules/frexp-nolibm-tests: Likewise.
40532         * modules/frexp-tests: Likewise.
40533         * modules/frexpl-nolibm-tests: Likewise.
40534         * modules/frexpl-tests: Likewise.
40535         * modules/getaddrinfo-tests: Likewise.
40536         * modules/inttypes-tests: Likewise.
40537         * modules/isfinite-tests: Likewise.
40538         * modules/isinf-tests: Likewise.
40539         * modules/ldexpl-tests: Likewise.
40540         * modules/locale-tests: Likewise.
40541         * modules/math-tests: Likewise.
40542         * modules/netdb-tests: Likewise.
40543         * modules/netinet_in-tests: Likewise.
40544         * modules/printf-frexp-tests: Likewise.
40545         * modules/printf-frexpl-tests: Likewise.
40546         * modules/priv-set-tests: Likewise.
40547         * modules/random_r-tests: Likewise.
40548         * modules/round-tests: Likewise.
40549         * modules/roundf-tests: Likewise.
40550         * modules/roundl-tests: Likewise.
40551         * modules/search-tests: Likewise.
40552         * modules/select-tests: Likewise.
40553         * modules/signal-tests: Likewise.
40554         * modules/stdbool-tests: Likewise.
40555         * modules/stddef-tests: Likewise.
40556         * modules/stdint-tests: Likewise.
40557         * modules/stdio-tests: Likewise.
40558         * modules/stdlib-tests: Likewise.
40559         * modules/string-tests: Likewise.
40560         * modules/strings-tests: Likewise.
40561         * modules/sys_select-tests: Likewise.
40562         * modules/sys_socket-tests: Likewise.
40563         * modules/sys_stat-tests: Likewise.
40564         * modules/sys_time-tests: Likewise.
40565         * modules/sys_utsname-tests: Likewise.
40566         * modules/sysexits-tests: Likewise.
40567         * modules/time-tests: Likewise.
40568         * modules/trunc-tests: Likewise.
40569         * modules/truncf-tests: Likewise.
40570         * modules/truncl-tests: Likewise.
40571         * modules/tsearch-tests: Likewise.
40572         * modules/unistd-tests: Likewise.
40573         * modules/wchar-tests: Likewise.
40574         * modules/wctype-tests: Likewise.
40575
40576         tests: fix license on several tests
40577         * tests/test-des.c: Update to GPLv3+.
40578         * tests/test-flock.c: Likewise.
40579         * tests/test-fsync.c: Likewise.
40580         * tests/test-futimens.h: Likewise.
40581         * tests/test-gc-arcfour.c: Likewise.
40582         * tests/test-gc-arctwo.c: Likewise.
40583         * tests/test-gc-des.c: Likewise.
40584         * tests/test-gc-hmac-md5.c: Likewise.
40585         * tests/test-gc-hmac-sha1.c: Likewise.
40586         * tests/test-gc-md2.c: Likewise.
40587         * tests/test-gc-md4.c: Likewise.
40588         * tests/test-gc-md5.c: Likewise.
40589         * tests/test-gc-pbkdf2-sha1.c: Likewise.
40590         * tests/test-gc-rijndael.c: Likewise.
40591         * tests/test-gc-sha1.c: Likewise.
40592         * tests/test-gc.c: Likewise.
40593         * tests/test-getcwd.c: Likewise.
40594         * tests/test-link.c: Likewise.
40595         * tests/test-link.h: Likewise.
40596         * tests/test-lutimens.h: Likewise.
40597         * tests/test-md2.c: Likewise.
40598         * tests/test-md4.c: Likewise.
40599         * tests/test-mkdir.h: Likewise.
40600         * tests/test-rename.c: Likewise.
40601         * tests/test-rename.h: Likewise.
40602         * tests/test-safe-alloc.c: Likewise.
40603         * tests/test-utimens-common.h: Likewise.
40604         * tests/test-utimens.h: Likewise.
40605
40606         maint: sync license texts
40607         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
40608         * doc/gpl-3.0.texi: Revert copyright year update.
40609         * doc/lgpl-3.0.texi: Likewise.
40610
40611 2009-12-29  Jim Meyering  <meyering@redhat.com>
40612
40613         update nearly all FSF copyright year lists to include 2009
40614         The files named by the following are exempted:
40615             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
40616               test -f "$dst" && { echo "$dst"; continue; }
40617               test -d "$dst" || continue
40618               echo "$dst"/$(basename "$src")
40619             done > exempt
40620             git ls-files tests/unictype >> exempt
40621         In the remaining files, convert to all-interval notation if
40622         - there is already at least one year interval like 2000-2003
40623         - the file is maintained by me
40624         - the file is in lib/uni*/, where that style already prevails
40625         Otherwise, use update-copyright's default.
40626
40627 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40628         and Eric Blake  <ebb9@byu.net>
40629
40630         tests: don't require debug system() to pass
40631         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
40632         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40633         * tests/test-unlink.h (test_unlink_func): Likewise.
40634         * tests/test-fstatat.c (main): ...into callers.
40635         * tests/test-lstat.c (main): Likewise.
40636         * tests/test-rmdir.c (main): Likewise.
40637         * tests/test-unlink.c (main): Likewise.
40638         * tests/test-unlinkat.c (main): Likewise.
40639         * tests/test-areadlink-with-size.c (main): Don't require a
40640         debug-only system call to pass, aiding cross-testing to mingw.
40641         * tests/test-areadlink.c (main): Likewise.
40642         * tests/test-areadlinkat-with-size.c (main): Likewise.
40643         * tests/test-areadlinkat.c (main): Likewise.
40644         * tests/test-canonicalize-lgpl.c (main): Likewise.
40645         * tests/test-canonicalize.c (main): Likewise.
40646         * tests/test-chown.c (main): Likewise.
40647         * tests/test-fchownat.c (main): Likewise.
40648         * tests/test-lchown.c (main): Likewise.
40649         * tests/test-fdutimensat.c (main): Likewise.
40650         * tests/test-futimens.c (main): Likewise.
40651         * tests/test-link.c (main): Likewise.
40652         * tests/test-linkat.c (main): Likewise.
40653         * tests/test-mkdir.c (main): Likewise.
40654         * tests/test-mkdirat.c (main): Likewise.
40655         * tests/test-mkfifo.c (main): Likewise.
40656         * tests/test-mkfifoat.c (main): Likewise.
40657         * tests/test-mknod.c (main): Likewise.
40658         * tests/test-readlink.c (main): Likewise.
40659         * tests/test-remove.c (main): Likewise.
40660         * tests/test-rename.c (main): Likewise.
40661         * tests/test-renameat.c (main): Likewise.
40662         * tests/test-symlink.c (main): Likewise.
40663         * tests/test-symlinkat.c (main): Likewise.
40664         * tests/test-utimens.c (main): Likewise.
40665         * tests/test-utimensat.c (main): Likewise.
40666
40667 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40668
40669         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
40670         on $(UNUSED_PARAMETER_H) to avoid build failure.
40671
40672 2009-12-28  Jim Meyering  <meyering@redhat.com>
40673
40674         update-copyright: you may specify a max. line length other than 72
40675         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40676
40677         maint: use consistent FSF copyright line syntax
40678         * lib/posixtm.c: Add missing comma in FSF copyright line.
40679         * lib/posixtm.h: Likewise.
40680         * lib/getugroups.c: Add missing ", Inc.".
40681
40682         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
40683         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
40684         FSF copyright line.  Remove trailing blanks.
40685
40686 2009-12-28  Eric Blake  <ebb9@byu.net>
40687
40688         test-dup2: reduce dependencies
40689         * modules/cloexec (Configure.ac): Set witness.
40690         * modules/dup2-tests (Depends-on): Drop cloexec.
40691         * tests/test-dup2.c (main): Skip portion of test if cloexec module
40692         not present.
40693         Suggested by Bruno Haible.
40694
40695 2009-12-26  Bruno Haible  <bruno@clisp.org>
40696
40697         Remove an unneeded dependency.
40698         * modules/fseterr (Depends-on): Remove dup2.
40699
40700 2009-12-26  Eric Blake  <ebb9@byu.net>
40701
40702         tests: use macros.h in more places
40703         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
40704         (ASSERT_STREAM): Provide default of stderr.
40705         * tests/test-dirent-safer.c: Include macros.h, using alternate
40706         stream for assertions.
40707         * tests/test-dup-safer.c: Likewise.
40708         * tests/test-freopen-safer.c: Likewise.
40709         * tests/test-getopt.c: Likewise.
40710         * tests/test-openat-safer.c: Likewise.
40711         * tests/test-pipe.c: Likewise.
40712         * tests/test-popen-safer.c: Likewise.
40713         * modules/dirent-safer-tests (Files): Include macros.h.
40714         * modules/unistd-safer-tests (Files): Likewise.
40715         * modules/freopen-safer-tests (Files): Likewise.
40716         * modules/getopt-posix-tests (Files): Likewise.
40717         * modules/openat-safer-tests (Files): Likewise.
40718         * modules/pipe-tests (Files): Likewise.
40719
40720 2009-12-26  Bruno Haible  <bruno@clisp.org>
40721
40722         javacomp: Portability fix.
40723         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
40724         that it also works on Solaris.
40725
40726 2009-12-26  Bruno Haible  <bruno@clisp.org>
40727
40728         localename: Fix storage allocation of gl_locale_name_thread's result.
40729         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
40730         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
40731         all platforms that have 'uselocale'.
40732         (gl_locale_name_thread_unsafe): New function, extracted from
40733         gl_locale_name_thread.
40734         (gl_locale_name_thread): Call struniq on all platforms that have
40735         'uselocale'.
40736         * tests/test-localename.c (test_locale_name_thread): Check that the
40737         resulting strings are permanently allocated.
40738         * modules/localename-tests (Depends-on): Add strdup.
40739
40740 2009-12-26  Bruno Haible  <bruno@clisp.org>
40741
40742         * tests/test-localename.c (categories): Fill in the strings.
40743
40744 2009-12-26  Jim Meyering  <meyering@redhat.com>
40745
40746         isdir: complete the removal of m4/isdir.m4
40747         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
40748
40749         isdir: clean up, since at least grep still uses it
40750         * lib/isdir.c: Include "isdir.h".
40751         (S_ISDIR): Remove now-unneeded definition.
40752         * modules/isdir (Files): Add lib/isdir.h.
40753         * lib/isdir.h: New file, with declaration.
40754         * m4/isdir.m4: Remove file -- unneeded.
40755
40756 2009-12-25  Bruno Haible  <bruno@clisp.org>
40757
40758         selinux-h: Make generated .h files standalone.
40759         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
40760         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
40761         * lib/se-selinux.in.h: Likewise.
40762         * modules/selinux-h (Depends-on): Add unused-parameter.
40763         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
40764         selinux/selinux.h and selinux/context.h.
40765         Suggested by Eric Blake.
40766
40767 2009-12-25  Bruno Haible  <bruno@clisp.org>
40768
40769         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
40770         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
40771         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
40772         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
40773         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
40774
40775 2009-12-24  Bruno Haible  <bruno@clisp.org>
40776
40777         openat: Fix warning.
40778         * lib/openat-proc.c: Include <unistd.h>.
40779
40780 2009-12-24  Bruno Haible  <bruno@clisp.org>
40781
40782         New module 'unused-parameter'.
40783         * build-aux/unused-parameter.h: New file, extracted from earlier
40784         gnulib-common.m4.
40785         * modules/unused-parameter: New file.
40786         * lib/unistr.h: Include unused-parameter.h.
40787         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
40788         _GL_UNUSED.
40789         * modules/unistr/base (Depends-on): Add unused-parameter.
40790
40791 2009-12-24  Bruno Haible  <bruno@clisp.org>
40792
40793         Add missing dependencies to 'extensions' module.
40794         * m4/extensions.m4: Add comment.
40795         * modules/accept4 (Depends-on): Add extensions.
40796         * modules/dup3 (Depends-on): Likewise.
40797         * modules/fcntl (Depends-on): Likewise.
40798         * modules/futimens (Depends-on): Likewise.
40799         * modules/mknod (Depends-on): Likewise.
40800         * modules/pipe2 (Depends-on): Likewise.
40801         * modules/stat-time (Depends-on): Likewise.
40802         * modules/strcasestr-simple (Depends-on): Likewise.
40803         * modules/strsignal (Depends-on): Likewise.
40804         * modules/utimensat (Depends-on): Likewise.
40805         * modules/localcharset (Depends-on): Likewise. Needed because of
40806         gl_FCNTL_O_FLAGS.
40807         * modules/wcrtomb (Depends-on): Likewise. Needed because of
40808         AC_TYPE_MBSTATE_T.
40809         * modules/wcsnrtombs (Depends-on): Likewise.
40810         * modules/wcsrtombs (Depends-on): Likewise.
40811
40812 2009-12-24  Bruno Haible  <bruno@clisp.org>
40813
40814         binary-io: Avoid gcc warning due to SET_BINARY.
40815         * lib/binary-io.h (SET_BINARY): Cast the result to void.
40816         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
40817
40818 2009-12-24  Bruno Haible  <bruno@clisp.org>
40819
40820         Avoid future namespace pollution on glibc systems.
40821         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
40822         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
40823         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
40824         glibc systems.
40825
40826 2009-12-24  Bruno Haible  <bruno@clisp.org>
40827
40828         Refactor common macros used in tests.
40829         * tests/macros.h: New file.
40830         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
40831         and/or <stdlib.h>, if appropriate.
40832         (ASSERT, SIZEOF): Remove macros.
40833         * tests/test-areadlink-with-size.c: Likewise.
40834         * tests/test-areadlinkat.c: Likewise.
40835         * tests/test-areadlinkat-with-size.c: Likewise.
40836         * tests/test-argmatch.c: Likewise.
40837         * tests/test-argv-iter.c: Likewise.
40838         * tests/test-array-mergesort.c: Likewise.
40839         * tests/test-array_list.c: Likewise.
40840         * tests/test-array_oset.c: Likewise.
40841         * tests/test-avltree_list.c: Likewise.
40842         * tests/test-avltree_oset.c: Likewise.
40843         * tests/test-avltreehash_list.c: Likewise.
40844         * tests/test-base64.c: Likewise.
40845         * tests/test-binary-io.c: Likewise.
40846         * tests/test-bitrotate.c: Likewise.
40847         * tests/test-btowc.c: Likewise.
40848         * tests/test-byteswap.c: Likewise.
40849         * tests/test-c-ctype.c: Likewise.
40850         * tests/test-c-stack.c: Likewise.
40851         * tests/test-c-strcasecmp.c: Likewise.
40852         * tests/test-c-strcasestr.c: Likewise.
40853         * tests/test-c-strncasecmp.c: Likewise.
40854         * tests/test-c-strstr.c: Likewise.
40855         * tests/test-canonicalize-lgpl.c: Likewise.
40856         * tests/test-canonicalize.c: Likewise.
40857         * tests/test-carray_list.c: Likewise.
40858         * tests/test-ceilf1.c: Likewise.
40859         * tests/test-ceilf2.c: Likewise.
40860         * tests/test-ceill.c: Likewise.
40861         * tests/test-chown.c: Likewise.
40862         * tests/test-cloexec.c: Likewise.
40863         * tests/test-copy-acl.c: Likewise.
40864         * tests/test-copy-file.c: Likewise.
40865         * tests/test-count-one-bits.c: Likewise.
40866         * tests/test-dprintf-posix.c: Likewise.
40867         * tests/test-dup2.c: Likewise.
40868         * tests/test-dup3.c: Likewise.
40869         * tests/test-duplocale.c: Likewise.
40870         * tests/test-fbufmode.c: Likewise.
40871         * tests/test-fchdir.c: Likewise.
40872         * tests/test-fchownat.c: Likewise.
40873         * tests/test-fcntl-safer.c: Likewise.
40874         * tests/test-fcntl.c: Likewise.
40875         * tests/test-fdopendir.c: Likewise.
40876         * tests/test-fdutimensat.c: Likewise.
40877         * tests/test-fflush2.c: Likewise.
40878         * tests/test-file-has-acl.c: Likewise.
40879         * tests/test-filevercmp.c: Likewise.
40880         * tests/test-flock.c: Likewise.
40881         * tests/test-floorf1.c: Likewise.
40882         * tests/test-floorf2.c: Likewise.
40883         * tests/test-floorl.c: Likewise.
40884         * tests/test-fnmatch.c: Likewise.
40885         * tests/test-fopen.h: Likewise.
40886         * tests/test-fpending.c: Likewise.
40887         * tests/test-fprintf-posix.c: Likewise.
40888         * tests/test-fpurge.c: Likewise.
40889         * tests/test-freadable.c: Likewise.
40890         * tests/test-freadahead.c: Likewise.
40891         * tests/test-freading.c: Likewise.
40892         * tests/test-freadptr.c: Likewise.
40893         * tests/test-freadptr2.c: Likewise.
40894         * tests/test-freadseek.c: Likewise.
40895         * tests/test-freopen.c: Likewise.
40896         * tests/test-frexp.c: Likewise.
40897         * tests/test-frexpl.c: Likewise.
40898         * tests/test-fseek.c: Likewise.
40899         * tests/test-fseeko.c: Likewise.
40900         * tests/test-fstatat.c: Likewise.
40901         * tests/test-fstrcmp.c: Likewise.
40902         * tests/test-fsync.c: Likewise.
40903         * tests/test-ftell.c: Likewise.
40904         * tests/test-ftello.c: Likewise.
40905         * tests/test-func.c: Likewise.
40906         * tests/test-futimens.c: Likewise.
40907         * tests/test-fwritable.c: Likewise.
40908         * tests/test-fwriting.c: Likewise.
40909         * tests/test-getcwd.c: Likewise.
40910         * tests/test-getdate.c: Likewise.
40911         * tests/test-getdelim.c: Likewise.
40912         * tests/test-getdtablesize.c: Likewise.
40913         * tests/test-getgroups.c: Likewise.
40914         * tests/test-getline.c: Likewise.
40915         * tests/test-getndelim2.c: Likewise.
40916         * tests/test-glob.c: Likewise.
40917         * tests/test-hash.c: Likewise.
40918         * tests/test-i-ring.c: Likewise.
40919         * tests/test-iconv-utf.c: Likewise.
40920         * tests/test-iconv.c: Likewise.
40921         * tests/test-idpriv-drop.c: Likewise.
40922         * tests/test-idpriv-droptemp.c: Likewise.
40923         * tests/test-inet_ntop.c: Likewise.
40924         * tests/test-inet_pton.c: Likewise.
40925         * tests/test-isblank.c: Likewise.
40926         * tests/test-isfinite.c: Likewise.
40927         * tests/test-isinf.c: Likewise.
40928         * tests/test-isnan.c: Likewise.
40929         * tests/test-isnand.h: Likewise.
40930         * tests/test-isnanf.h: Likewise.
40931         * tests/test-isnanl.h: Likewise.
40932         * tests/test-lchown.c: Likewise.
40933         * tests/test-ldexpl.c: Likewise.
40934         * tests/test-link.c: Likewise.
40935         * tests/test-linkat.c: Likewise.
40936         * tests/test-linked_list.c: Likewise.
40937         * tests/test-linkedhash_list.c: Likewise.
40938         * tests/test-localename.c: Likewise.
40939         * tests/test-lseek.c: Likewise.
40940         * tests/test-lstat.c: Likewise.
40941         * tests/test-mbmemcasecmp.c: Likewise.
40942         * tests/test-mbmemcasecoll.c: Likewise.
40943         * tests/test-mbrtowc.c: Likewise.
40944         * tests/test-mbscasecmp.c: Likewise.
40945         * tests/test-mbscasestr1.c: Likewise.
40946         * tests/test-mbscasestr2.c: Likewise.
40947         * tests/test-mbscasestr3.c: Likewise.
40948         * tests/test-mbscasestr4.c: Likewise.
40949         * tests/test-mbschr.c: Likewise.
40950         * tests/test-mbscspn.c: Likewise.
40951         * tests/test-mbsinit.c: Likewise.
40952         * tests/test-mbsncasecmp.c: Likewise.
40953         * tests/test-mbsnrtowcs.c: Likewise.
40954         * tests/test-mbspbrk.c: Likewise.
40955         * tests/test-mbspcasecmp.c: Likewise.
40956         * tests/test-mbsrchr.c: Likewise.
40957         * tests/test-mbsrtowcs.c: Likewise.
40958         * tests/test-mbsspn.c: Likewise.
40959         * tests/test-mbsstr1.c: Likewise.
40960         * tests/test-mbsstr2.c: Likewise.
40961         * tests/test-mbsstr3.c: Likewise.
40962         * tests/test-memchr.c: Likewise.
40963         * tests/test-memchr2.c: Likewise.
40964         * tests/test-memcmp.c: Likewise.
40965         * tests/test-memmem.c: Likewise.
40966         * tests/test-memrchr.c: Likewise.
40967         * tests/test-mkdir.c: Likewise.
40968         * tests/test-mkdirat.c: Likewise.
40969         * tests/test-mkfifo.c: Likewise.
40970         * tests/test-mkfifoat.c: Likewise.
40971         * tests/test-mknod.c: Likewise.
40972         * tests/test-nanosleep.c: Likewise.
40973         * tests/test-nl_langinfo.c: Likewise.
40974         * tests/test-obstack-printf.c: Likewise.
40975         * tests/test-open.c: Likewise.
40976         * tests/test-openat.c: Likewise.
40977         * tests/test-pipe-filter-gi1.c: Likewise.
40978         * tests/test-pipe-filter-gi2-main.c: Likewise.
40979         * tests/test-pipe-filter-ii1.c: Likewise.
40980         * tests/test-pipe-filter-ii2-main.c: Likewise.
40981         * tests/test-pipe2.c: Likewise.
40982         * tests/test-popen.h: Likewise.
40983         * tests/test-posixtm.c: Likewise.
40984         * tests/test-pread.c: Likewise.
40985         * tests/test-printf-frexp.c: Likewise.
40986         * tests/test-printf-frexpl.c: Likewise.
40987         * tests/test-printf-posix.c: Likewise.
40988         * tests/test-priv-set.c: Likewise.
40989         * tests/test-quotearg.c: Likewise.
40990         * tests/test-random_r.c: Likewise.
40991         * tests/test-rawmemchr.c: Likewise.
40992         * tests/test-rbtree_list.c: Likewise.
40993         * tests/test-rbtree_oset.c: Likewise.
40994         * tests/test-rbtreehash_list.c: Likewise.
40995         * tests/test-readlink.c: Likewise.
40996         * tests/test-remove.c: Likewise.
40997         * tests/test-rename.c: Likewise.
40998         * tests/test-renameat.c: Likewise.
40999         * tests/test-rmdir.c: Likewise.
41000         * tests/test-round1.c: Likewise.
41001         * tests/test-roundf1.c: Likewise.
41002         * tests/test-roundl.c: Likewise.
41003         * tests/test-safe-alloc.c: Likewise.
41004         * tests/test-sameacls.c: Likewise.
41005         * tests/test-set-mode-acl.c: Likewise.
41006         * tests/test-setenv.c: Likewise.
41007         * tests/test-sigaction.c: Likewise.
41008         * tests/test-signbit.c: Likewise.
41009         * tests/test-sleep.c: Likewise.
41010         * tests/test-snprintf-posix.c: Likewise.
41011         * tests/test-snprintf.c: Likewise.
41012         * tests/test-sprintf-posix.c: Likewise.
41013         * tests/test-stat-time.c: Likewise.
41014         * tests/test-stat.c: Likewise.
41015         * tests/test-strcasestr.c: Likewise.
41016         * tests/test-strchrnul.c: Likewise.
41017         * tests/test-strerror.c: Likewise.
41018         * tests/test-striconv.c: Likewise.
41019         * tests/test-striconveh.c: Likewise.
41020         * tests/test-striconveha.c: Likewise.
41021         * tests/test-strsignal.c: Likewise.
41022         * tests/test-strstr.c: Likewise.
41023         * tests/test-strtod.c: Likewise.
41024         * tests/test-strverscmp.c: Likewise.
41025         * tests/test-symlink.c: Likewise.
41026         * tests/test-symlinkat.c: Likewise.
41027         * tests/test-trunc1.c: Likewise.
41028         * tests/test-trunc2.c: Likewise.
41029         * tests/test-truncf1.c: Likewise.
41030         * tests/test-truncf2.c: Likewise.
41031         * tests/test-truncl.c: Likewise.
41032         * tests/test-uname.c: Likewise.
41033         * tests/test-unlink.c: Likewise.
41034         * tests/test-unlinkat.c: Likewise.
41035         * tests/test-unsetenv.c: Likewise.
41036         * tests/test-usleep.c: Likewise.
41037         * tests/test-utimens.c: Likewise.
41038         * tests/test-utimensat.c: Likewise.
41039         * tests/test-vasnprintf-posix.c: Likewise.
41040         * tests/test-vasnprintf-posix2.c: Likewise.
41041         * tests/test-vasnprintf.c: Likewise.
41042         * tests/test-vasprintf-posix.c: Likewise.
41043         * tests/test-vasprintf.c: Likewise.
41044         * tests/test-vdprintf-posix.c: Likewise.
41045         * tests/test-vfprintf-posix.c: Likewise.
41046         * tests/test-vprintf-posix.c: Likewise.
41047         * tests/test-vsnprintf-posix.c: Likewise.
41048         * tests/test-vsnprintf.c: Likewise.
41049         * tests/test-vsprintf-posix.c: Likewise.
41050         * tests/test-wcrtomb.c: Likewise.
41051         * tests/test-wcsnrtombs.c: Likewise.
41052         * tests/test-wcsrtombs.c: Likewise.
41053         * tests/test-wctype.c: Likewise.
41054         * tests/test-wcwidth.c: Likewise.
41055         * tests/test-xfprintf-posix.c: Likewise.
41056         * tests/test-xmemdup0.c: Likewise.
41057         * tests/test-xprintf-posix.c: Likewise.
41058         * tests/test-xvasprintf.c: Likewise.
41059         * tests/unicase/test-locale-language.c: Likewise.
41060         * tests/unicase/test-mapping-part1.h: Likewise.
41061         * tests/unicase/test-predicate-part1.h: Likewise.
41062         * tests/unicase/test-u8-casecmp.c: Likewise.
41063         * tests/unicase/test-u8-casecoll.c: Likewise.
41064         * tests/unicase/test-u8-casefold.c: Likewise.
41065         * tests/unicase/test-u8-is-cased.c: Likewise.
41066         * tests/unicase/test-u8-is-casefolded.c: Likewise.
41067         * tests/unicase/test-u8-is-lowercase.c: Likewise.
41068         * tests/unicase/test-u8-is-titlecase.c: Likewise.
41069         * tests/unicase/test-u8-is-uppercase.c: Likewise.
41070         * tests/unicase/test-u8-tolower.c: Likewise.
41071         * tests/unicase/test-u8-totitle.c: Likewise.
41072         * tests/unicase/test-u8-toupper.c: Likewise.
41073         * tests/unicase/test-u16-casecmp.c: Likewise.
41074         * tests/unicase/test-u16-casecoll.c: Likewise.
41075         * tests/unicase/test-u16-casefold.c: Likewise.
41076         * tests/unicase/test-u16-is-cased.c: Likewise.
41077         * tests/unicase/test-u16-is-casefolded.c: Likewise.
41078         * tests/unicase/test-u16-is-lowercase.c: Likewise.
41079         * tests/unicase/test-u16-is-titlecase.c: Likewise.
41080         * tests/unicase/test-u16-is-uppercase.c: Likewise.
41081         * tests/unicase/test-u16-tolower.c: Likewise.
41082         * tests/unicase/test-u16-totitle.c: Likewise.
41083         * tests/unicase/test-u16-toupper.c: Likewise.
41084         * tests/unicase/test-u32-casecmp.c: Likewise.
41085         * tests/unicase/test-u32-casecoll.c: Likewise.
41086         * tests/unicase/test-u32-casefold.c: Likewise.
41087         * tests/unicase/test-u32-is-cased.c: Likewise.
41088         * tests/unicase/test-u32-is-casefolded.c: Likewise.
41089         * tests/unicase/test-u32-is-lowercase.c: Likewise.
41090         * tests/unicase/test-u32-is-titlecase.c: Likewise.
41091         * tests/unicase/test-u32-is-uppercase.c: Likewise.
41092         * tests/unicase/test-u32-tolower.c: Likewise.
41093         * tests/unicase/test-u32-totitle.c: Likewise.
41094         * tests/unicase/test-u32-toupper.c: Likewise.
41095         * tests/unicase/test-ulc-casecmp.c: Likewise.
41096         * tests/unicase/test-ulc-casecoll.c: Likewise.
41097         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41098         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
41099         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41100         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41101         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
41102         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
41103         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41104         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41105         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41106         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
41107         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41108         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41109         * tests/unictype/test-bidi_byname.c: Likewise.
41110         * tests/unictype/test-bidi_name.c: Likewise.
41111         * tests/unictype/test-bidi_of.c: Likewise.
41112         * tests/unictype/test-bidi_test.c: Likewise.
41113         * tests/unictype/test-block_list.c: Likewise.
41114         * tests/unictype/test-block_of.c: Likewise.
41115         * tests/unictype/test-block_test.c: Likewise.
41116         * tests/unictype/test-categ_and.c: Likewise.
41117         * tests/unictype/test-categ_and_not.c: Likewise.
41118         * tests/unictype/test-categ_byname.c: Likewise.
41119         * tests/unictype/test-categ_name.c: Likewise.
41120         * tests/unictype/test-categ_none.c: Likewise.
41121         * tests/unictype/test-categ_of.c: Likewise.
41122         * tests/unictype/test-categ_or.c: Likewise.
41123         * tests/unictype/test-categ_test_withtable.c: Likewise.
41124         * tests/unictype/test-combining.c: Likewise.
41125         * tests/unictype/test-decdigit.c: Likewise.
41126         * tests/unictype/test-digit.c: Likewise.
41127         * tests/unictype/test-mirror.c: Likewise.
41128         * tests/unictype/test-numeric.c: Likewise.
41129         * tests/unictype/test-pr_byname.c: Likewise.
41130         * tests/unictype/test-pr_test.c: Likewise.
41131         * tests/unictype/test-predicate-part1.h: Likewise.
41132         * tests/unictype/test-scripts.c: Likewise.
41133         * tests/unictype/test-sy_c_ident.c: Likewise.
41134         * tests/unictype/test-sy_java_ident.c: Likewise.
41135         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
41136         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
41137         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
41138         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
41139         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
41140         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
41141         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
41142         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
41143         * tests/uninorm/test-canonical-decomposition.c: Likewise.
41144         * tests/uninorm/test-compat-decomposition.c: Likewise.
41145         * tests/uninorm/test-composition.c: Likewise.
41146         * tests/uninorm/test-decomposing-form.c: Likewise.
41147         * tests/uninorm/test-decomposition.c: Likewise.
41148         * tests/uninorm/test-u8-nfc.c: Likewise.
41149         * tests/uninorm/test-u8-nfd.c: Likewise.
41150         * tests/uninorm/test-u8-nfkc.c: Likewise.
41151         * tests/uninorm/test-u8-nfkd.c: Likewise.
41152         * tests/uninorm/test-u8-normcmp.c: Likewise.
41153         * tests/uninorm/test-u8-normcoll.c: Likewise.
41154         * tests/uninorm/test-u16-nfc.c: Likewise.
41155         * tests/uninorm/test-u16-nfd.c: Likewise.
41156         * tests/uninorm/test-u16-nfkc.c: Likewise.
41157         * tests/uninorm/test-u16-nfkd.c: Likewise.
41158         * tests/uninorm/test-u16-normcmp.c: Likewise.
41159         * tests/uninorm/test-u16-normcoll.c: Likewise.
41160         * tests/uninorm/test-u32-nfc.c: Likewise.
41161         * tests/uninorm/test-u32-nfd.c: Likewise.
41162         * tests/uninorm/test-u32-nfkc.c: Likewise.
41163         * tests/uninorm/test-u32-nfkd.c: Likewise.
41164         * tests/uninorm/test-u32-normalize-big.c: Likewise.
41165         * tests/uninorm/test-u32-normcmp.c: Likewise.
41166         * tests/uninorm/test-u32-normcoll.c: Likewise.
41167         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
41168         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
41169         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
41170         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
41171         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
41172         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
41173         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
41174         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
41175         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
41176         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
41177         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
41178         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
41179         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
41180         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
41181         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
41182         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
41183         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
41184         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
41185         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
41186         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
41187         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
41188         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
41189         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
41190         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
41191         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
41192         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
41193         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
41194         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
41195         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
41196         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
41197         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
41198         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
41199         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
41200         * tests/uniwidth/test-u8-strwidth.c: Likewise.
41201         * tests/uniwidth/test-u8-width.c: Likewise.
41202         * tests/uniwidth/test-u16-strwidth.c: Likewise.
41203         * tests/uniwidth/test-u16-width.c: Likewise.
41204         * tests/uniwidth/test-u32-strwidth.c: Likewise.
41205         * tests/uniwidth/test-u32-width.c: Likewise.
41206         * tests/uniwidth/test-uc_width.c: Likewise.
41207         * tests/uniwidth/test-uc_width2.c: Likewise.
41208         * modules/acl-tests (Files): Add tests/macros.h.
41209         * modules/areadlink-tests (Files): Likewise.
41210         * modules/areadlink-with-size-tests (Files): Likewise.
41211         * modules/areadlinkat-tests (Files): Likewise.
41212         * modules/areadlinkat-with-size-tests (Files): Likewise.
41213         * modules/argmatch-tests (Files): Likewise.
41214         * modules/argv-iter-tests (Files): Likewise.
41215         * modules/array-list-tests (Files): Likewise.
41216         * modules/array-mergesort-tests (Files): Likewise.
41217         * modules/array-oset-tests (Files): Likewise.
41218         * modules/avltree-list-tests (Files): Likewise.
41219         * modules/avltree-oset-tests (Files): Likewise.
41220         * modules/avltreehash-list-tests (Files): Likewise.
41221         * modules/base64-tests (Files): Likewise.
41222         * modules/binary-io-tests (Files): Likewise.
41223         * modules/bitrotate-tests (Files): Likewise.
41224         * modules/btowc-tests (Files): Likewise.
41225         * modules/byteswap-tests (Files): Likewise.
41226         * modules/c-ctype-tests (Files): Likewise.
41227         * modules/c-stack-tests (Files): Likewise.
41228         * modules/c-strcase-tests (Files): Likewise.
41229         * modules/c-strcasestr-tests (Files): Likewise.
41230         * modules/c-strstr-tests (Files): Likewise.
41231         * modules/canonicalize-lgpl-tests (Files): Likewise.
41232         * modules/canonicalize-tests (Files): Likewise.
41233         * modules/carray-list-tests (Files): Likewise.
41234         * modules/ceilf-tests (Files): Likewise.
41235         * modules/ceill-tests (Files): Likewise.
41236         * modules/chown-tests (Files): Likewise.
41237         * modules/cloexec-tests (Files): Likewise.
41238         * modules/copy-file-tests (Files): Likewise.
41239         * modules/count-one-bits-tests (Files): Likewise.
41240         * modules/dprintf-posix-tests (Files): Likewise.
41241         * modules/dup2-tests (Files): Likewise.
41242         * modules/dup3-tests (Files): Likewise.
41243         * modules/duplocale-tests (Files): Likewise.
41244         * modules/fbufmode-tests (Files): Likewise.
41245         * modules/fchdir-tests (Files): Likewise.
41246         * modules/fcntl-safer-tests (Files): Likewise.
41247         * modules/fcntl-tests (Files): Likewise.
41248         * modules/fdopendir-tests (Files): Likewise.
41249         * modules/fdutimensat-tests (Files): Likewise.
41250         * modules/fflush-tests (Files): Likewise.
41251         * modules/filevercmp-tests (Files): Likewise.
41252         * modules/flock-tests (Files): Likewise.
41253         * modules/floorf-tests (Files): Likewise.
41254         * modules/floorl-tests (Files): Likewise.
41255         * modules/fnmatch-tests (Files): Likewise.
41256         * modules/fopen-safer-tests (Files): Likewise.
41257         * modules/fopen-tests (Files): Likewise.
41258         * modules/fpending-tests (Files): Likewise.
41259         * modules/fprintf-posix-tests (Files): Likewise.
41260         * modules/fpurge-tests (Files): Likewise.
41261         * modules/freadable-tests (Files): Likewise.
41262         * modules/freadahead-tests (Files): Likewise.
41263         * modules/freading-tests (Files): Likewise.
41264         * modules/freadptr-tests (Files): Likewise.
41265         * modules/freadseek-tests (Files): Likewise.
41266         * modules/freopen-tests (Files): Likewise.
41267         * modules/frexp-nolibm-tests (Files): Likewise.
41268         * modules/frexp-tests (Files): Likewise.
41269         * modules/frexpl-nolibm-tests (Files): Likewise.
41270         * modules/frexpl-tests (Files): Likewise.
41271         * modules/fseek-tests (Files): Likewise.
41272         * modules/fseeko-tests (Files): Likewise.
41273         * modules/fstrcmp-tests (Files): Likewise.
41274         * modules/fsync-tests (Files): Likewise.
41275         * modules/ftell-tests (Files): Likewise.
41276         * modules/ftello-tests (Files): Likewise.
41277         * modules/func-tests (Files): Likewise.
41278         * modules/futimens-tests (Files): Likewise.
41279         * modules/fwritable-tests (Files): Likewise.
41280         * modules/fwriting-tests (Files): Likewise.
41281         * modules/getcwd-tests (Files): Likewise.
41282         * modules/getdate-tests (Files): Likewise.
41283         * modules/getdelim-tests (Files): Likewise.
41284         * modules/getdtablesize-tests (Files): Likewise.
41285         * modules/getgroups-tests (Files): Likewise.
41286         * modules/getline-tests (Files): Likewise.
41287         * modules/getndelim2-tests (Files): Likewise.
41288         * modules/glob-tests (Files): Likewise.
41289         * modules/hash-tests (Files): Likewise.
41290         * modules/i-ring-tests (Files): Likewise.
41291         * modules/iconv-tests (Files): Likewise.
41292         * modules/iconv_open-utf-tests (Files): Likewise.
41293         * modules/idpriv-drop-tests (Files): Likewise.
41294         * modules/idpriv-droptemp-tests (Files): Likewise.
41295         * modules/inet_ntop-tests (Files): Likewise.
41296         * modules/inet_pton-tests (Files): Likewise.
41297         * modules/isblank-tests (Files): Likewise.
41298         * modules/isfinite-tests (Files): Likewise.
41299         * modules/isinf-tests (Files): Likewise.
41300         * modules/isnan-tests (Files): Likewise.
41301         * modules/isnand-nolibm-tests (Files): Likewise.
41302         * modules/isnand-tests (Files): Likewise.
41303         * modules/isnanf-nolibm-tests (Files): Likewise.
41304         * modules/isnanf-tests (Files): Likewise.
41305         * modules/isnanl-nolibm-tests (Files): Likewise.
41306         * modules/isnanl-tests (Files): Likewise.
41307         * modules/lchown-tests (Files): Likewise.
41308         * modules/ldexpl-tests (Files): Likewise.
41309         * modules/link-tests (Files): Likewise.
41310         * modules/linkat-tests (Files): Likewise.
41311         * modules/linked-list-tests (Files): Likewise.
41312         * modules/linkedhash-list-tests (Files): Likewise.
41313         * modules/localename-tests (Files): Likewise.
41314         * modules/lseek-tests (Files): Likewise.
41315         * modules/lstat-tests (Files): Likewise.
41316         * modules/mbmemcasecmp-tests (Files): Likewise.
41317         * modules/mbmemcasecoll-tests (Files): Likewise.
41318         * modules/mbrtowc-tests (Files): Likewise.
41319         * modules/mbscasecmp-tests (Files): Likewise.
41320         * modules/mbscasestr-tests (Files): Likewise.
41321         * modules/mbschr-tests (Files): Likewise.
41322         * modules/mbscspn-tests (Files): Likewise.
41323         * modules/mbsinit-tests (Files): Likewise.
41324         * modules/mbsncasecmp-tests (Files): Likewise.
41325         * modules/mbsnrtowcs-tests (Files): Likewise.
41326         * modules/mbspbrk-tests (Files): Likewise.
41327         * modules/mbspcasecmp-tests (Files): Likewise.
41328         * modules/mbsrchr-tests (Files): Likewise.
41329         * modules/mbsrtowcs-tests (Files): Likewise.
41330         * modules/mbsspn-tests (Files): Likewise.
41331         * modules/mbsstr-tests (Files): Likewise.
41332         * modules/memchr-tests (Files): Likewise.
41333         * modules/memchr2-tests (Files): Likewise.
41334         * modules/memcmp-tests (Files): Likewise.
41335         * modules/memmem-tests (Files): Likewise.
41336         * modules/memrchr-tests (Files): Likewise.
41337         * modules/mkdir-tests (Files): Likewise.
41338         * modules/mkfifo-tests (Files): Likewise.
41339         * modules/mkfifoat-tests (Files): Likewise.
41340         * modules/mknod-tests (Files): Likewise.
41341         * modules/nanosleep-tests (Files): Likewise.
41342         * modules/nl_langinfo-tests (Files): Likewise.
41343         * modules/obstack-printf-tests (Files): Likewise.
41344         * modules/open-tests (Files): Likewise.
41345         * modules/openat-tests (Files): Likewise.
41346         * modules/pipe-filter-gi-tests (Files): Likewise.
41347         * modules/pipe-filter-ii-tests (Files): Likewise.
41348         * modules/pipe2-tests (Files): Likewise.
41349         * modules/popen-safer-tests (Files): Likewise.
41350         * modules/popen-tests (Files): Likewise.
41351         * modules/posixtm-tests (Files): Likewise.
41352         * modules/pread-tests (Files): Likewise.
41353         * modules/printf-frexp-tests (Files): Likewise.
41354         * modules/printf-frexpl-tests (Files): Likewise.
41355         * modules/printf-posix-tests (Files): Likewise.
41356         * modules/priv-set-tests (Files): Likewise.
41357         * modules/quotearg-tests (Files): Likewise.
41358         * modules/random_r-tests (Files): Likewise.
41359         * modules/rawmemchr-tests (Files): Likewise.
41360         * modules/rbtree-list-tests (Files): Likewise.
41361         * modules/rbtree-oset-tests (Files): Likewise.
41362         * modules/rbtreehash-list-tests (Files): Likewise.
41363         * modules/readlink-tests (Files): Likewise.
41364         * modules/remove-tests (Files): Likewise.
41365         * modules/rename-tests (Files): Likewise.
41366         * modules/renameat-tests (Files): Likewise.
41367         * modules/rmdir-tests (Files): Likewise.
41368         * modules/round-tests (Files): Likewise.
41369         * modules/roundf-tests (Files): Likewise.
41370         * modules/roundl-tests (Files): Likewise.
41371         * modules/safe-alloc-tests (Files): Likewise.
41372         * modules/setenv-tests (Files): Likewise.
41373         * modules/sigaction-tests (Files): Likewise.
41374         * modules/signbit-tests (Files): Likewise.
41375         * modules/sleep-tests (Files): Likewise.
41376         * modules/snprintf-posix-tests (Files): Likewise.
41377         * modules/snprintf-tests (Files): Likewise.
41378         * modules/sprintf-posix-tests (Files): Likewise.
41379         * modules/stat-tests (Files): Likewise.
41380         * modules/stat-time-tests (Files): Likewise.
41381         * modules/strcasestr-tests (Files): Likewise.
41382         * modules/strchrnul-tests (Files): Likewise.
41383         * modules/strerror-tests (Files): Likewise.
41384         * modules/striconv-tests (Files): Likewise.
41385         * modules/striconveh-tests (Files): Likewise.
41386         * modules/striconveha-tests (Files): Likewise.
41387         * modules/strsignal-tests (Files): Likewise.
41388         * modules/strstr-tests (Files): Likewise.
41389         * modules/strtod-tests (Files): Likewise.
41390         * modules/strverscmp-tests (Files): Likewise.
41391         * modules/symlink-tests (Files): Likewise.
41392         * modules/symlinkat-tests (Files): Likewise.
41393         * modules/trunc-tests (Files): Likewise.
41394         * modules/truncf-tests (Files): Likewise.
41395         * modules/truncl-tests (Files): Likewise.
41396         * modules/uname-tests (Files): Likewise.
41397         * modules/unicase/cased-tests (Files): Likewise.
41398         * modules/unicase/ignorable-tests (Files): Likewise.
41399         * modules/unicase/locale-language-tests (Files): Likewise.
41400         * modules/unicase/tolower-tests (Files): Likewise.
41401         * modules/unicase/totitle-tests (Files): Likewise.
41402         * modules/unicase/toupper-tests (Files): Likewise.
41403         * modules/unicase/u8-casecmp-tests (Files): Likewise.
41404         * modules/unicase/u8-casecoll-tests (Files): Likewise.
41405         * modules/unicase/u8-casefold-tests (Files): Likewise.
41406         * modules/unicase/u8-is-cased-tests (Files): Likewise.
41407         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
41408         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
41409         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
41410         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
41411         * modules/unicase/u8-tolower-tests (Files): Likewise.
41412         * modules/unicase/u8-totitle-tests (Files): Likewise.
41413         * modules/unicase/u8-toupper-tests (Files): Likewise.
41414         * modules/unicase/u16-casecmp-tests (Files): Likewise.
41415         * modules/unicase/u16-casecoll-tests (Files): Likewise.
41416         * modules/unicase/u16-casefold-tests (Files): Likewise.
41417         * modules/unicase/u16-is-cased-tests (Files): Likewise.
41418         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
41419         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
41420         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
41421         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
41422         * modules/unicase/u16-tolower-tests (Files): Likewise.
41423         * modules/unicase/u16-totitle-tests (Files): Likewise.
41424         * modules/unicase/u16-toupper-tests (Files): Likewise.
41425         * modules/unicase/u32-casecmp-tests (Files): Likewise.
41426         * modules/unicase/u32-casecoll-tests (Files): Likewise.
41427         * modules/unicase/u32-casefold-tests (Files): Likewise.
41428         * modules/unicase/u32-is-cased-tests (Files): Likewise.
41429         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
41430         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
41431         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
41432         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
41433         * modules/unicase/u32-tolower-tests (Files): Likewise.
41434         * modules/unicase/u32-totitle-tests (Files): Likewise.
41435         * modules/unicase/u32-toupper-tests (Files): Likewise.
41436         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
41437         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
41438         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
41439         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
41440         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
41441         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
41442         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
41443         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
41444         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
41445         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
41446         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
41447         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
41448         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
41449         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
41450         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
41451         * modules/unictype/bidicategory-name-tests (Files): Likewise.
41452         * modules/unictype/bidicategory-of-tests (Files): Likewise.
41453         * modules/unictype/bidicategory-test-tests (Files): Likewise.
41454         * modules/unictype/block-list-tests (Files): Likewise.
41455         * modules/unictype/block-of-tests (Files): Likewise.
41456         * modules/unictype/block-test-tests (Files): Likewise.
41457         * modules/unictype/category-C-tests (Files): Likewise.
41458         * modules/unictype/category-Cc-tests (Files): Likewise.
41459         * modules/unictype/category-Cf-tests (Files): Likewise.
41460         * modules/unictype/category-Cn-tests (Files): Likewise.
41461         * modules/unictype/category-Co-tests (Files): Likewise.
41462         * modules/unictype/category-Cs-tests (Files): Likewise.
41463         * modules/unictype/category-L-tests (Files): Likewise.
41464         * modules/unictype/category-Ll-tests (Files): Likewise.
41465         * modules/unictype/category-Lm-tests (Files): Likewise.
41466         * modules/unictype/category-Lo-tests (Files): Likewise.
41467         * modules/unictype/category-Lt-tests (Files): Likewise.
41468         * modules/unictype/category-Lu-tests (Files): Likewise.
41469         * modules/unictype/category-M-tests (Files): Likewise.
41470         * modules/unictype/category-Mc-tests (Files): Likewise.
41471         * modules/unictype/category-Me-tests (Files): Likewise.
41472         * modules/unictype/category-Mn-tests (Files): Likewise.
41473         * modules/unictype/category-N-tests (Files): Likewise.
41474         * modules/unictype/category-Nd-tests (Files): Likewise.
41475         * modules/unictype/category-Nl-tests (Files): Likewise.
41476         * modules/unictype/category-No-tests (Files): Likewise.
41477         * modules/unictype/category-P-tests (Files): Likewise.
41478         * modules/unictype/category-Pc-tests (Files): Likewise.
41479         * modules/unictype/category-Pd-tests (Files): Likewise.
41480         * modules/unictype/category-Pe-tests (Files): Likewise.
41481         * modules/unictype/category-Pf-tests (Files): Likewise.
41482         * modules/unictype/category-Pi-tests (Files): Likewise.
41483         * modules/unictype/category-Po-tests (Files): Likewise.
41484         * modules/unictype/category-Ps-tests (Files): Likewise.
41485         * modules/unictype/category-S-tests (Files): Likewise.
41486         * modules/unictype/category-Sc-tests (Files): Likewise.
41487         * modules/unictype/category-Sk-tests (Files): Likewise.
41488         * modules/unictype/category-Sm-tests (Files): Likewise.
41489         * modules/unictype/category-So-tests (Files): Likewise.
41490         * modules/unictype/category-Z-tests (Files): Likewise.
41491         * modules/unictype/category-Zl-tests (Files): Likewise.
41492         * modules/unictype/category-Zp-tests (Files): Likewise.
41493         * modules/unictype/category-Zs-tests (Files): Likewise.
41494         * modules/unictype/category-and-not-tests (Files): Likewise.
41495         * modules/unictype/category-and-tests (Files): Likewise.
41496         * modules/unictype/category-byname-tests (Files): Likewise.
41497         * modules/unictype/category-name-tests (Files): Likewise.
41498         * modules/unictype/category-none-tests (Files): Likewise.
41499         * modules/unictype/category-of-tests (Files): Likewise.
41500         * modules/unictype/category-or-tests (Files): Likewise.
41501         * modules/unictype/category-test-withtable-tests (Files): Likewise.
41502         * modules/unictype/combining-class-tests (Files): Likewise.
41503         * modules/unictype/ctype-alnum-tests (Files): Likewise.
41504         * modules/unictype/ctype-alpha-tests (Files): Likewise.
41505         * modules/unictype/ctype-blank-tests (Files): Likewise.
41506         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
41507         * modules/unictype/ctype-digit-tests (Files): Likewise.
41508         * modules/unictype/ctype-graph-tests (Files): Likewise.
41509         * modules/unictype/ctype-lower-tests (Files): Likewise.
41510         * modules/unictype/ctype-print-tests (Files): Likewise.
41511         * modules/unictype/ctype-punct-tests (Files): Likewise.
41512         * modules/unictype/ctype-space-tests (Files): Likewise.
41513         * modules/unictype/ctype-upper-tests (Files): Likewise.
41514         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
41515         * modules/unictype/decimal-digit-tests (Files): Likewise.
41516         * modules/unictype/digit-tests (Files): Likewise.
41517         * modules/unictype/mirror-tests (Files): Likewise.
41518         * modules/unictype/numeric-tests (Files): Likewise.
41519         * modules/unictype/property-alphabetic-tests (Files): Likewise.
41520         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
41521         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
41522         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
41523         Likewise.
41524         * modules/unictype/property-bidi-block-separator-tests (Files):
41525         Likewise.
41526         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
41527         Likewise.
41528         * modules/unictype/property-bidi-common-separator-tests (Files):
41529         Likewise.
41530         * modules/unictype/property-bidi-control-tests (Files): Likewise.
41531         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
41532         Likewise.
41533         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
41534         Likewise.
41535         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
41536         Likewise.
41537         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
41538         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
41539         Likewise.
41540         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
41541         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
41542         Likewise.
41543         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
41544         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
41545         * modules/unictype/property-bidi-segment-separator-tests (Files):
41546         Likewise.
41547         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
41548         * modules/unictype/property-byname-tests (Files): Likewise.
41549         * modules/unictype/property-combining-tests (Files): Likewise.
41550         * modules/unictype/property-composite-tests (Files): Likewise.
41551         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
41552         * modules/unictype/property-dash-tests (Files): Likewise.
41553         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
41554         * modules/unictype/property-default-ignorable-code-point-tests (Files):
41555         Likewise.
41556         * modules/unictype/property-deprecated-tests (Files): Likewise.
41557         * modules/unictype/property-diacritic-tests (Files): Likewise.
41558         * modules/unictype/property-extender-tests (Files): Likewise.
41559         * modules/unictype/property-format-control-tests (Files): Likewise.
41560         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
41561         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
41562         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
41563         * modules/unictype/property-hex-digit-tests (Files): Likewise.
41564         * modules/unictype/property-hyphen-tests (Files): Likewise.
41565         * modules/unictype/property-id-continue-tests (Files): Likewise.
41566         * modules/unictype/property-id-start-tests (Files): Likewise.
41567         * modules/unictype/property-ideographic-tests (Files): Likewise.
41568         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
41569         * modules/unictype/property-ids-trinary-operator-tests (Files):
41570         Likewise.
41571         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
41572         * modules/unictype/property-iso-control-tests (Files): Likewise.
41573         * modules/unictype/property-join-control-tests (Files): Likewise.
41574         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
41575         * modules/unictype/property-line-separator-tests (Files): Likewise.
41576         * modules/unictype/property-logical-order-exception-tests (Files):
41577         Likewise.
41578         * modules/unictype/property-lowercase-tests (Files): Likewise.
41579         * modules/unictype/property-math-tests (Files): Likewise.
41580         * modules/unictype/property-non-break-tests (Files): Likewise.
41581         * modules/unictype/property-not-a-character-tests (Files): Likewise.
41582         * modules/unictype/property-numeric-tests (Files): Likewise.
41583         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
41584         * modules/unictype/property-other-default-ignorable-code-point-tests
41585         (Files): Likewise.
41586         * modules/unictype/property-other-grapheme-extend-tests (Files):
41587         Likewise.
41588         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
41589         * modules/unictype/property-other-id-start-tests (Files): Likewise.
41590         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
41591         * modules/unictype/property-other-math-tests (Files): Likewise.
41592         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
41593         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
41594         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
41595         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
41596         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
41597         * modules/unictype/property-private-use-tests (Files): Likewise.
41598         * modules/unictype/property-punctuation-tests (Files): Likewise.
41599         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
41600         * modules/unictype/property-radical-tests (Files): Likewise.
41601         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
41602         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
41603         * modules/unictype/property-space-tests (Files): Likewise.
41604         * modules/unictype/property-terminal-punctuation-tests (Files):
41605         Likewise.
41606         * modules/unictype/property-test-tests (Files): Likewise.
41607         * modules/unictype/property-titlecase-tests (Files): Likewise.
41608         * modules/unictype/property-unassigned-code-value-tests (Files):
41609         Likewise.
41610         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
41611         * modules/unictype/property-uppercase-tests (Files): Likewise.
41612         * modules/unictype/property-variation-selector-tests (Files): Likewise.
41613         * modules/unictype/property-white-space-tests (Files): Likewise.
41614         * modules/unictype/property-xid-continue-tests (Files): Likewise.
41615         * modules/unictype/property-xid-start-tests (Files): Likewise.
41616         * modules/unictype/property-zero-width-tests (Files): Likewise.
41617         * modules/unictype/scripts-tests (Files): Likewise.
41618         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
41619         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
41620         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
41621         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
41622         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
41623         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
41624         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
41625         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
41626         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
41627         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
41628         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
41629         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
41630         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
41631         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
41632         * modules/uninorm/composition-tests (Files): Likewise.
41633         * modules/uninorm/decomposing-form-tests (Files): Likewise.
41634         * modules/uninorm/decomposition-tests (Files): Likewise.
41635         * modules/uninorm/filter-tests (Files): Likewise.
41636         * modules/uninorm/nfc-tests (Files): Likewise.
41637         * modules/uninorm/nfd-tests (Files): Likewise.
41638         * modules/uninorm/nfkc-tests (Files): Likewise.
41639         * modules/uninorm/nfkd-tests (Files): Likewise.
41640         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
41641         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
41642         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
41643         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
41644         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
41645         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
41646         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
41647         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41648         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
41649         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
41650         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
41651         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
41652         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41653         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
41654         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
41655         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
41656         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
41657         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41658         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
41659         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
41660         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
41661         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
41662         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41663         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
41664         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
41665         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
41666         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
41667         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
41668         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
41669         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
41670         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
41671         * modules/uniwidth/u8-width-tests (Files): Likewise.
41672         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
41673         * modules/uniwidth/u16-width-tests (Files): Likewise.
41674         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
41675         * modules/uniwidth/u32-width-tests (Files): Likewise.
41676         * modules/uniwidth/width-tests (Files): Likewise.
41677         * modules/unlink-tests (Files): Likewise.
41678         * modules/unsetenv-tests (Files): Likewise.
41679         * modules/usleep-tests (Files): Likewise.
41680         * modules/utimens-tests (Files): Likewise.
41681         * modules/utimensat-tests (Files): Likewise.
41682         * modules/vasnprintf-posix-tests (Files): Likewise.
41683         * modules/vasnprintf-tests (Files): Likewise.
41684         * modules/vasprintf-posix-tests (Files): Likewise.
41685         * modules/vasprintf-tests (Files): Likewise.
41686         * modules/vdprintf-posix-tests (Files): Likewise.
41687         * modules/vfprintf-posix-tests (Files): Likewise.
41688         * modules/vprintf-posix-tests (Files): Likewise.
41689         * modules/vsnprintf-posix-tests (Files): Likewise.
41690         * modules/vsnprintf-tests (Files): Likewise.
41691         * modules/vsprintf-posix-tests (Files): Likewise.
41692         * modules/wcrtomb-tests (Files): Likewise.
41693         * modules/wcsnrtombs-tests (Files): Likewise.
41694         * modules/wcsrtombs-tests (Files): Likewise.
41695         * modules/wctype-tests (Files): Likewise.
41696         * modules/wcwidth-tests (Files): Likewise.
41697         * modules/xmemdup0-tests (Files): Likewise.
41698         * modules/xprintf-posix-tests (Files): Likewise.
41699         * modules/xvasprintf-tests (Files): Likewise.
41700
41701 2009-12-24  Eric Blake  <ebb9@byu.net>
41702
41703         test-nanosleep: fix typo
41704         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
41705         patch.
41706         Reported by Bruno Haible.
41707
41708 2009-12-24  Bruno Haible  <bruno@clisp.org>
41709
41710         Reduce namespace pollution on glibc systems.
41711         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
41712         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
41713         systems.
41714         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
41715         <getopt.h> on glibc systems.
41716         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
41717         systems.
41718         * lib/fcntl.c: Include <unistd.h> here instead.
41719
41720 2009-12-24  Bruno Haible  <bruno@clisp.org>
41721
41722         * lib/stdlib.in.h (includes): Fix typo in today's commit.
41723
41724 2009-12-24  Eric Blake  <ebb9@byu.net>
41725
41726         tests: add signature checks
41727         * tests/signature.h (SIGNATURE_CHECK): New file.
41728         * modules/atexit-tests (Files): Use it.
41729         * modules/btowc-tests (Files): Likewise.
41730         * modules/canonicalize-lgpl-tests (Files): Likewise.
41731         * modules/ceilf-tests (Files): Likewise.
41732         * modules/ceill-tests (Files): Likewise.
41733         * modules/chown-tests (Files): Likewise.
41734         * modules/dprintf-posix-tests (Files): Likewise.
41735         * modules/dup2-tests (Files): Likewise.
41736         * modules/dup3-tests (Files): Likewise.
41737         * modules/duplocale-tests (Files): Likewise.
41738         * modules/fchdir-tests (Files): Likewise.
41739         * modules/fcntl-tests (Files): Likewise.
41740         * modules/fdopendir-tests (Files): Likewise.
41741         * modules/fflush-tests (Files): Likewise.
41742         * modules/flock-tests (Files): Likewise.
41743         * modules/floorf-tests (Files): Likewise.
41744         * modules/floorl-tests (Files): Likewise.
41745         * modules/fnmatch-tests (Files): Likewise.
41746         * modules/fopen-tests (Files): Likewise.
41747         * modules/fprintf-posix-tests (Files): Likewise.
41748         * modules/freopen-tests (Files): Likewise.
41749         * modules/frexp-nolibm-tests (Files): Likewise.
41750         * modules/frexp-tests (Files): Likewise.
41751         * modules/frexpl-nolibm-tests (Files): Likewise.
41752         * modules/frexpl-tests (Files): Likewise.
41753         * modules/fseek-tests (Files): Likewise.
41754         * modules/fseeko-tests (Files): Likewise.
41755         * modules/fsync-tests (Files): Likewise.
41756         * modules/ftell-tests (Files): Likewise.
41757         * modules/ftello-tests (Files): Likewise.
41758         * modules/futimens-tests (Files): Likewise.
41759         * modules/getaddrinfo-tests (Files): Likewise.
41760         * modules/getcwd-tests (Files): Likewise.
41761         * modules/getdelim-tests (Files): Likewise.
41762         * modules/getdtablesize-tests (Files): Likewise.
41763         * modules/getgroups-tests (Files): Likewise.
41764         * modules/gethostname-tests (Files): Likewise.
41765         * modules/getline-tests (Files): Likewise.
41766         * modules/getopt-posix-tests (Files): Likewise.
41767         * modules/gettimeofday-tests (Files): Likewise.
41768         * modules/glob-tests (Files): Likewise.
41769         * modules/iconv-tests (Files): Likewise.
41770         * modules/inet_ntop-tests (Files): Likewise.
41771         * modules/inet_pton-tests (Files): Likewise.
41772         * modules/isblank-tests (Files): Likewise.
41773         * modules/lchown-tests (Files): Likewise.
41774         * modules/ldexpl-tests (Files): Likewise.
41775         * modules/link-tests (Files): Likewise.
41776         * modules/linkat-tests (Files): Likewise.
41777         * modules/lseek-tests (Files): Likewise.
41778         * modules/lstat-tests (Files): Likewise.
41779         * modules/mbrtowc-tests (Files): Likewise.
41780         * modules/mbsinit-tests (Files): Likewise.
41781         * modules/mbsnrtowcs-tests (Files): Likewise.
41782         * modules/mbsrtowcs-tests (Files): Likewise.
41783         * modules/memchr-tests (Files): Likewise.
41784         * modules/memcmp-tests (Files): Likewise.
41785         * modules/memmem-tests (Files): Likewise.
41786         * modules/memrchr-tests (Files): Likewise.
41787         * modules/mkdir-tests (Files): Likewise.
41788         * modules/mkfifo-tests (Files): Likewise.
41789         * modules/mkfifoat-tests (Files): Likewise.
41790         * modules/mknod-tests (Files): Likewise.
41791         * modules/nanosleep-tests (Files): Likewise.
41792         * modules/nl_langinfo-tests (Files): Likewise.
41793         * modules/obstack-printf-tests (Files): Likewise.
41794         * modules/open-tests (Files): Likewise.
41795         * modules/openat-tests (Files): Likewise.
41796         * modules/perror-tests (Files): Likewise.
41797         * modules/pipe2-tests (Files): Likewise.
41798         * modules/poll-tests (Files): Likewise.
41799         * modules/popen-tests (Files): Likewise.
41800         * modules/posix_spawn-tests (Files): Likewise.
41801         * modules/posix_spawnp-tests (Files): Likewise.
41802         * modules/pread-tests (Files): Likewise.
41803         * modules/printf-posix-tests (Files): Likewise.
41804         * modules/pty-tests (Files): Likewise.
41805         * modules/random_r-tests (Files): Likewise.
41806         * modules/rawmemchr-tests (Files): Likewise.
41807         * modules/readlink-tests (Files): Likewise.
41808         * modules/remove-tests (Files): Likewise.
41809         * modules/rename-tests (Files): Likewise.
41810         * modules/renameat-tests (Files): Likewise.
41811         * modules/rmdir-tests (Files): Likewise.
41812         * modules/round-tests (Files): Likewise.
41813         * modules/roundf-tests (Files): Likewise.
41814         * modules/roundl-tests (Files): Likewise.
41815         * modules/select-tests (Files): Likewise.
41816         * modules/setenv-tests (Files): Likewise.
41817         * modules/sigaction-tests (Files): Likewise.
41818         * modules/sleep-tests (Files): Likewise.
41819         * modules/snprintf-posix-tests (Files): Likewise.
41820         * modules/snprintf-tests (Files): Likewise.
41821         * modules/sprintf-posix-tests (Files): Likewise.
41822         * modules/stat-tests (Files): Likewise.
41823         * modules/strcasestr-tests (Files): Likewise.
41824         * modules/strchrnul-tests (Files): Likewise.
41825         * modules/strerror-tests (Files): Likewise.
41826         * modules/strsignal-tests (Files): Likewise.
41827         * modules/strstr-tests (Files): Likewise.
41828         * modules/strtod-tests (Files): Likewise.
41829         * modules/strverscmp-tests (Files): Likewise.
41830         * modules/symlink-tests (Files): Likewise.
41831         * modules/symlinkat-tests (Files): Likewise.
41832         * modules/times-tests (Files): Likewise.
41833         * modules/trunc-tests (Files): Likewise.
41834         * modules/truncf-tests (Files): Likewise.
41835         * modules/truncl-tests (Files): Likewise.
41836         * modules/tsearch-tests (Files): Likewise.
41837         * modules/uname-tests (Files): Likewise.
41838         * modules/unlink-tests (Files): Likewise.
41839         * modules/unsetenv-tests (Files): Likewise.
41840         * modules/usleep-tests (Files): Likewise.
41841         * modules/utimensat-tests (Files): Likewise.
41842         * modules/vasprintf-tests (Files): Likewise.
41843         * modules/vdprintf-posix-tests (Files): Likewise.
41844         * modules/vfprintf-posix-tests (Files): Likewise.
41845         * modules/vprintf-posix-tests (Files): Likewise.
41846         * modules/vsnprintf-posix-tests (Files): Likewise.
41847         * modules/vsnprintf-tests (Files): Likewise.
41848         * modules/vsprintf-posix-tests (Files): Likewise.
41849         * modules/wcrtomb-tests (Files): Likewise.
41850         * modules/wcsnrtombs-tests (Files): Likewise.
41851         * modules/wcsrtombs-tests (Files): Likewise.
41852         * modules/wcwidth-tests (Files): Likewise.
41853         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
41854         * tests/test-isinf.c (isinf): Likewise.
41855         * tests/test-isnan.c (isnan): Likewise.
41856         * tests/test-signbit.c (signbit): Likewise.
41857         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
41858         declaration, either as macro or with correct signature.
41859         (select): Ensure function under test is declared with correct
41860         signature in correct header.
41861         * tests/test-atexit.c (atexit): Likewise.
41862         * tests/test-btowc.c (btowc): Likewise.
41863         * tests/test-canonicalize-lgpl.c (realpath)
41864         (canonicalize_file_name): Likewise.
41865         * tests/test-ceilf1.c (ceilf): Likewise.
41866         * tests/test-ceill.c (ceill): Likewise.
41867         * tests/test-chown.c (chown): Likewise.
41868         * tests/test-dprintf-posix.c (dprintf): Likewise.
41869         * tests/test-dup2.c (dup2): Likewise.
41870         * tests/test-dup3.c (dup3): Likewise.
41871         * tests/test-duplocale.c (duplocale): Likewise.
41872         * tests/test-fchdir.c (fchdir): Likewise.
41873         * tests/test-fchownat.c (fchownat): Likewise.
41874         * tests/test-fcntl.c (fcntl): Likewise.
41875         * tests/test-fdopendir.c (fdopendir): Likewise.
41876         * tests/test-fflush.c (fflush): Likewise.
41877         * tests/test-flock.c (flock): Likewise.
41878         * tests/test-floorf1.c (floorf): Likewise.
41879         * tests/test-floorl.c (floorl): Likewise.
41880         * tests/test-fnmatch.c (fnmatch): Likewise.
41881         * tests/test-fopen.c (fopen): Likewise.
41882         * tests/test-fprintf-posix.c (fprintf): Likewise.
41883         * tests/test-freopen.c (freopen): Likewise.
41884         * tests/test-frexp.c (frexp): Likewise.
41885         * tests/test-frexpl.c (frexpl): Likewise.
41886         * tests/test-fseek.c (fseek): Likewise.
41887         * tests/test-fseeko.c (fseeko): Likewise.
41888         * tests/test-fstatat.c (fstatat): Likewise.
41889         * tests/test-fsync.c (fsync): Likewise.
41890         * tests/test-ftell.c (ftell): Likewise.
41891         * tests/test-ftello.c (ftello): Likewise.
41892         * tests/test-futimens.c (futimens): Likewise.
41893         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
41894         (gai_strerror): Likewise.
41895         * tests/test-getcwd.c (getcwd): Likewise.
41896         * tests/test-getdelim.c (getdelim): Likewise.
41897         * tests/test-getdtablesize.c (getdtablesize): Likewise.
41898         * tests/test-getgroups.c (getgroups): Likewise.
41899         * tests/test-gethostname.c (gethostname): Likewise.
41900         * tests/test-getline.c (getline): Likewise.
41901         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
41902         Likewise.
41903         * tests/test-gettimeofday.c (gettimeofday): Likewise.
41904         * tests/test-glob.c (glob, globfree): Likewise.
41905         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
41906         * tests/test-inet_ntop.c (inet_ntop): Likewise.
41907         * tests/test-inet_pton.c (inet_pton): Likewise.
41908         * tests/test-isblank.c (isblank): Likewise.
41909         * tests/test-lchown.c (lchown): Likewise.
41910         * tests/test-ldexpl.c (ldexpl): Likewise.
41911         * tests/test-link.c (link): Likewise.
41912         * tests/test-linkat.c (linkat): Likewise.
41913         * tests/test-lseek.c (lseek): Likewise.
41914         * tests/test-lstat.c (lstat): Likewise.
41915         * tests/test-mbrtowc.c (mbrtowc): Likewise.
41916         * tests/test-mbsinit.c (mbsinit): Likewise.
41917         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
41918         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
41919         * tests/test-memchr.c (memchr): Likewise.
41920         * tests/test-memcmp.c (memcmp): Likewise.
41921         * tests/test-memmem.c (memmem): Likewise.
41922         * tests/test-memrchr.c (memrchr): Likewise.
41923         * tests/test-mkdir.c (mkdir): Likewise.
41924         * tests/test-mkdirat.c (mkdirat): Likewise.
41925         * tests/test-mkfifo.c (mkfifo): Likewise.
41926         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
41927         * tests/test-mknod.c (mknod): Likewise.
41928         * tests/test-nanosleep.c (nanosleep): Likewise.
41929         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
41930         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
41931         Likewise.
41932         * tests/test-open.c (open): Likewise.
41933         * tests/test-openat.c (openat): Likewise.
41934         * tests/test-perror.c (perror): Likewise.
41935         * tests/test-pipe2.c (pipe2): Likewise.
41936         * tests/test-poll.c (poll): Likewise.
41937         * tests/test-popen.c (popen, pclose): Likewise.
41938         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
41939         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
41940         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
41941         (posix_spawn_file_actions_destroy)
41942         (posix_spawn_file_actions_addclose)
41943         (posix_spawn_file_actions_addopen)
41944         (posix_spawn_file_actions_adddup2): Likewise.
41945         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
41946         * tests/test-pread.c (pread): Likewise.
41947         * tests/test-printf-posix.c (printf): Likewise.
41948         * tests/test-pty.c (openpty, forkpty): Likewise.
41949         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
41950         (random_r): Likewise.
41951         * tests/test-rawmemchr.c (rawmemchr): Likewise.
41952         * tests/test-readlink.c (readlink): Likewise.
41953         * tests/test-remove.c (remove): Likewise.
41954         * tests/test-rename.c (rename): Likewise.
41955         * tests/test-renameat.c (renameat): Likewise.
41956         * tests/test-rmdir.c (rmdir): Likewise.
41957         * tests/test-round1.c (round): Likewise.
41958         * tests/test-roundf1.c (roundf): Likewise.
41959         * tests/test-roundl.c (roundl): Likewise.
41960         * tests/test-setenv.c (setenv): Likewise.
41961         * tests/test-sigaction.c (sigaction): Likewise.
41962         * tests/test-sleep.c (sleep): Likewise.
41963         * tests/test-snprintf.c (snprintf): Likewise.
41964         * tests/test-sprintf-posix.c (sprintf): Likewise.
41965         * tests/test-stat.c (stat): Likewise.
41966         * tests/test-stpncpy.c (stpncpy): Likewise.
41967         * tests/test-strcasestr.c (strcasestr): Likewise.
41968         * tests/test-strchrnul.c (strchrnul): Likewise.
41969         * tests/test-strerror.c (strerror): Likewise.
41970         * tests/test-strsignal.c (strsignal): Likewise.
41971         * tests/test-strstr.c (strstr): Likewise.
41972         * tests/test-strtod.c (strtod): Likewise.
41973         * tests/test-strverscmp.c (strverscmp): Likewise.
41974         * tests/test-symlink.c (symlink): Likewise.
41975         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
41976         * tests/test-times.c (times): Likewise.
41977         * tests/test-trunc1.c (trunc): Likewise.
41978         * tests/test-truncf1.c (truncf): Likewise.
41979         * tests/test-truncl.c (truncl): Likewise.
41980         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
41981         Likewise.
41982         * tests/test-uname.c (uname): Likewise.
41983         * tests/test-unlink.c (unlink): Likewise.
41984         * tests/test-unlinkat.c (unlinkat): Likewise.
41985         * tests/test-unsetenv.c (unsetenv): Likewise.
41986         * tests/test-usleep.c (usleep): Likewise.
41987         * tests/test-utimensat.c (utimensat): Likewise.
41988         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
41989         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
41990         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
41991         * tests/test-vprintf-posix.c (vprintf): Likewise.
41992         * tests/test-vsnprintf.c (vsnprintf): Likewise.
41993         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
41994         * tests/test-wcrtomb.c (wcrtomb): Likewise.
41995         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
41996         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
41997         * tests/test-wcwidth.c (wcwidth): Likewise.
41998
41999         build: pull in conditional headers during GNULIB_POSIXCHECK
42000         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
42001         definitions from any conditionally-included headers.
42002         * lib/stdlib.in.h (includes): Likewise.
42003         * lib/unistd.in.h (includes): Likewise.
42004
42005 2009-12-24  Bruno Haible  <bruno@clisp.org>
42006
42007         * tests/test-argv-iter.c: Include header file being tested immediately
42008         after config.h.
42009         * tests/test-base64.c: Likewise.
42010         * tests/test-flock.c: Likewise.
42011         * tests/test-fsync.c: Likewise.
42012         * tests/test-getdate.c: Likewise.
42013         * tests/test-getndelim2.c: Likewise.
42014         * tests/test-isfinite.c: Likewise.
42015         * tests/test-isinf.c: Likewise.
42016         * tests/test-strerror.c: Likewise.
42017         * tests/test-strsignal.c: Likewise.
42018
42019 2009-12-23  Eric Blake  <ebb9@byu.net>
42020
42021         unistd: work around cygwin bug
42022         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
42023         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
42024         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42025
42026 2009-12-23  Bruno Haible  <bruno@clisp.org>
42027
42028         localename: More tests.
42029         * tests/test-localename.c (SIZEOF): New macro.
42030         (categories): New variable.
42031         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
42032         test_locale_name_default): Add test w.r.t. thread locale.
42033         (test_locale_name_thread): New function.
42034         (main): Invoke it.
42035
42036         localename: Make aware of thread locale.
42037         * lib/localename.h (gl_locale_name_thread): New declaration.
42038         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
42039         behaviour with respect to thread locale.
42040         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
42041         <langinfo.h>, glthread/lock.h.
42042         (SIZE_BITS): New macro.
42043         (string_hash): New function.
42044         (struct hash_node): New type.
42045         (HASH_TABLE_SIZE): New macro.
42046         (struniq_hash_table, struniq_lock): New variables.
42047         (struniq): New function.
42048         (gl_locale_name_thread): New function.
42049         (gl_locale_name): Invoke it.
42050         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
42051         * modules/localename (Depends-on): Add lock.
42052         Reported by Mike Gran <spk121@yahoo.com>.
42053
42054 2009-12-23  Eric Blake  <ebb9@byu.net>
42055
42056         va-args: new module
42057         * modules/va-args: New file.
42058         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
42059         * MODULES.html.sh (Core language properties): Mention it.
42060
42061         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
42062         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
42063         named alias for __attribute__((__unused__)).
42064         * lib/chown.c: Update client.
42065         * lib/fchmodat.c: Likewise.
42066         * lib/fts.c: Likewise.
42067         * lib/getdate.y: Likewise.
42068         * lib/getgroups.c: Likewise.
42069         * lib/getopt.c: Likewise.
42070         * lib/getugroups.c: Likewise.
42071         * lib/mkdir.c: Likewise.
42072         * lib/mkfifo.c: Likewise.
42073         * lib/mkfifoat.c: Likewise.
42074         * lib/mknod.c: Likewise.
42075         * lib/mknodat.c: Likewise.
42076         * lib/readlink.c: Likewise.
42077         * lib/se-context.in.h: Likewise.
42078         * lib/se-selinux.in.h: Likewise.
42079         * lib/sockets.c: Likewise.
42080         * lib/symlink.c: Likewise.
42081         * lib/symlinkat.c: Likewise.
42082         * lib/unicodeio.c: Likewise.
42083         * lib/unistr.h: Likewise.
42084         * tests/test-areadlink.c: Likewise.
42085         * tests/test-areadlinkat.c: Likewise.
42086         * tests/test-filenamecat.c: Likewise.
42087         * tests/test-fseeko.c: Likewise.
42088         * tests/test-ftello.c: Likewise.
42089         * tests/test-getdate.c: Likewise.
42090         * tests/test-getgroups.c: Likewise.
42091         * tests/test-gethostname.c: Likewise.
42092         * tests/test-quotearg.c: Likewise.
42093         * tests/test-version-etc.c: Likewise.
42094         * tests/test-xalloc-die.c: Likewise.
42095         * tests/test-xfprintf-posix.c: Likewise.
42096         * tests/test-xprintf-posix.c: Likewise.
42097         * tests/test-xvasprintf.c: Likewise.
42098
42099         tests: avoid compiler warnings
42100         * tests/test-fcntl.c (main): Delete unused parameters.
42101         * tests/test-freopen-safer.c (main): Likewise.
42102         * tests/test-xalloc-die.c (main): Mark unused parameters.
42103         * tests/test-fseeko.c (main): Likewise.
42104         * tests/test-ftello.c (main): Likewise.
42105         * tests/test-nanosleep.c (main): Avoid declaration warning.
42106         * tests/test-sleep.c (main): Likewise.
42107         * tests/test-unsetenv.c (main): Silence warning about string
42108         literal.
42109         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
42110
42111 2009-12-23  Bruno Haible  <bruno@clisp.org>
42112
42113         * tests/test-localename.c (test_locale_name): New function, extracted
42114         from main. Also test mixed situations.
42115         (test_locale_name_posix, test_locale_name_environ,
42116         test_locale_name_default): New functions.
42117         (main): Invoke them all.
42118         * modules/localename-tests (configure.ac): Test for newlocale.
42119
42120 2009-12-23  Bruno Haible  <bruno@clisp.org>
42121
42122         unistd: Ensure getcwd gets declared before being overridden.
42123         * lib/unistd.in.h: Conditionally include <io.h>.
42124
42125 2009-12-22  Bruno Haible  <bruno@clisp.org>
42126
42127         wchar: Diagnose broken combination of glibc and gcc versions and flags.
42128         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
42129         (gl_WCHAR_H): Invoke it.
42130         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
42131         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
42132         Reported by Karl Berry <karl@freefriends.org>.
42133
42134 2009-12-22  Eric Blake  <ebb9@byu.net>
42135
42136         math, unistd: avoid redundant includes
42137         * lib/math.in.h (isnan): No need to re-include <math.h>.
42138         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
42139
42140         getsubopt: work around cygwin bug
42141         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
42142         avoid conflicting with system getsubopt.
42143         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
42144         bug.
42145
42146         getopt: synchronize from glibc
42147         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
42148         parameter order.  Adjust all callers.
42149         (_getopt_internal_r, main): Adjust quoting in error messages.
42150         Drop considerations for outdated POSIX 1003.2 error message.
42151         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
42152         callers.
42153         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
42154
42155         test-getopt: test stderr behavior
42156         * modules/getopt-posix-tests (Depends-on): Add dup2.
42157         * tests/test-getopt.c (ASSERT): Avoid stderr.
42158         (main): Move stderr to a temporary file.
42159         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
42160         Instead, add parameter to inform caller if output occurred.
42161         (test_getopt): Adjust all existing tests to expect silence, and
42162         add new tests of leading ":".
42163         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42164         glibc shortcomings with leading "-:" or "+:" in optstring.
42165         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42166         Likewise.
42167         * doc/posix-functions/getopt.texi (getopt): Likewise.
42168
42169         test-getopt: enhance test
42170         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
42171         supports optind=0.
42172         * tests/test-getopt.c (OPTIND_MIN): Move...
42173         * tests/test-getopt.h (OPTIND_MIN): ...here.
42174         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
42175         Require that optind=0 works, since modern BSD supports it in
42176         addition to optreset, and since coreutils expects it.
42177         (test_getopt_long_only): New test.
42178         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42179         glibc shortcomings with 'W;', and enforcement of optind=0.
42180         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42181         Likewise.
42182
42183 2009-12-21  Bruno Haible  <bruno@clisp.org>
42184
42185         localename: Improvements for MacOS X and Cygwin.
42186         * lib/localename.h (gl_locale_name_environ): New declaration.
42187         * lib/localename.c (gl_locale_name_environ): New function, extracted from
42188         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
42189         (gl_locale_name_posix): Invoke it.
42190         (gl_locale_name_default): Add comments. Use Windows native API also on
42191         Cygwin.
42192
42193 2009-12-21  Bruno Haible  <bruno@clisp.org>
42194
42195         Update list of Win32 locale ids.
42196         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
42197         (LANG_SAMI): Renamed from LANG_SAAMI.
42198         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
42199         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
42200         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
42201         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
42202         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
42203         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
42204         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
42205         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
42206         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
42207         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
42208         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
42209         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
42210         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
42211         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
42212         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
42213         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
42214         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
42215         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
42216         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
42217         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
42218         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
42219         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
42220         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
42221         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
42222         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
42223         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
42224         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
42225         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
42226         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
42227         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
42228         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
42229         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
42230         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
42231         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
42232         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
42233         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
42234         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
42235         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
42236         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
42237         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
42238         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
42239         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
42240         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
42241         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
42242         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
42243         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
42244         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
42245         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
42246         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
42247         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
42248         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
42249         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
42250         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
42251         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
42252         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
42253         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
42254         Add more languages and countries for Sami, Sorbian. Add more countries
42255         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
42256         for Pashto. Change country for Syriac, Tswana.
42257
42258 2009-12-21  Eric Blake  <ebb9@byu.net>
42259
42260         test-utimens: avoid spurious failure
42261         * tests/test-chown.h (nap): Factor...
42262         * tests/nap.h: ...into new file.
42263         * tests/test-lchown.h (nap): Avoid duplication.
42264         * tests/test-utimens-common.h (nap): Use shared implementation,
42265         necessary on file systems with 1-second resolution.
42266         * modules/chown-tests (Files): Include new file.
42267         * modules/fdutimensat-tests (Files): Likewise.
42268         * modules/futimens-tests (Files): Likewise.
42269         * modules/lchown-tests (Files): Likewise.
42270         * modules/openat-tests (Files): Likewise.
42271         * modules/utimens-tests (Files): Likewise.
42272         * modules/utimensat-tests (Files): Likewise.
42273
42274 2009-12-19  Eric Blake  <ebb9@byu.net>
42275
42276         futimens, utimensat: work around Linux bug
42277         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
42278         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42279         * lib/utimensat.c (rpl_utimensat): Work around it.
42280         * lib/futimens.c (rpl_futimens): Adjust comment.
42281
42282         utimens: work around Linux ctime bug
42283         * lib/utimens.c (detect_ctime_bug): New helper function.
42284         (update_timespec): Differentiate between workaround needed for
42285         this bug vs. what is needed for systems that lack utimensat.
42286         (fdutimens, lutimens): Work around bug.
42287
42288         utimens: check for ctime update
42289         * tests/test-utimens-common.h (check_ctime): Define.
42290         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
42291         * tests/test-futimens.h (test_futimens): Likewise.
42292         * tests/test-lutimens.h (test_lutimens): Likewise.
42293         * doc/posix-functions/futimens.texi (futimens): Document the bug.
42294         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42295
42296 2009-12-19  Bruno Haible  <bruno@clisp.org>
42297
42298         dprintf-posix: Check against memory leak fixed on 2009-12-15.
42299         * tests/test-dprintf-posix2.sh: New file.
42300         * tests/test-dprintf-posix2.c: New file.
42301         * modules/dprintf-posix-tests (Files): Add them.
42302         (configure.ac): Check for getrlimit and setrlimit.
42303         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42304
42305 2009-12-19  Bruno Haible  <bruno@clisp.org>
42306
42307         fprintf-posix: Check against memory leak fixed on 2009-12-15.
42308         * tests/test-fprintf-posix3.sh: New file.
42309         * tests/test-fprintf-posix3.c: New file.
42310         * modules/fprintf-posix-tests (Files): Add them.
42311         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42312
42313 2009-12-19  Eric Blake  <ebb9@byu.net>
42314
42315         dirfd: fix prototype
42316         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
42317         * lib/dirfd.c (dirfd): Likewise.
42318
42319         canonicalize: reduce memory usage
42320         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
42321         allocation to size.
42322         Reported by Solar Designer <solar@openwall.com>.
42323
42324 2009-12-19  Bruno Haible  <bruno@clisp.org>
42325
42326         New module attribute 'Applicability'.
42327         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
42328         * gnulib-tool: New option --extract-applicability.
42329         (func_usage): Document it.
42330         (sed_extract_prog): Recognize it.
42331         (func_get_applicability): New function.
42332         (func_import): Generalize handling of 'link-warning' module.
42333         * modules/link-warning (Applicability): New section.
42334         * modules/arg-nonnull (Applicability): New section.
42335         Repoted by Simon Josefsson <simon@josefsson.org>.
42336
42337 2009-12-19  Bruno Haible  <bruno@clisp.org>
42338
42339         fflush: tweak
42340         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
42341         * lib/fseeko.c (rpl_fseeko): Likewise.
42342
42343 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
42344
42345         * lib/gl_list.h: Fix typo in comment.
42346
42347 2009-12-16  Eric Blake  <ebb9@byu.net>
42348
42349         fcntl: use to simplify other modules
42350         * modules/cloexec (Depends-on): Add fcntl.
42351         * modules/fchdir (Depends-on): Likewise.
42352         * modules/fd-safer-flag (Depends-on): Likewise.
42353         * modules/unistd-safer (Depends-on): Likewise.
42354         * modules/dup3 (configure.ac): Set module indicator.
42355         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
42356         missing.
42357         * lib/fchdir.c (_gl_register_dup): Fix comment.
42358         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
42359         * lib/dup-safer.c (dup_safer): Likewise.
42360         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
42361         * lib/dup3.c (dup3): Likewise.
42362         * tests/test-fchdir.c (main): Enhance test.
42363         Fixes a dup_cloexec bug reported by Ondřej Vašík.
42364
42365         fcntl: port portions of fcntl to mingw
42366         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
42367         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
42368         replacement for mingw.
42369         * modules/fcntl (Description): Update.
42370         (Depends-on): Add dup2.
42371         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
42372         * modules/fcntl-h (Makefile.am): Substitute it.
42373         * lib/fcntl.in.h (fcntl): Update declaration.
42374         (F_DUPFD, F_GETFD): New macros, when needed.
42375         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42376         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
42377         * tests/test-fcntl.c (check_flags, main): Enhance test for items
42378         we now guarantee.
42379
42380         fcntl: work around cygwin bug in F_DUPFD
42381         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
42382         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
42383         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
42384         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
42385         * doc/posix-functions/fcntl.texi (fcntl): Document it.
42386
42387         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
42388         * modules/fcntl (Files): List new files.
42389         (configure.ac): Run a test.
42390         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
42391         * lib/fcntl.c (rpl_fcntl): Likewise.
42392         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
42393         (gl_FCNTL_H): Always replace fcntl.h.
42394         * modules/fcntl-h (Makefile.am): Substitute witnesses.
42395         * lib/fcntl.in.h (fcntl): Declare replacement.
42396         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
42397         needed, plus a witness.
42398         * doc/posix-functions/fcntl.texi (fcntl): Document this.
42399         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42400         * tests/test-fcntl.c: New file.
42401         * modules/fcntl-tests: Likewise.
42402
42403         binary-io: avoid potential compilation warning
42404         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
42405         directives.
42406
42407         fflush: avoid compilation error on NetBSD
42408         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
42409         between off_t and fpos_t, since the latter is sometimes a struct.
42410         * lib/fseeko.c (rpl_fseeko): Likewise.
42411         Reported by Alexander Nasonov <alnsn@yandex.ru>.
42412
42413 2009-12-15  Eric Blake  <ebb9@byu.net>
42414
42415         fcntl-h, stdio, sys_ioctl: fix declarations
42416         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
42417         function must not take arguments.
42418         * lib/sys_ioctl.in.h (ioctl): Likewise.
42419         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
42420         (open): Add a link warning.
42421
42422 2009-12-15  Jim Meyering  <meyering@redhat.com>
42423
42424         areadlink, areadlink-with-size: relax license to LGPLv2+
42425         * modules/areadlink (License): Relax to LGPLv2+.
42426         * modules/areadlink-with-size (License): Likewise.
42427
42428 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
42429             Bruno Haible  <bruno@clisp.org>
42430
42431         *printf: Fix memory leak.
42432         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
42433         * lib/vfprintf.c (vfprintf): Likewise.
42434         * lib/dprintf.c (dprintf): Likewise.
42435         * lib/vdprintf.c (vdprintf): Likewise.
42436
42437 2009-12-14  Eric Blake  <ebb9@byu.net>
42438
42439         accept4: adjust module dependencies
42440         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
42441
42442         utimens: one more try at avoiding compiler warning
42443         * lib/utimens.c (lutimens): Lower scope of result.
42444
42445 2009-12-13  Bruno Haible  <bruno@clisp.org>
42446
42447         Move the malloc checking from module 'list' to new module 'xlist'.
42448         * modules/xlist: New file.
42449         * lib/gl_xlist.h: New file.
42450         * lib/gl_xlist.c: New file.
42451         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
42452         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
42453         gl_list_add_last, gl_list_add_before, gl_list_add_after,
42454         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
42455         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
42456         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
42457         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
42458         gl_sortedlist_nx_add): New declarations.
42459         (struct gl_list_implementation): Rename and change methods accordingly.
42460         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
42461         (gl_list_nx_create): Renamed from gl_list_create.
42462         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42463         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42464         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42465         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42466         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42467         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42468         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42469         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42470         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
42471         gl_list_create_empty.
42472         (gl_list_nx_create): Renamed from gl_list_create.
42473         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42474         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42475         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42476         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42477         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42478         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42479         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42480         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42481         * lib/gl_array_list.c: Don't include xalloc.h.
42482         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
42483         NULL upon out-of-memory.
42484         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
42485         out-of-memory.
42486         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
42487         Change return type to 'int'.
42488         (gl_array_nx_set_at): Renamed from gl_array_set_at.
42489         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42490         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
42491         upon out-of-memory.
42492         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
42493         upon out-of-memory.
42494         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
42495         upon out-of-memory.
42496         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
42497         upon out-of-memory.
42498         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
42499         out-of-memory.
42500         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
42501         Update.
42502         (gl_array_list_implementation): Update.
42503         * lib/gl_carray_list.c: Don't include xalloc.h.
42504         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
42505         Return NULL upon out-of-memory.
42506         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
42507         out-of-memory.
42508         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
42509         Change return type to 'int'.
42510         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
42511         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42512         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
42513         upon out-of-memory.
42514         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
42515         upon out-of-memory.
42516         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
42517         out-of-memory.
42518         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
42519         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
42520         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
42521         Update.
42522         (gl_carray_list_implementation): Update.
42523         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
42524         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
42525         gl_linked_create_empty. Return NULL upon out-of-memory.
42526         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
42527         out-of-memory.
42528         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
42529         Change return type to 'int'. Return -1 upon out-of-memory.
42530         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
42531         out-of-memory.
42532         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
42533         upon out-of-memory.
42534         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
42535         upon out-of-memory.
42536         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
42537         NULL upon out-of-memory.
42538         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
42539         upon out-of-memory.
42540         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
42541         out-of-memory.
42542         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
42543         Update.
42544         * lib/gl_linked_list.c: Don't include xalloc.h.
42545         (gl_linked_list_implementation): Update.
42546         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
42547         (add_to_bucket): Change return type to 'int'.
42548         (gl_linkedhash_list_implementation): Update.
42549         * lib/gl_anytree_list1.h (free_subtree): New function.
42550         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
42551         gl_tree_create_empty. Return NULL upon out-of-memory.
42552         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
42553         Change return type to 'int'. Return -1 upon out-of-memory.
42554         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
42555         out-of-memory.
42556         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
42557         (gl_tree_remove_node): New function, moved here from
42558         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
42559         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
42560         Update.
42561         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
42562         malloc, not xmalloc. Return NULL upon out-of-memory.
42563         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42564         out-of-memory.
42565         (gl_tree_remove_node_from_tree): New function, extracted from
42566         gl_tree_remove_node.
42567         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42568         upon out-of-memory.
42569         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42570         out-of-memory.
42571         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42572         upon out-of-memory.
42573         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42574         upon out-of-memory.
42575         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42576         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
42577         not xmalloc. Return NULL upon out-of-memory.
42578         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42579         out-of-memory.
42580         (gl_tree_remove_node_from_tree): New function, extracted from
42581         gl_tree_remove_node.
42582         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42583         upon out-of-memory.
42584         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42585         out-of-memory.
42586         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42587         upon out-of-memory.
42588         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42589         upon out-of-memory.
42590         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42591         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
42592         gl_anytree_list1.h before gl_anyavltree_list2.h.
42593         (gl_avltree_list_implementation): Update.
42594         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
42595         gl_anytree_list1.h before gl_anyavltree_list2.h.
42596         (gl_rbtree_list_implementation): Update.
42597         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
42598         Change return type to 'int'. Return -1 upon out-of-memory. Use
42599         __builtin_expect.
42600         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
42601         (gl_avltreehash_list_implementation): Update.
42602         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
42603         (gl_rbtreehash_list_implementation): Update.
42604         * modules/array-list (Depends-on): Remove xalloc.
42605         * modules/carray-list (Depends-on): Likewise.
42606         * modules/linked-list (Depends-on): Likewise.
42607         * modules/linkedhash-list (Depends-on): Likewise.
42608         * modules/avltree-list (Depends-on): Likewise.
42609         * modules/rbtree-list (Depends-on): Likewise.
42610         * modules/avltreehash-list (Depends-on): Likewise.
42611         * modules/rbtreehash-list (Depends-on): Likewise.
42612
42613         * modules/xsublist: New file.
42614         * lib/gl_xsublist.h: New file.
42615         * lib/gl_xsublist.c: New file.
42616         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
42617         (gl_sublist_nx_create): New declaration.
42618         * lib/gl_sublist.c: Don't include xalloc.h.
42619         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
42620         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
42621         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
42622         Change return type to 'int'. Return -1 upon out-of-memory.
42623         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
42624         upon out-of-memory.
42625         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
42626         NULL upon out-of-memory.
42627         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
42628         upon out-of-memory.
42629         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
42630         NULL upon out-of-memory.
42631         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
42632         NULL upon out-of-memory.
42633         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
42634         upon out-of-memory.
42635         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
42636         (gl_sublist_list_implementation): Update.
42637         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
42638         upon out-of-memory.
42639         * modules/sublist (Depends-on): Remove xalloc.
42640
42641         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
42642         * tests/test-carray_list.c: Likewise.
42643         * tests/test-linked_list.c: Likewise.
42644         * tests/test-linkedhash_list.c: Likewise.
42645         * tests/test-avltree_list.c: Likewise.
42646         * tests/test-rbtree_list.c: Likewise.
42647         * tests/test-avltreehash_list.c: Likewise.
42648         * tests/test-rbtreehash_list.c: Likewise.
42649         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
42650         * modules/carray-list-tests (Makefile.am): Likewise.
42651         * modules/linked-list-tests (Makefile.am): Likewise.
42652         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42653         * modules/avltree-list-tests (Makefile.am): Likewise.
42654         * modules/rbtree-list-tests (Makefile.am): Likewise.
42655         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42656         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42657
42658         * NEWS: Mention the changes.
42659
42660         * lib/clean-temp.c: Include gl_xlist.h.
42661         * modules/clean-temp (Depends-on): Add xlist.
42662
42663         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
42664         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
42665
42666         * tests/test-array_oset.c: Include gl_xlist.h.
42667         * modules/array-oset-tests (Depends-on): Add xlist.
42668
42669         Reported by José E. Marchesi <jemarch@gnu.org>.
42670
42671 2009-12-13  Bruno Haible  <bruno@clisp.org>
42672
42673         Move the malloc checking from module 'oset' to new module 'xoset'.
42674         * modules/xoset: New file.
42675         * lib/gl_xoset.h: New file.
42676         * lib/gl_xoset.c: New file.
42677         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
42678         declarations.
42679         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
42680         (struct gl_oset_implementation): Rename and change methods accordingly.
42681         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
42682         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42683         'int'. Mark as __warn_unused_result__.
42684         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
42685         gl_oset_create_empty.
42686         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42687         'int'.
42688         * lib/gl_array_oset.c: Don't include xalloc.h.
42689         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
42690         malloc, not xmalloc.
42691         (grow): Change return type to 'int'. Don't call xalloc_die.
42692         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
42693         to 'int'.
42694         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
42695         'int'.
42696         (gl_array_oset_implementation): Update.
42697         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
42698         gl_tree_create_empty.
42699         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
42700         'int'.
42701         * lib/gl_avltree_oset.c: Don't include xalloc.h.
42702         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42703         xmalloc.
42704         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42705         not xmalloc.
42706         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42707         xmalloc.
42708         (gl_avltree_oset_implementation): Update.
42709         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
42710         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42711         xmalloc.
42712         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42713         not xmalloc.
42714         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42715         xmalloc.
42716         (gl_rbtree_oset_implementation): Update.
42717         * modules/array-oset (Depends-on): Remove xalloc.
42718         * modules/avltree-oset (Depends-on): Likewise.
42719         * modules/rbtree-oset (Depends-on): Likewise.
42720         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
42721         * tests/test-avltree_oset.c: Likewise.
42722         * tests/test-rbtree_oset.c: Likewise.
42723         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42724         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
42725         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42726         * NEWS: Mention the change.
42727
42728 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
42729
42730         maint.mk: allow a project to override release-prep commands
42731         * top/maint.mk (alpha, beta, stable): Move release-preparatory
42732         commands into a new rule.
42733         (release-prep): New rule.
42734         (release-prep-hook): New overridable variable.
42735
42736 2009-12-13  Bruno Haible  <bruno@clisp.org>
42737
42738         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
42739
42740 2009-12-13  Jim Meyering  <meyering@redhat.com>
42741
42742         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
42743         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
42744
42745 2009-12-12  Bruno Haible  <bruno@clisp.org>
42746
42747         duplocale: Tweak.
42748         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
42749
42750 2009-12-12  Karl Berry  <karl@gnu.org>
42751
42752         * config/srclist.txt (strtoll.c): tab changes, no more sync.
42753
42754 2009-12-12  Bruno Haible  <bruno@clisp.org>
42755
42756         * m4/po.m4: Undo incorrect untabification.
42757
42758 2009-12-12  Bruno Haible  <bruno@clisp.org>
42759
42760         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
42761         * modules/c-strtod (Depends-on): Add locale.
42762         * modules/c-strtold (Depends-on): Likewise.
42763
42764 2009-12-12  Bruno Haible  <bruno@clisp.org>
42765
42766         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
42767
42768 2009-12-11  Eric Blake  <ebb9@byu.net>
42769
42770         setenv: relax requirement in light of POSIX ruling
42771         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
42772         not NULL.
42773         * tests/test-setenv.c (main): Relax test.
42774         * tests/test-unsetenv.c (main): Likewise.
42775         * doc/posix-functions/setenv.texi (setenv): Document this.
42776         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42777
42778 2009-12-11  Bruno Haible  <bruno@clisp.org>
42779
42780         New module 'fd-safer-flag'.
42781         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
42782         * lib/dup-safer.c (dup_safer_flag): Remove function.
42783         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
42784         * lib/fd-safer.c (fd_safer_flag): Remove function.
42785         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
42786         * modules/cloexec (configure.ac): Drop indicator macro.
42787         * modules/fd-safer-flag: New file.
42788         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
42789         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
42790         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
42791
42792 2009-12-11  Bruno Haible  <bruno@clisp.org>
42793
42794         Tests for module 'nl_langinfo'.
42795         * modules/nl_langinfo-tests: New file.
42796         * tests/test-nl_langinfo.sh: New file.
42797         * tests/test-nl_langinfo.c: New file.
42798
42799         New module 'nl_langinfo'.
42800         * lib/nl_langinfo.c: New file.
42801         * m4/nl_langinfo.m4: New file.
42802         * modules/nl_langinfo: New file.
42803         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
42804
42805 2009-12-11  Bruno Haible  <bruno@clisp.org>
42806
42807         Tests for module 'langinfo'.
42808         * modules/langinfo-tests: New file.
42809         * tests/test-langinfo.c: New file.
42810
42811         New module 'langinfo'.
42812         * lib/langinfo.in.h: New file.
42813         * m4/langinfo_h.m4: New file.
42814         * modules/langinfo: New file.
42815         * doc/posix-headers/langinfo.texi: Mention the new module.
42816
42817 2009-12-11  Bruno Haible  <bruno@clisp.org>
42818
42819         * lib/config.charset: Untabify.
42820
42821 2009-12-11  Bruno Haible  <bruno@clisp.org>
42822
42823         * modules/unistd-safer (configure.ac): Drop indicator macro.
42824
42825 2009-12-11  Bruno Haible  <bruno@clisp.org>
42826
42827         Move pipe2-safer code to its own file.
42828         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
42829         * lib/pipe-safer.c (pipe2_safer): Remove function.
42830         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
42831         (Makefile.am): Add it to lib_SOURCES.
42832
42833 2009-12-10  Bruno Haible  <bruno@clisp.org>
42834
42835         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
42836
42837 2009-12-10  Bruno Haible  <bruno@clisp.org>
42838
42839         Declare which arguments expect non-NULL values, for GCC and clang.
42840         * build-aux/arg-nonnull.h: New file.
42841         * modules/arg-nonnull: New file.
42842         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
42843         (inet_ntop, inet_pton): Use it.
42844         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
42845         (closedir, dirfd, opendir, scandir, alphasort): Use it.
42846         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
42847         (open, openat): Use it.
42848         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
42849         (fnmatch): Use it.
42850         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
42851         (getopt, getopt_long, getopt_long_only): Use it.
42852         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
42853         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
42854         Use it.
42855         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
42856         (iconv_open): Use it.
42857         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
42858         (strtoimax, strtoumax): Use it.
42859         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
42860         (duplocale): Use it.
42861         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
42862         (frexp, frexpl): Use it.
42863         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
42864         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
42865         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
42866         (tsearch, tfind, tdelete, twalk): Use it.
42867         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
42868         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
42869         sigpending): Use it.
42870         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
42871         (posix_spawn, posix_spawnp, posix_spawnattr_init,
42872         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
42873         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
42874         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
42875         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
42876         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
42877         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
42878         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
42879         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
42880         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
42881         Use it.
42882         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
42883         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
42884         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
42885         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
42886         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
42887         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
42888         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
42889         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
42890         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
42891         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
42892         strtoull, unsetenv): Use it.
42893         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
42894         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
42895         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
42896         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
42897         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
42898         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
42899         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
42900         (strcasecmp, strncasecmp): Use it.
42901         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
42902         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
42903         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
42904         rpl_setsockopt): Use it.
42905         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
42906         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
42907         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
42908         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
42909         (gettimeofday): Use it.
42910         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
42911         (times): Use it.
42912         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
42913         (uname): Use it.
42914         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
42915         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
42916         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
42917         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
42918         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
42919         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
42920         unlinkat, write): Use it.
42921         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
42922         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
42923         * lib/argv-iter.h: Include arg-nonnull.h.
42924         (_ATTRIBUTE_NONNULL_): Remove macro.
42925         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
42926         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
42927         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
42928         optimization.
42929         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
42930         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
42931         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
42932         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
42933         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
42934         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
42935         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
42936         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
42937         * modules/arpa_inet (Depends-on): Add arg-nonnull.
42938         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
42939         * modules/dirent (Depends-on): Add arg-nonnull.
42940         (Makefile.am): Insert arg-nonnull.h into dirent.h.
42941         * modules/fcntl-h (Depends-on): Add arg-nonnull.
42942         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
42943         * modules/fnmatch (Depends-on): Add arg-nonnull.
42944         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
42945         * modules/getopt-posix (Depends-on): Add arg-nonnull.
42946         (Makefile.am): Insert arg-nonnull.h into getopt.h.
42947         * modules/glob (Depends-on): Add arg-nonnull.
42948         (Makefile.am): Insert arg-nonnull.h into glob.h.
42949         * modules/iconv_open (Depends-on): Add arg-nonnull.
42950         (Makefile.am): Insert arg-nonnull.h into iconv.h.
42951         * modules/inttypes (Depends-on): Add arg-nonnull.
42952         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
42953         * modules/locale (Depends-on): Add arg-nonnull.
42954         (Makefile.am): Insert arg-nonnull.h into locale.h.
42955         * modules/math (Depends-on): Add arg-nonnull.
42956         (Makefile.am): Insert arg-nonnull.h into math.h.
42957         * modules/netdb (Depends-on): Add arg-nonnull.
42958         (Makefile.am): Insert arg-nonnull.h into netdb.h.
42959         * modules/search (Depends-on): Add arg-nonnull.
42960         (Makefile.am): Insert arg-nonnull.h into search.h.
42961         * modules/signal (Depends-on): Add arg-nonnull.
42962         (Makefile.am): Insert arg-nonnull.h into signal.h.
42963         * modules/spawn (Depends-on): Add arg-nonnull.
42964         (Makefile.am): Insert arg-nonnull.h into spawn.h.
42965         * modules/stdio (Depends-on): Add arg-nonnull.
42966         (Makefile.am): Insert arg-nonnull.h into stdio.h.
42967         * modules/stdlib (Depends-on): Add arg-nonnull.
42968         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
42969         * modules/string (Depends-on): Add arg-nonnull.
42970         (Makefile.am): Insert arg-nonnull.h into string.h.
42971         * modules/strings (Depends-on): Add arg-nonnull.
42972         (Makefile.am): Insert arg-nonnull.h into strings.h.
42973         * modules/sys_socket (Depends-on): Add arg-nonnull.
42974         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
42975         * modules/sys_stat (Depends-on): Add arg-nonnull.
42976         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
42977         * modules/sys_time (Depends-on): Add arg-nonnull.
42978         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
42979         * modules/sys_times (Depends-on): Add arg-nonnull.
42980         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
42981         * modules/sys_utsname (Depends-on): Add arg-nonnull.
42982         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
42983         * modules/time (Depends-on): Add arg-nonnull.
42984         (Makefile.am): Insert arg-nonnull.h into time.h.
42985         * modules/unistd (Depends-on): Add arg-nonnull.
42986         (Makefile.am): Insert arg-nonnull.h into unistd.h.
42987         * modules/wchar (Depends-on): Add arg-nonnull.
42988         (Makefile.am): Insert arg-nonnull.h into wchar.h.
42989         * modules/argv-iter (Depends-on): Add arg-nonnull.
42990         * tests/test-canonicalize.c (null_ptr): New function.
42991         (main): Use it.
42992         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
42993         (main): Use it.
42994         * tests/test-memmem.c (null_ptr): New function.
42995         (main): Use it.
42996         Reported by Jim Meyering.
42997
42998 2009-12-10  Bruno Haible  <bruno@clisp.org>
42999
43000         Use spaces for indentation, not tabs.
43001         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
43002         * m4/*.m4: Untabify.
43003         * build-aux/*.h: Untabify.
43004         * tests/**/*.[hc]: Untabify.
43005         * README: New section "Indent with spaces, not TABs", based on
43006         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
43007         * NEWS: Mention the change.
43008
43009 2009-12-10  Bruno Haible  <bruno@clisp.org>
43010
43011         pty test: Fix link error.
43012         * modules/pty-tests (Makefile.am): Add the default LDADD value to
43013         test_pty_LDADD.
43014
43015 2009-12-07  Simon Josefsson  <simon@josefsson.org>
43016
43017         * modules/pty: New file.
43018         * modules/pty-tests: New file.
43019         * m4/pty.m4: New file.
43020         * tests/test-pty.c: New file.
43021         * doc/glibc-headers/pty.texi: Modified.
43022         * doc/glibc-functions/forkpty.texi: Modified.
43023         * doc/glibc-functions/openpty.texi: Modified.
43024
43025 2009-12-10  Bruno Haible  <bruno@clisp.org>
43026
43027         Avoid syntax error in C++ mode.
43028         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
43029
43030 2009-12-10  Bruno Haible  <bruno@clisp.org>
43031
43032         Use sed with option -e.
43033         * gnulib-tool (func_version, func_emit_copyright_notice,
43034         func_emit_initmacro_end, func_import, func_create_testdir): Pass
43035         option -e to sed.
43036         * modules/link-warning (Makefile.am): Likewise.
43037
43038 2009-12-10  Jim Meyering  <meyering@redhat.com>
43039
43040         mgetgroups: do not write bytes beyond end of malloc'd buffer
43041         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
43042         username, we call getgroups with a one-element-shorter buffer,
43043         but still told it the length was original, max_n_groups.
43044
43045 2009-12-09  Eric Blake  <ebb9@byu.net>
43046
43047         cloexec: relax license
43048         * modules/cloexec (Maintainer): Add myself.
43049         (License): Use LGPL, not GPL.
43050
43051         link-warning: optimize generation
43052         * modules/link-warning (Makefile.am): Reduce process usage.
43053
43054 2009-12-09  Bruno Haible  <bruno@clisp.org>
43055
43056         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
43057         workaround was added on 2009-11-17.
43058
43059 2009-12-09  Jim Meyering  <meyering@redhat.com>
43060             Bruno Haible  <bruno@clisp.org>
43061
43062         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
43063         * modules/link-warning (Makefile.am): Make the comment-removing sed
43064         command more robust in the face of bootstrap-prepended comment lines.
43065
43066 2009-12-09  Bruno Haible  <bruno@clisp.org>
43067
43068         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
43069         most one group.
43070
43071 2009-12-09  Simon Josefsson <simon@josefsson.org>
43072             Bruno Haible  <bruno@clisp.org>
43073
43074         * build-aux/link-warning.h: Add copyright notice.
43075         * modules/link-warning (Makefile.am): Generate link-warning.h from
43076         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
43077         * NEWS: Mention change in link-warning module.
43078         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
43079         * modules/dirent (Makefile.am): Add dependency to dirent.h.
43080         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
43081         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
43082         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
43083         * modules/math (Makefile.am): Add dependency to math.h.
43084         * modules/search (Makefile.am): Add dependency to search.h.
43085         * modules/signal (Makefile.am): Add dependency to signal.h.
43086         * modules/spawn (Makefile.am): Add dependency to spawn.h.
43087         * modules/stdio (Makefile.am): Add dependency to stdio.h.
43088         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
43089         * modules/string (Makefile.am): Add dependency to string.h.
43090         * modules/strings (Makefile.am): Add dependency to strings.h.
43091         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
43092         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
43093         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
43094         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
43095         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
43096         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
43097         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
43098         * modules/unistd (Makefile.am): Add dependency to unistd.h.
43099         * modules/wchar (Makefile.am): Add dependency to wchar.h.
43100
43101 2009-12-09  Bruno Haible  <bruno@clisp.org>
43102
43103         fchdir: Optimize away rpl_fstat when possible.
43104         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
43105         REPLACE_OPEN_DIRECTORY.
43106         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
43107
43108 2009-12-09  Bruno Haible  <bruno@clisp.org>
43109
43110         * lib/fchdir.c: Update comment.
43111
43112 2009-12-09  Bruno Haible  <bruno@clisp.org>
43113
43114         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
43115
43116 2009-12-08  Eric Blake  <ebb9@byu.net>
43117
43118         fchdir: avoid memory leak on re-registration.
43119         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
43120
43121 2009-12-08  Jim Meyering  <meyering@redhat.com>
43122
43123         init.sh: avoid Solaris 10 /bin/sh portability problem
43124         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
43125         sourced script:
43126           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
43127           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
43128           bar
43129         tests/init.sh relied on that, accepting a --set-path=DIR argument,
43130         and two tests used that idiom.
43131         * tests/init.sh: Update suggested usage comments.
43132         (path_prepend_): New function, to be used in place
43133         of the --src-path=DIR option.
43134         (setup_): Move PATH-prepending code into path_prepend_.
43135         * tests/test-pread.sh: Adapt to new usage.
43136         * tests/test-xalloc-die.sh: Likewise.
43137
43138 2009-12-08  Simon Josefsson  <simon@josefsson.org>
43139
43140         * doc/gnulib.texi (Glibc pty.h): Add.
43141         * doc/glibc-functions/forkpty.texi: Add.
43142         * doc/glibc-functions/openpty.texi: Add.
43143         Suggested by Bruno Haible.
43144
43145 2009-12-08  Eric Blake  <ebb9@byu.net>
43146
43147         fchdir: fix logic bugs
43148         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
43149         * tests/test-fchdir.c (main): Enhance test.
43150         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
43151         is in use.
43152
43153         dup2: fix logic bugs
43154         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
43155         REPLACE_DUP2 to decide when rpl_dup2 is needed.
43156         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
43157         exists.
43158         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
43159
43160 2009-12-07  Eric Blake  <ebb9@byu.net>
43161
43162         unlink: fix m4 detection
43163         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
43164
43165         unistd-safer: add unit test
43166         * modules/unistd-safer-tests: New file.
43167         * tests/test-dup-safer.c: Likewise.
43168         * tests/test-cloexec.c (setmode): Avoid compiler warning.
43169         * tests/test-dup2.c (setmode): Likewise.
43170         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
43171
43172         cloexec: preserve text vs. binary across dup_cloexec
43173         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
43174         mode.
43175         * modules/dup2-tests (Depends-on): Add binary-io.
43176         * modules/cloexec-tests (Depends-on): Likewise.
43177         * tests/test-dup2.c (setmode, is_mode): New helpers.
43178         (main): Add tests that translation mode is preserved.
43179         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
43180         Reported by Bruno Haible.
43181
43182         mgetgroups: reduce duplicate listings
43183         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
43184         resulting array.
43185         * tests/test-chown.h (test_chown): Simplify client.
43186         * tests/test-lchown.h (test_lchown): Likewise.
43187
43188 2009-12-06  Bruno Haible  <bruno@clisp.org>
43189
43190         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
43191         value.
43192
43193 2009-12-06  Bruno Haible  <bruno@clisp.org>
43194
43195         * lib/progname.c: Include stdio.h, stdlib.h.
43196         (set_program_name): Reject a NULL argument.
43197
43198 2009-12-05  Eric Blake  <ebb9@byu.net>
43199
43200         pipe2-safer: new module
43201         * modules/pipe2-safer: New file.
43202         * lib/unistd-safer.h (pipe2_safer): New prototype.
43203         * lib/unistd--.h (pipe2): New wrapper.
43204         * lib/pipe-safer.c (pipe2_safer): New function.
43205         * modules/pipe (Depends-on): Add pipe2-safer.
43206         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
43207
43208         stdlib-safer: preserve cloexec flag for mkostemp[s]
43209         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
43210         fd_safer_flag.
43211
43212         unistd-safer: allow preservation of cloexec status via flag
43213         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
43214         prototypes.
43215         * lib/dup-safer.c (dup_safer_flag): New function.
43216         * lib/fd-safer.c (fd_safer_flag): Likewise.
43217         * modules/cloexec (configure.ac): Set witness.
43218
43219         test-dup2: enhance test
43220         * modules/dup2-tests (Depends-on): Add cloexec.
43221         * tests/test-dup2.c (main): Enhance test.
43222
43223         cloexec: add dup_cloexec
43224         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
43225         header and comments.
43226         * lib/cloexec.c (set_cloexec_flag): Add comments.
43227         (dup_cloexec): New function, with mingw implementation borrowed
43228         from...
43229         * lib/w32spawn.h (dup_noinherit): ...here.
43230         * modules/execute (Depends-on): Add cloexec.
43231         * modules/pipe (Depends-on): Likewise.
43232         * modules/cloexec (Depends-on): Add dup2.
43233         * modules/cloexec-tests (Files): New file.
43234         * tests/test-cloexec.c: Likewise.
43235
43236         test-xalloc-die: fix test for mingw
43237         * modules/xalloc-die-tests (Files): Add tests/init.sh.
43238         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
43239         directory and .exe suffix off argv[0] output.
43240
43241         test-fseeko: fix test for mingw
43242         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
43243         than undefining fseek, so test will pass on mingw.
43244
43245 2009-12-05  Bruno Haible  <bruno@clisp.org>
43246
43247         * lib/progname.h (set_program_name): Clarify specification.
43248         * lib/progname.c (set_program_name): Likewise.
43249         Reported by Jim Meyering.
43250
43251 2009-12-05  Jim Meyering  <meyering@redhat.com>
43252
43253         maint.mk: backslash-escape parens in default regexp
43254         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
43255         backslash-escape the literal parentheses.
43256
43257         maint.mk: news-date-check: use grep -E
43258         * top/maint.mk (today): Define a Make variable, not a...
43259         (news-date-check): ...shell variable.
43260         (news-date-regexp): Use the Make variable.
43261         Use grep's -E option.  Change the failing diagnostic to mention
43262         the variable, $(news-date-regexp).
43263
43264 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
43265
43266         maintainer-makefile: allow customization of NEWS entry format
43267         * top/maint.mk (news-date-regexp): New overridable variable.
43268         (news-date-check): Use it.
43269
43270 2009-12-04  Eric Blake  <ebb9@byu.net>
43271
43272         mgetgroups: add xgetgroups, and avoid ENOSYS failures
43273         * lib/mgetgroups.h (xgetgroups): New prototype.
43274         * lib/mgetgroups.c (xgetgroups): New wrapper.
43275         (mgetgroups): Handle ENOSYS.
43276         * modules/mgetgroups (Depends-on): Add realloc.
43277         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
43278
43279         mgetgroups: avoid argument promotion issues with -1
43280         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
43281         for invalid gid_t.
43282         * tests/test-chown.h (getegid, test_chown): Likewise.
43283         * tests/test-lchown.h (getegid, test_lchown): Likewise.
43284
43285 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
43286
43287         exclude: Fix header file problems.
43288         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
43289
43290 2009-12-01  Jim Meyering  <meyering@redhat.com>
43291
43292         fts: fts_open: do not let an empty string cause immediate failure
43293         This is required in support of GNU rm, for which the command
43294         "rm A '' B" must process and remove both A and B, in spite of
43295         the empty string argument.
43296         * lib/fts.c (fts_open): Do not let the presence of an empty string
43297         cause fts_open to fail immediately.  Most fts-using tools must be
43298         able to process all arguments, in order, and can be expected to
43299         diagnose such arguments themselves.
43300
43301 2009-11-30  Eric Blake  <ebb9@byu.net>
43302
43303         utimens: fix compilation error
43304         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
43305         Declare variable at right scope.
43306
43307 2009-11-29  Jim Meyering  <meyering@redhat.com>
43308
43309         bootstrap: handle perl-5.11's changed --version output
43310         * build-aux/bootstrap (get_version): Handle perl separately,
43311         since perl-5.11's --version output is different.
43312
43313 2009-11-28  Jim Meyering  <meyering@redhat.com>
43314
43315         userspec: depend on the inttostr module, too
43316         * modules/userspec (Depends-on): Add inttostr.
43317
43318         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
43319         * lib/userspec.c (parse_with_separator): Do not accept a user ID
43320         number of MAXUID when it evaluates to (uid_t) -1.
43321         Likewise for group ID.  Reported by Matt McCutchen in
43322         <http://savannah.gnu.org/bugs/?28113>
43323
43324         userspec: reformat to use spaces, not TABs
43325         * lib/userspec.c: Expand TABs to spaces.
43326         Add Emacs' "indent-tabs-mode: nil" hint.
43327
43328 2009-11-27  Eric Blake  <ebb9@byu.net>
43329
43330         getopt-gnu: flush out another BSD bug
43331         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
43332         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
43333         flush out BSD bug.
43334         * tests/test-getopt.h (test_getopt): End lists with NULL.
43335         * tests/test-getopt_long.h (test_getopt_long): Likewise.
43336         (test_getopt_long_posix): Enhance test.
43337         * modules/getopt-posix-tests (Depends-on): Add stdbool.
43338         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
43339         getopt-gnu.
43340         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
43341         Likewise.
43342
43343 2009-11-27  Simon Josefsson  <simon@josefsson.org>
43344
43345         * modules/idpriv-droptemp-tests (Notice): Fix text.
43346
43347 2009-11-27  Jim Meyering  <meyering@redhat.com>
43348
43349         test-xalloc-die: avoid spurious failure due to libtool argv difference
43350         In a libtool-enabled project, this test would fail due to a difference
43351         in the emitted program name, e.g.,
43352         -test-xalloc-die: memory exhausted
43353         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
43354         Use program to avoid that.
43355         * modules/xalloc-die-tests (Depends-on): Add progname.
43356         * tests/test-xalloc-die.c: Include progname.h".
43357         (program_name): Remove decl.
43358         (main): Call set_program_name.
43359         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
43360
43361 2009-11-26  Richard Jones  <rjones@redhat.com>
43362
43363         w32sock: leave win32 error in place.
43364         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
43365
43366 2009-11-26  Eric Blake  <ebb9@byu.net>
43367
43368         init.sh: suggest to use skip_ and fail_ functions in comments
43369         * tests/init.sh: Add a sentence.
43370
43371 2009-11-25  Bruno Haible  <bruno@clisp.org>
43372
43373         init.sh: add documentation in comments
43374         * tests/init.sh: Add some developer and user documentation.
43375
43376 2009-11-26  Jim Meyering  <meyering@redhat.com>
43377
43378         init.sh: accommodate even those who specify bogus srcdir manually
43379         * tests/init.sh: Normally, srcdir is guaranteed by automake and
43380         configure-time tests to be sanitized, so that there is no need to
43381         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
43382         (with no double quotes) suffices.  However, since tests may be
43383         invoked manually, and since you may explicitly set srcdir to the
43384         name of a directory containing spaces, do quote its uses here.
43385         * tests/test-pread.sh: Likewise.
43386         Suggested by Bruno Haible.
43387
43388         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
43389         * tests/test-pread.sh: Write no data into the pipe, because
43390         test-pread actually reads none.  This avoids a diagnostic,
43391         "bash: echo: write error: Broken pipe", that arises in the unusual
43392         event something is ignoring SIGPIPE, and might be interpreted
43393         as some sort of failure.  Reported by Bruno Haible.
43394
43395 2009-11-25  Jim Meyering  <meyering@redhat.com>
43396
43397         test-pread: cover failure with ESPIPE and EINVAL
43398         * tests/test-pread.c (main): Test for failure, too.
43399         * tests/test-pread.sh: Invoke with stdin on a pipe.
43400         Suggested by Eric Blake.
43401
43402         pread: improvement and fix
43403         * modules/pread (Depends-on): Depend on lseek, for portability to
43404         e.g., mingw.  Suggested by Eric Blake.
43405         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
43406
43407         unistd.in.h: correct declaration of pread
43408         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
43409         Reported by Richard W.M. Jones.
43410
43411         test-pread.sh: distribute the test script
43412         * modules/pread-tests (Files): Include test-pread.sh.
43413
43414         test-pread.sh: clean up
43415         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
43416         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
43417         That is unnecessary, since it's always ".".
43418         Suggestion from Eric Blake.
43419
43420         test-pread.sh: make executable
43421         * tests/test-pread.sh: Set executable bit.
43422         Reported by Eric Blake.
43423
43424         correct typo in test-pread.sh
43425         * tests/test-pread.sh: Add #! line.
43426
43427         test pread
43428         * tests/test-pread.c: New file.
43429         * tests/test-pread.sh: Likewise.
43430         * modules/pread-tests: Likewise.
43431
43432         pread: new module
43433         * modules/pread: New file.
43434         * lib/unistd.in.h (pread): Define/declare.
43435         * lib/pread.c (pread): New file.
43436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
43437         * modules/unistd (Makefile.am): Substitute witnesses.
43438         * doc/posix-functions/pread.texi (pread): Update.
43439         * MODULES.html.sh: Add pread.
43440
43441 2009-11-25  Jim Meyering  <meyering@redhat.com>
43442
43443         tests/init.sh: new file to be used via most *.sh tests
43444         * tests/init.sh: New file.
43445
43446 2009-11-25  Eric Blake  <ebb9@byu.net>
43447
43448         utimens: work around older Linux failure with symlinks
43449         * lib/utimens.c (lutimensat_works_really): New variable.
43450         (fdutimens, lutimens): Use it to manage kernels that support
43451         nanosecond times on files, but not on symlinks.
43452         Reported by Ondřej Vašík.
43453
43454         utimes: fix configure grammar
43455         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
43456
43457 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
43458
43459         regex: Fix fastmap for multibyte character ranges.
43460         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
43461         characters when a multibyte character range is included.
43462
43463 2009-11-22  Andy Wingo  <wingo@pobox.com>
43464
43465         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
43466         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
43467
43468 2009-11-24  Bruno Haible  <bruno@clisp.org>
43469
43470         doc: Most *_l functions exist in MacOS X 10.5.
43471         * doc/posix-functions/duplocale.texi: Update platforms list.
43472         * doc/posix-functions/freelocale.texi: Likewise.
43473         * doc/posix-functions/newlocale.texi: Likewise.
43474         * doc/posix-functions/uselocale.texi: Likewise.
43475         * doc/posix-functions/isalnum_l.texi: Likewise.
43476         * doc/posix-functions/isalpha_l.texi: Likewise.
43477         * doc/posix-functions/isblank_l.texi: Likewise.
43478         * doc/posix-functions/iscntrl_l.texi: Likewise.
43479         * doc/posix-functions/isdigit_l.texi: Likewise.
43480         * doc/posix-functions/isgraph_l.texi: Likewise.
43481         * doc/posix-functions/islower_l.texi: Likewise.
43482         * doc/posix-functions/isprint_l.texi: Likewise.
43483         * doc/posix-functions/ispunct_l.texi: Likewise.
43484         * doc/posix-functions/isspace_l.texi: Likewise.
43485         * doc/posix-functions/isupper_l.texi: Likewise.
43486         * doc/posix-functions/iswalnum_l.texi: Likewise.
43487         * doc/posix-functions/iswalpha_l.texi: Likewise.
43488         * doc/posix-functions/iswblank_l.texi: Likewise.
43489         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43490         * doc/posix-functions/iswctype_l.texi: Likewise.
43491         * doc/posix-functions/iswdigit_l.texi: Likewise.
43492         * doc/posix-functions/iswgraph_l.texi: Likewise.
43493         * doc/posix-functions/iswlower_l.texi: Likewise.
43494         * doc/posix-functions/iswprint_l.texi: Likewise.
43495         * doc/posix-functions/iswpunct_l.texi: Likewise.
43496         * doc/posix-functions/iswspace_l.texi: Likewise.
43497         * doc/posix-functions/iswupper_l.texi: Likewise.
43498         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43499         * doc/posix-functions/isxdigit_l.texi: Likewise.
43500         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
43501         * doc/posix-functions/strcasecmp_l.texi: Likewise.
43502         * doc/posix-functions/strcoll_l.texi: Likewise.
43503         * doc/posix-functions/strfmon_l.texi: Likewise.
43504         * doc/posix-functions/strftime_l.texi: Likewise.
43505         * doc/posix-functions/strncasecmp_l.texi: Likewise.
43506         * doc/posix-functions/strxfrm_l.texi: Likewise.
43507         * doc/posix-functions/tolower_l.texi: Likewise.
43508         * doc/posix-functions/toupper_l.texi: Likewise.
43509         * doc/posix-functions/towctrans_l.texi: Likewise.
43510         * doc/posix-functions/towlower_l.texi: Likewise.
43511         * doc/posix-functions/towupper_l.texi: Likewise.
43512         * doc/posix-functions/wcscoll_l.texi: Likewise.
43513         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43514         * doc/posix-functions/wctrans_l.texi: Likewise.
43515         * doc/posix-functions/wctype_l.texi: Likewise.
43516         * doc/glibc-functions/strptime_l.texi: Likewise.
43517         * doc/glibc-functions/strtod_l.texi: Likewise.
43518         * doc/glibc-functions/strtof_l.texi: Likewise.
43519         * doc/glibc-functions/strtol_l.texi: Likewise.
43520         * doc/glibc-functions/strtold_l.texi: Likewise.
43521         * doc/glibc-functions/strtoll_l.texi: Likewise.
43522         * doc/glibc-functions/strtoul_l.texi: Likewise.
43523         * doc/glibc-functions/strtoull_l.texi: Likewise.
43524         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43525         * doc/glibc-functions/wcstod_l.texi: Likewise.
43526         * doc/glibc-functions/wcstof_l.texi: Likewise.
43527         * doc/glibc-functions/wcstol_l.texi: Likewise.
43528         * doc/glibc-functions/wcstold_l.texi: Likewise.
43529         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43530         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43531         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43532
43533 2009-11-24  Bruno Haible  <bruno@clisp.org>
43534
43535         duplocale: Fix logic bug.
43536         * lib/duplocale.c: Don't include <langinfo.h>.
43537         (_NL_LOCALE_NAME): Remove macro.
43538         (rpl_duplocale): Use setlocale instead of nl_langinfo.
43539         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
43540
43541 2009-11-23  Jim Meyering  <meyering@redhat.com>
43542
43543         test-update-copyright: don't hard-code /usr/bin/perl
43544         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
43545         perl to print the current year.  Gilles Espinasse reported that
43546         the replaced use of perl was hard-coded as /usr/bin/perl.
43547
43548 2009-11-23  Bruno Haible  <bruno@clisp.org>
43549
43550         duplocale: Add support for glibc 2.3.x.
43551         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
43552
43553 2009-11-22  Bruno Haible  <bruno@clisp.org>
43554
43555         vasnprintf: Tiny optimization.
43556         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
43557         MacOS X.
43558
43559 2009-11-22  Bruno Haible  <bruno@clisp.org>
43560
43561         Tests for module 'duplocale'.
43562         * modules/duplocale-tests: New file.
43563         * tests/test-duplocale.c: New file.
43564
43565         New module 'duplocale'.
43566         * m4/duplocale.m4: New file.
43567         * lib/locale.in.h (duplocale): New declaration.
43568         * lib/duplocale.c: New file.
43569         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
43570         gl_LOCALE_H_DEFAULTS): New macros.
43571         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
43572         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
43573         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
43574         REPLACE_DUPLOCALE.
43575         * modules/duplocale: New file.
43576         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
43577
43578 2009-11-22  Bruno Haible  <bruno@clisp.org>
43579
43580         * modules/locale-tests (configure.ac): Test for newlocale function.
43581         * tests/test-locale.c: When the system has extended locale functions,
43582         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
43583
43584         locale: Make locale_t available when possible.
43585         * lib/locale.in.h: Include <xlocale.h> when it exists.
43586         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
43587         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
43588         * modules/locale (Depends-on): Add extensions.
43589         (Makefile.am): Also substitute HAVE_XLOCALE_H.
43590         * doc/posix-headers/locale.texi: Document the problem with locale_t.
43591
43592 2009-11-22  Bruno Haible  <bruno@clisp.org>
43593
43594         Add comments.
43595         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
43596         invocation.
43597         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43598         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43599         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43600
43601 2009-11-22  Bruno Haible  <bruno@clisp.org>
43602
43603         error: account for the possibility of freopen (stdout).
43604         * lib/error.c: Include <unistd.h>.
43605         (flush_stdout): New function, extracted from error and error_at_line.
43606         Determine stdout's fd dynamically.
43607         (error, error_at_line): Invoke flush_stdout.
43608         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
43609         * modules/error (Depends-on): Add unistd.
43610
43611 2009-11-22  Bruno Haible  <bruno@clisp.org>
43612
43613         diffseq: Add comment.
43614         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
43615
43616 2009-11-22  Jim Meyering  <meyering@redhat.com>
43617
43618         c-stack: avoid defining an unused static function
43619         * lib/c-stack.c (find_stack_direction): Do not define this function
43620         when it will not be used.
43621
43622         diffseq: avoid spurious gcc warnings
43623         * lib/diffseq.h (IF_LINT2): Define.
43624         (compareseq): Use it to initialize two members of "part".
43625         This avoids two used-uninitialized warnings.
43626
43627 2009-11-21  Jim Meyering  <meyering@redhat.com>
43628
43629         c-stack: avoid "ignoring return value of `write'" warning
43630         * lib/c-stack.c: Include "ignore-value.h".
43631         (die): Explicitly ignore each write return value.
43632         * modules/c-stack (Depends-on): Add ignore-value.
43633
43634 2009-11-21  Bruno Haible  <bruno@clisp.org>
43635
43636         diffseq: reduce scope of variable 'best'.
43637         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
43638         variable, earlier used for two different purposes.
43639
43640 2009-11-21  Jim Meyering  <meyering@redhat.com>
43641
43642         diffseq: remove useless assignment to "best"
43643         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
43644         assignment.  At that point "best" is already guaranteed to be zero.
43645
43646 2009-11-20  Eric Blake  <ebb9@byu.net>
43647
43648         build: mention ftp redirector in release announcements
43649         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
43650         values that used to come from cfg.mk; mention FTP redirect URL.
43651         * build-aux/announce-gen: Mention the mirror list.
43652         Suggested by Karl Berry.
43653
43654         nanosleep: improve port to mingw
43655         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
43656         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
43657         LIB_NANOSLEEP, but only when needed.
43658         * modules/select (Link): Document LIBSOCKET.
43659         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
43660         enough.
43661
43662         nanosleep: work around cygwin bug
43663         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
43664         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
43665         bug.
43666         (getnow): Delete, not needed.
43667         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
43668         LIB_CLOCK_GETTIME.
43669         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
43670         clock-time, gettime.
43671         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
43672         bug.
43673         * modules/nanosleep-tests: New test.
43674         * tests/test-nanosleep.c: New file.
43675
43676         sleep: work around cygwin bug
43677         * lib/sleep.c (rpl_sleep): Work around the bug.
43678         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
43679         (gl_PREREQ_SLEEP): Delete unused macro.
43680         * modules/sleep (Depends-on): Add verify.
43681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43682         * modules/unistd (Makefile.am): Substitute witness.
43683         * lib/unistd.in.h (sleep): Update prototype.
43684         * doc/posix-functions/sleep.texi (sleep): Document the bug.
43685         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
43686         * modules/sleep-tests (Depends-on): Check for alarm.
43687
43688 2009-11-20  Jim Meyering  <meyering@redhat.com>
43689
43690         maint.mk: improve sc_prohibit_magic_number_exit
43691         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
43692         so it does not match uses like System.exit(1).
43693         Add comments showing how to correct all offenders.
43694
43695 2009-11-19  Eric Blake  <ebb9@byu.net>
43696
43697         xalloc-die-tests: add missing library
43698         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
43699
43700         test-xvasprintf: silence compiler warnings
43701         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
43702         empty string from gcc.
43703
43704 2009-11-19  Jim Meyering  <meyering@redhat.com>
43705
43706         xfreopen: new module, from coreutils
43707         * modules/xfreopen: New module.
43708         * lib/xfreopen.c: New file.
43709         * lib/xfreopen.h: New file.
43710         * MODULES.html.sh (File stream based Input/Output"): Add it.
43711
43712 2009-11-19  Eric Blake  <ebb9@byu.net>
43713
43714         manywarnings: depend on warnings
43715         * modules/manywarnings (Depends-on): Add warnings.
43716
43717         build: avoid compiler warnings
43718         * lib/select.c (rpl_select): Delete unused variable.
43719         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
43720
43721 2009-11-18  Eric Blake  <ebb9@byu.net>
43722
43723         tests: avoid false negative with --with-packager
43724         * tests/test-version-etc.sh: Discard packager information.
43725         * tests/test-argp-version-etc-1.sh: Likewise.
43726         Reported by Mike Frysinger.
43727
43728         utimens: fix regression on Solaris
43729         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
43730         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
43731         can only change fd timestamps via futimesat.  Instead, use an
43732         additional witness macro to avoid BSD bug.
43733         Reported by Jim Meyering.
43734
43735 2009-11-17  Eric Blake  <ebb9@byu.net>
43736
43737         usleep: use it to simplify tests
43738         * modules/stat-time-tests (Depends-on): Add usleep.
43739         (configure.ac): Drop usleep check.
43740         * modules/chown-tests (Depends-on, configure.ac): Likewise.
43741         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
43742         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
43743         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
43744         * modules/openat-tests (Depends-on, configure.ac): Likewise.
43745         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
43746         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
43747         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
43748         Likewise.
43749         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
43750         * tests/test-lchown.h (nap): Likewise.
43751         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
43752         * tests/test-stat-time.c (nap): Likewise.
43753         * tests/test-utimens-common.h (nap): Update comments.
43754
43755         usleep: new module
43756         * modules/usleep: New file.
43757         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
43758         * lib/usleep.c (usleep): Likewise.
43759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43760         * modules/unistd (Makefile.am): Substitute witnesses.
43761         * lib/unistd.in.h (usleep): Add declaration.
43762         * doc/pastposix-functions/usleep.texi (usleep): Document this.
43763         * MODULES.html.sh (Date and time): Likewise.
43764         * modules/usleep-tests (Depends-on): New test.
43765         * tests/test-usleep.c: New file.
43766
43767         chown: work around OpenBSD bug
43768         * lib/chown.c (rpl_chown): Work around the bug.
43769         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
43770         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
43771         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
43772         * modules/chown (Depends-on): Add stdbool.
43773         * modules/lchown (Depends-on): Likewise.
43774         * doc/posix-functions/chown.texi (chown): Document the bug.
43775         * doc/posix-functions/lchown.texi (lchown): Likewise.
43776         * tests/test-lchown.h (test_chown): Relax test.
43777
43778         mkstemp: avoid conflict with C++ keyword template
43779         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
43780         * lib/mkostemp.c (mkostemp): Likewise.
43781         * lib/mkostemps.c (mkostemps): Likewise.
43782         * lib/mkstemp.c (mkstemp): Likewise.
43783         * lib/mkstemps.c (mkstemps): Likewise.
43784
43785         xalloc-die-tests: optimize
43786         * tests/test-xalloc-die.sh: Reduce number of processes.
43787
43788 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43789
43790         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
43791         patch from ludo@gnu.org (Ludovic Courtès).
43792
43793 2009-11-17  Jim Meyering  <meyering@redhat.com>
43794
43795         version-etc: use proper license string
43796         * modules/version-etc (License): Use LGPL, not LGPLv3+.
43797         * modules/version-etc-fsf: Likewise.
43798
43799 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43800
43801         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
43802         printed to stdout.  Deal with EOL differences.
43803
43804 2009-11-17  Eric Blake  <ebb9@byu.net>
43805
43806         unsetenv: work around Solaris bug
43807         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
43808         * lib/unsetenv.c (rpl_unsetenv): Work around it.
43809         Reported by Jim Meyering.
43810
43811         vasnprintf: avoid compiler warnings
43812         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
43813         variables.
43814         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
43815
43816 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43817
43818         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
43819         settings since xalloc-die is no longer the self test,
43820         xalloc-die.sh is.
43821
43822 2009-11-17  Jim Meyering  <meyering@redhat.com>
43823
43824         test-xalloc-die.sh: make the code agree with the commit log
43825         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
43826         at the end, just in case you happen to have a test-xalloc-die
43827         program in some other PATH directory.
43828
43829         test-xalloc-die.sh: fix a portability bug
43830         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
43831         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
43832         Otherwise, argv[0] (as often seen in diagnostics) would be too
43833         system-dependent, sometimes with, and sometimes without the leading "./".
43834
43835         version-etc-fsf: relax license to LGPLv3+
43836         * modules/version-etc-fsf (License): Relax license.
43837
43838 2009-11-16  Eric Blake  <ebb9@byu.net>
43839
43840         xalloc-die-tests: avoid printing null pointer
43841         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
43842         shell script.
43843         * tests/test-xalloc-die.c (program_name): Declare.
43844         * tests/test-xalloc-die.sh (tmpfiles): New file.
43845
43846         setenv, unsetenv: work around various bugs
43847         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
43848         (setenv) [HAVE_SETENV]: Work around bugs.
43849         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
43850         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
43851         for bugs.
43852         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
43853         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
43854         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
43855         * modules/stdlib (Makefile.am): Update substitutions.
43856         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
43857         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
43858         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
43859         * modules/setenv-tests: New test.
43860         * modules/unsetenv-tests: Likewise.
43861         * tests/test-setenv.c: New file.
43862         * tests/test-unsetenv.c: Likewise.
43863
43864 2009-11-16  Jim Meyering  <meyering@redhat.com>
43865
43866         version-etc: relax license to LGPLv3+
43867         * modules/version-etc (License): Relax license.
43868
43869         better AC_REQUIRE expanded-before-required-warning avoidance
43870         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
43871         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
43872         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
43873         which is no longer needed.
43874
43875 2009-11-16  Eric Blake  <ebb9@byu.net>
43876
43877         test-freading: clean up temporary file
43878         * tests/test-freading.c (main): Remove file on success, and use
43879         ASSERT more liberally.
43880         Reported by Jim Meyering.
43881
43882 2009-11-16  Jim Meyering  <meyering@redhat.com>
43883
43884         avoid new AC_REQUIRE expanded-before-required warnings
43885         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
43886         merely using it.
43887         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
43888         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
43889
43890 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43891
43892         * tests/test-xalloc-die.c: New file.
43893         * modules/xalloc-die-tests: New file.
43894         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
43895         XFAIL_TESTS so it can be appended by modules.
43896
43897 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43898
43899         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
43900         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
43901
43902 2009-11-14  Eric Blake  <ebb9@byu.net>
43903
43904         fnmatch: avoid compiler warning
43905         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
43906         to silence compiler warning about mismatch signedness in ?:.
43907         Reported by Robert Millan.
43908
43909         intprops: add double-inclusion guard
43910         * lib/intprops.h: Allow idempotent includes.
43911         Suggested by Bruce Korb.
43912
43913         openat: detect Solaris fchownat bug
43914         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
43915         penalizing glibc chownat when only lchownat is broken.
43916         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
43917         trailing slash bugs.
43918         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
43919         * modules/openat-tests (Files): Include more files.
43920         (Depends-on): Add mgetgroups, sleep, stat-time.
43921         (configure.ac): Add additional checks.
43922         (Makefile.am): Build new test.
43923         * tests/test-fchownat.c: New file.
43924
43925         lchown: detect Solaris and FreeBSD bug
43926         * lib/lchown.c (rpl_lchown): Work around bug.
43927         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
43928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43929         * modules/unistd (Makefile.am): Populate it.
43930         * lib/unistd.in.h (lchown): Update declaration.
43931         * doc/posix-functions/lchown.texi (lchown): Document the bug.
43932         * modules/lchown-tests: New file.
43933         * tests/test-lchown.h (test_lchown): Likewise.
43934         * tests/test-lchown.c (main): Likewise.
43935
43936         chown: detect Solaris and FreeBSD bug
43937         * lib/chown.c (rpl_chown): Work around bug.
43938         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
43939         (gl_PREREQ_CHOWN): Delete.
43940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43941         * modules/unistd (Makefile.am): Populate it.
43942         * lib/unistd.in.h (chown): Update declaration.
43943         * lib/lchown.c (chown): Update client.
43944         * modules/lchown (Depends-on): Add lstat.
43945         * doc/posix-functions/chown.texi (chown): Document the bug.
43946         * doc/posix-functions/getgroups.texi (getgroups): Document
43947         getgroups pitfall.
43948         * modules/chown-tests: New file.
43949         * tests/test-chown.h (test_chown): Likewise.
43950         * tests/test-chown.c (main): Likewise.
43951
43952 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
43953
43954         gnulib-tool: correctly detect absence of m4 directories
43955         * gnulib-tool: Avoid extra newline on data passed to wc -l.
43956
43957 2009-11-14  Jim Meyering  <meyering@redhat.com>
43958
43959         maint.mk: Prohibit inclusion of "xalloc.h" without use.
43960         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43961
43962 2009-11-14  John W. Eaton  <jwe@gnu.org>
43963
43964         strftime.h: wrap function declaration in extern "C" block
43965         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
43966
43967 2009-11-13  Eric Blake  <ebb9@byu.net>
43968
43969         getgroups: avoid compiler warning
43970         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
43971
43972         getgroups: work around FreeBSD bug
43973         * lib/getgroups.c (rpl_getgroups): Work around the bug.
43974         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
43975         * doc/posix-functions/getgroups.texi (getgroups): Document it.
43976         * tests/test-getgroups.c (main): Fix buffer overrun.
43977
43978         getgroups: avoid compilation failure
43979         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
43980         * modules/getgroups (Depends-on): Add stdint.
43981
43982 2009-11-13  Jim Meyering  <meyering@redhat.com>
43983
43984         test-getgroups: avoid compilation failure
43985         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
43986
43987 2009-11-13  Eric Blake  <ebb9@byu.net>
43988
43989         mgetgroups: new module, taken from coreutils
43990         * modules/mgetgroups: New file.
43991         * lib/mgetgroups.h: Likewise.
43992         * lib/mgetgroups.c (mgetgroups): Likewise.
43993         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
43994         * MODULES.html.sh (Users and groups): Mention it.
43995
43996         getgroups: don't expose GETGROUPS_T to user
43997         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
43998         an element at a time if GETGROUPS_T is wrong size.
43999         * lib/getugroups.h (getugroups): Change signature.
44000         * lib/unistd.in.h (getgroups): Likewise.
44001         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
44002         signature needs fixing.
44003         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
44004         AC_TYPE_GETGROUPS.
44005         * modules/group-member (Depends-on): Add getgroups.
44006         * lib/group-member.c (group_info, get_group_info): Use gid_t.
44007         (group_member): Rely on getgroups replacement.
44008         * lib/getugroups.c (getugroups): Use gid_t.
44009         * tests/test-getgroups.c (main): Likewise.
44010         * NEWS: Mention the signature change.
44011         * doc/posix-functions/getgroups.texi (getgroups): Mention the
44012         problem with signature.
44013         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
44014         GETGROUPS_T is still useful for setgroups.
44015
44016         getgroups, getugroups: provide stubs for mingw
44017         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
44018         * lib/getugroups.c (getugroups): Likewise.
44019         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
44020         function.  Modernize replacement scheme.
44021         (gl_PREREQ_GETGROUPS): Delete.
44022         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
44023         * modules/getgroups (configure.ac): Declare witness.
44024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
44025         * modules/unistd (Depends-on): Substitute witness.
44026         * lib/unistd.in.h (getgroups): Declare replacement.
44027
44028         getgroups: avoid calling exit
44029         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
44030         drop xalloc.
44031         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
44032         dependencies.
44033         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
44034         exiting, in the rare case of malloc failure.
44035
44036         getgroups: fix logic error
44037         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
44038         has more than 20 groups.
44039         * modules/getgroups-tests: New test.
44040         * tests/test-getgroups.c: New file.
44041
44042 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44043
44044         * tests/test-base64.c: Improve.
44045
44046 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44047
44048         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
44049         Blake <ebb9@byu.net>.
44050
44051 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44052
44053         * tests/test-xvasprintf.c: Add %s%s related checks.
44054
44055 2009-11-12  Eric Blake  <ebb9@byu.net>
44056
44057         version-etc: match standards.texi style
44058         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
44059         and use <> only for URLs.
44060
44061 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
44062
44063         fts: do not fail on a submount during traversal
44064         * lib/fts.c (fts_build): Read the stat info again after opening
44065         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
44066         Original report at http://bugzilla.redhat.com/501848.
44067
44068 2009-11-12  Jim Meyering  <meyering@redhat.com>
44069
44070         bootstrap: sync from coreutils
44071         * build-aux/bootstrap (bootstrap_epilogue): New function.
44072         Use git_modules_config in one more place.  This make bootstrap's
44073         --gnulib-srcdir option more useful for testing.
44074
44075         bootstrap: generalize autoheader check
44076         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
44077         AC_CONFIG_HEADERS.
44078
44079 2009-11-11  Eric Blake  <ebb9@byu.net>
44080
44081         mkfifoat: use new modules for Solaris and BSD bugs
44082         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
44083         * lib/mkfifoat.c (mknodat): Split...
44084         * lib/mknodat.c (mknodat): ...into new file.
44085         * modules/mkfifoat (Files): Ship new file.
44086         (Depends-on): Add mkfifo, mknod.
44087         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
44088         (Depends-on): Add symlink.
44089         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
44090         redundant with test_mkfifo.h.
44091         (do_mkfifoat, do_mknodat): New helpers.
44092
44093         mknod: new module
44094         * modules/mknod: New file.
44095         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
44096         * lib/mknod.c (mknod): Likewise.
44097         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44098         defaults.
44099         * modules/sys_stat (Makefile.am): Substitute them.
44100         * lib/sys_stat.in.h (mknod): Declare replacement.
44101         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44102         Document it.
44103         * doc/posix-functions/mknod.texi (mknod): Likewise.
44104         * modules/mknod-tests: New test.
44105         * tests/test-mknod.c: Likewise.
44106
44107         mkfifo: new module
44108         * modules/mkfifo: New file.
44109         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
44110         * lib/mkfifo.c (mkfifo): Likewise.
44111         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44112         defaults.
44113         * modules/sys_stat (Makefile.am): Substitute them.
44114         * lib/sys_stat.in.h (mkfifo): Declare replacement.
44115         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44116         Document it.
44117         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
44118         * modules/mkfifo-tests: New test.
44119         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
44120         from test-mkfifoat.c.
44121         * tests/test-mkfifo.c: New file.
44122
44123         readlink: detect FreeBSD bug
44124         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
44125         slash on symlink.
44126         * doc/posix-functions/readlink.texi (readlink): Document the bug.
44127         * tests/test-readlink.h (test_readlink): Enhance test.
44128
44129         symlink: detect FreeBSD bug
44130         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
44131         slash on symlink.
44132         * doc/posix-functions/symlink.texi (symlink): Document the bug.
44133         * tests/test-symlink.h (test_symlink): Enhance test.
44134
44135 2009-11-10  Eric Blake  <ebb9@byu.net>
44136
44137         link: detect FreeBSD bug
44138         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
44139         symlink.
44140         * doc/posix-functions/link.texi (link): Document the bug.
44141         * tests/test-link.h (test_link): Enhance test.
44142         * tests/test-linkat.c (main): Update caller.
44143
44144         unlink, remove: detect FreeBSD bug
44145         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
44146         slash on symlink.
44147         * doc/posix-functions/unlink.texi (unlink): Document the bug.
44148         * doc/posix-functions/remove.texi (remove): Likewise.
44149         * tests/test-unlink.h (test_unlink): Enhance test.
44150         * tests/test-remove.c (main): Likewise.
44151
44152 2009-11-09  Eric Blake  <ebb9@byu.net>
44153
44154         rename: detect FreeBSD bug
44155         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
44156         slash on symlink.
44157         * modules/renameat-tests (Depends-on): Add filenamecat.
44158         * tests/test-rename.h (test_rename): Allow one more errno.
44159         * tests/test-renameat.c (main): Likewise.
44160         * doc/posix-functions/rename.texi (rename): Document the bug.
44161
44162         open: detect FreeBSD bug
44163         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
44164         symlink.
44165         * doc/posix-functions/open.texi (open): Document the bug.
44166         * doc/posix-functions/utimes.texi (utimes): Likewise.
44167         * tests/test-open.h (test_open): Add parameters, and test symlink
44168         handling.
44169         * tests/test-open.c (main): Adjust caller.
44170         * tests/test-fcntl-safer.c (main): Likewise.
44171         * modules/open-tests (Depends-on): Add stdbool, symlink.
44172         * modules/fcntl-safer-tests (Depends-on): Likewise.
44173         * tests/test-openat.c (main): Add test-open tests.
44174
44175         stat: detect FreeBSD bug
44176         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
44177         symlink.
44178         * doc/posix-functions/stat.texi (stat): Document the bug.
44179         * tests/test-stat.h (test_stat_func): Add argument.
44180         * tests/test-stat.c (main): Adjust caller.
44181         * tests/test-fstatat.c (main): Likewise.
44182         * modules/stat-tests (Depends-on): Add stdbool, symlink.
44183         Reported by Jim Meyering.
44184
44185 2009-11-09  James Youngman  <jay@gnu.org>
44186
44187         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
44188         * lib/strftime.c: Correct placement of #include "ignore-value.h".
44189
44190 2009-11-08  Jim Meyering  <meyering@redhat.com>
44191
44192         utimens: remove invalid futimesat call
44193         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
44194         It used the file descriptor of the target file as the DIR_FD
44195         parameter and NULL as the file name.  That caused failure with
44196         errno == EFAULT on FreeBSD-8.0-rc2
44197
44198 2009-11-07  Eric Blake  <ebb9@byu.net>
44199
44200         fflush, freadseek: use fseeko, not fseek
44201         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
44202         (clear_ungetc_buffer): Avoid potential problems on large files.
44203         * lib/freadseek.c (freadseek): Likewise.
44204         * modules/freadseek (Depends-on): Add fseeko.
44205         * modules/fseek (configure.ac): Set a witness.
44206         * tests/test-fflush.c (main): Use fseeko.
44207         * tests/test-fpurge.c (fseek): Disable link warning.
44208         * tests/test-freadable.c (fseek): Likewise.
44209         * tests/test-freading.c (fseek): Likewise.
44210         * tests/test-fseeko.c (fseek): Likewise.
44211         * tests/test-ftell.c (fseek): Likewise.
44212         * tests/test-ftello.c (fseek): Likewise.
44213         * tests/test-fwritable.c (fseek): Likewise.
44214         * tests/test-fwriting.c (fseek): Likewise.
44215
44216 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44217
44218         * modules/memchr (Depends-on): Drop getpagesize dependency.
44219
44220 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44221
44222         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
44223         Reported by Ludovic Courtès.
44224         * build-aux/pmccabe2html: Improve example usage.
44225         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
44226
44227 2009-11-06  Jim Meyering  <meyering@redhat.com>
44228
44229         do-release-commit-and-tag: New module.
44230         Automate the release-commit and tag process.
44231         * build-aux/do-release-commit-and-tag: New script, from coreutils.
44232         * modules/do-release-commit-and-tag: New file.
44233         * MODULES.html.sh (Support for maintaining and releasing): Add it.
44234
44235 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44236
44237         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
44238         because test-select.c uses inet_pton.
44239
44240 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44241
44242         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
44243         GETADDRINFO_LIB.  Bump serial number.
44244         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
44245         Suggested by Eric Blake <ebb9@byu.net>.
44246
44247 2009-11-05  Eric Blake  <ebb9@byu.net>
44248
44249         strtod: detect darwin bug
44250         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
44251         Reported by Leo Davis.
44252
44253         freopen-safer: new module
44254         * modules/freopen-safer: New module.
44255         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
44256         * lib/freopen-safer.c (freopen_safer): New file.
44257         * lib/stdio-safer.h (freopen_safer): New declaration.
44258         * lib/stdio--.h (freopen): New override.
44259         * MODULES.html.sh (File stream based Input/Output): Mention it.
44260         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
44261         freopen-safer module.
44262         * doc/posix-functions/stderr.texi (stderr): Likewise.
44263         * doc/posix-functions/stdin.texi (stdin): Likewise.
44264         * doc/posix-functions/stdout.texi (stdout): Likewise.
44265         * modules/freopen-safer-tests: New test.
44266         * tests/test-reopen-safer.c: New file.
44267
44268 2009-11-05  Jim Meyering  <meyering@redhat.com>
44269
44270         maint.mk: Prohibit inclusion of "close-stream.h" without use.
44271         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44272
44273 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44274
44275         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
44276
44277 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44278
44279         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
44280
44281 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44282
44283         Fix link error.
44284         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44285         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44286
44287 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44288
44289         * tests/test-func.c: Also test value of __func__.
44290
44291 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44292
44293         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
44294         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
44295
44296 2009-11-05  Bruno Haible  <bruno@clisp.org>
44297
44298         Fix link error.
44299         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44300         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44301         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
44302
44303 2009-11-05  Bruno Haible  <bruno@clisp.org>
44304
44305         Tests for module 'inet_pton'.
44306         * modules/inet_pton-tests: New file.
44307         * tests/test-inet_pton.c: New file.
44308
44309 2009-11-05  Bruno Haible  <bruno@clisp.org>
44310
44311         Tests for module 'inet_ntop'.
44312         * modules/inet_ntop-tests: New file.
44313         * tests/test-inet_ntop.c: New file.
44314
44315 2009-11-04  Eric Blake  <ebb9@byu.net>
44316
44317         stdlib-safer: wrap all mkstemp variants
44318         * modules/mkostemp (configure.ac): Set witness.
44319         * modules/mkostemps (configure.ac): Likewise.
44320         * modules/mkstemps (configure.ac): Likewise.
44321         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
44322         (mkstemps_safer): Wrap more functions.
44323         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
44324         wrapping.
44325         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
44326         (mkstemps_safer): Implement the wrappers.
44327
44328         mkstemps, mkostemps: new modules
44329         * modules/mkostemps: New module.
44330         * modules/mkstemps: Likewise.
44331         * lib/mkostemps.c (mkostemps): New file.
44332         * lib/mkstemps.c (mkstemps): Likewise.
44333         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
44334         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
44335         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
44336         * modules/stdlib (Makefile.am): Substitute them.
44337         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
44338         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
44339         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
44340         * doc/gnulib.texi (Glibc stdlib.h): Include them.
44341         * MODULES.html.sh (File system functions): Mention them.
44342
44343         tempname: resync from glibc
44344         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
44345         same values for __GT_FILE as glibc.  Abort even when assertions
44346         are disabled.
44347         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
44348         match its value otherwise.  Allow idempotent inclusion.
44349         * lib/mkdtemp.c (mkdtemp): Adjust caller.
44350         * lib/mkostemp.c (mkostemp): Likewise.
44351         * lib/mkstemp.c (mkstemp): Likewise.
44352         * lib/tmpfile.c (tmpfile): Likewise.
44353         * NEWS: Document this.
44354
44355         utimens: fix use of futimens on older Linux
44356         * lib/utimens.c (fdutimens): Use updated, rather than original,
44357         timespec to avoid bug in older Linux kernel.
44358         Reported by Simon Josefsson.
44359
44360 2009-11-04  Bruno Haible  <bruno@clisp.org>
44361
44362         Make num_processors more flexible and consistent.
44363         * lib/nproc.h (enum nproc_query): New type.
44364         (num_processors): Add a 'query' argument.
44365         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
44366         (num_processors): Add a 'query' argument. Test the value of the
44367         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
44368         mingw, count the number of CPUs available for the current process.
44369         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
44370         Check for sched_getaffinity and sched_getaffinity_np.
44371         * modules/nproc (Depends-on): Add c-ctype, extensions.
44372         * NEWS: Mention the change.
44373
44374 2009-11-03  Bruno Haible  <bruno@clisp.org>
44375
44376         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
44377
44378 2009-11-03  Jim Meyering  <meyering@redhat.com>
44379
44380         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
44381         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
44382         if it is defined.
44383
44384 2009-11-02  Eric Blake  <ebb9@byu.net>
44385
44386         mktime, timegm: share common declaration
44387         * lib/mktime-internal.h: New file.
44388         * lib/mktime.c: Use it rather than open-coding a declaration.
44389         * lib/timegm.c: Likewise.
44390         * modules/mktime (Files): Ship it.
44391         * modules/timegm (Files): Likewise.
44392         Suggested by Bruno Haible.
44393
44394         test-update-copyright: update test to match script changes
44395         * tests/test-update-copyright.sh: Avoid hard-coding perl
44396         location.  Don't update *.bak created by earlier runs.
44397
44398 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
44399             Simon Josefsson  <simon@josefsson.org>
44400             Bruno Haible  <bruno@clisp.org>
44401
44402         Fix link error on Solaris 8.
44403         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
44404         also in libnsl. Define also INET_PTON_LIB.
44405         * modules/inet_pton (Link): New section.
44406
44407 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44408             Bruno Haible  <bruno@clisp.org>
44409
44410         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
44411         * modules/inet_ntop (Link): New section.
44412         Reported by Boyan Kasarov <bkasarov@gmail.com>.
44413
44414 2009-11-02  Eric Blake  <ebb9@byu.net>
44415
44416         maint: avoid compiler warnings in m4 macros
44417         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
44418         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
44419
44420 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44421
44422         * m4/pmccabe2html.m4: Remove file.
44423         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
44424         function.  Change maintainer.
44425         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
44426         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
44427         Courtès).
44428
44429 2009-10-31  Eric Blake  <ebb9@byu.net>
44430
44431         fseeko: fix m4 regression
44432         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
44433         regression from 2009-10-27.
44434         Reported by Ralf Wildenhues.
44435
44436 2009-10-31  Jim Meyering  <meyering@redhat.com>
44437
44438         inttostr: aesthetics and improved (compile-time) safety
44439         Define inttype_is_signed rather than inttype_is_unsigned,
44440         since the sole use is via "#if inttype_is_signed".
44441         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
44442         inttype_is_unsigned.
44443         * lib/offtostr.c (inttype_is_signed): Likewise.
44444         * lib/uinttostr.c (inttype_is_signed): Likewise.
44445         * lib/umaxtostr.c (inttype_is_signed): Likewise.
44446         * lib/inttostr.c (inttostr): Use verify to cross-check the
44447         inttype_is_signed value and the signedness of the actual type.
44448         * modules/inttostr (Depends-on): Add verify.
44449
44450 2009-10-30  Eric Blake  <ebb9@byu.net>
44451
44452         build: avoid compiler warnings
44453         * lib/fchmodat.c (lchmod): Mark unused variables.
44454         * lib/getopt.c (_getopt_initialize): Likewise.
44455         * lib/mktime.c (__mktime_internal): Provide prototype.
44456         * lib/inttostr.c (inttostr): Avoid compiler warning even with
44457         older gcc that do not understand #pragma GCC diagnostic.
44458         * lib/uinttostr.c (inttype_is_unsigned): Define.
44459         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
44460
44461 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
44462
44463         stat: fix compilation on AIX
44464         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
44465         only see struct stat64.
44466
44467 2009-10-30  Eric Blake  <ebb9@byu.net>
44468
44469         exclude: make more robust
44470         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
44471         rather than masking a coding bug.
44472         Suggested by Bruno Haible.
44473
44474 2009-10-30  Jim Meyering  <meyering@redhat.com>
44475
44476         perl scripts: remove #!/usr/bin/perl in favor of more portable...
44477         Rather than putting #!/usr/bin/perl on the first line,
44478         start with a variant of what's recommended by "man perlrun" that
44479         invokes the first "perl" program from your shell's search path.
44480         * build-aux/gitlog-to-changelog: Replace #!... as above.
44481         Add a "Local Variables" perl mode setting.
44482         Prompted by a patch from Ludovic Courtès.
44483         Improved by Eric Blake.
44484         * build-aux/useless-if-before-free: Likewise.
44485         * build-aux/announce-gen: Likewise.
44486         * build-aux/update-copyright: Likewise.
44487
44488 2009-10-29  Eric Blake  <ebb9@byu.net>
44489
44490         filenamecat-lgpl: adjust clients
44491         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
44492         filenamecat.
44493         * modules/renameat (Depends-on): Likewise.
44494
44495         filenamecat: split into filenamecat-lgpl
44496         * modules/filenamecat-lgpl: New module.
44497         * modules/filenamecat (Files): Move library-safe files into
44498         filenamecat-lgpl.
44499         (Depends-on): Add filenamecat-lgpl.
44500         (configure.ac): Declare witness.
44501         * lib/filenamecat.h (file_name_concat): Only declare when using
44502         GPL module.
44503         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
44504         Move...
44505         * lib/filenamecat-lgpl.c: ...into new file.
44506         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
44507         (gl_FILE_NAME_CONCAT): Use it.
44508         * MODULES.html.sh (File system functions): Mention new module.
44509
44510         argp: avoid memory leak
44511         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
44512         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
44513         base_name, since the latter malloc()s and can call exit().
44514         Leak introduced 2006-07-03.
44515
44516         dirname-lgpl: adjust clients that don't need full dirname
44517         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
44518         * modules/filenamecat (Depends-on): Likewise.
44519         * modules/linkat (Depends-on): Likewise.
44520         * modules/mkancesdirs (Depends-on): Likewise.
44521         * modules/mkdir (Depends-on): Likewise.
44522         * modules/openat (Depends-on): Likewise.
44523         * modules/savewd (Depends-on): Likewise.
44524         * modules/rename (Depends-on): Likewise.
44525         (License): Relax license.
44526         * modules/mkdir-tests (Depends-on): Drop progname.
44527         (Makefile.am): Delete unneeded LDADD.
44528         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
44529
44530         dirname: split into dirname-lgpl
44531         * modules/dirname-lgpl: New module.
44532         * modules/dirname (Files): Move library-safe files into
44533         dirname-lgpl.
44534         (Depends-on): Add dirname-lgpl.
44535         (configure.ac): Declare witness.
44536         * modules/double-slash-root (License): Relax license.
44537         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
44538         module.
44539         * lib/dirname.c (dir_len, mdir_name): Move...
44540         * lib/dirname-lgpl.c: ...into new file.
44541         * lib/basename.c (last_component, base_len): Move...
44542         * lib/basename-lgpl.c: ...into new file.
44543         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
44544         (gl_DIRNAME): Use it.
44545         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
44546         Mention new module.
44547         * modules/dirname-tests (Depends-on): Add progname.
44548         * tests/test-dirname.c (program_name): Delete.
44549
44550         mkdir: make safe for libraries
44551         * modules/mkdir (Depends-on): Drop xalloc.
44552         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
44553         exit.
44554
44555         tests: avoid some compiler warnings
44556         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
44557         literals.
44558         * tests/test-memchr.c (main): Avoid type mismatch.
44559         * tests/test-arpa_inet.c (main): Avoid unused parameters.
44560         * tests/test-base64.c (main): Likewise.
44561         * tests/test-getdelim.c (main): Likewise.
44562         * tests/test-gethostname.c (main): Likewise.
44563         * tests/test-getline.c (main): Likewise.
44564         * tests/test-netinet_in.c (main): Likewise.
44565         * tests/test-select.c (open_server_socket, main): Likewise.
44566         * tests/test-select-stdin.c (main): Likewise.
44567         * tests/test-sockets.c (main): Likewise.
44568         * tests/test-strsignal.c (main): Likewise.
44569         * tests/test-sys_select.c (main): Likewise.
44570         * tests/test-sys_socket.c (main): Likewise.
44571         * tests/test-u64.c (main): Likewise.
44572         * tests/test-xfprintf-posix.c (main): Likewise.
44573         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
44574
44575         sockets: avoid compiler warning
44576         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
44577
44578         maint: detect usage(1) and other suspicious exits
44579         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
44580
44581 2009-10-29  Jim Meyering  <meyering@redhat.com>
44582
44583         timespec: long-to-int truncation could make timespec_cmp malfunction
44584         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
44585         a multiple of 2^32 nanoseconds as no difference.
44586
44587 2009-10-28  Jim Meyering  <meyering@redhat.com>
44588
44589         fprintftime: wrap macro code argument in "do {...} while(0)"
44590         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
44591         cpy macro must be a statement that can be followed by a semicolon.
44592         Now that the else clause contains a comment and is hence longer
44593         than one line, I require curly braces.  That in turn requires
44594         that we wrap this code block in the standard do...while(0).
44595
44596         fprintftime: remove stray semicolon from previous change
44597         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
44598
44599         fprintftime: avoid a warning about ignored fwrite return value
44600         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
44601         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
44602         that is unsafe.
44603         * modules/fprintftime (Depends-on): Add ignore-value.
44604
44605         exclude: avoid an unwarranted warning
44606         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
44607
44608 2009-10-27  Eric Blake  <ebb9@byu.net>
44609
44610         fseek: avoid compilation failure when fflush is replaced
44611         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
44612         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
44613         module is in use.
44614         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
44615         module is not in use; since REPLACE_FSEEK worked otherwise.
44616         (GNULIB_FTELLO): Likewise for ftell.
44617         Reported by Ian Beckwith and others.
44618
44619 2009-10-27  Bruno Haible  <bruno@clisp.org>
44620
44621         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
44622         Reported by Jim Meyering.
44623
44624 2009-10-27  Jim Meyering  <jim@meyering.net>
44625             Bruno Haible  <bruno@clisp.org>
44626
44627         Avoid warning despite dropping the return value of fwrite.
44628         * lib/unicodeio.c: Include ignore-value.h.
44629         (fwrite_success_callback): Explicitly ignore fwrite's return value.
44630         * modules/unicodeio (Depends-on): Add ignore-value.
44631
44632 2009-10-26  Eric Blake  <ebb9@byu.net>
44633
44634         areadlinkat: fix fallback path
44635         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
44636         pointer and zero.
44637
44638 2009-10-22  Pádraig Brady  <P@draigBrady.com>
44639
44640         Use a better IO block size for modern systems
44641         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
44642         * lib/md2.c: Likewise.
44643         * lib/md4.c: Likewise.
44644         * lib/md5.c: Likewise.
44645         * lib/sha1.c: Likewise.
44646         * lib/sha256.c: Likewise.
44647         * lib/sha512.c: Likewise.
44648
44649 2009-10-22  Eric Blake  <ebb9@byu.net>
44650
44651         tests: avoid several compiler warnings
44652         * tests/test-getcwd.c (main): Avoid buffer underflow.
44653         * tests/test-getdate.c (main): String literals are not safe with
44654         putenv, so use setenv.  Declare unused argument.
44655         * modules/getdate-tests (Depends-on): Add setenv.
44656         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
44657         problems with string literals in char *.
44658         * tests/test-hash.c (main): Avoid shadowing declaration.
44659         (insert_new): Treat string literals as char const *.
44660         * tests/test-getopt.h (test_getopt): Likewise.
44661         (getopt_loop): Alter types to minimize casting elsewhere.
44662         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
44663         (test_getopt_long_posix): Likewise.
44664         (do_getopt_long): Add wrapper to minimize casting.
44665         * tests/test-atexit.c (clear_temp_file): Use void.
44666         * tests/test-areadlink-with-size.c (main): Declare unused
44667         arguments.
44668         * tests/test-areadlink.c (main): Likewise.
44669         * tests/test-areadlinkat-with-size.c (main): Likewise.
44670         * tests/test-areadlinkat.c (main): Likewise.
44671         * tests/test-canonicalize-lgpl.c (main): Likewise.
44672         * tests/test-canonicalize.c (main): Likewise.
44673         * tests/test-dirent-safer.c (main): Likewise.
44674         * tests/test-dirname.c (main): Likewise.
44675         * tests/test-dup2.c (main): Likewise.
44676         * tests/test-fchdir.c (main): Likewise.
44677         * tests/test-fcntl-h.c (main): Likewise.
44678         * tests/test-fcntl-safer.c (main): Likewise.
44679         * tests/test-fdopendir.c (main): Likewise.
44680         * tests/test-fdutimensat.c (main): Likewise.
44681         * tests/test-fflush.c (main): Likewise.
44682         * tests/test-filenamecat.c (main): Likewise.
44683         * tests/test-filevercmp.c (main): Likewise.
44684         * tests/test-fopen-safer.c (main): Likewise.
44685         * tests/test-fopen.c (main): Likewise.
44686         * tests/test-fpending.c (main): Likewise.
44687         * tests/test-fpurge.c (main): Likewise.
44688         * tests/test-freading.c (main): Likewise.
44689         * tests/test-fstatat.c (main): Likewise.
44690         * tests/test-fsync.c (main): Likewise.
44691         * tests/test-futimens.c (main): Likewise.
44692         * tests/test-getndelim2.c (main): Likewise.
44693         * tests/test-gettimeofday.c (main): Likewise.
44694         * tests/test-getopt.c (main): Likewise.
44695         * tests/test-i-ring.c (main): Likewise.
44696         * tests/test-inttypes.c (main): Likewise.
44697         * tests/test-link.c (main): Likewise.
44698         * tests/test-lstat.c (main): Likewise.
44699         * tests/test-math.c (main): Likewise.
44700         * tests/test-md5.c (main): Likewise.
44701         * tests/test-memchr2.c (main): Likewise.
44702         * tests/test-memrchr.c (main): Likewise.
44703         * tests/test-mkdir.c (main): Likewise.
44704         * tests/test-mkdirat.c (main): Likewise.
44705         * tests/test-mkfifoat.c (main): Likewise.
44706         * tests/test-open.c (main): Likewise.
44707         * tests/test-openat-safer.c (main): Likewise.
44708         * tests/test-openat.c (main): Likewise.
44709         * tests/test-quotearg.c (main): Likewise.
44710         * tests/test-rawmemchr.c (main): Likewise.
44711         * tests/test-readlink.c (main): Likewise.
44712         * tests/test-remove.c (main): Likewise.
44713         * tests/test-rename.c (main): Likewise.
44714         * tests/test-renameat.c (main): Likewise.
44715         * tests/test-rmdir.c (main): Likewise.
44716         * tests/test-sha1.c (main): Likewise.
44717         * tests/test-signal.c (main): Likewise.
44718         * tests/test-sigaction.c (main): Likewise.
44719         * tests/test-stat.c (main): Likewise.
44720         * tests/test-stat-time.c (main): Likewise.
44721         * tests/test-stddef.c (main): Likewise.
44722         * tests/test-stdint.c (main): Likewise.
44723         * tests/test-stdio.c (main): Likewise.
44724         * tests/test-stdlib.c (main): Likewise.
44725         * tests/test-strchrnul.c (main): Likewise.
44726         * tests/test-strerror.c (main): Likewise.
44727         * tests/test-string.c (main): Likewise.
44728         * tests/test-strtod.c (main): Likewise.
44729         * tests/test-strverscmp.c (main): Likewise.
44730         * tests/test-symlink.c (main): Likewise.
44731         * tests/test-symlinkat.c (main): Likewise.
44732         * tests/test-sys_stat.c (main): Likewise.
44733         * tests/test-sys_time.c (main): Likewise.
44734         * tests/test-time.c (main): Likewise.
44735         * tests/test-unistd.c (main): Likewise.
44736         * tests/test-unlink.c (main): Likewise.
44737         * tests/test-unlinkat.c (main): Likewise.
44738         * tests/test-utimens.c (main): Likewise.
44739         * tests/test-utimensat.c (main): Likewise.
44740         * tests/test-version-etc.c (main): Likewise.
44741         * tests/test-wchar.c (main): Likewise.
44742         * tests/test-wctype.c (main): Likewise.
44743         * tests/test-xprintf-posix.c (main): Likewise.
44744         * tests/test-posixtm.c (main): Likewise.
44745         (STREQ): Delete unused macro.
44746         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
44747         shadowed variables.
44748         * tests/test-memchr.c (main): Likewise.
44749
44750 2009-10-21  Eric Blake  <ebb9@byu.net>
44751
44752         areadlinkat: avoid failure on older glibc
44753         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
44754         rather than mis-comparing 0 against FUNC_RESULT of char*.
44755
44756 2009-10-21  Bruno Haible  <bruno@clisp.org>
44757
44758         * modules/stpncpy (License): Relicense under LGPLv2+.
44759         Reported by David Lutterkort <lutter@redhat.com>.
44760
44761 2009-10-20  Eric Blake  <ebb9@byu.net>
44762
44763         utimensat: work around Solaris 9 bug
44764         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
44765         has trailing slash bugs.
44766         * tests/test-lutimens.h (test_lutimens): Enhance test.
44767         * tests/test-utimens.h (test_utimens): Likewise.
44768         * doc/posix-functions/utime.texi (utime): Enhance documentation.
44769         * doc/posix-functions/utimes.texi (utimes): Likewise.
44770         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44771         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
44772         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
44773         * doc/posix-functions/futimens.texi (futimens): Likewise.
44774
44775         fdutimensat: new module
44776         * modules/fdutimensat: New file.
44777         * lib/fdutimensat.c (fdutimensat): Likewise.
44778         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
44779         * MODULES.html.sh (File system functions): Mention module.
44780         * modules/fdutimensat-tests: New test.
44781         * tests/test-fdutimensat.c: Likewise.
44782
44783         doc: regenerate INSTALL
44784         * doc/INSTALL: Reflect recent autoconf update.
44785         * doc/INSTALL.ISO: Likewise.
44786         * doc/INSTALL.UTF-8: Likewise.
44787
44788 2009-10-20  Pádraig Brady  <P@draigBrady.com>
44789
44790         acl: warn if ACL support is not detected
44791         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
44792
44793 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
44794
44795         * lib/nproc.h: Add extern "C" block for C++.
44796
44797 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
44798             Bruno Haible  <bruno@clisp.org>
44799
44800         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
44801         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
44802         * doc/posix-functions/isalpha.texi: Likewise.
44803         * doc/posix-functions/isblank.texi: Likewise.
44804         * doc/posix-functions/iscntrl.texi: Likewise.
44805         * doc/posix-functions/isdigit.texi: Likewise.
44806         * doc/posix-functions/isgraph.texi: Likewise.
44807         * doc/posix-functions/islower.texi: Likewise.
44808         * doc/posix-functions/isprint.texi: Likewise.
44809         * doc/posix-functions/ispunct.texi: Likewise.
44810         * doc/posix-functions/isspace.texi: Likewise.
44811         * doc/posix-functions/isupper.texi: Likewise.
44812         * doc/posix-functions/isxdigit.texi: Likewise.
44813
44814 2009-10-18  Bruno Haible  <bruno@clisp.org>
44815
44816         Tests for module 'isblank'.
44817         * modules/isblank-tests: New file.
44818         * tests/test-isblank.c: New file.
44819
44820         New module 'isblank'.
44821         * lib/isblank.c: New file.
44822         * m4/isblank.m4: New file.
44823         * modules/isblank: New file.
44824         * doc/posix-functions/isblank.texi: Mention the new module.
44825
44826 2009-10-18  Bruno Haible  <bruno@clisp.org>
44827
44828         New module 'ctype'.
44829         * lib/ctype.in.h: New file.
44830         * m4/ctype.m4: New file.
44831         * modules/ctype: New file.
44832         * doc/posix-headers/ctype.texi: Mention the new module.
44833
44834 2009-10-18  Jim Meyering  <meyering@redhat.com>
44835
44836         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
44837         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
44838         right after its initialization, rather than farther down.
44839         Keeping these in close proximity makes it easier to ensure
44840         that each such variable is initialized.  E.g.,
44841
44842             LIB_CLOCK_GETTIME=
44843             AC_SUBST([LIB_CLOCK_GETTIME])
44844
44845         This change also increments these serial numbers.
44846         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
44847         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44848         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44849
44850 2009-10-18  Bruno Haible  <bruno@clisp.org>
44851
44852         Don't let environment variables perturb build.
44853         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
44854         (gl_PREREQ_GETHRXTIME): ... not here.
44855
44856 2009-10-18  Bruno Haible  <bruno@clisp.org>
44857
44858         Avoid symlink attack in localcharset module.
44859         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
44860         (O_NOFOLLOW): Define fallback.
44861         (get_charset_aliases): Don't open the file if it is a symbolic link.
44862         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
44863         gl_FCNTL_H.
44864         (gl_FCNTL_H): Require it.
44865         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
44866         * modules/localcharset (Files): Add m4/fcntl_h.m4.
44867         Reported by Fergal Glynn <fglynn@veracode.com>.
44868
44869 2009-10-18  Bruno Haible  <bruno@clisp.org>
44870
44871         Implement nproc for mingw.
44872         * lib/nproc.c: Include <windows.h>
44873         (num_processors): On native Windows platforms, try GetSystemInfo.
44874
44875 2009-10-18  Bruno Haible  <bruno@clisp.org>
44876
44877         Implement nproc for IRIX.
44878         * lib/nproc.c: Include <sys/sysmp.h>.
44879         (num_processors): On IRIX systems, try sysmp.
44880         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
44881
44882 2009-10-18  Bruno Haible  <bruno@clisp.org>
44883
44884         Implement nproc for HP-UX.
44885         * lib/nproc.c: Include <sys/pstat.h>
44886         (num_processors): On HP-UX systems, try pstat_getdynamic.
44887         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
44888         pstat_getdynamic.
44889
44890 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
44891             Bruno Haible  <bruno@clisp.org>
44892
44893         Implement nproc for NetBSD, OpenBSD.
44894         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
44895         (ARRAY_SIZE): New macro.
44896         (num_processors): On BSD systems, try sysctl of HW_NCPU.
44897         * m4/nproc.m4: New file.
44898         * modules/nproc (Files): Add m4/nproc.m4.
44899         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
44900         (Makefile.am): Instead, augment lib_SOURCES.
44901
44902 2009-10-18  Bruno Haible  <bruno@clisp.org>
44903
44904         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
44905         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
44906         sys/param.h.
44907
44908 2009-10-16  Eric Blake  <ebb9@byu.net>
44909
44910         utimensat: new module
44911         * modules/utimensat: New file.
44912         * lib/utimensat.c (utimensat): Likewise.
44913         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
44914         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
44915         so we can work around Linux bugs.
44916         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44917         * modules/sys_stat (Makefile.am): Substitute them.
44918         * lib/sys_stat.in.h (utimensat): Declare it.
44919         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44920         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44921         * modules/utimensat-tests: New test.
44922         * tests/test-utimensat.c: Likewise.
44923
44924         utimens: let lutimens work on non-symlinks
44925         * lib/utimens.c (lutimens): Fall back to utimens rather than
44926         failing with ENOSYS, when file is not a symlink.
44927         (utimens): Reduce redirection.
44928         * tests/test-lutimens.h (test_lutimens): Update test to cover
44929         non-symlinks.
44930         * tests/test-utimens.h (test_utimens): Update test to cover
44931         symlinks.
44932         * tests/test-utimens.c (main): Update caller.
44933
44934         utimens: cache whether utimensat syscall works
44935         * lib/utimens.c (utimensat_works_really): New cache variable.
44936         (fdutimens, lutimens): Use it to avoid failing syscall.
44937
44938         test-stat-time, test-utimens: improve portability
44939         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
44940         ext4 on alpha, and for cygwin.
44941         * tests/test-utimens-common.h: New file.
44942         (nap): Factor delays into single function.
44943         * tests/test-lutimens.h (test_lutimens): Use new header.
44944         * tests/test-futimens.h (test_futimens): Likewise.
44945         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
44946         timestamps to occur from same machine, as was done previously for
44947         test_utimens.
44948         * modules/utimens-tests (Files): Ship new file.
44949         * modules/futimens-tests (Files): Likewise.
44950         Reported in part by Jim Meyering.
44951
44952         sys_stat: sort replacement declarations
44953         * lib/sys_stat.in.h: Sort declarations.
44954         * lib/futimens.c (futimens): Fix typo.
44955
44956 2009-10-15  Jim Meyering  <meyering@redhat.com>
44957
44958         don't let environment settings perturb build
44959         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
44960         could cause a configure-time and/or build-time malfunction.
44961         Typically, a configure-time function-in-library test is performed
44962         via code like this:
44963
44964           LIB_VAR=
44965           AC_SUBST([LIB_VAR])
44966           prefix_saved_LIBS=$LIBS
44967             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
44968                        [test "$ac_cv_search_FUNC" = "none required" ||
44969                         LIB_VAR=$ac_cv_search_FUNC])
44970           LIBS=$prefix_saved_LIBS
44971
44972         However, in each of the files affected by this change, the LIB_VAR=
44973         initialization was omitted.  Thus, when set in the environment, its
44974         value would propagate into generated Makefiles when FUNC is not found
44975         in LIB_NAME.
44976         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
44977         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44978         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44979
44980 2009-10-14  Eric Blake  <ebb9@byu.net>
44981
44982         fchdir: avoid infinite recursion in mingw
44983         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
44984         recursing.
44985
44986         test-stat-time: port to mingw
44987         * tests/test-stat-time.c (force_unlink): Return a value.
44988         (test_ctime) [W32]: Fix compilation error.
44989         (nap): Don't call usleep with too large an argument.  Use
44990         force_unlink.
44991         * doc/pastposix-functions/usleep.texi (usleep): Document the
44992         portability issue.
44993
44994 2009-10-13  Jim Meyering  <meyering@redhat.com>
44995
44996         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
44997         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
44998         * modules/pipe-filter-ii: Likewise.
44999         * modules/sys_socket-tests: Likewise.
45000         * modules/tsearch-tests: Likewise.
45001         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
45002         (check): Depend on it.
45003
45004 2009-10-12  Eric Blake  <ebb9@byu.net>
45005
45006         utimens-tests: port to NFS file systems
45007         * tests/test-utimens.h (test_utimens): Refactor utimecmp
45008         comparisons to avoid spurious failures from timestamp drift
45009         between NFS machines.
45010
45011 2009-10-12  Eric Blake  <ebb9@byu.net>
45012
45013         stat-time-tests: minor cleanups
45014         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
45015         * tests/test-stat-time.c (nap): Separate assignment from call.
45016         Suggested by Paolo Bonzini and Bruno Haible.
45017
45018         sys_stat: guarantee struct timespec
45019         * lib/sys_stat.in.h (includes): Always include <time.h>
45020         * modules/sys_stat (Depends-on): Add time.
45021         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
45022         mode_t permission values.
45023         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
45024         get at subsecond timestamps.
45025
45026 2009-10-10  Eric Blake  <ebb9@byu.net>
45027
45028         futimens: new module
45029         * modules/futimens: New file.
45030         * lib/futimens.c (futimens): Likewise.
45031         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
45032         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
45033         we can work around Linux bugs.
45034         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45035         * modules/sys_stat (Makefile.am): Substitute them.
45036         * lib/sys_stat.in.h (futimens): Declare it.
45037         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45038         * doc/posix-functions/futimens.texi (futimens): Likewise.
45039         * modules/futimens-tests: New test.
45040         * tests/test-futimens.c: Likewise.
45041
45042         utimens: introduce fdutimens
45043         * lib/utimens.h (fdutimens): New prototype.
45044         * lib/utimens.c (gl_futimens): Move guts...
45045         (fdutimens): ...to new interface.
45046         * tests/test-utimens.c (do_fdutimens): Use it.
45047
45048         utimens: add UTIME_NOW and UTIME_OMIT support
45049         * lib/utimens.c (validate_timespec, update_timespec): New helper
45050         functions.
45051         (gl_futimens, lutimens): Use them.
45052         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
45053         stdbool, sys_stat.
45054         (Link): Mention resulting library dependency.
45055         * modules/utimecmp (Link): Likewise.
45056         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
45057         (Makefile.am): Pick up library dependency.
45058         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
45059         definition.
45060         * tests/test-sys_stat.c: Test the definitions.
45061         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
45062         * NEWS: Document library dependency.
45063
45064         utimecmp: support symlink timestamps
45065         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
45066         hashing when possible.  Use pathconf when available.
45067         (SYSCALL_RESOLUTION): Recognize tighter resolution.
45068         * modules/utimecmp (Depends-on): Add lstat.
45069
45070         utimens: add lutimens interface
45071         * lib/utimens.c (lutimens): New function.
45072         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
45073         * lib/utimens.h (lutimens): Declare new interface.
45074         * tests/test-utimens.c (main): Enhance test.
45075         * tests/test-lutimens.h (test_lutimens): New file.
45076         * modules/utimens-tests (Files): Distribute it.
45077         (Depends-on): Add symlink.
45078         (configure.ac): Check for usleep.
45079
45080         utimens: validate futimens usage
45081         * lib/utimens.c (gl_futimens): Require valid fd up front, using
45082         fewer syscalls on failure later on.  Avoid compiler warning on
45083         mingw.
45084         * modules/utimens (Depends-on): Add dup2.
45085
45086         utimens: add test
45087         * modules/utimens-tests: New test.
45088         * tests/test-utimens.h: New file.
45089         * tests/test-futimens.h: Likewise.
45090         * tests/test-utimens.c: Likewise.
45091
45092         doc: mention timestamp portability issues
45093         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
45094         instead.
45095         * doc/posix-functions/utime.texi (utime): Likewise.
45096         * doc/posix-functions/utimes.texi (utimes): Likewise.
45097         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
45098         instead.
45099         * doc/posix-functions/futimens.texi (futimens): Mention utimens
45100         module.
45101         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45102         Mention weakness with symlink timestamps.
45103         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
45104         to utimensat/futimens instead.
45105         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
45106
45107         test-dup2: enhance test
45108         * tests/test-dup2.c (main): Also check AT_FDCWD.
45109
45110         test-stat-time: avoid more spurious failures
45111         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
45112         xfs; and avoid race if the two timestamps cross quantization edge.
45113
45114         relocatable: prefer 'file system' over 'filesystem'
45115         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
45116         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
45117         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
45118         * doc/relocatable.texi (Enabling Relocatability): Likewise.
45119         * lib/relocatable.c (compute_curr_prefix): Likewise.
45120
45121 2009-10-10  Jim Meyering  <meyering@redhat.com>
45122
45123         stat-time-tests: check for the usleep function
45124         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
45125
45126 2009-10-10  Bruno Haible  <bruno@clisp.org>
45127
45128         * modules/xnanosleep: Put the Link section after the Include section.
45129
45130 2009-10-09  Eric Blake  <ebb9@byu.net>
45131
45132         dup2: work around FreeBSD 6.1 bug
45133         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
45134         * doc/posix-functions/dup2.texi (dup2): Document it.
45135         Reported by Nelson H. F. Beebe and Jim Meyering.
45136
45137         test-stat-time: port to buggy NFS clients
45138         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
45139         (test_ctime): Also skip test if mtime and ctime are skewed.
45140
45141         maint: prefer 'file system' over 'filesystem'
45142         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45143         * doc/posix-functions/lstat.texi (lstat): Likewise.
45144         * lib/file-has-acl.c (file_has_acl): Likewise.
45145         * lib/fwriteerror.c [TEST]: Likewise.
45146         * tests/test-areadlink.h (test_areadlink): Likewise.
45147         * tests/test-areadlinkat-with-size.c (main): Likewise.
45148         * tests/test-areadlinkat.c (main): Likewise.
45149         * tests/test-canonicalize-lgpl.c (main): Likewise.
45150         * tests/test-canonicalize.c (main): Likewise.
45151         * tests/test-fstatat.c (main): Likewise.
45152         * tests/test-linkat.c (main): Likewise.
45153         * tests/test-lstat.h (test_lstat_func): Likewise.
45154         * tests/test-mkdir.h (test_mkdir): Likewise.
45155         * tests/test-readlink.h (test_readlink): Likewise.
45156         * tests/test-remove.c (main): Likewise.
45157         * tests/test-rename.h (test_rename): Likewise.
45158         * tests/test-renameat.c (main): Likewise.
45159         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45160         * tests/test-symlink.h (test_symlink): Likewise.
45161         * tests/test-symlinkat.c (main): Likewise.
45162         * tests/test-unlink.h (test_unlink_func): Likewise.
45163         * tests/test-unlinkat.c (main): Likewise.
45164
45165         maint: make realtime library usage explicit
45166         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
45167         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
45168         * modules/settime (Link): Likewise.
45169         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
45170
45171         test-stat-time: speed up execution
45172         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
45173         warning on mingw.
45174         (nap): New helper function.
45175         (prepare_test): Use it to reduce sleep time.
45176         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
45177         execution.
45178         * modules/stat-time-tests (configure.ac): Check for usleep.
45179
45180 2009-10-09  Jim Meyering  <meyering@redhat.com>
45181
45182         selinux-h: always use getfilecon wrappers
45183         * lib/getfilecon.c: New file.
45184         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
45185         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
45186         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
45187         (fgetfilecon): Provide a stub.
45188         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
45189         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
45190         file unconditionally.
45191         When <selinux/selinux.h> is found, arrange to use wrappers.
45192         * modules/selinux-h (Files): Add getfilecon.c.
45193         (Makefile.am): Substitute include-next-related bits
45194         into the now-always-generated selinux/selinux.h file.
45195         * doc/glibc-functions/lgetfilecon.texi: New file.
45196         * doc/glibc-functions/fgetfilecon.texi: New file.
45197         * doc/glibc-functions/getfilecon.texi: New file.
45198         * doc/glibc-functions/getfilecon-desc.texi: New file.
45199         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
45200         which to pull in the new files.
45201         * MODULES.html.sh (Misc): Add selinux-h.
45202
45203 2009-10-08  Jim Meyering  <meyering@redhat.com>
45204
45205         unistd: fix comment typo
45206         * lib/unistd.in.h (euidaccess): Fix a comment typo.
45207
45208 2009-10-08  Eric Blake  <ebb9@byu.net>
45209
45210         areadlink: use SIZE_MAX consistently
45211         * modules/areadlink (Depends-on): Add stdint.
45212         * modules/areadlink-with-size (Depends-on): Likewise.
45213         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
45214         gives NULL; drop sys/types, since unistd gives size_t; and add
45215         stdint for SIZE_MAX.
45216         (SIZE_MAX): Rely on headers.
45217         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
45218         and add stdint.
45219         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
45220         (SIZE_MAX): Likewise.
45221         (INITIAL_BUF_SIZE): Turn into enum.
45222         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
45223
45224 2009-10-08  Jim Meyering  <meyering@redhat.com>
45225
45226         areadlinkat: avoid compilation failure
45227         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
45228         Fix typo in comment.
45229
45230 2009-10-07  Eric Blake  <ebb9@byu.net>
45231
45232         areadlinkat-with-size: new module
45233         * modules/areadlinkat-with-size: New module.
45234         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
45235         * lib/areadlink.h (areadlinkat): Declare it.
45236         * MODULES.html.sh (File system functions): Mention it.
45237         * modules/areadlinkat-with-size-tests: New test.
45238         * tests/test-areadlinkat-with-size.c: New file.
45239
45240         xreadlinkat: new module
45241         * modules/xreadlinkat: New module.
45242         * lib/xreadlinkat.c (xreadlinkat): New file.
45243         * lib/xreadlink.h (xreadlinkat): Declare it.
45244         * MODULES.html.sh (File system functions): Mention it.
45245
45246         areadlinkat: new module
45247         * lib/at-func.c (FUNC_FAIL): New define.
45248         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
45249         * modules/areadlinkat: New module.
45250         * lib/linkat.c (areadlinkat): Move...
45251         * lib/areadlinkat.c (areadlinkat): ...to new file.
45252         * lib/areadlink.h (areadlinkat): Declare it.
45253         * modules/linkat (Depends-on): Add areadlinkat.
45254         * MODULES.html.sh (File system functions): Mention it.
45255         * modules/areadlinkat-tests: New test.
45256         * tests/test-areadlinkat.c: New file.
45257
45258         areadlink, areadlink-with-size: add tests
45259         * modules/areadlink-tests: New test.
45260         * modules/areadlink-with-size-tests: Likewise.
45261         * tests/test-areadlink.h: New file.
45262         * tests/test-areadlink.c: Likewise.
45263         * tests/test-areadlink-with-size.c: Likewise.
45264
45265         maint: minor cleanups
45266         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
45267         _UNUSED_PARAMETER_ instead.
45268         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
45269         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
45270         * modules/linkat-tests (Files): Distribute test-link.h.
45271
45272         openat, utimens: whitespace cleanup
45273         * lib/openat.c: Prefer space throughout, rather than mix of 8
45274         spaces vs. tabs.
45275         * lib/at-func.c: Likewise.
45276         * lib/utimens.c: Likewise.
45277
45278         openat: avoid using wrong fd
45279         * lib/openat.c (openat_permissive): Reject user's fd if saving the
45280         working directory chooses same fd.
45281         * lib/at-func.c (AT_FUNC_NAME): Likewise.
45282
45283         mkdir, mkdirat: fix cygwin 1.5.x bug
45284         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
45285         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
45286         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
45287         bug.
45288         (gl_PREREQ_MKDIR): Delete unused macro.
45289         * modules/mkdir (Files): Track file rename.
45290         (configure.ac): Update macro name.
45291         * modules/openat (Depends-on): Add mkdir.
45292         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
45293
45294         mkdir, mkdirat: add tests
45295         * modules/mkdir-tests: New test.
45296         * tests/test-mkdir.h: New file.
45297         * tests/test-mkdir.c: Likewise.
45298         * tests/test-mkdirat.c: Likewise.
45299         * modules/openat-tests (Files): Add new files.
45300         (Makefile.am): Run new test.
45301
45302 2009-10-06  Eric Blake  <ebb9@byu.net>
45303
45304         doc: tweak *at function documentation
45305         * doc/posix-functions/faccessat.texi (faccessat): Mention
45306         known issue with replacement.
45307         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
45308         * doc/posix-functions/linkat.texi (linkat): Likewise.
45309         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45310         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45311         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45312         * doc/posix-functions/renameat.texi (renameat): Likewise.
45313         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45314
45315         openat: fix GNU/Hurd bug in unlinkat
45316         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
45317         broken.
45318         * doc/posix-functions/unlink.texi (unlink): Document this.
45319         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
45320
45321         fdopendir: fix GNU/Hurd bug
45322         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
45323         allowing non-directory fds.
45324         * lib/fdopendir.c (rpl_fdopendir): Work around it.
45325         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
45326         * modules/dirent (Makefile.am): Substitute it.
45327         * lib/dirent.in.h (fdopendir): Declare replacement.
45328         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
45329         * tests/test-fdopendir.c (main): Test something other than
45330         /dev/null, since on Hurd that behaves like a directory.
45331
45332         test-symlink: port to GNU/Hurd
45333         * tests/test-symlink.h (test_symlink): Relax expected errno.
45334
45335         doc: tweak more cygwin information
45336         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
45337         now compatible with glibc.
45338         * doc/posix-functions/getopt.texi (getopt): Likewise.
45339
45340         getopt-gnu: add another test
45341         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
45342         guarantee behavior relied on by m4.
45343         * tests/test-getopt.c (main): Use it.
45344         * modules/getopt-posix-tests (Depends-on): Add setenv.
45345         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
45346
45347         getopt: fix compilation on darwin
45348         * lib/getopt.in.h (includes): Leave breadcrumbs during system
45349         include.
45350         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
45351         Reported by Ludovic Courtès.
45352
45353 2009-10-06  Bruno Haible  <bruno@clisp.org>
45354
45355         * modules/size_max (Description): Discourage its use.
45356         Reported by Simon Josefsson.
45357
45358 2009-10-06  Jim Meyering  <meyering@redhat.com>
45359
45360         linkat: avoid compilation failure
45361         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
45362
45363 2009-10-05  Eric Blake  <ebb9@byu.net>
45364
45365         linkat: support Linux 2.6.17
45366         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
45367         linkat on Linux, but allow cache variable override.
45368         * lib/linkat.c (rpl_linkat): Define override.
45369         * modules/linkat (Depends-on): Add symlinkat.
45370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
45371         * modules/unistd (Makefile.am): Substitute it.
45372         * lib/unistd.in.h (linkat): Declare replacement.
45373         Reported by Pádraig Brady.
45374
45375         quotearg: port test to systems with C.UTF-8 locale
45376         * tests/test-quotearg.c (struct result_strings): Add another
45377         member, differentiating between C.ASCII and C.UTF-8 handling.
45378         (compare_strings): Add parameter.
45379         (main): Adjust all callers.
45380
45381         getopt: avoid clash with FreeBSD _getopt_internal
45382         * lib/getopt.in.h (_getopt_internal): Override the name.
45383         * lib/getopt_int.h (includes): Pick up any overrides.
45384         Reported by Reuben Thomas.
45385
45386         hash: allow C89 compilation
45387         * lib/hash.c (check_tuning): Move declaration before statement.
45388         Reported by Reuben Thomas.
45389
45390 2009-10-05  Karl Berry  <karl@gnu.org>
45391
45392         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
45393
45394 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
45395             Bruno Haible  <bruno@clisp.org>
45396
45397         * lib/uname.c (uname): Use a table-driven algorithm to compute
45398         Windows NT versions.
45399
45400 2009-10-04  Bruno Haible  <bruno@clisp.org>
45401
45402         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
45403         program_invocation_short_name.
45404         * modules/progname (configure.ac): Test for presence of
45405         program_invocation_short_name.
45406         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45407
45408 2009-10-04  Bruno Haible  <bruno@clisp.org>
45409
45410         * lib/progname.c (set_program_name): Fix comment.
45411         Reported by Jim Meyering.
45412
45413 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45414             Bruno Haible  <bruno@clisp.org>
45415
45416         * lib/uname.c: Include <string.h>.
45417         (uname): Do only one call to GetVersionEx in the common case.
45418
45419 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45420             Bruno Haible  <bruno@clisp.org>
45421
45422         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
45423         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
45424         (uname): Add support for Windows CE and various non-x86 CPU types.
45425
45426 2009-10-03  Bruno Haible  <bruno@clisp.org>
45427
45428         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
45429         invocation to tests/configure.ac.
45430         Reported by Ian Beckwith <ianb@erislabs.net>.
45431
45432 2009-10-02  Eric Blake  <ebb9@byu.net>
45433
45434         fchdir: avoid compiler warning
45435         * lib/fchdir.c (canonicalize_file_name)
45436         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
45437
45438         test-open: support mingw errno values
45439         * tests/test-open.h (test_open): Relax test.
45440         * tests/test-fopen.h (test_fopen): Likewise.
45441         * tests/test-openat-safer.c (main): Likewise.
45442
45443         open: fix opening directory on mingw
45444         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
45445
45446         test-open: on GNU/Hurd, /dev/null is a directory
45447         * tests/test-fopen.h (main): Rename...
45448         (test_fopen): ...to this.  Use a guaranteed non-directory when
45449         confirming open behavior on trailing slash.
45450         * tests/test-openat-safer.c (main): Likewise.
45451         * tests/test-open.h (main): Likewise....
45452         (test_open): ...to this.
45453         * tests/test-fopen.c (main): Adjust caller.
45454         * tests/test-fopen-safer.c (main): Likewise.
45455         * tests/test-open.c (main): Likewise.
45456         * tests/test-fcntl-safer.c (main): Likewise.
45457         Reported by Samuel Thibault.
45458
45459         rename, fchdir: don't ignore chdir failure
45460         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
45461         * lib/rename.c (rpl_rename) [W32]: Likewise.
45462         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
45463         an empty destination directory if source cannot be renamed,
45464         although there is still possibility for failure.
45465         * doc/posix-functions/rename.texi (rename): Document the race.
45466         Reported by Jim Meyering.
45467
45468         maint: cleanup whitespace in recent commits
45469         * lib/rename.c (rpl_rename): Remove tabs.
45470         * tests/test-link.h (test_link): Likewise.
45471         * lib/fchdir.c (get_name): Likewise.
45472         Reported by Jim Meyering.
45473
45474 2009-10-02  Ben Pfaff  <blp@gnu.org>
45475
45476         relocatable-prog-wrapper: Add missing dependency on
45477         double-slash-root.
45478         * modules/relocatable-prog-wrapper: Add dependency.
45479         Reported by Ian Beckwith <ianb@erislabs.net>.
45480
45481 2009-10-02  Eric Blake  <ebb9@byu.net>
45482
45483         renameat: fix Solaris bugs
45484         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
45485         needed fixing.
45486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
45487         * modules/stdio (Makefile.am): Substitute it.
45488         * lib/stdio.in.h (renameat): Declare replacement.
45489         * lib/renameat.c (rpl_renameat): Implement fix.
45490
45491         renameat: new module
45492         * modules/renameat: New file.
45493         * lib/renameat.c (renameat): Likewise.
45494         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
45495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45496         * modules/stdio (Makefile.am): Substitute them.
45497         * lib/stdio.in.h (renameat): Declare it.
45498         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45499         * doc/posix-functions/renameat.texi (renameat): Likewise.
45500         * modules/renameat-tests: New test.
45501         * tests/test-renameat.c: Likewise.
45502
45503         rename: fix mingw bugs
45504         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
45505         directory overwrite bugs.
45506
45507         rename: fix another cygwin 1.5 bug
45508         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
45509         checks.
45510         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
45511         unnecessary cygwin workarounds.  Also work around bug with moving
45512         full directory onto an empty one.
45513         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
45514
45515         rename-dest-slash: merge into rename module
45516         * modules/rename-dest-slash (Status): Mark obsolete.
45517         (Depends-on): Add rename.
45518         (Files): Let rename do it all.
45519         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
45520         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
45521         * m4/rename-dest-slash.m4: ...so this file can be deleted.
45522         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
45523         * lib/rename.c (rpl_rename): Update comments.
45524
45525         rename: fix cygwin 1.5.x bugs
45526         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
45527         * lib/rename.c (rpl_rename): Work around them.
45528         * modules/rename (Depends-on): Add same-inode.
45529
45530         rename: fix Solaris 10 bug
45531         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45532         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
45533         was the only bug.
45534
45535         rename: fix Solaris 9 bug
45536         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
45537         on non-directory.  Avoid calling exit.
45538         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
45539         strdup.
45540         * modules/rename-tests (Depends-on): Drop lstat.
45541         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45542         (gl_PREREQ_RENAME): Delete unused macro.
45543
45544         rename-dest-slash: fix NetBSD bug
45545         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
45546         links.
45547         * modules/rename-dest-slash (Depends-on): Add same-inode.
45548
45549         rename-tests: new test, exposes several platform bugs
45550         * modules/rename-tests: New file.
45551         * tests/test-rename.h: Likewise.
45552         * tests/test-rename.c: Likewise.
45553         * doc/posix-functions/rename.texi (rename): Improve documentation,
45554         including bugs that will eventually be fixed in gnulib.
45555
45556 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
45557
45558         * lib/uname.c: Include <stdlib.h>
45559         (uname): Assume version info is available.
45560
45561 2009-10-02  Jim Meyering  <meyering@redhat.com>
45562
45563         gnu-web-doc-update: correct --help output
45564         * build-aux/gnu-web-doc-update: Make --help output relevant.
45565
45566         gnu-web-doc-update: add standard options
45567         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
45568
45569         gnu-web-doc-update: New module.
45570         Use this script to automatically update the on-line web documentation
45571         for your GNU project at http://www.gnu.org/software/$pkg/manual/
45572         * modules/gnu-web-doc-update: New file, from coreutils.
45573         * build-aux/gnu-web-doc-update: New script.
45574
45575 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
45576
45577         link: LoadLibrary is not needed.
45578         * lib/link.c: Use GetModuleHandle.
45579
45580 2009-10-01  Eric Blake  <ebb9@byu.net>
45581
45582         getopt: bump serial number
45583         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
45584         change.
45585
45586         tests: tighten link, rmdir, and remove tests
45587         * tests/test-link.h (includes): No need to use <config.h> here.
45588         Clean up if directory hard link was created, otherwise test for
45589         trailing '.'.
45590         * tests/test-linkat.c (main): Simplify.
45591         * tests/test-remove.c (main): Enhance test for trailing '.'.
45592         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45593
45594 2009-10-01  Jim Meyering  <meyering@redhat.com>
45595
45596         maint.mk: requiring "make major" was annoying, for a "minor" release.
45597         What is intended is "stable", to contrast with alpha and beta,
45598         so require "make stable", not "make major".
45599         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
45600         (get_tool_versions): Likewise.
45601         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
45602
45603 2009-09-30  Ben Pfaff  <blp@gnu.org>
45604
45605         Fix broken build of replacement for Windows tmpfile().
45606         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
45607         flags argument added along with the 'mkostemp' module.
45608
45609 2009-09-28  Bruno Haible  <bruno@clisp.org>
45610
45611         Avoid identifier clash with POSIX function 'remove' defined as a macro.
45612         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
45613         to 'remove_elt'.
45614         (gl_list_remove): Update.
45615         * lib/gl_list.c (gl_list_remove): Update.
45616         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
45617         to 'remove_elt'.
45618         (gl_oset_remove): Update.
45619         * lib/gl_list.c (gl_oset_remove): Update.
45620         Reported by Eric Blake.
45621
45622 2009-09-28  Eric Blake  <ebb9@byu.net>
45623
45624         doc: mention yet more cygwin 1.7 status
45625         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
45626         cygwin.
45627         * doc/glibc-functions/execvpe.texi (execvpe): New file.
45628         * doc/gnulib.texi (Glibc unistd.h): Mention it.
45629
45630         argp: fix test failure
45631         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
45632         that are not upper-case.  Pass correct range to tolower.
45633
45634 2009-09-27  Jim Meyering  <meyering@redhat.com>
45635
45636         test-yesno: work around sparc-dash here-document infelicity
45637         Without this change, the literal \177 byte in a here document
45638         would make dash 0.5.5.1-3 access uninitialized memory.
45639         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
45640         Instead, use a marker, "@", and filter through tr to create the desired
45641         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
45642
45643 2009-09-27  Bruno Haible  <bruno@clisp.org>
45644
45645         Disable untested support for new flavours of ACLs on AIX.
45646         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
45647         progress.
45648         * lib/set-mode-acl.c (qset_acl): Likewise.
45649
45650 2008-12-07  Bruno Haible  <bruno@clisp.org>
45651
45652         Add support for new flavours of ACLs on AIX. (Untested.)
45653         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
45654         (file_has_acl): Add support for newer AIX.
45655         * lib/set-mode-acl.c (qset_acl): Likewise.
45656         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
45657         Rainer Tammer <tammer@tammer.net>.
45658
45659 2009-09-26  Eric Blake  <ebb9@byu.net>
45660
45661         argp: fix compilation of getopt
45662         * lib/getopt.in.h (includes): Use different guard than glibc.
45663         Reported by Sergey Poznyakoff.
45664
45665         doc: mention more cygwin 1.7 status
45666         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
45667         bug.
45668         * doc/posix-functions/execl.texi (execl): Likewise.
45669         * doc/posix-functions/execle.texi (execle): Likewise.
45670         * doc/posix-functions/execlp.texi (execlp): Likewise.
45671         * doc/posix-functions/execv.texi (execv): Likewise.
45672         * doc/posix-functions/execve.texi (execve): Likewise.
45673         * doc/posix-functions/execvp.texi (execvp): Likewise.
45674         * doc/glibc-functions/canonicalize_file_name.texi
45675         (canonicalize_file_name): Cygwin 1.7 now provides this.
45676         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
45677         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
45678         on AT_SYMLINK_NOFOLLOW.
45679
45680 2009-09-24  Eric Blake  <ebb9@byu.net>
45681
45682         test-linkat: make test more robust
45683         * tests/test-linkat.c (main): Avoid collision with EEXIST.
45684
45685         getopt: fix inclusion guards for cygwin
45686         * modules/getopt-posix (Depends-on): Add include-next.
45687         (Makefile.am): Substitute more items in replacement header.
45688         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
45689         <getopt.h>.
45690         * lib/getopt.in.h (includes): Use split inclusion guard, and
45691         prefer <getopt.h> over include <unistd.h> when one is present.
45692         (option): Also override name of 'struct option'.
45693
45694         same-inode: revert prior change; it is not yet ready
45695         * NEWS: Undo mention of this change.
45696         * lib/same-inode.h (same-inode.h): Undo tri-state change.
45697         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45698         * lib/cycle-check.c (cycle_check): Likewise.
45699         * lib/same.c (same_name): Likewise.
45700         * lib/at-func2.c (at_func2): Likewise.
45701
45702 2009-09-23  Eric Blake  <ebb9@byu.net>
45703
45704         linkat: new module
45705         * modules/linkat: New file.
45706         * lib/at-func2.c (at_func2): Likewise.
45707         * lib/linkat.c (linkat): Likewise.
45708         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
45709         * lib/openat-priv.h (at_func2): Add declaration.
45710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45711         * modules/unistd (Makefile.am): Substitute them.
45712         * lib/unistd.in.h (linkat): Declare it.
45713         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45714         * doc/posix-functions/linkat.texi (linkat): Likewise.
45715         * doc/posix-functions/link.texi (link): Tweak wording.
45716         * tests/test-link.c (main): Move guts...
45717         * tests/test-link.h (test_link): ...into new file.
45718         * modules/linkat-tests: New test.
45719         * tests/test-linkat.c: Likewise.
45720         * modules/link-tests (Files): Ship new file.
45721         (Depends-on): Add stdbool.
45722
45723         dirname: add library-safe mdir_name
45724         * lib/dirname.h (mdir_name): New prototype.
45725         * lib/dirname.c (dir_name): Move guts...
45726         (mdir_name): ...to new function that avoids xalloc_die.
45727
45728         fchdir: another mingw fix
45729         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
45730         * lib/fchdir.c (get_name): New helper method; skips canonicalize
45731         on mingw (where it has not yet been ported), and make it optional
45732         elsewhere.
45733         (_gl_register_fd): Use it.
45734
45735         same-inode: make SAME_INODE tri-state, to port to mingw
45736         * NEWS: Mention this change.
45737         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
45738         st_ino always being 0.
45739         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45740         * lib/cycle-check.c (cycle_check): Likewise.
45741         * lib/same.c (same_name): Likewise.
45742
45743         lstat: avoid mingw compilation error
45744         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
45745         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
45746         lstat ourselves.
45747         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
45748         was adequate.
45749         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
45750         the checks for lstat.
45751         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
45752
45753         link: fix test failure on Solaris 9
45754         * lib/link.c (rpl_link): Don't assume link will catch bogus
45755         trailing slash on source.
45756
45757         test-symlinkat: enhance test
45758         * tests/test-readlink.c (main): Move guts...
45759         * tests/test-readlink.h (test_readlink): ...into new file.
45760         * tests/test-symlink.c (main): Move guts...
45761         * tests/test-symlink.h (test_symlink): ...into new file.
45762         * tests/test-symlinkat.c (main): Use new files for further
45763         coverage.
45764         (do_symlink, do_readlink): New helper functions.
45765         * modules/symlink-tests (Files): Ship new file.
45766         (Depends-on): Add stdbool.
45767         * modules/readlink-tests (Files): Ship new file.
45768         (Depends-on): Add stdbool.
45769         * modules/symlinkat-tests (Files): Use new files.
45770
45771 2009-09-23  Eric Blake  <ebb9@byu.net>
45772
45773         readlink: document portability issue with symlink length
45774         * doc/posix-functions/lstat.texi (lstat): Mention that some file
45775         systems have bogus st_size on symlinks, and mention the
45776         areadlink-with-size module.
45777         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45778         * doc/posix-functions/readlink.texi (readlink): Mention the
45779         areadlink module, and ERANGE failure.
45780         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45781         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
45782
45783         readlink: fix Solaris 9 bug with trailing slash
45784         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
45785         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
45786         * doc/posix-functions/readlink.texi (readlink): Document this.
45787         * modules/readlink-tests: New test.
45788         * tests/test-readlink.c: Likewise.
45789
45790         readlink: fix cygwin 1.5.x bug with return type
45791         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
45792         * lib/unistd.in.h (readlink): Use ssize_t.
45793         * lib/readlink.c (readlink): Likewise.
45794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45795         * modules/unistd (Makefile.am): Substitute it.
45796         * lib/unistd.in.h (readlink): Declare replacement.
45797         * doc/posix-functions/readlink.texi (readlink): Document this.
45798
45799         symlink: use throughout gnulib
45800         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
45801         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
45802         symlink is not used.
45803         * modules/symlinkat (Depends-on): Add symlink.
45804         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45805         * modules/canonicalize-tests (Depends-on): Likewise.
45806         * modules/lstat-tests (Depends-on): Likewise.
45807         * modules/openat-tests (Depends-on): Likewise.
45808         * modules/remove-tests (Depends-on): Likewise.
45809         * modules/rmdir-tests (Depends-on): Likewise.
45810         * modules/unlink-tests (Depends-on): Likewise.
45811         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
45812         * tests/test-canonicalize.c (symlink): Likewise.
45813         * tests/test-fstatat.c (symlink): Likewise.
45814         * tests/test-lstat.c (symlink): Likewise.
45815         * tests/test-remove.c (symlink): Likewise.
45816         * tests/test-rmdir.c (symlink): Likewise.
45817         * tests/test-unlink.c (symlink): Likewise.
45818         * tests/test-unlinkat.c (symlink): Likewise.
45819
45820         symlink: new module, for Solaris 9 bug
45821         * modules/symlink: New file.
45822         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
45823         * lib/symlink.c: Likewise.
45824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
45825         * modules/unistd (Makefile.am): Substitute them.
45826         * lib/unistd.in.h (symlink): Declare replacement.
45827         * MODULES.html.sh (File system functions): Mention it.
45828         * doc/posix-functions/symlink.texi (symlink): Likewise.
45829         * modules/symlink-tests: New test.
45830         * tests/test-symlink.c: Likewise.
45831
45832 2009-09-23  Bruno Haible  <bruno@clisp.org>
45833
45834         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
45835         when needed.
45836         Test case: gnulib-tool --import --with-tests atexit inttypes.
45837         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
45838
45839 2009-09-23  Bruno Haible  <bruno@clisp.org>
45840
45841         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
45842         subcommand, not in a subshell.
45843
45844 2009-09-22  Eric Blake  <ebb9@byu.net>
45845
45846         unistd: sort replacement declarations
45847         * lib/unistd.in.h: Sort declarations.
45848
45849         open, openat: minor optimization
45850         * lib/open.c (open): If open succeeded, len is non-zero.
45851         * lib/openat.c (rpl_openat): Likewise.
45852
45853         link-follow: ensure correct result
45854         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
45855         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
45856         distinguish between possible failures.
45857
45858 2009-09-21  Eric Blake  <ebb9@byu.net>
45859
45860         fts: avoid compiler warning
45861         * lib/fts.c (dirent_inode_sort_may_be_useful)
45862         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
45863
45864 2009-09-19  Bruno Haible  <bruno@clisp.org>
45865
45866         * lib/progreloc.c (canonicalize_file_name): New declaration.
45867
45868 2009-09-19  Eric Blake  <ebb9@byu.net>
45869
45870         link: fix quoting
45871         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
45872
45873         openat: fix openat bugs on Solaris 9
45874         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
45875         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
45876         * modules/openat (Depends-on): Add open.
45877         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
45878         * modules/fcntl-h (Makefile.am): Substitute it.
45879         * lib/fcntl.in.h (openat): Declare replacement.
45880         * doc/posix-functions/openat.texi (openat): Document this.
45881
45882         openat: move fstatat and unlinkat into correct files
45883         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
45884         compiled.
45885         * lib/openat.c (fstatat, unlinkat): Move...
45886         * lib/fstatat.c (fstatat): ...into correct files.
45887         * lib/unlinkat.c (unlinkat): Likewise.
45888
45889         openat: fix unlinkat bugs on Solaris 9
45890         * lib/unlinkat.c (unlinkat): New file.
45891         * modules/openat (Depends-on): Add unlink.
45892         (Files): Distribute it.
45893         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
45894         trailing slash behavior is broken.
45895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45896         * modules/unistd (Makefile.am): Substitute it.
45897         * lib/unistd.in.h (unlinkat): Declare replacement.
45898         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
45899
45900         openat: fix fstatat bugs on Solaris 9
45901         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
45902         stat.
45903         * doc/posix-functions/fstatat.texi (fstatat): Document this.
45904
45905         test-unlinkat: enhance test, to expose Solaris 9 bug
45906         * tests/test-unlink.c (main): Factor guts...
45907         * tests/test-unlink.h (test_rmdir_func): ...into new file.
45908         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
45909         * tests/test-rmdir.c (main): Adjust caller.
45910         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
45911         (unlinker): New helper function.
45912         (rmdirat): Enhance check.
45913         * modules/rmdir-tests (Depends-on): Add stdbool.
45914         * modules/unlink-tests (Depends-on): Likewise.
45915         (Files): Add test-unlink.h.
45916         * modules/openat-tests (Files): Likewise.
45917         (Depends-on): Add unlinkdir.
45918
45919         test-fstatat: new test, to expose Solaris 9 bugs
45920         * tests/test-stat.c (main): Factor guts...
45921         * tests/test-stat.h (test_stat_func): ...into new file.
45922         * tests/test-lstat.c (main): Factor guts...
45923         * tests/test-lstat.h (test_lstat_func): ...into new file.
45924         * tests/test-fstatat.c: New file.
45925         * modules/stat-tests (Files): Add test-stat.h.
45926         * modules/lstat-tests (Files): Add test-lstat.h.
45927         (Depends-on): Add stdbool.
45928         * modules/openat-tests (Depends-on): Add pathmax.
45929         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
45930         (Makefile.am): Run new test.
45931
45932         remove: new module, for mingw and Solaris 9 bugs
45933         * modules/remove: New file.
45934         * lib/remove.c: Likewise.
45935         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
45936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45937         * modules/stdio (Makefile.am): Use them.
45938         * lib/stdio.in.h (remove): Declare replacement.
45939         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45940         * doc/posix-functions/remove.texi (remove): Likewise.
45941         * modules/remove-tests: New test.
45942         * tests/test-remove.c: Likewise.
45943
45944         unlink: new module, for Solaris 9 bug
45945         * modules/unlink: New file.
45946         * lib/unlink.c: Likewise.
45947         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
45948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45949         * modules/unistd (Makefile.am): Use them.
45950         * lib/unistd.in.h (stat): Declare replacement.
45951         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45952         * doc/posix-functions/unlink.texi (unlink): Likewise.
45953         * modules/unlink-tests: New test.
45954         * tests/test-unlink.c: Likewise.
45955
45956         lstat: fix Solaris 9 bug
45957         * lib/lstat.c (lstat): Also check for trailing slash on
45958         non-symlink, non-directories.  Use stat module to simplify logic.
45959         * doc/posix-functions/lstat.texi (lstat): Document it.
45960         * modules/lstat-tests (Depends-on): Add errno, same-inode.
45961         (configure.ac): Check for symlink.
45962         * tests/test-lstat.c (main): Add more tests.
45963
45964         stat: add as dependency to other modules
45965         * modules/chown (Depends-on): Add stat.
45966         * modules/euidaccess (Depends-on): Likewise.
45967         * modules/fchdir (Depends-on): Likewise.
45968         * modules/isdir (Depends-on): Likewise.
45969         * modules/link (Depends-on): Likewise.
45970         * modules/lstat (Depends-on): Likewise.
45971         * modules/mkdir-p (Depends-on): Likewise.
45972         * modules/modechange (Depends-on): Likewise.
45973         * modules/open (Depends-on): Likewise.
45974         * modules/readlink (Depends-on): Likewise.
45975         * modules/same (Depends-on): Likewise.
45976
45977         stat: fix Solaris 9 bug
45978         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
45979         slash.
45980         * lib/stat.c (rpl_stat): Work around it.
45981         * doc/posix-functions/stat.texi (stat): Update documentation.
45982
45983         stat: new module, for mingw bug
45984         * modules/stat: New file.
45985         * lib/stat.c: Likewise.
45986         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
45987         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45988         * modules/sys_stat (Makefile.am): Use them.
45989         * lib/sys_stat.in.h (stat): Declare replacement.
45990         * lib/openat.c (fstatat): Deal with lstat and stat being function
45991         macros.
45992         * modules/openat (Depends-on): Add inline.
45993         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45994         * doc/posix-functions/stat.texi (stat): Likewise.
45995         * modules/stat-tests: New test.
45996         * tests/test-stat.c: Likewise.
45997
45998 2009-09-19  Jim Meyering  <meyering@redhat.com>
45999
46000         syntax-check: detect unnecessary inclusion of canonicalize.h
46001         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
46002
46003 2009-09-19  Eric Blake  <ebb9@byu.net>
46004
46005         canonicalize-lgpl: adjust clients to use correct header
46006         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46007         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
46008         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
46009         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
46010         * lib/progreloc.c (includes): Likewise.
46011
46012 2009-09-19  Jim Meyering  <meyering@redhat.com>
46013
46014         test-posixtm.c: correct a comment
46015         * tests/test-posixtm.c: Correct first-line comment.
46016         Spotted by Eric Blake.
46017
46018 2009-09-16  Jim Meyering  <meyering@redhat.com>
46019
46020         posixtm-tests: make T const-correct; add a test case
46021         * tests/test-posixtm.c (T): Declare const.
46022         Add a test for -(2^31+1).
46023         Remove useless can-succeed-only-in-2002 test.
46024
46025         posixtm-tests: adjust the sole failing test
46026         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
46027         expected output matches what mktime now produces.  Cross-checked via
46028         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
46029
46030         posixtm: move #ifdef'd tests into a new module
46031         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
46032         * tests/test-posixtm.c: ... this new file.
46033         * modules/posixtm-tests: New module.
46034
46035 2009-09-19  Eric Blake  <ebb9@byu.net>
46036
46037         openat: simplify use of at-func.c
46038         * lib/at-func.c (includes): Include prerequisites here, to
46039         simplify requirements on client files.
46040         * lib/openat-priv.h: Add double-inclusion guard.
46041         * lib/faccessat.c (includes): Simplify.
46042         * lib/fchmodat.c (includes): Likewise.
46043         * lib/fchownat.c (includes): Likewise.
46044         * lib/mkdirat.c (includes): Likewise.
46045         * lib/mkfifoat.c (includes): Likewise.
46046         * lib/symlinkat.c (includes): Likewise.
46047
46048         openat: allow return of fd 0
46049         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
46050         * modules/save-cwd (Depends-on): Replace fcntl-safer with
46051         unistd-safer.
46052         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
46053         <fcntl.h>; this module does not leak fds.
46054         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
46055         must be allowed to return 0, leaving openat_safer to add the
46056         safety.
46057         (openat_permissive): Avoid writing to just-opened fd 2 if
46058         restoring the current directory fails.
46059         * lib/openat-die.c (openat_restore_fail): Add comment.
46060         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
46061         (save_cwd): Guarantee safe fd, but without use of open_safer.
46062         * tests/test-openat.c: New test.
46063         * modules/openat-tests (Files, Makefile.am): Distribute and build
46064         new file.
46065
46066         relocatable-prog-wrapper: fix build
46067         * modules/relocatable-prog-wrapper (Files): Update name of
46068         canonicalize m4 file, broken on 2009-09-17.
46069         Reported by emad hajjar <aleppos@hotmail.com>.
46070
46071 2009-09-19  Bruno Haible  <bruno@clisp.org>
46072
46073         * lib/safe-alloc.h: Use the standard header with GPL copyright.
46074         * lib/safe-alloc.c: Likewise.
46075         Reported by Ian Beckwith <ianb@erislabs.net>.
46076
46077 2009-09-18  Bruno Haible  <bruno@clisp.org>
46078
46079         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
46080         Reported by <erobles@sensacd.com.mx>.
46081
46082 2009-09-17  Eric Blake  <ebb9@byu.net>
46083
46084         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
46085         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
46086         slashes when checking if last component is missing.
46087         * tests/test-canonicalize.c (main): Test this.
46088
46089         canonicalize, canonicalize-lgpl: honor // if distinct from /
46090         * modules/canonicalize (Files): Add double-slash-root.m4.
46091         * modules/canonicalize-lgpl (Files): Likewise.
46092         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46093         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
46094         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
46095         fallback definition.
46096         (canonicalize_filename_mode): Use it to protect //.
46097         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
46098         (__realpath): Likewise.
46099         * tests/test-canonicalize.c (main): Test this.
46100         * tests/test-canonicalize-lgpl.c (main): Likewise.
46101         * modules/canonicalize-tests (Depends-on): Add same-inode.
46102         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
46103
46104         canonicalize-lgpl: fix glibc bug with trailing slash
46105         * m4/canonicalize-lgpl.m4: Move contents...
46106         * m4/canonicalize.m4: ...here.
46107         (gl_CANONICALIZE_LGPL): Factor realpath check...
46108         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
46109         glibc 2.3.5 bug, fixed 2005-04-27.
46110         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
46111         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
46112         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
46113         * modules/canonicalize-lgpl (Files): Manage file rename.
46114         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46115         * modules/stdlib (Makefile.am): Substitute witness.
46116         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
46117         is needed.
46118         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
46119         replacement is required.
46120         * lib/canonicalize.c (canonicalize_file_name): Likewise.
46121         * doc/glibc-functions/canonicalize_file_name.texi
46122         (canonicalize_file_name): Document this.
46123         * doc/posix-functions/realpath.texi (realpath): Likewise.
46124
46125         canonicalize-lgpl: reject non-directory with trailing slash
46126         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
46127         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
46128         catches failures in glibc 2.3.5.
46129         * tests/test-canonicalize.c (main): Likewise.
46130
46131         canonicalize-lgpl: use native realpath if it works
46132         * lib/canonicalize-lgpl.c (realpath): Guard with
46133         FUNC_REALPATH_WORKS.
46134         * lib/stdlib.in.h (realpath): Make declaration optional based on
46135         HAVE_REALPATH.
46136         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
46137         native realpath works.
46138         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46139         * modules/stdlib (Makefile.am): Substitute witness.
46140
46141         canonicalize, canonicalize-lgpl: use <stdlib.h>
46142         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
46143         (Include): Mention <stdlib.h>.
46144         (configure.ac): Mention functions we provide.
46145         * modules/canonicalize (configure.ac): Likewise.
46146         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
46147         realpath if canonicalize_file_name is missing.
46148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
46149         * modules/stdlib (Makefile.am): Substitute witnesses.
46150         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
46151         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
46152         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
46153         * NEWS: Document this.
46154         * doc/glibc-functions/canonicalize_file_name.texi
46155         (canonicalize_file_name): Likewise.
46156         * doc/posix-functions/realpath.texi (realpath): Likewise.
46157         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
46158
46159         test-canonicalize: consolidate into single C program
46160         * tests/test-canonicalize.sh: Delete; move setup into...
46161         * tests/test-canonicalize.c (main): ...the program, making it
46162         easier to run in debugger.  Add some tests.
46163         * modules/canonicalize-tests (Files): Remove unused file.
46164         (Depends-on): Add progname.
46165         (configure.ac, Makefile.am): Simplify.
46166
46167         test-canonicalize-lgpl: consolidate into single C program
46168         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
46169         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
46170         easier to run in debugger.  Add some tests.
46171         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
46172         (configure.ac, Makefile.am): Simplify.
46173
46174         canonicalize: avoid resolvepath
46175         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
46176         unnecessary checks.
46177         * lib/canonicalize.c (includes): Simplify.
46178         (canonicalize_file_name): Drop resolvepath implementation.
46179         * modules/canonicalize (Depends-on): Drop filenamecat.
46180
46181         canonicalize: don't lose errno
46182         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
46183         over calls to free.
46184
46185         canonicalize: simplify errno handling
46186         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
46187         assignment.
46188
46189         canonicalize, canonicalize-lgpl: update module dependencies
46190         * modules/canonicalize (Depends-on): Add extensions, lstat,
46191         pathmax, stdlib.
46192         (Files): Drop pathmax.h.
46193         (configure.ac): Adjust macro name.
46194         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
46195         lstat, stdlib, sys_stat.
46196         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
46197         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
46198         extensions.
46199         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
46200         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
46201         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
46202         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
46203         declaration, if available.
46204         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
46205         we can rely on the readlink module.
46206         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
46207         (includes): Use <unistd.h> unconditionally.
46208
46209 2009-09-17  Eric Blake  <ebb9@byu.net>
46210
46211         maint: make Include sections of modules consistent
46212         * modules/alloca: Use only header name; no need to list #include.
46213         * modules/alloca-opt: Likewise.
46214         * modules/arpa_inet: Likewise.
46215         * modules/canon-host: Likewise.
46216         * modules/configmake: Likewise.
46217         * modules/dirent: Likewise.
46218         * modules/eealloc: Likewise.
46219         * modules/environ: Likewise.
46220         * modules/fchdir: Likewise.
46221         * modules/fcntl: Likewise.
46222         * modules/fcntl-h: Likewise.
46223         * modules/gethrxtime: Likewise.
46224         * modules/gettime: Likewise.
46225         * modules/ignore-value: Likewise.
46226         * modules/inet_ntop: Likewise.
46227         * modules/inet_pton: Likewise.
46228         * modules/inttypes: Likewise.
46229         * modules/isnand-nolibm: Likewise.
46230         * modules/isnanf-nolibm: Likewise.
46231         * modules/mbchar: Likewise.
46232         * modules/mbfile: Likewise.
46233         * modules/mbiter: Likewise.
46234         * modules/mbuiter: Likewise.
46235         * modules/netdb: Likewise.
46236         * modules/netinet_in: Likewise.
46237         * modules/nproc: Likewise.
46238         * modules/pagealign_alloc: Likewise.
46239         * modules/poll: Likewise.
46240         * modules/printf-frexp: Likewise.
46241         * modules/pthread: Likewise.
46242         * modules/putenv: Likewise.
46243         * modules/random_r: Likewise.
46244         * modules/relocatable-prog: Likewise.
46245         * modules/search: Likewise.
46246         * modules/select: Likewise.
46247         * modules/selinux-h: Likewise.
46248         * modules/settime: Likewise.
46249         * modules/signal: Likewise.
46250         * modules/size_max: Likewise.
46251         * modules/socklen: Likewise.
46252         * modules/ssize_t: Likewise.
46253         * modules/stdarg: Likewise.
46254         * modules/stdbool: Likewise.
46255         * modules/stddef: Likewise.
46256         * modules/stdint: Likewise.
46257         * modules/stdio: Likewise.
46258         * modules/stdlib: Likewise.
46259         * modules/string: Likewise.
46260         * modules/strings: Likewise.
46261         * modules/sys_file: Likewise.
46262         * modules/sys_ioctl: Likewise.
46263         * modules/sys_select: Likewise.
46264         * modules/sys_socket: Likewise.
46265         * modules/sys_stat: Likewise.
46266         * modules/sys_time: Likewise.
46267         * modules/sys_times: Likewise.
46268         * modules/sys_utsname: Likewise.
46269         * modules/sys_wait: Likewise.
46270         * modules/sysexits: Likewise.
46271         * modules/time: Likewise.
46272         * modules/times: Likewise.
46273         * modules/tmpfile: Likewise.
46274         * modules/trim: Likewise.
46275         * modules/unistd: Likewise.
46276         * modules/wchar: Likewise.
46277         * modules/wctype: Likewise.
46278
46279 2009-09-17  Bruno Haible  <bruno@clisp.org>
46280
46281         Make getdate.y compile on QNX and NetBSD 5 / i386.
46282         * m4/getdate.m4 (gl_GETDATE): Conditionally define
46283         TIME_T_FITS_IN_LONG_INT.
46284         * lib/getdate.y (long_time_t): New type.
46285         (relative_time): Change type of 'seconds' field to long_time_t.
46286         (get_date): Update types of local variables. Check against overflow
46287         during conversion from long_time_t to time_t.
46288         Reported by Matt Kraai <kraai@ftbfs.org>
46289         and Hasso Tepper <hasso@netbsd.org>.
46290
46291 2009-09-17  Bruno Haible  <bruno@clisp.org>
46292
46293         * modules/COPYING: Update copyright years.
46294         * modules/README: Likeiwse.
46295         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
46296         Reported by Ian Beckwith <ianb@erislabs.net>.
46297
46298 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46299
46300         * users.txt: Update references for gnuit package.
46301
46302 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46303
46304         * m4/getdelim.m4: Fix typo in copyright line.
46305
46306 2009-09-17  Bruno Haible  <bruno@clisp.org>
46307
46308         * lib/atoll.c: Use the standard header with GPL copyright.
46309         * lib/argz.in.h: Likewise.
46310         * lib/glob.c: Likewise.
46311         * lib/glob-libc.h: Likewise.
46312         * lib/random_r.c: Likewise.
46313         * lib/siglist.h: Likewise.
46314         * lib/strsignal.c: Likewise.
46315         Reported by Ian Beckwith <ianb@erislabs.net>.
46316
46317 2009-09-17  Eric Blake  <ebb9@byu.net>
46318
46319         rmdir: ensure correct dependency order
46320         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
46321
46322 2009-09-17  Bruno Haible  <bruno@clisp.org>
46323
46324         Disable assertion that fails on NetBSD 5 / i386.
46325         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
46326         Reported by Sam Steingold <sds@gnu.org>
46327         and Hasso Tepper <hasso@netbsd.org>.
46328
46329 2009-09-16  Eric Blake  <ebb9@byu.net>
46330
46331         unlinkdir: port to mingw
46332         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
46333         on which no one can unlink a directory.
46334
46335         stdlib: sort witness names
46336         * modules/stdlib (Makefile.am): Sort replacements.
46337         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46338         * lib/stdlib.in.h: Likewise.
46339
46340         parse-duration-tests: avoid link failure
46341         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
46342         LIBINTL.
46343         Reported by Tom G. Christensen.
46344
46345         openat-tests: ensure unlinkat behaves like rmdir
46346         * tests/test-rmdir.c (main): Factor guts...
46347         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
46348         * modules/rmdir-tests (Files): Ship new file.
46349         * modules/openat-tests: New test.
46350         * tests/test-unlinkat.c: Likewise.
46351
46352         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
46353         * modules/rmdir-errno (Status, Notice): Now obsolete.
46354
46355         rmdir: work around cygwin 1.5.x and mingw bugs
46356         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
46357         * lib/rmdir.c (rmdir): Work around it.
46358         * modules/rmdir (Status, Notice): No longer obsolete.
46359         (Files): Add dos.m4.
46360         (Depends-on): Add unistd.
46361         (configure.ac): Set witnesses.
46362         (License): Relax to LGPLv2+.
46363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
46364         * modules/unistd (Makefile.am): Substitute witnesses.
46365         * lib/unistd.in.h (rmdir): Declare replacement.
46366         * doc/posix-functions/rmdir.texi (rmdir): Document this.
46367         * modules/rmdir-tests: New tests.
46368         * tests/test-rmdir.c: Likewise.
46369
46370 2009-09-15  Eric Blake  <ebb9@byu.net>
46371
46372         fchdir: improve use of replacement functions
46373         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
46374         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
46375         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
46376         REPLACE_CLOSEDIR.
46377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
46378         * modules/sys_stat (Makefile.am): Substitute correct witness.
46379         * modules/dirent (Makefile.am): Likewise.
46380         * modules/unistd (Makefile.am): Likewise.
46381         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
46382         * lib/unistd.in.h (dup): Likewise.
46383         * lib/sys_stat.in.h (fstat): Likewise.
46384
46385         maint: ignore gnulib-tool temp files
46386         * .gitignore: Ignore files created during gnulib-tool --test.
46387
46388 2009-09-13  Jim Meyering  <meyering@redhat.com>
46389
46390         posixtm: don't reject a time that specify "60" as the number of seconds
46391         * lib/posixtm.c (posixtime): The code to reject invalid dates
46392         would also reject a time specified with the .60 suffix.
46393         But POSIX allows that, in order to accommodate leap seconds.
46394         So don't reject it.
46395         (main): Adjust tests accordingly.
46396         * modules/posixtm (Depends-on): Add stpcpy.
46397
46398 2009-09-11  Jim Meyering  <meyering@redhat.com>
46399
46400         announce-gen: include [$release_type] in emitted Subject:
46401         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
46402         e.g., [stable] in the emitted Subject: line.
46403
46404 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46405
46406         Remove obsolete macros from several modules.
46407         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
46408         obsolete Autoconf macros with their modern counterparts.
46409         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
46410         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
46411         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
46412         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46413         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
46414         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46415         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46416         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46417         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
46418         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
46419         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
46420         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
46421         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
46422         * m4/sockets.m4 (gl_SOCKETS): Likewise.
46423         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
46424         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
46425         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46426         * m4/time_r.m4 (gl_TIME_R): Likewise.
46427         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
46428         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
46429         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46430
46431         Fix copyright header in build-aux scripts.
46432         * build-aux/git-version-gen: Fix copyright header to match GPLv3
46433         recommendation.
46434         * build-aux/ncftpput-ftp: Likewise.
46435         * build-aux/update-copyright: Likewise.
46436
46437 2009-09-09  Eric Blake  <ebb9@byu.net>
46438
46439         test-link: allow Linux choice of errno
46440         * tests/test-link.c (main): Relax test for alternate error.
46441
46442         strndup: fix improper m4 caching
46443         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
46444         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
46445         (gl_PREREQ_STRNDUP): Delete.
46446         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
46447         * modules/string (Makefile.am): Substitute it.
46448         * lib/string.in.h (strndup): Modernize prototype.
46449
46450         getcwd: port to mingw
46451         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
46452         different from the POSIX assumptions made throughout the getcwd
46453         module; fortunately, the mingw getcwd does not need replacement.
46454         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
46455         * modules/getcwd-tests: New test.
46456         * tests/test-getcwd.c: Likewise.
46457
46458         link: fix platform bugs
46459         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
46460         * lib/link.c (link): Work around them.  Fix related mingw bug.
46461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
46462         * modules/unistd (Makefile.am): Substitute it.
46463         * lib/unistd.in.h (link): Declare replacement.
46464         * doc/posix-functions/link.texi (link): Document this.
46465         * modules/link (Depends-on): Add strdup-posix, sys_stat.
46466
46467         test-link: consolidate into single C program, test more cases
46468         * tests/test-link.sh: Delete.
46469         * tests/test-link.c: Test more error conditions.  Exposes bugs on
46470         at least Cygwin and Solaris.
46471         * modules/link-tests (Files): Remove unused file.
46472         (Depends-on): Add errno, sys_stat.
46473         (Makefile.am): Simplify.
46474
46475 2009-09-08  Bruno Haible  <bruno@clisp.org>
46476
46477         Work around towlower, towupper bug on mingw.
46478         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
46479         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
46480         * doc/posix-functions/towlower.texi: Mention the mingw bug.
46481         * doc/posix-functions/towupper.texi: Likewise.
46482         Reported by Eric Blake.
46483
46484 2009-09-08  Jim Meyering  <meyering@redhat.com>
46485
46486         build: don't try to run autoheader if we don't use it
46487         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
46488         is not used in configure.ac.
46489
46490 2009-09-08  Eric Blake  <ebb9@byu.net>
46491
46492         euidaccess: fix compilation error
46493         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
46494
46495         rawmemchr: relax license
46496         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
46497         okay.
46498         Reported by Jim Meyering.
46499
46500         mkfifoat: new module
46501         * modules/mkfifoat: New file.
46502         * lib/mkfifoat.c: Likewise.
46503         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
46504         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46505         * modules/sys_stat (Makefile.am): Use them.
46506         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
46507         * MODULES.html.sh (File system functions): Mention module.
46508         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
46509         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
46510         * modules/mkfifoat-tests: New test.
46511         * tests/test-mkfifoat.c: Likewise.
46512
46513         strchrnul: relax license
46514         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
46515         okay.
46516         Reported by Jim Meyering.
46517
46518 2009-09-08  Eric Blake  <ebb9@byu.net>
46519
46520         fstatat: fix compilation on Solaris
46521         * lib/fstatat.c (includes): Add fcntl.h.
46522         Reported by Pádraig Brady.
46523
46524 2009-09-07  Eric Blake  <ebb9@byu.net>
46525
46526         rename: modernize replacement
46527         * modules/rename (Depends-on): Add stdio.
46528         (configure.ac): Declare witness.
46529         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
46530         stdio take care of replacement.
46531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46532         * modules/stdio (Makefile.am): Substitute them.
46533         * lib/stdio.in.h (rename): Declare replacement.
46534         * lib/rename.c (includes): Allow cross-compilation to non-windows
46535         machines.
46536         * doc/posix-functions/rename.texi (rename): Improve
46537         documentation.
46538
46539         stdio: sort witness names
46540         * modules/stdio (Makefile.am): Sort replacements.
46541         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46542         * lib/stdio.in.h: Likewise.
46543
46544         getcwd: minor cleanups
46545         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
46546         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
46547
46548         openat: provide more convenience names
46549         * modules/faccessat (configure.ac): Add C witness.
46550         * lib/unistd.in.h (readlinkat): Fix typo.
46551         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
46552         convenience wrappers.
46553         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
46554         wrappers in syntax checks.
46555
46556 2009-09-06  Eric Blake  <ebb9@byu.net>
46557
46558         doc: fix comments in recent patches
46559         * lib/faccessat.c: Mention correct function.
46560         * lib/fchmodat.c: Likewise.
46561         * lib/fchownat.c: Likewise.
46562         * lib/symlinkat.c: Likewise.
46563         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
46564         constants.
46565
46566         faccessat, symlinkat: continue cleanup of previous patch
46567         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
46568         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46569         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
46570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
46571         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
46572         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
46573         set.
46574
46575 2009-09-06  Bruno Haible  <bruno@clisp.org>
46576
46577         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
46578         (fstatat): Declare if GNULIB_FSTATAT is set.
46579         (mkdirat): Declare if GNULIB_MKDIRAT is set.
46580         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
46581         (unlinkat): Declare if GNULIB_UNLINKAT is set.
46582         * modules/fcntl-h (Files): Remove m4/openat.m4.
46583         * modules/sys_stat (Files): Remove m4/openat.m4.
46584         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
46585         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
46586         * modules/unistd (Files): Remove m4/openat.m4.
46587         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
46588         GNULIB_OPENAT.
46589         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
46590         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
46591         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
46592         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
46593         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
46594         gl_OPENAT_DEFAULTS.
46595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
46596         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
46597         Don't require gl_OPENAT_DEFAULTS.
46598         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
46599         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
46600         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
46601         (gl_OPENAT_DEFAULTS): Remove macro.
46602
46603 2009-09-06  Bruno Haible  <bruno@clisp.org>
46604
46605         * modules/openat (configure.ac): Remove unneeded witness.
46606
46607 2009-09-06  Bruno Haible  <bruno@clisp.org>
46608
46609         Set errno to ENOSYS when a function is entirely unsupported.
46610         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
46611         EOPNOTSUPP.
46612         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46613         * modules/chown (Depends-on): Remove errno.
46614
46615 2009-09-06  Bruno Haible  <bruno@clisp.org>
46616
46617         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
46618
46619 2009-09-06  Bruno Haible  <bruno@clisp.org>
46620
46621         * lib/sys_stat.in.h: Fix preprocessor command indentation.
46622
46623 2009-09-06  Ben Pfaff  <blp@gnu.org>
46624             Bruno Haible  <bruno@clisp.org>
46625
46626         Work around a glibc bug in strtok_r.
46627         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
46628         Undefine if UNDEFINE_STRTOK_R is set.
46629         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
46630         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46631         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
46632         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
46633         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
46634         UNDEFINE_STRTOK_R.
46635         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
46636
46637 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
46638
46639         exclude: minor fix
46640         * lib/exclude.c: Include wctype.h
46641
46642 2009-09-06  Akim Demaille  <demaille@gostai.com>
46643
46644         bootstrap: improve error message
46645         * build-aux/bootstrap (find_tool): Upon failure, report the list
46646         of candidates.
46647         Honor the initial value of the envvar.
46648
46649 2009-09-05  Eric Blake  <ebb9@byu.net>
46650
46651         symlinkat: new module
46652         * modules/symlinkat: New file.
46653         * lib/symlinkat.c: Likewise.
46654         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
46655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46656         * modules/unistd (Makefile.am): Use them.
46657         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
46658         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
46659         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
46660         * MODULES.html.sh (File system functions): Mention module.
46661         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
46662         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46663         * modules/symlinkat-tests: New test.
46664         * tests/test-symlinkat.c: Likewise.
46665
46666         test-openat-safer: add more checks
46667         * tests/test-openat-safer.c (main): Check more code paths.
46668
46669 2009-09-05  Jim Meyering  <meyering@redhat.com>
46670
46671         syntax-check: detect unnecessary inclusion of openat.h
46672         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
46673
46674 2009-09-05  Bruno Haible  <bruno@clisp.org>
46675
46676         Support towlower, towupper.
46677         * doc/posix-functions/towlower.texi: Mention module wctype.
46678         * doc/posix-functions/towupper.texi: Likewise.
46679         * lib/wctype.in.h (towlower, towupper): New functions.
46680         * tests/test-wctype.c: Include stdio.h, stdlib.h.
46681         (ASSERT): New macro.
46682         (e): New variable.
46683         (main): Test also towlower, towupper. Test WEOF argument.
46684         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46685
46686 2009-09-05  Bruno Haible  <bruno@clisp.org>
46687
46688         Fix conversion behaviour when the input is invalid.
46689         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
46690         mark occurring in first pass of indirect conversion.
46691         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
46692         input.
46693         Found by clang's static analyzer.
46694
46695 2009-09-05  Bruno Haible  <bruno@clisp.org>
46696
46697         * tests/test-striconveh.c (main): Test indirect conversion on platforms
46698         where direct conversion is possible.
46699
46700 2009-09-04  Eric Blake  <ebb9@byu.net>
46701
46702         openat: fail with ENOENT on empty name
46703         * lib/openat-proc.c (openat_proc_name): Special-case the empty
46704         buffer.
46705
46706         link-follow: fix logic bug in prior patch
46707         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
46708         reversed sense of yes and no in prior patch.  Avoid confusing
46709         compilation failure with desired semantics.
46710
46711         link-follow: accommodate mingw and cross-compilation
46712         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
46713         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
46714         cross-compilation results to -1, to make linkat easier to
46715         implement when cross-compiling.  Trivially support mingw.
46716         * modules/link-follow (configure.ac): Call new name.
46717         * NEWS: Mention this.
46718
46719 2009-09-03  Eric Blake  <ebb9@byu.net>
46720
46721         faccessat: compile replacement
46722         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
46723         needed.
46724
46725         fts: fix compilation error
46726         * lib/fts.c (includes): Re-add "openat.h", for
46727         openat_needs_fchdir.
46728
46729         faccessat: new module
46730         * modules/faccessat: New file.
46731         * lib/faccessat.c: Likewise.
46732         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46734         * modules/unistd (Makefile.am): Use it.
46735         * lib/unistd.in.h (faccessat): Declare it.
46736         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
46737         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
46738         * MODULES.html.sh (File system functions): Mention it.
46739         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
46740         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
46741
46742         euidaccess: prefer POSIX over non-standard implementation
46743         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
46744         * lib/euidaccess.c (euidaccess): Use it if available.
46745
46746         openat: make template easier to use
46747         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
46748         AT_FUNC_F2 to be undefined.
46749         (VALIDATE_FLAG): New macro; use it to reject bad flags.
46750         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
46751         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
46752         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
46753         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
46754         Likewise.
46755         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
46756         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
46757         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
46758         Likewise.
46759
46760         openat: declare in POSIX headers
46761         * NEWS: Mention this.
46762         * modules/openat (configure.ac): Declare witnesses.
46763         (Depends-on): Add fcntl-h, sys_stat, unistd.
46764         (Include): Mention correct headers.
46765         * modules/fcntl-h (Depends-on): Add link-warning.
46766         (Files): Add openat.m4.
46767         (Makefile.am): Substitute witnesses.
46768         * modules/sys_stat (Files, Makefile.am): Likewise.
46769         * modules/unistd (Files, Makefile.am): Likewise.
46770         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
46771         (gl_OPENAT_DEFAULTS): New macro.
46772         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
46773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
46774         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
46775         (SYS_STAT_H): Remove unused variable.
46776         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
46777         * lib/fcntl--.h (includes): Remove unneeded header.
46778         * lib/openat-safer.c (includes): Likewise.
46779         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
46780         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
46781         appropriate headers.
46782         (__OPENAT_PREFIX): Delete.
46783         * lib/fcntl.in.h (openat): Provide declaration.
46784         (AT_FDCWD): Fix Solaris bug.
46785         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
46786         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
46787         * lib/fchmodat.c (includes):  Adjust to find declaration.
46788         * lib/fchownat.c (includes): Likewise.
46789         * lib/mkdirat.c (includes): Likewise.
46790         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
46791         still visible.
46792
46793 2009-09-02  Eric Blake  <ebb9@byu.net>
46794
46795         errno: use consistently
46796         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
46797         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
46798         * lib/canonicalize.c (ELOOP): Likewise.
46799         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
46800         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
46801         * lib/lchown.c (EOPNOTSUPP): Likewise.
46802         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
46803         * lib/savewd.c (ESTALE): Likewise.
46804         * lib/settime.c (ENOSYS): Likewise.
46805         * lib/utimens.c (ENOSYS): Likewise.
46806         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
46807         * lib/chdir-safer.c (ELOOP): Likewise.
46808         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
46809         * modules/c-stack (Depends-on): Add errno.
46810         * modules/canonicalize (Depends-on): Likewise.
46811         * modules/chdir-safer (Depends-on): Likewise.
46812         * modules/fdopendir (Depends-on): Likewise.
46813         * modules/inet_ntop (Depends-on): Likewise.
46814         * modules/inet_pton (Depends-on): Likewise.
46815         * modules/lchown (Depends-on): Likewise.
46816         * modules/openat (Depends-on): Likewise.
46817         * modules/savewd (Depends-on): Likewise.
46818         * modules/settime (Depends-on): Likewise.
46819         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
46820
46821         fts: avoid leaking fds
46822         * modules/fts (Depends-on): Add cloexec.
46823         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
46824         flag.
46825
46826         fts: make directory fds more robust
46827         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
46828         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
46829
46830         backupfile, chdir-long, fts, savedir: make safer
46831         * lib/backupfile.c (includes): Use "dirent--.h", since
46832         numbered_backup can write to stderr during readdir.
46833         * lib/savedir.c (includes): Likewise.
46834         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
46835         emulation can write to stderr on failure.
46836         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
46837         * lib/getcwd.c: Document why opendir_safer is unused.
46838         * lib/glob.c: Likewise.
46839         * lib/scandir.c: Likewise.
46840         * lib/openat-proc.c: Likewise, for open_safer.
46841         * modules/backupfile (Depends-on): Add dirent-safer.
46842         * modules/savedir (Depends-on): Likewise.
46843         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
46844         * modules/chdir-long (Depends-on): Add openat-safer.
46845
46846         openat-safer: new module
46847         * modules/openat-safer: New file.
46848         * lib/openat-safer.c: Likewise.
46849         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
46850         * lib/fcntl-safer.h (openat_safer): Declare.
46851         * lib/fcntl--.h (openat): Override.
46852         * MODULES.html.sh (File descriptor based I/O): Mention it.
46853         * lib/openat.h: Add double-inclusion guards.
46854         * lib/openat.c (includes): Only include "fcntl-safer.h", not
46855         "fcntl--.h", so we can implement openat.
46856         * modules/openat-safer-tests: New test.
46857         * tests/test-openat-safer.c: New file.
46858
46859         dirent-safer: new module
46860         * modules/dirent-safer: New file.
46861         * lib/dirent--.h: Likewise.
46862         * lib/dirent-safer.h: Likewise.
46863         * lib/opendir-safer.c: Likewise.
46864         * m4/dirent-safer.m4: Likewise.
46865         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
46866         * modules/dirent-safer-tests: New test.
46867         * tests/test-dirent-safer.c: New file.
46868         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
46869
46870         fdopendir: optimize on mingw
46871         * lib/unistd.in.h (_gl_directory_name): New prototype.
46872         * lib/fchdir.c (_gl_directory_name): Implement it.
46873         (fchdir): Use it to simplify implementation.
46874         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
46875         fchdir, when available, to avoid calling [f]chdir().
46876
46877         fdopendir: split into its own module
46878         * lib/openat.c (fdopendir): Move...
46879         * lib/fdopendir.c: ...into new file.
46880         * modules/fdopendir: New module.
46881         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
46882         * modules/openat (Depends-on): Add fdopendir.
46883         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
46884         fdopendir here.
46885         * modules/savedir (Depends-on): Only need fdopendir, not full
46886         openat.
46887         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
46888         * lib/openat.h (fdopendir): Drop prototype.
46889         * lib/dirent.in.h (fdopendir): Provide prototype.
46890         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
46891         * modules/dirent (Makefile.am): Substitute them.
46892         * MODULES.html.sh (File system functions): Mention it.
46893         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
46894         * modules/fdopendir-tests: New file.
46895         * tests/test-fdopendir.c: Likewise.
46896
46897         fchdir: use more consistent macro convention
46898         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
46899         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
46900         REPLACE_FCHDIR, rather than relying on config.h macros.
46901         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
46902         inside a single make-time REPLACE_FCHDIR block, rather than using
46903         the config.h FCHDIR_REPLACEMENT.
46904         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
46905         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
46906         Manage fstat replacement.
46907         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
46908         REPLACE_FCHDIR.
46909         * modules/sys_stat (Files): Add m4/unistd_h.m4.
46910         (Makefile.am): Substitute REPLACE_FCHDIR.
46911         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
46912         FCHDIR_REPLACEMENT.
46913         * lib/dup-safer.c (dup_safer): Likewise.
46914         * lib/dup2.c (rpl_dup2): Likewise.
46915         * lib/dup3.c (rpl_dup3): Likewise.
46916         * lib/open.c (rpl_open): Likewise.
46917
46918         fchdir: simplify error handling, and support dup3
46919         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
46920         stdbool, malloc-posix, realloc-posix.
46921         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
46922         (ensure_dirs_slot): Return false on allocation failure.
46923         (rpl_dup2): Delete.
46924         (_gl_register_dup): New function.
46925         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
46926         (_gl_register_fd): Close fd on allocation failure.
46927         * lib/fcntl.in.h (_gl_register_fd): Update signature.
46928         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
46929         prototype.
46930         (rpl_dup2_fchdir): Delete prototype.
46931         * lib/open.c (open): Update caller.
46932         * lib/dup2.c (dup2): Track fchdir metadata.
46933         * lib/dup3.c (dup3): Likewise.
46934         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
46935         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
46936
46937 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46938
46939         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
46940         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
46941         don't pass arguments to AC_OUTPUT.
46942
46943 2009-09-02  Bruno Haible  <bruno@clisp.org>
46944
46945         * modules/mkdtemp (License): Relicense under LGPLv2+.
46946         Reported by Paolo Bonzini.
46947
46948 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46949
46950         Replace uses of obsolete autoconf macros in Jim's modules.
46951         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
46952         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
46953         can evoke a warning from autoconf when run with -Wobsolete
46954         enabled.  They were declared obsolete for good reasons (see
46955         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
46956         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
46957         should not continue using the deprecated macros.
46958         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
46959         obsolete Autoconf macros with modern counterparts.
46960         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46961         * m4/dos.m4 (gl_AC_DOS): Likewise.
46962         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
46963         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
46964         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
46965         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
46966         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
46967         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
46968         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
46969         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
46970         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
46971         Likewise.
46972         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
46973         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46974         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
46975         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
46976         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46977         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46978
46979 2009-09-01  Eric Blake  <ebb9@byu.net>
46980
46981         fchdir: fix off-by-one bug in previous patch
46982         * lib/fchdir.c (rpl_fstat): Use correct bounds.
46983         (_gl_unregister_fd): Delete useless if.
46984
46985 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
46986
46987         maint.mk: sort the list of syntax-check rules
46988         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
46989         easier to get a sense of progress when the rules are run sequentially
46990         and take a long time.
46991
46992 2009-09-01  Simon Josefsson  <simon@josefsson.org>
46993
46994         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
46995         * modules/netinet_in: Likewise.
46996         * modules/sys_file: Likewise.
46997         * modules/sys_ioctl: Likewise.
46998         * modules/sys_select: Likewise.
46999         * modules/sys_socket: Likewise.
47000         * modules/sys_stat: Likewise.
47001         * modules/sys_time: Likewise.
47002         * modules/sys_times: Likewise.
47003         * modules/sys_utsname: Likewise.
47004         * modules/sys_wait: Likewise.
47005
47006 2009-09-01  Jim Meyering  <meyering@redhat.com>
47007
47008         fts: help ensure that return values are not ignored
47009         * lib/fts_.h (__GNUC_PREREQ): Define.
47010         (__attribute_warn_unused_result__): Define.
47011         (fts_children, fts_close, fts_open, fts_read): Declare with
47012         __attribute_warn_unused_result__.
47013
47014         fts: fts_close now fails also when closing a dir file descriptor fails
47015         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
47016         and propagate to caller, along with errno.
47017
47018         announce-gen: correct formatting in --help output
47019         * build-aux/announce-gen (usage): Move the one-line description in
47020         --help output "up", to where it belongs, just after Usage:.
47021
47022 2009-08-31  Eric Blake  <ebb9@byu.net>
47023
47024         fchdir: port to mingw
47025         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
47026         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
47027         opened, then use a substitute.
47028         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
47029         replacement.
47030         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
47031         (_gl_register_fd): No need to check stat if open already filters
47032         all directories.
47033         (fchdir): Fix error condition to match POSIX.
47034         * modules/fchdir (Depends-on): Add sys_stat.
47035         * doc/posix-functions/open.texi (open): Document the limitation.
47036         * modules/fchdir-tests: New file.
47037         * tests/test-fchdir.c: Likewise.
47038
47039         canonicalize: allow cross-testing from cygwin to mingw
47040         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
47041         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
47042         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
47043         Likewise.
47044         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
47045         target does not support symlinks.
47046         * tests/test-canonicalize-lgpl.sh: Likewise.
47047
47048         chown: avoid compilation warning on mingw
47049         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
47050         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
47051         mingw.
47052         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
47053         * modules/chown (Depends-on): Add errno.
47054
47055 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
47056
47057         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
47058         command.
47059
47060 2009-08-31  Jim Meyering  <meyering@redhat.com>
47061
47062         canonicalize: remove useless initialization
47063         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
47064         initialization of local, "end".
47065
47066 2009-08-30  Bruno Haible  <bruno@clisp.org>
47067
47068         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
47069         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
47070         ENOSYS.
47071
47072 2009-08-30  Bruno Haible  <bruno@clisp.org>
47073
47074         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
47075         /usr/xpg4/bin/tr when it exists.
47076         * tests/test-pipe-filter-gi1.sh: Likewise.
47077
47078 2009-08-30  Bruno Haible  <bruno@clisp.org>
47079
47080         Work around deficient /usr/bin/id program on Solaris.
47081         * tests/test-file-has-acl.sh (ID): New variable.
47082         * tests/test-set-mode-acl.sh (ID): Likewise.
47083         * tests/test-copy-acl.sh (ID): Likewise.
47084         * tests/test-copy-file.sh (ID): Likewise.
47085
47086 2009-08-30  Bruno Haible  <bruno@clisp.org>
47087
47088         New module 'xstriconveh'.
47089         * lib/xstriconveh.h: New file.
47090         * lib/xstriconveh.c: New file.
47091         * modules/xstriconveh: New file.
47092
47093 2009-08-30  Bruno Haible  <bruno@clisp.org>
47094
47095         Make it easier to use mem_cd_iconveh.
47096         * lib/striconveh.h (iconveh_t): New type.
47097         (iconveh_open, iconveh_close): New declarations.
47098         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47099         with a single 'const iconveh_t *' argument.
47100         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
47101         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47102         with a single 'const iconveh_t *' argument.
47103         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
47104         * tests/test-striconveh.c (main): Update.
47105         * NEWS: Mention the change.
47106
47107 2009-08-30  Bruno Haible  <bruno@clisp.org>
47108
47109         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
47110         problem.
47111
47112 2009-08-30  Bruno Haible  <bruno@clisp.org>
47113
47114         Work around iconv_open problem on Solaris.
47115         * lib/iconv_open-solaris.gperf: New file.
47116         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
47117         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
47118         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
47119         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
47120         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
47121         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
47122
47123 2009-08-29  Jim Meyering  <meyering@redhat.com>
47124
47125         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
47126         * top/maint.mk (cvs-check): Remove target; it was just an alias
47127         to the better-named vc-diff-check.
47128         (maintainer-distcheck): Remove rule.  It was used only from
47129         the (alpha/beta/major) target, and all of its commands but one
47130         were coreutils-specific.
47131         (vc-dist): Remove rule.
47132         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
47133         Run vc-diff-check, not vc-dist.
47134         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
47135
47136 2009-08-27  Bruno Haible  <bruno@clisp.org>
47137
47138         * tests/test-bitrotate.c (main): Remove test that uses a shift count
47139         of 0.
47140
47141 2009-08-27  Bruno Haible  <bruno@clisp.org>
47142
47143         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
47144         compilers.
47145         * doc/func.texi: Document the SunPRO C bug.
47146
47147 2009-08-27  Bruno Haible  <bruno@clisp.org>
47148
47149         Fix link error on Solaris.
47150         * tests/test-parse-duration.c (xstrdup): Remove function.
47151
47152 2009-08-26  Pádraig Brady  <P@draigbrady.com>
47153
47154         ignore-value: handle pointer types, too
47155         * lib/ignore-value.h (__attribute__): Remove definition.
47156         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
47157         of a more concise and more-often effective "(void) i" statement.
47158         (ignore_ptr): New function to suppress warnings from functions that
47159         return pointers, and to make it explicit that one function doesn't
47160         handle all cases.
47161
47162 2009-08-25  Bruno Haible  <bruno@clisp.org>
47163
47164         dup2: work around a Linux bug.
47165         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
47166         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
47167         * doc/posix-functions/dup2.texi: Mention the Linux bug.
47168         Reported by Simon Josefsson.
47169
47170 2009-08-25  Jim Meyering  <meyering@redhat.com>
47171
47172         libguestfs uses gnulib
47173         * users.txt: Add libguestfs.
47174
47175 2009-08-24  Eric Blake  <ebb9@byu.net>
47176
47177         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
47178         * lib/pipe2.c (includes): Add binary-io.h.
47179         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
47180
47181 2009-08-24  Bruno Haible  <bruno@clisp.org>
47182
47183         Tolerate declared but missing accept4 syscall.
47184         * lib/accept4.c (accept4): Invoke original accept4 function first, if
47185         available.
47186         * lib/sys_socket.in.h (accept4): If the function is already present,
47187         override it.
47188         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
47189         * modules/accept4 (Makefile.am): Compile accept4.c always.
47190         Reported by Paolo Bonzini and Eric Blake.
47191
47192 2009-08-23  Bruno Haible  <bruno@clisp.org>
47193
47194         New module 'accept4'.
47195         * lib/sys_socket.in.h (accept4): New declaration.
47196         * lib/accept4.c: New file.
47197         * m4/accept4.m4: New file.
47198         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47199         GNULIB_ACCEPT4, HAVE_ACCEPT4.
47200         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
47201         HAVE_ACCEPT4.
47202         * modules/accept4: New file.
47203         * doc/glibc-functions/accept4.texi: Mention the new module.
47204
47205 2009-08-24  Jim Meyering  <meyering@redhat.com>
47206
47207         progname: also set global program_invocation_name, when possible
47208         Before this change, a libtool-enabled program that calls glibc's
47209         error function would report the program name as
47210         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
47211         * modules/progname (configure.ac): Check for a declaration of
47212         program_invocation_name.
47213         * lib/progname.c:  Include <errno.h>.
47214         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
47215         Set program_invocation_name.
47216
47217 2009-08-23  Bruno Haible  <bruno@clisp.org>
47218
47219         * lib/dup3.c: Include <string.h>.
47220
47221 2009-08-23  Bruno Haible  <bruno@clisp.org>
47222
47223         * lib/dup3.c (dup3): Test only once whether the system actually exists.
47224         * lib/pipe2.c (pipe2): Likewise.
47225         Suggested by Eric Blake.
47226
47227 2009-08-23  Bruno Haible  <bruno@clisp.org>
47228
47229         Tolerate declared but missing dup3 syscall.
47230         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
47231         * lib/unistd.in.h (dup3): If the function is already present,
47232         override it.
47233         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
47234         * modules/dup3 (Makefile.am): Compile dup3.c always.
47235         Reported by Paolo Bonzini.
47236
47237 2009-08-23  Bruno Haible  <bruno@clisp.org>
47238
47239         Tolerate declared but missing pipe2 syscall.
47240         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
47241         available.
47242         * lib/unistd.in.h (pipe2): If the function is already present,
47243         override it.
47244         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
47245         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
47246         Reported by Paolo Bonzini.
47247
47248 2009-08-23  Bruno Haible  <bruno@clisp.org>
47249
47250         * lib/pipe2.c (pipe2): Move #ifs inside function.
47251
47252 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47253
47254         quotearg: document limitations of quote_these_too
47255         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
47256         those limitations are created.
47257         * lib/quotearg.h (set_char_quoting): Document that digits and
47258         letters that are special after backslash are not permitted.
47259         (quotearg_char): Cross-reference set_char_quoting documentation.
47260
47261 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
47262
47263         quotearg: implement custom_quoting_style
47264         * lib/quotearg.c: (struct quoting_options): Add left_quote and
47265         right_quote fields.
47266         (set_custom_quoting): New public function.
47267         (quotearg_buffer_restyled): Add left_quote and right_quote
47268         arguments, handle them very much like locale quoting, and update
47269         all uses.
47270         (quotearg_n_custom): New public function.
47271         (quotearg_n_custom_mem): New public function.
47272         (quotearg_custom): New public function.
47273         (quotearg_custom_mem): New public function.
47274         * lib/quotearg.h: Prototype and document new public functions.
47275         (enum quoting_style): For escape_quoting_style and
47276         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
47277         ignored even though they're otherwise like c_quoting_style.
47278         Add custom_quoting_style member and document with comparison to
47279         clocale_quoting_style.
47280         * tests/test-quotearg.c (custom_quotes): New array.
47281         (custom_results): New array.
47282         (main): Extend to test custom quoting.
47283
47284 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47285
47286         quotearg: fix right quote escaping when it's in quote_these_too
47287         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
47288         quote, be sure to prepend only one backslash.
47289         * tests/test-quotearg.c (use_quote_double_quotes): New function.
47290         (main): Test it.
47291
47292 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47293
47294         quotearg-tests: test escaping of embedded locale quotes
47295         * tests/test-quotearg.c (struct result_strings): Add member for
47296         new input.
47297         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
47298         (inputs): Add new input.
47299         (results_g): Add expected results.
47300         (flag_results): Likewise.
47301         (locale_results): Likewise.
47302         (compare_strings): Check those.
47303
47304 2009-08-23  Bruno Haible  <bruno@clisp.org>
47305
47306         Tests for module 'dup3'.
47307         * modules/dup3-tests: New file.
47308         * tests/test-dup3.c: New file.
47309
47310         New module 'dup3'.
47311         * lib/unistd.in.h (dup3): New declaration.
47312         * lib/dup3.c: New file.
47313         * m4/dup3.m4: New file.
47314         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
47315         HAVE_DUP3.
47316         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
47317         * modules/dup3: New file.
47318         * doc/glibc-functions/dup3.texi: Mention the new module.
47319
47320 2009-08-23  Bruno Haible  <bruno@clisp.org>
47321
47322         Tweak the dup2 test.
47323         * tests/test-dup2.c (main): Create the test file empty. Verify that an
47324         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
47325         the test file is still empty. Fix argument order of lseek.
47326
47327 2009-08-23  Bruno Haible  <bruno@clisp.org>
47328
47329         Avoid test link errors when the modules getopt-gnu, gettext are used.
47330         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
47331         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47332
47333 2009-08-23  Bruno Haible  <bruno@clisp.org>
47334
47335         Fix getdtablesize() on mingw.
47336         * lib/getdtablesize.c (getdtablesize): Implement differently.
47337         * lib/unistd.in.h (getdtablesize): Improve comment.
47338
47339 2009-08-23  Bruno Haible  <bruno@clisp.org>
47340
47341         New module 'mkostemp'.
47342         Based on Ulrich Drepper's 2007-08-10 change in glibc.
47343         * lib/stdlib.in.h (mksotemp): New declaration.
47344         * lib/mkostemp.c: New file, from glibc with modifications.
47345         * lib/tempname.h (GT_FILE): Remove outdated comment.
47346         (gen_tempname): Add flags argument.
47347         * lib/tempname.c (__GT_BIGFILE): Remove macro.
47348         (__GT_FILE): Map to 1.
47349         (small_open, large_open): Remove macros.
47350         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
47351         * lib/mkstemp.c (mkstemp): Update.
47352         * lib/mkdtemp.c (mkdtemp): Likewise.
47353         * m4/mkostemp.m4: New file.
47354         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
47355         HAVE_MKOSTEMP.
47356         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
47357         HAVE_MKOSTEMP.
47358         * modules/mkostemp: New file, based on modules/mkstemp.
47359         * doc/glibc-functions/mkostemp.texi: Mention the new module.
47360         * NEWS: Mention the change.
47361
47362 2009-08-23  Bruno Haible  <bruno@clisp.org>
47363
47364         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
47365         Reported by Eric Blake.
47366
47367 2009-08-23  Bruno Haible  <bruno@clisp.org>
47368
47369         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
47370         Reported by Eric Blake.
47371
47372 2009-08-23  Bruno Haible  <bruno@clisp.org>
47373
47374         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
47375         * modules/pipe2 (Depends-on): Likewise.
47376
47377 2009-08-23  Eric Blake  <ebb9@byu.net>
47378
47379         fcntl-h: add O_TTY_INIT support
47380         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
47381         * tests/test-fcntl-h.c (o): Test it.
47382         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47383
47384         fcntl-h: rename from fcntl, in preparation for fcntl(2)
47385         * modules/fcntl: Move <fcntl.h> header replacement...
47386         * modules/fcntl-h: ...to new name, so as not to collide with
47387         like-named function.
47388         * tests/test-fcntl.c: Rename...
47389         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
47390         * modules/fcntl-tests: Rename...
47391         * modules/fcntl-h-tests: ...to this.  Update test file name.
47392         * modules/chdir-long (Depends-on): Update clients.
47393         * modules/chdir-safer (Depends-on): Likewise.
47394         * modules/fcntl-safer (Depends-on): Likewise.
47395         * modules/fts (Depends-on): Likewise.
47396         * modules/mkancesdirs (Depends-on): Likewise.
47397         * modules/mkdir-p (Depends-on): Likewise.
47398         * modules/open (Depends-on): Likewise.
47399         * modules/savewd (Depends-on): Likewise.
47400         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
47401         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47402
47403 2009-08-22  Bruno Haible  <bruno@clisp.org>
47404
47405         * modules/binary-io (License): Relicense under LGPL.
47406         * modules/pipe2 (License): Likewise.
47407
47408 2009-08-22  Bruno Haible  <bruno@clisp.org>
47409
47410         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
47411         return value.
47412         * lib/pipe-filter-gi.c (filter_init): Likewise.
47413         Reported by Eric Blake.
47414
47415 2009-08-22  Bruno Haible  <bruno@clisp.org>
47416
47417         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
47418         * modules/pipe (Depends-on): Add pipe2.
47419
47420 2009-08-22  Bruno Haible  <bruno@clisp.org>
47421
47422         Tests for module 'pipe2'.
47423         * modules/pipe2-tests: New file.
47424         * tests/test-pipe2.c: New file.
47425
47426         New module 'pipe2'.
47427         * lib/unistd.in.h (pipe2): New declaration.
47428         * lib/pipe2.c: New file.
47429         * m4/pipe2.m4: New file.
47430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
47431         HAVE_PIPE2.
47432         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
47433         * modules/pipe2: New file.
47434         * doc/glibc-functions/pipe2.texi: Mention the new module.
47435
47436 2009-08-22  Bruno Haible  <bruno@clisp.org>
47437
47438         Reference some new glibc functions.
47439         * doc/glibc-functions/accept4.texi: New file.
47440         * doc/glibc-functions/dup3.texi: New file.
47441         * doc/glibc-functions/mkostemp.texi: New file.
47442         * doc/glibc-functions/pipe2.texi: New file.
47443         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
47444         (Glibc sys/socket.h): Refer to accept4.
47445         (Glibc unistd.h): Refer to dup3, pipe2.
47446         Reported by Eric Blake.
47447
47448 2009-08-22  Jim Meyering  <meyering@redhat.com>
47449             Bruno Haible  <bruno@clisp.org>
47450
47451         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
47452         This makes it so packages using automake-1.11's silent-rules option
47453         can print e.g., a single "GEN    configmake.h" line, rather than
47454         the 30+ statements that perform the job.  If you want to see the
47455         actual commands, you can still run "make V=1".
47456         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
47457         so that make output is abbreviated when those variables are defined
47458         appropriately.
47459         * modules/argz: Likewise.
47460         * modules/arpa_inet: Likewise.
47461         * modules/byteswap: Likewise.
47462         * modules/configmake: Likewise.
47463         * modules/dirent: Likewise.
47464         * modules/errno: Likewise.
47465         * modules/fcntl: Likewise.
47466         * modules/float: Likewise.
47467         * modules/fnmatch: Likewise.
47468         * modules/getopt-posix: Likewise.
47469         * modules/glob: Likewise.
47470         * modules/iconv_open: Likewise.
47471         * modules/inttypes: Likewise.
47472         * modules/localcharset: Likewise.
47473         * modules/locale: Likewise.
47474         * modules/math: Likewise.
47475         * modules/netdb: Likewise.
47476         * modules/netinet_in: Likewise.
47477         * modules/poll: Likewise.
47478         * modules/posix_spawnp-tests: Likewise.
47479         * modules/sched: Likewise.
47480         * modules/search: Likewise.
47481         * modules/selinux-h: Likewise.
47482         * modules/signal: Likewise.
47483         * modules/spawn: Likewise.
47484         * modules/stdarg: Likewise.
47485         * modules/stdbool: Likewise.
47486         * modules/stddef: Likewise.
47487         * modules/stdint: Likewise.
47488         * modules/stdio: Likewise.
47489         * modules/stdlib: Likewise.
47490         * modules/string: Likewise.
47491         * modules/strings: Likewise.
47492         * modules/sys_file: Likewise.
47493         * modules/sys_ioctl: Likewise.
47494         * modules/sys_select: Likewise.
47495         * modules/sys_socket: Likewise.
47496         * modules/sys_stat: Likewise.
47497         * modules/sys_time: Likewise.
47498         * modules/sys_times: Likewise.
47499         * modules/sys_utsname: Likewise.
47500         * modules/sys_wait: Likewise.
47501         * modules/sysexits: Likewise.
47502         * modules/time: Likewise.
47503         * modules/unistd: Likewise.
47504         * modules/wchar: Likewise.
47505         * modules/wctype: Likewise.
47506
47507 2009-08-22  Jim Meyering  <meyering@redhat.com>
47508
47509         announce-gen: detect write failure
47510         * build-aux/announce-gen: Add Coda at end.
47511         Remove equivalent-but-more-verbose block at top.
47512
47513 2009-08-19  Akim Demaille  <demaille@gostai.com>
47514
47515         bootstrap: --help to stdout.
47516         * bootstrap (usage): Don't send --help to stderr.
47517         Use a here doc instead of a long string.
47518
47519 2009-08-21  Eric Blake  <ebb9@byu.net>
47520
47521         test-popen-safer: split from test-popen
47522         * tests/test-popen.c (main): Move...
47523         * tests/test-popen.h: ...into new file.
47524         * tests/test-popen-safer2.c: New file.
47525         * modules/popen-tests (Files): Add test-popen.h.
47526         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
47527         Suggested by Bruno Haible.
47528
47529         test-fcntl-safer: split from test-open
47530         * tests/test-open.c (main): Move...
47531         * tests/test-open.h: ...into new file.
47532         * tests/test-fcntl-safer.c: New file.
47533         * modules/open-tests (Files): Add test-open.h.
47534         * modules/fcntl-safer-tests: New file.
47535         Suggested by Bruno Haible.
47536
47537         test-fopen-safer: split from test-fopen
47538         * tests/test-fopen.c (main): Move...
47539         * tests/test-fopen.h: ...into new file.
47540         * tests/test-fopen-safer.c: New file.
47541         * modules/fopen-tests (Files): Add test-fopen.h.
47542         * modules/fopen-safer-tests: New file.
47543         Suggested by Bruno Haible.
47544
47545 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47546
47547         popen-safer: test O_CLOEXEC at run-time.
47548         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
47549
47550 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47551
47552         fcntl: move more flags to the header
47553         * lib/cloexec.c: Do not define FD_CLOEXEC here.
47554         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
47555         * lib/fcntl.in.h: Do both things here.
47556
47557 2009-08-21  Jim Meyering  <meyering@redhat.com>
47558
47559         consistently remove $@-t before redirecting to it
47560         * modules/argz: Remove $@-t and $@ before redirecting to the former.
47561         * modules/alloca-opt: Likewise.
47562         * modules/byteswap: Likewise.
47563         * modules/fnmatch: Likewise.
47564         * modules/getopt-posix: Likewise.
47565         * modules/glob: Likewise.
47566         * modules/poll: Likewise.
47567         * modules/posix_spawnp-tests: Likewise.
47568         * modules/sys_socket: Likewise.
47569         * modules/sysexits: Likewise.
47570
47571 2009-08-21  Eric Blake  <ebb9@byu.net>
47572
47573         popen: simplify access to original popen
47574         * lib/popen.c (rpl_popen): No need to worry about popen being a
47575         macro.
47576         Reported by Bruno Haible.
47577
47578 2009-08-20  Eric Blake  <ebb9@byu.net>
47579
47580         build: avoid some compiler warnings
47581         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
47582         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
47583         type.
47584         (new_exclude_segment, excluded_file_pattern_p)
47585         (excluded_file_name_p): Reduce scope.
47586         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
47587         old-style declaration.
47588
47589 2009-08-20  Simon Josefsson  <simon@josefsson.org>
47590
47591         * tests/test-exclude1.sh: Handle Windows EOL.
47592         * tests/test-exclude2.sh: Likewise.
47593         * tests/test-exclude3.sh: Likewise.
47594         * tests/test-exclude4.sh: Likewise.
47595         * tests/test-exclude5.sh: Likewise.
47596         * tests/test-exclude6.sh: Likewise.
47597         * tests/test-exclude7.sh: Likewise.
47598
47599 2009-08-19  Akim Demaille  <demaille@gostai.com>
47600
47601         bootstrap: find sha1sum when named gsha1sum.
47602         * bootstrap (find_tool): New.
47603         ($SHA1SUM): New.
47604         Use it.
47605
47606 2009-08-20  Jim Meyering  <meyering@redhat.com>
47607
47608         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
47609         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
47610         expression that converts "." in a file name to "\." in the resulting
47611         regexp.  Start with a dummy statement, so that prior shell variable
47612         definitions are expanded portably.  Reported by Simon Josefsson.
47613
47614 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
47615
47616         Fix polling for writeability of a screen buffer.
47617         * lib/poll.c: Distinguish input and screen buffers for the
47618         Win32 implementation.
47619         * lib/select.c: Likewise.
47620
47621 2009-08-19  Eric Blake  <ebb9@byu.net>
47622
47623         popen-safer: prevent popen from clobbering std descriptors
47624         * modules/popen-safer: New file.
47625         * lib/popen-safer.c: Likewise.
47626         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
47627         * lib/stdio--.h (popen): Provide override.
47628         * lib/stdio-safer.h (popen_safer): Provide declaration.
47629         * tests/test-popen.c (includes): Partially test this.
47630         * modules/popen-safer-tests: New file, for more tests.
47631         * tests/test-popen-safer.c: Likewise.
47632         * MODULES.html.sh (file stream based Input/Output): Mention it.
47633
47634         tests: test some of the *-safer modules
47635         * modules/fopen-safer (Depends-on): Add fopen.
47636         * modules/fcntl-safer (Depends-on): Add fcntl.
47637         * modules/stdlib-safer (Depends-on): Add stdlib.
47638         (configure.ac): Set indicator.
47639         * modules/unistd-safer (configure.ac): Likewise.
47640         * modules/tmpfile-safer (configure.ac): Likewise.
47641         (Depends-on): Add tmpfile.
47642         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
47643         active.
47644         * tests/test-fopen.c (includes): Test safer versions when they are
47645         in use.
47646         * tests/test-open.c (includes): Likewise.
47647
47648         popen: fix cygwin 1.5 bug when stdin closed
47649         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
47650         * modules/popen: New file.
47651         * modules/popen-tests: Likewise.
47652         * tests/test-popen.c: Likewise.
47653         * m4/popen.m4: Likewise.
47654         * lib/popen.c: Likewise.
47655         * lib/stdio.in.h (popen): New declaration.
47656         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
47657         * modules/stdio (Makefile.am): Likewise.
47658         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
47659
47660 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
47661
47662         maint.mk: give full control over update-copyright exclusions
47663         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
47664         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
47665         (update-copyright): Don't force inclusion of top-level
47666         ChangeLog.  Don't force exclusion of all COPYING files, but make
47667         them the default exclusion instead.
47668
47669 2009-08-16  Bruno Haible  <bruno@clisp.org>
47670
47671         Fix test failures on Solaris 10.
47672         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
47673         tests when Solaris iconv() is used.
47674         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47675         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47676         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47677         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47678         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47679
47680 2009-08-16  Bruno Haible  <bruno@clisp.org>
47681
47682         Fix test failures on Solaris 10.
47683         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
47684         'tr' program and pass it as first argument.
47685         * tests/test-pipe-filter-gi1.sh: Likewise.
47686         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
47687         program as first argument.
47688         * tests/test-pipe-filter-gi1.c (main): Likewise.
47689
47690 2009-08-16  Eric Blake  <ebb9@byu.net>
47691
47692         fpurge: fix previous commits
47693         * modules/fpurge (Makefile.am): Make replacement conditional,
47694         partially reverting 2007-04-29 change; missed in previous
47695         attempt.
47696         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
47697         is missing.
47698
47699 2009-08-16  Bruno Haible  <bruno@clisp.org>
47700
47701         Clarify fpurge's effect on the file position.
47702         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
47703         * tests/test-fpurge.c (main): Make a second pass for checking the file
47704         position.
47705
47706 2009-08-16  Bruno Haible  <bruno@clisp.org>
47707
47708         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
47709         declaration of fpurge is missing.
47710         * tests/test-fpurge.c (main): Check that the file has not more contents
47711         than expected. Close the file before removing it.
47712
47713 2009-08-15  Eric Blake  <ebb9@byu.net>
47714
47715         fpurge: don't wrap working cygwin implementation
47716         * lib/fpurge.c (fpurge): Fix comment typo.
47717         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
47718         1.7 to avoid replacement.
47719         * tests/test-fpurge.c (main): Enhance test.
47720
47721 2009-08-15  Eric Blake  <ebb9@byu.net>
47722         and Jim Meyering  <meyering@redhat.com>
47723
47724         test-update-copyright: skip if perl is insufficient
47725         * tests/test-update-copyright.sh: Failure to run maintainer tool
47726         should not cause testsuite failure on cygwin 1.5.
47727
47728 2009-08-14  Eric Blake  <ebb9@byu.net>
47729
47730         doc: mention more functions added in cygwin 1.7.0
47731         * doc/posix-headers/limits.texi (limits.h): Update for recent
47732         cygwin additions.
47733         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
47734         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
47735         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
47736         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
47737         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
47738
47739 2009-08-14  Eric Blake  <ebb9@byu.net>
47740
47741         maint.mk: simplify update-copyright rule
47742         * top/maint.mk (update-copyright-local): Delete, and document how
47743         to do it in cfg.mk instead.
47744         (update-copyright-exclude-regexp): Delete, and document how to do
47745         it in .x-update-copyright instead.
47746         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
47747         exclude ChangeLog.
47748
47749 2009-08-14  Bruno Haible  <bruno@clisp.org>
47750
47751         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
47752
47753 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47754
47755         maint.mk: support update-copyright-env
47756         * top/maint.mk (update-copyright-env): Define place-holder.
47757         (update-copyright): Expand $(update-copyright-env) before
47758         invoking update-copyright.
47759
47760 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47761
47762         update-copyright: implement forced reformatting
47763         * build-aux/update-copyright: Implement and document
47764         UPDATE_COPYRIGHT_FORCE.
47765         * tests/test-update-copyright.sh: Test it.
47766
47767 2009-08-14  Eric Blake  <ebb9@byu.net>
47768         and Bruno Haible  <bruno@clisp.org>
47769
47770         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
47771         * tests/test-locale.c: Revert previous patch related to NULL.
47772         * tests/test-stdio.c: Likewise.
47773         * tests/test-stdlib.c: Likewise.
47774         * tests/test-string.c: Likewise.
47775         * tests/test-unistd.c: Likewise.
47776         * modules/time-tests (Depends-on): Add verify.
47777         * modules/wchar-tests (Depends-on): Likewise.
47778         * tests/test-time.c: Test for NULL compliance.
47779         * tests/test-wchar.c: Likewise.
47780         * modules/locale (Depends-on): Add stddef.
47781         * modules/stdio (Depends-on): Likewise.
47782         * modules/stdlib (Depends-on): Likewise.
47783         * modules/string (Depends-on): Likewise.
47784         * modules/time (Depends-on): Likewise.
47785         * modules/unistd (Depends-on): Likewise.
47786         * modules/wchar (Depends-on): Likewise.
47787         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
47788         * lib/stdlib.in.h (includes): Likewise.
47789         * lib/string.in.h (includes): Likewise.
47790         * lib/time.in.h (includes): Likewise.
47791         * lib/unistd.in.h (includes): Likewise.
47792         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
47793         replaced.
47794         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47795         * m4/stddef_h.m4: New file.
47796         * modules/stddef: Likewise.
47797         * lib/stddef.in.h: Likewise.
47798         * modules/stddef-tests: Likewise.
47799         * tests/test-stddef.c: Likewise.
47800         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
47801         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
47802         * doc/posix-headers/locale.texi (locale.h): Likewise.
47803         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
47804         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
47805         * doc/posix-headers/string.texi (string.h): Likewise.
47806         * doc/posix-headers/time.texi (time.h): Likewise.
47807         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
47808         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
47809
47810 2009-08-14  Eric Blake  <ebb9@byu.net>
47811
47812         doc: improve git diff of texinfo files
47813         * .gitattributes: Add rule for *.texi files, with hint on how to
47814         use it.
47815         Copied from m4, and based on a report by Bruno Haible.
47816
47817 2009-08-14  Bruno Haible  <bruno@clisp.org>
47818
47819         Disable multithread support by default on Cygwin 1.5.x for real.
47820         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
47821
47822 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47823
47824         update-copyright: much ado about intervals
47825         * build-aux/update-copyright: Implement and document
47826         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
47827         of copyright year intervals.
47828         Also, document UPDATE_COPYRIGHT_YEAR.
47829         * tests/test-update-copyright.sh: Test it.
47830
47831         update-copyright: convert 2-digit to 4-digit years
47832         * build-aux/update-copyright: Implement and document.
47833         * tests/test-update-copyright.sh: Update.
47834
47835 2009-08-14  Jim Meyering  <meyering@redhat.com>
47836
47837         test-exclude: avoid coreutils "make check" failure
47838         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
47839         just as in test-argmatch.c.
47840
47841 2009-08-13  Eric Blake  <ebb9@byu.net>
47842
47843         test-dup2: fix bad assumption
47844         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
47845         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
47846
47847         test-version-etc: fix CRLF portability issue
47848         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
47849         recognize \r.
47850         * tests/test-argp-version-etc-1.sh: Likewise.
47851
47852         getopt: update client modules
47853         * modules/argp (Depends-on): Use getopt-gnu.
47854         * modules/git-merge-changelog (Depends-on): Likewise.
47855         * modules/long-options (Depends-on): Likewise.
47856         * modules/xstrtol (Depends-on): Likewise.
47857
47858 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47859
47860         * tests/test-version-etc.sh: Don't fail on different
47861         project/version.  Don't fail on CRLF differences.  Rewrite to use
47862         multiple -e instead of multiple sed forks, suggested by Eric Blake
47863         <ebb9@byu.net>.
47864         * tests/test-argp-version-etc-1.sh: Likewise.
47865
47866 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47867
47868         * tests/test-version-etc.sh: Don't fail on different
47869         project/version.
47870
47871 2009-08-12  Bruno Haible  <bruno@clisp.org>
47872
47873         Tests for modules 'getopt-posix', 'getopt-gnu'.
47874         * modules/getopt-posix-tests: New file.
47875         * tests/test-getopt.c: New file.
47876         * tests/test-getopt.h: New file.
47877         * tests/test-getopt_long.h: New file.
47878
47879         New modules 'getopt-posix', 'getopt-gnu'.
47880         * modules/getopt-gnu: New file, renamed from modules/getopt.
47881         * modules/getopt-posix: New file.
47882         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
47883         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
47884         (gl_GETOPT): Remove macro.
47885         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
47886         Disable the test against BSD systems that declare optreset. Test
47887         against mingw bug. Test against lack of support of optional arguments
47888         on many platforms.
47889         * doc/glibc-headers/getopt.texi: Update module name and list of
47890         relevant platforms.
47891         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
47892         'getopt-gnu' and more portability problems.
47893         * NEWS: Mention the changes.
47894
47895 2009-08-12  Bruno Haible  <bruno@clisp.org>
47896
47897         Ensure that optarg etc. get declared by <unistd.h>.
47898         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
47899         AC_USE_SYSTEM_EXTENSIONS.
47900         * modules/getopt (Depends-on): Add 'extensions'.
47901
47902 2009-08-12  Bruno Haible  <bruno@clisp.org>
47903
47904         Avoid test link errors.
47905         * modules/pipe-filter-ii-tests (Makefile.am): Define
47906         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
47907         * modules/pipe-filter-gi-tests (Makefile.am): Define
47908         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
47909         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47910
47911 2009-08-12  Bruno Haible  <bruno@clisp.org>
47912
47913         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
47914         gl_GETOPT_SUBSTITUTE before.
47915         (gl_GETOPT): Use it.
47916         * m4/argp.m4 (gl_ARGP): Update.
47917         Reported by Sergey Poznyakoff.
47918
47919         * m4/getopt.m4: Reorder macros.
47920         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
47921         (gl_GETOPT_SUBSTITUTE): Remove macro.
47922
47923 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47924
47925         Minor improvement in gitlog-to-changelog
47926
47927         * build-aux/gitlog-to-changelog: New option `--format' makes
47928         output format string configurable.
47929
47930 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47931
47932         Optimize exclude: use hash tables for non-wildcard patterns.
47933
47934         * lib/exclude.c: Include hash.h and mbuiter.h
47935         (struct exclude_pattern, exclude_segment): New data types.
47936         (struct exclude): Rewrite.
47937         (fnmatch_pattern_has_wildcards): New function.
47938         (new_exclude_segment, free_exclude_segment): New functions.
47939         (excluded_file_pattern_p, excluded_file_name_p): New functions.
47940         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
47941         * lib/exclude.h (is_fnmatch_pattern): New prototype.
47942         * modules/exclude: Depend on hash and mbuiter.
47943
47944         * modules/exclude-tests: New file.
47945         * tests/test-exclude.c: New file.
47946         * tests/test-exclude1.sh: New file.
47947         * tests/test-exclude2.sh: New file.
47948         * tests/test-exclude3.sh: New file.
47949         * tests/test-exclude4.sh: New file.
47950         * tests/test-exclude5.sh: New file.
47951         * tests/test-exclude6.sh: New file.
47952         * tests/test-exclude7.sh: New file.
47953
47954 2009-08-12  Bruno Haible  <bruno@clisp.org>
47955
47956         Ensure that getopt() gets declared by <unistd.h>.
47957         * lib/unistd.in.h: Conditionally include getopt.h.
47958         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
47959         Set GNULIB_UNISTD_H_GETOPT.
47960         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47961         GNULIB_UNISTD_H_GETOPT.
47962         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
47963
47964 2009-08-12  Bruno Haible  <bruno@clisp.org>
47965
47966         Clarify logic.
47967         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
47968         gl_replace_getopt instead of GETOPT_H.
47969
47970 2009-08-12  Bruno Haible  <bruno@clisp.org>
47971
47972         * m4/getopt.m4: Add comments.
47973
47974 2009-08-12  Bruno Haible  <bruno@clisp.org>
47975
47976         Disable multithread support by default on Cygwin 1.5.x.
47977         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
47978         set gl_use_threads=no if not specified otherwise.
47979
47980 2009-08-11  Bruno Haible  <bruno@clisp.org>
47981
47982         Avoid compilation error on NetBSD 5.0.
47983         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
47984         * tests/test-stdio.c: Likewise.
47985         * tests/test-stdlib.c: Likewise.
47986         * tests/test-string.c: Likewise.
47987         * tests/test-unistd.c: Likewise.
47988         Reported by Greg Troxel <gdt@ir.bbn.com>
47989         at <https://savannah.gnu.org/support/?106973>.
47990
47991 2009-08-11  Bruno Haible  <bruno@clisp.org>
47992
47993         * modules/dup2-tests (Depends-on): Remove close.
47994
47995         Undo 2009-07-19 commit.
47996         * modules/acl-tests (Depends-on): Remove close.
47997         * modules/binary-io-tests (Depends-on): Likewise.
47998         * modules/closein-tests (Depends-on): Likewise.
47999         * modules/flock-tests (Depends-on): Likewise.
48000         * modules/fsync-tests (Depends-on): Likewise.
48001         * modules/lseek-tests (Depends-on): Likewise.
48002         * modules/pipe-tests (Depends-on): Likewise.
48003         * modules/posix_spawn-tests (Depends-on): Likewise.
48004         * modules/posix_spawnp-tests (Depends-on): Likewise.
48005         * modules/stat-time-tests (Depends-on): Likewise.
48006         * modules/yesno-tests (Depends-on): Likewise.
48007
48008 2009-08-10  Bruno Haible  <bruno@clisp.org>
48009
48010         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
48011
48012 2009-08-10  Bruno Haible  <bruno@clisp.org>
48013
48014         Fix a gcc warning.
48015         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
48016
48017 2009-08-10  Bruno Haible  <bruno@clisp.org>
48018
48019         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
48020         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
48021         not only the first time.
48022         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
48023         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
48024         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
48025         is 1, not only the the first time.
48026
48027 2009-08-10  Bruno Haible  <bruno@clisp.org>
48028
48029         Make it possible to use module 'gethostname' without module 'close'.
48030         * lib/unistd.in.h (close): Evoke a link error only if
48031         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48033         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48034         * modules/unistd (Makefile.am): Substitute
48035         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48036         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
48037         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48038         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
48039         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48040         * modules/sys_ioctl (Makefile.am): Substitute
48041         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48042         * modules/socket (configure.ac): On native Windows, set
48043         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
48044         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48045         Reported by Sam Steingold <sds@gnu.org>.
48046
48047 2009-08-10  Bruno Haible  <bruno@clisp.org>
48048
48049         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
48050         * modules/ioctl (configure.ac): Likewise.
48051
48052 2009-08-10  Bruno Haible  <bruno@clisp.org>
48053
48054         Avoid collision between gnulib wrapper and libintl wrapper.
48055         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
48056         already defined in intl/printf.c.
48057         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
48058         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
48059
48060 2009-08-09  Bruno Haible  <bruno@clisp.org>
48061
48062         Make <sys/select.h> really self-contained, also on Solaris 10.
48063         * lib/sys_select.in.h: Include <string.h>.
48064         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
48065         Solaris 10 problem.
48066         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
48067         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
48068         Reported by Jim Meyering.
48069
48070 2009-08-09  Bruno Haible  <bruno@clisp.org>
48071
48072         Avoid warnings from 'aclocal' that are due to a use of macro name
48073         AM_XGETTEXT_OPTION that is not defined in automake.
48074         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
48075         automake.
48076         * modules/error (configure.ac): Likewise.
48077         * modules/propername (configure.ac): Likewise.
48078         * modules/vasprintf (configure.ac): Likewise.
48079         * modules/verror (configure.ac): Likewise.
48080         * modules/xprintf (configure.ac): Likewise.
48081         * modules/xvasprintf (configure.ac): Likewise.
48082
48083 2009-08-08  Bruno Haible  <bruno@clisp.org>
48084
48085         Avoid compilation error in C++ mode.
48086         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
48087         Reported by Sam Steingold <sds@gnu.org>.
48088
48089 2009-08-08  Bruno Haible  <bruno@clisp.org>
48090
48091         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
48092         for the various Unix platforms.
48093         * doc/posix-headers/limits.texi: Update platforms list regarding
48094         HOST_NAME_MAX.
48095         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48096
48097 2009-08-07  Jim Meyering  <meyering@redhat.com>
48098
48099         selinux-at: fix typo in a comment
48100         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
48101         Spotted by Paolo Bonzini.
48102
48103         selinux-at: remove redundant m4 code, add documentation
48104         * modules/selinux-at (configure.ac): Remove redundant code.
48105         LIB_SELINUX is already set via the dependent module, selinux-h.
48106         (Include): Add quotes around selinux-at.h.
48107         * lib/selinux-at.h: Add documentation.
48108         Reported by Bruno Haible in
48109         http://marc.info/?l=gnulib-bug&m=124958988300749
48110
48111 2009-08-07  Bruno Haible  <bruno@clisp.org>
48112
48113         Avoid link error on MacOS X 10.3 and 10.4.
48114         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
48115         on non-ELF systems.
48116         * lib/argp-pv.c (argp_program_version): Likewise.
48117         Reported by Simon Josefsson.
48118
48119 2009-08-07  Simon Josefsson  <simon@josefsson.org>
48120
48121         * tests/test-version-etc.sh: Use $EXEEXT.
48122
48123 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
48124
48125         update-copyright: update documentation to point to maint.mk
48126         * build-aux/update-copyright: Here.
48127
48128 2009-08-06  Jim Meyering  <meyering@redhat.com>
48129
48130         maint.mk: support update-copyright-local
48131         * top/maint.mk (update-copyright-local): Define place-holder.
48132         (update-copyright): Depend on $(update-copyright-local).
48133
48134 2009-08-06  Jim Meyering  <meyering@redhat.com>
48135
48136         selinux-at: new module
48137         Initially written for coreutils, this module will soon be
48138         used by findutils, too.
48139         * MODULES.html.sh [Misc]: Add selinux-at.
48140         * lib/selinux-at.h: New file, from coreutils.
48141         * lib/selinux-at.c: Likewise.
48142         * modules/selinux-at: Likewise.
48143         (License): Change from LGPL to GPL, since it depends
48144         on the GPL'd openat module.
48145
48146         doc: update README
48147         * README: Remove references to cogito.
48148         Remove cvs-repo-updating instructions from 2007.
48149         Don't imply that CVS is better if you have limited disk space.
48150
48151 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48152
48153         update-copyright: support C-style comments
48154         * build-aux/update-copyright: Implement and document.
48155         * tests/test-update-copyright.sh: Test.
48156
48157 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48158
48159         update-copyright: support omitted "(C)"
48160         * build-aux/update-copyright: Implement and document.  Also,
48161         allow variable whitespace before "(C)".
48162         * tests/test-update-copyright.sh: Test.
48163
48164 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48165
48166         update-copyright: don't trip on non-FSF copyright statements
48167         * build-aux/update-copyright: Fix so that the first correctly
48168         formatted FSF copyright statement is recognized no matter what
48169         appears before it.  Update documentation.
48170         * tests/test-update-copyright.sh: Test that.
48171
48172 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48173
48174         update-copyright: clean up code a little
48175         * build-aux/update-copyright: Append "_re" to the name of any
48176         variable holding a regular expression.
48177         Replace "old" and "new" with "stmt" in variable names.
48178         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
48179         handled correctly.
48180         Format code more consistently.
48181
48182 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48183
48184         update-copyright-tests: improve portability
48185         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
48186         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
48187
48188 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48189
48190         update-copyright: support @copyright{} and &copy;
48191         * build-aux/update-copyright: Implement and document.
48192         * tests/test-update-copyright.sh: Test.
48193
48194 2009-08-04  Jim Meyering  <meyering@redhat.com>
48195
48196         update-copyright-tests: correctly test EOL=\r\n handling
48197         * tests/test-update-copyright.sh: Put \r at the end of some lines
48198         for the dos-eol tests.  Based on a patch by Joel E. Denny.
48199
48200         maint.mk: make update-copyright exclusion list more configurable
48201         * top/maint.mk (update-copyright): Default to excluding COPYING,
48202         but allow an override, in case someone does want to update that file.
48203
48204         maint.mk: don't update copyright date in COPYING
48205         * top/maint.mk (update-copyright): Exclude COPYING.
48206
48207         maint.mk: add a copyright-updating rule
48208         * top/maint.mk (update-copyright): New rule.
48209         Derived from coreutils/Makefile.am.
48210
48211         update-copyright: rename some variables
48212         * build-aux/update-copyright: Rename a few variables for clarity.
48213         Tweak syntax.  List Joel E. Denny as coauthor.
48214
48215 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48216
48217         update-copyright: fix bug for 2-digit last year and add tests
48218         * build-aux/update-copyright: Fix bug.
48219         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
48220         specified.
48221         * modules/update-copyright-tests: New
48222         * tests/test-update-copyright.sh: New.
48223
48224 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48225
48226         update-copyright: handle leading tabs in line prefix
48227         * build-aux/update-copyright: Count leading tabs as 8 spaces
48228         when computing margin.  This helps with the formatting of
48229         ChangeLogs, for example.
48230         Fix documentation a little.
48231
48232 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48233
48234         update-copyright: support EOL=\r\n
48235         * build-aux/update-copyright: Implement that.
48236
48237 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48238
48239         update-copyright: automatically format copyright statements
48240         * build-aux/update-copyright: Implement that.
48241         Also, be a little more predictable and safer by always failing
48242         when the full copyright format is not perfectly recognized as an
48243         unbroken whole.  Discussed at
48244         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
48245         Rewrite documentation.
48246
48247 2009-08-03  Bruno Haible  <bruno@clisp.org>
48248
48249         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
48250
48251 2009-08-02  Bruno Haible  <bruno@clisp.org>
48252
48253         Tests for module 'uname'.
48254         * modules/uname-tests: New file.
48255         * tests/test-uname.c: New file.
48256
48257         New module 'uname'.
48258         * lib/uname.c: New file.
48259         * m4/uname.m4: New file.
48260         * modules/uname: New file.
48261         * doc/posix-functions/uname.texi: Mention the new module.
48262
48263 2009-08-02  Bruno Haible  <bruno@clisp.org>
48264
48265         Tests for module 'sys_utsname'.
48266         * modules/sys_utsname-tests: New file.
48267         * tests/test-sys_utsname.c: New file.
48268
48269         New module 'sys_utsname'.
48270         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
48271         * m4/sys_utsname_h.m4: New file.
48272         * modules/sys_utsname: New file.
48273         * doc/posix-headers/sys_utsname.texi: Mention the new module.
48274
48275 2009-08-02  Bruno Haible  <bruno@clisp.org>
48276
48277         Implicitly initialize the sockets library.
48278         * lib/gethostname.c: Include sockets.h.
48279         (rpl_gethostname): Invoke gl_sockets_startup.
48280         * lib/socket.c: Include sockets.h.
48281         (rpl_socket): Invoke gl_sockets_startup.
48282         * modules/gethostname (Depends-on): Add sockets.
48283         * modules/socket (Depends-on): Likewise.
48284         * tests/test-poll.c: Don't include sockets.h.
48285         (main): Don't invoke gl_sockets_startup.
48286         * tests/test-select.c: Don't include sockets.h.
48287         (main): Don't invoke gl_sockets_startup.
48288
48289 2009-08-02  Bruno Haible  <bruno@clisp.org>
48290
48291         Allow multiple calls to gl_sockets_startup.
48292         * lib/sockets.c (initialized_sockets_version): New variable.
48293         (gl_sockets_startup): Do nothing if already called for this or a higher
48294         version.
48295         (gl_sockets_cleanup): Reset initialized_sockets_version.
48296
48297 2009-08-03  Simon Josefsson  <simon@josefsson.org>
48298
48299         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
48300         different project/version.
48301
48302 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
48303             Bruno Haible  <bruno@clisp.org>
48304
48305         Tests for module 'pipe-filter-gi'.
48306         * modules/pipe-filter-gi-tests: New file.
48307         * tests/test-pipe-filter-gi1.sh: New file.
48308         * tests/test-pipe-filter-gi1.c: New file.
48309         * tests/test-pipe-filter-gi2.sh: New file.
48310         * tests/test-pipe-filter-gi2-main.c: New file.
48311         * tests/test-pipe-filter-gi2-child.c: New file.
48312
48313         New module 'pipe-filter-gi'.
48314         * lib/pipe-filter-gi.c: New file.
48315         * modules/pipe-filter-gi: New file.
48316
48317 2009-08-02  Bruno Haible  <bruno@clisp.org>
48318             Paolo Bonzini  <bonzini@gnu.org>
48319
48320         Tests for module 'pipe-filter-ii'.
48321         * modules/pipe-filter-ii-tests: New file.
48322         * tests/test-pipe-filter-ii1.sh: New file.
48323         * tests/test-pipe-filter-ii1.c: New file.
48324         * tests/test-pipe-filter-ii2.sh: New file.
48325         * tests/test-pipe-filter-ii2-main.c: New file.
48326         * tests/test-pipe-filter-ii2-child.c: New file.
48327
48328         New module 'pipe-filter-ii'.
48329         * lib/pipe-filter.h: New file.
48330         * lib/pipe-filter-ii.c: New file.
48331         * lib/pipe-filter-aux.h: New file.
48332         * modules/pipe-filter-ii: New file.
48333
48334 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48335
48336         * lib/gc-libgcrypt.c: Change copyright to FSF.
48337         * lib/gc-gnulib.c: Likewise.
48338
48339 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
48340
48341         * lib/gethostname.c: Include limits.h.
48342
48343 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48344             Bruno Haible  <bruno@clisp.org>
48345
48346         Ensure HOST_NAME_MAX as part of the gethostname module.
48347         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
48348         define also HOST_NAME_MAX.
48349         * tests/test-gethostname.c: Include <limits.h>.
48350         (main): Check also HOST_NAME_MAX.
48351         * doc/posix-headers/limits.texi: Document the mingw problem.
48352
48353 2009-08-02  Bruno Haible  <bruno@clisp.org>
48354
48355         * lib/gethostname.c (gethostname): Fix handling of large len argument.
48356         Add comments.
48357
48358 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48359
48360         * lib/gethostname.c: Add Windows wrapper.
48361         * m4/gethostname.m4: Look for gethostname in -lws2_32.
48362         * modules/gethostname: Depend on sys_socket & errno, for also
48363         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
48364         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
48365
48366 2009-07-31  Jim Meyering  <meyering@redhat.com>
48367
48368         getloadavg: fix symbol name in comment
48369         * lib/getloadavg.c: Correct a typo I introduced when adding
48370         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
48371         Matt Kraai spotted the problem.
48372
48373 2009-07-29  Matt Kraai  <mkraai@beckman.com>
48374
48375         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
48376         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
48377         code also if ! defined N_NAME_POINTER.
48378         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
48379         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
48380         but the n_name member is a 12-byte array.
48381
48382 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
48383
48384         update-copyright: generalize comment handling
48385         * build-aux/update-copyright: Handle copyright statements
48386         within more comment styles.
48387         Document usage.
48388         Report any file with an external copyright holder or parse failure.
48389
48390 2009-07-29  Jim Meyering  <meyering@redhat.com>
48391
48392         mktime: correct setting of REPLACE_MKTIME
48393         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
48394
48395         update-copyright: new module
48396         * modules/update-copyright: New file.
48397         * build-aux/update-copyright: New file.
48398         * MODULES.html.sh (maint+release support): Add update-copyright.
48399
48400 2009-07-27  Bruno Haible  <bruno@clisp.org>
48401
48402         Fix compilation error when <ctime> is used and mktime is replaced.
48403         * lib/time.in.h (mktime): New declaration.
48404         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
48405         REPLACE_MKTIME instead of defining mktime in config.h.
48406         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
48407         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
48408         Reported by Ross McFarland <rwmcfa1@neces.com>.
48409
48410 2009-07-27  Bruno Haible  <bruno@clisp.org>
48411
48412         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
48413         Reported by Matt Kraai <mkraai@beckman.com>.
48414
48415 2009-07-25  Jim Meyering  <meyering@redhat.com>
48416
48417         maint.mk: avoid warnings about missing files
48418         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
48419         diagnostic when .prev-version does not exist.
48420         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
48421         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
48422         nonexistent cfg.mk.
48423         Suggestions from Simon Josefsson.
48424
48425 2009-07-25  Bruno Haible  <bruno@clisp.org>
48426
48427         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
48428         defined as macros. Needed on QNX 6.4.1.
48429         Reported by Matt Kraai <mkraai@beckman.com>.
48430
48431 2009-07-23  Jim Meyering  <meyering@redhat.com>
48432
48433         maint.mk: invoke "make dist" with a working value of XZ_OPT
48434         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
48435
48436 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
48437
48438         Make fseeko.c compile on QNX.
48439         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
48440
48441 2009-07-22  Peter Simons  <simons@cryp.to>
48442
48443         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
48444         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
48445         * lib/md4.h: Likewise.
48446         * lib/md5.h: Likewise.
48447         * lib/sha1.h: Likewise.
48448         * lib/sha256.h: Likewise.
48449         * lib/sha512.h: Likewise.
48450
48451         tests-sha1: don't assign literal string to 'char *' variable
48452         * tests/test-sha1.c (main): Declare locals with "const" to match
48453         attributes of the right hand side.
48454
48455 2009-07-21  Eric Blake  <ebb9@byu.net>
48456
48457         dup2: fix more mingw problems
48458         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
48459         fd to itself.
48460         * doc/posix-functions/dup2.texi (dup2): Document the bug.
48461         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
48462         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
48463         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
48464         care of mingw bugs.
48465
48466 2009-07-21  Jim Meyering  <meyering@redhat.com>
48467
48468         vc-list-files: avoid failure when /bin/sh is dash
48469         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
48470         On some Debian based systems, /bin/sh is a symlink to dash, and running
48471         this command would omit the "/" following each 'tests' prefix:
48472           dash -x build-aux/vc-list-files -C . tests
48473         That is because bash and dash work differently:
48474           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
48475           bash ok
48476           dash odd
48477
48478 2009-07-21  Eric Blake  <ebb9@byu.net>
48479
48480         dup2-tests: test previous patch
48481         * modules/dup2-tests: New file.
48482         * tests/test-dup2.c: Likewise.
48483         * tests/test-open.c (main): Avoid unspecified behavior.
48484         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
48485         test.
48486
48487         dup2: work around mingw and cygwin 1.5 bug
48488         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
48489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
48490         * modules/unistd (Makefile.am): Substitute it.
48491         * lib/unistd.in.h (dup2): Declare the replacement.
48492         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
48493         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
48494         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
48495         * modules/execute (Depends-on): Add dup2.
48496         * modules/fseterr (Depends-on): Likewise.
48497         * modules/pipe (Depends-on): Likewise.
48498         * modules/posix_spawn-internal (Depends-on): Likewise.
48499
48500 2009-07-21  Bruno Haible  <bruno@clisp.org>
48501
48502         * modules/.gitattributes: New file.
48503
48504 2009-07-20  Bruno Haible  <bruno@clisp.org>
48505
48506         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
48507         (main): Use it.
48508
48509 2009-07-20  Eric Blake  <ebb9@byu.net>
48510
48511         test-pipe: make a bit more robust.
48512         * tests/test-pipe.c (myerr): Allow error messages regardless of
48513         what we do to stderr.
48514         (test_pipe): Rearrange to avoid deadlock.
48515         (child_main): Try a larger read, to ensure we avoided deadlock.
48516         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
48517         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
48518         if misused.
48519
48520 2009-07-19  Jim Meyering  <meyering@redhat.com>
48521
48522         fts: avoid false-positive cycle-detection
48523         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
48524         for each new command line argument.
48525
48526 2009-07-19  Bruno Haible  <bruno@clisp.org>
48527
48528         Fix build error on mingw with the modules sys_select and unistd.
48529         * modules/acl-tests (Depends-on): Add close.
48530         * modules/binary-io-tests (Depends-on): Likewise.
48531         * modules/closein-tests (Depends-on): Likewise.
48532         * modules/flock-tests (Depends-on): Likewise.
48533         * modules/fsync-tests (Depends-on): Likewise.
48534         * modules/lseek-tests (Depends-on): Likewise.
48535         * modules/pipe-tests (Depends-on): Likewise.
48536         * modules/posix_spawn-tests (Depends-on): Likewise.
48537         * modules/posix_spawnp-tests (Depends-on): Likewise.
48538         * modules/stat-time-tests (Depends-on): Likewise.
48539         * modules/yesno-tests (Depends-on): Likewise.
48540
48541 2009-07-19  Bruno Haible  <bruno@clisp.org>
48542
48543         Unify conditionals.
48544         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
48545         macros, not at the compiler macros.
48546         * lib/pipe.c: Likewise.
48547         * lib/execute.c: Likewise.
48548         * lib/spawni.c: Likewise.
48549
48550 2009-07-19  Bruno Haible  <bruno@clisp.org>
48551
48552         Fix handling of closed stdin/stdout/stderr on mingw.
48553         * lib/w32spawn.h: Include unistd.h.
48554         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
48555         file descriptor with O_NOINHERIT flag.
48556         (fd_safer_noinherit): New function, based on fd-safer.c.
48557         (dup_safer_noinherit): New function, based on dup-safer.c.
48558         (undup_safer_noinherit): New function.
48559         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
48560         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
48561         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
48562         instead of fd_safer.
48563         * tests/test-pipe.c: Include <windows.h>.
48564         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
48565         result.
48566
48567         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
48568         from main.
48569         (test_pipe): Pass an extra argument for disambiguation.
48570         (main): Invoke parent_main or child_main.
48571
48572         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
48573         consistently.
48574
48575 2009-07-18  Eric Blake  <ebb9@byu.net>
48576
48577         test-pipe: fix mingw build
48578         * tests/test-pipe.c (main): Avoid fcntl on mingw.
48579
48580 2009-07-18  Bruno Haible  <bruno@clisp.org>
48581
48582         * modules/pipe-tests (Makefile.am): Fix typo.
48583
48584 2009-07-18  Eric Blake  <ebb9@byu.net>
48585
48586         error: fix mingw build
48587         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
48588         Reported by Bruno Haible.
48589
48590         error: avoid undefined use of stdout
48591         * lib/error.c (error, error_at_line): Check that fd 1 is open
48592         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
48593         is handling faults and the close_stdout module wants to report the
48594         detection of closed stdout as an error.
48595
48596 2009-07-17  Eric Blake  <ebb9@byu.net>
48597
48598         pipe: be robust in face of closed fds
48599         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
48600         should cause child to misbehave.
48601         * modules/pipe-tests: New module.
48602         * tests/test-pipe.c: New file.
48603         * tests/test-pipe.sh: New file.
48604         Reported by Akim Demaille.
48605
48606 2009-07-14  Bruno Haible  <bruno@clisp.org>
48607
48608         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
48609         Reported by anonymous kc.
48610
48611 2009-07-07  Jim Meyering  <meyering@redhat.com>
48612
48613         maint.mk: don't look for translatable strings in *.m4 or *.mk
48614         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
48615         when searching for translatable strings.
48616
48617 2009-07-05  Jim Meyering  <meyering@redhat.com>
48618
48619         remove superfluous parentheses in STREQ definition
48620         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
48621         * lib/getugroups.c (STREQ): Likewise.
48622         * lib/fnmatch.c (STREQ): Likewise.
48623         Spotted by Bruno Haible.
48624
48625 2009-07-04  Jim Meyering  <meyering@redhat.com>
48626
48627         argv-iter: new module
48628         * MODULES.html.sh: Add argv-iter.
48629         * lib/argv-iter.c, lib/argv-iter.h: New files.
48630         * modules/argv-iter: New file.
48631         * modules/argv-iter-tests: New file.
48632         * tests/test-argv-iter.c: Test it.
48633
48634 2009-07-04  Bruno Haible  <bruno@clisp.org>
48635
48636         Fix assertion.
48637         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
48638         contains more exact copies of a given entry than file2, leave the extra
48639         copies unpaired rather than aborting.
48640         Reported by Eric Blake.
48641
48642 2009-07-02  Bruno Haible  <bruno@clisp.org>
48643
48644         Speedup git-merge-changelog for git cherry-pick.
48645         * lib/git-merge-changelog.c (struct entries_mapping): New type.
48646         (entries_mapping_get): New function, extracted from compute_mapping.
48647         (entries_mapping_reverse_get): New function.
48648         (compute_mapping): Add a 'full' argument. Return the result in a
48649         'struct entries_mapping'.
48650         (main): Update. Access the mappings through entries_mapping_get.
48651         Reported by Eric Blake.
48652
48653 2009-07-02  Bruno Haible  <bruno@clisp.org>
48654
48655         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
48656         best_i.
48657
48658 2009-07-02  Bruno Haible  <bruno@clisp.org>
48659
48660         Speed up approximate search for matching ChangeLog entries.
48661         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
48662         argument. Call fstrcmp_bounded instead of fstrcmp.
48663         (compute_mapping, try_split_merged_entry, main): Update callers.
48664
48665 2009-07-02  Bruno Haible  <bruno@clisp.org>
48666
48667         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
48668
48669 2009-06-30  Bruno Haible  <bruno@clisp.org>
48670
48671         Reduce the number of uc_is_cased calls.
48672         * lib/unicase.h (casing_suffix_context_t): Add
48673         'first_char_except_ignorable' field.
48674         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
48675         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
48676         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
48677         Update initializer.
48678         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
48679         case-ignorable characters.
48680         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
48681         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
48682         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
48683         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
48684         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
48685
48686 2009-06-30  Bruno Haible  <bruno@clisp.org>
48687
48688         Tests for module 'unicase/ignorable'.
48689         * modules/unicase/ignorable-tests: New file.
48690         * tests/unicase/test-ignorable.c: New file, generated by
48691         gen-uni-tables.
48692
48693         Tests for module 'unicase/cased'.
48694         * modules/unicase/cased-tests: New file.
48695         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
48696         * tests/unicase/test-predicate-part1.h: New file, derived from
48697         tests/unictype/test-predicate-part1.h.
48698         * tests/unicase/test-predicate-part2.h: New file, same as
48699         tests/unictype/test-predicate-part2.h.
48700
48701         Fix evaluation of "Before C" condition of FINAL_SIGMA.
48702         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
48703         (output_casing_properties): New function.
48704         (main): Call it.
48705         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
48706         * lib/unicase/cased.c: Include unictype/bitmap.h.
48707         (uc_is_cased): Define through a bitmap lookup.
48708         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
48709         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
48710         (uc_is_case_ignorable): Define through a bitmap lookup.
48711         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
48712         lib/unictype/bitmap.h.
48713         (Depends-on): Add inline. Clean up.
48714         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
48715         lib/unictype/bitmap.h.
48716         (Depends-on): Add inline. Clean up.
48717         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
48718         recognition.
48719         * tests/unicase/test-u16-tolower.c (main): Likewise.
48720         * tests/unicase/test-u32-tolower.c (main): Likewise.
48721
48722 2009-06-30  Bruno Haible  <bruno@clisp.org>
48723
48724         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
48725         * lib/unicase/u16-casemap.c: Likewise.
48726         * lib/unicase/u32-casemap.c: Likewise.
48727
48728 2009-06-29  Bruno Haible  <bruno@clisp.org>
48729
48730         Define u32_casefold as a wrapper around u32_ct_casefold.
48731         * lib/unicase/u32-casefold.c: Update.
48732         * modules/unicase/u32-casefold (Depends-on): Add
48733         unicase/u32-ct-casefold, unicase/empty-prefix-context,
48734         unicase/empty-suffix-context. Clean up.
48735
48736         Define u16_casefold as a wrapper around u16_ct_casefold.
48737         * lib/unicase/u16-casefold.c: Update.
48738         * modules/unicase/u16-casefold (Depends-on): Add
48739         unicase/u16-ct-casefold, unicase/empty-prefix-context,
48740         unicase/empty-suffix-context. Clean up.
48741
48742         Define u8_casefold as a wrapper around u8_ct_casefold.
48743         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
48744         * lib/unicase/u8-casefold.c: Update.
48745         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
48746         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48747
48748         Define u32_totitle as a wrapper around u32_ct_totitle.
48749         * lib/unicase/u32-totitle.c: Update.
48750         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
48751         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48752
48753         Define u16_totitle as a wrapper around u16_ct_totitle.
48754         * lib/unicase/u16-totitle.c: Update.
48755         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
48756         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48757
48758         Define u8_totitle as a wrapper around u8_ct_totitle.
48759         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
48760         functions.
48761         (FUNC): Delegate to U_CT_TOTITLE.
48762         * lib/unicase/u8-totitle.c: Update.
48763         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
48764         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48765
48766         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
48767         invocation.
48768         * modules/unicase/u32-tolower (Depends-on): Add
48769         unicase/empty-prefix-context, unicase/empty-suffix-context.
48770
48771         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
48772         invocation.
48773         * modules/unicase/u16-tolower (Depends-on): Add
48774         unicase/empty-prefix-context, unicase/empty-suffix-context.
48775
48776         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
48777         * modules/unicase/u8-tolower (Depends-on): Add
48778         unicase/empty-prefix-context, unicase/empty-suffix-context.
48779
48780         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
48781         invocation.
48782         * modules/unicase/u32-toupper (Depends-on): Add
48783         unicase/empty-prefix-context, unicase/empty-suffix-context.
48784
48785         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
48786         invocation.
48787         * modules/unicase/u16-toupper (Depends-on): Add
48788         unicase/empty-prefix-context, unicase/empty-suffix-context.
48789
48790         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
48791         * modules/unicase/u8-toupper (Depends-on): Add
48792         unicase/empty-prefix-context, unicase/empty-suffix-context.
48793
48794         New module 'unicase/u32-ct-casefold'.
48795         * lib/unicase/u32-ct-casefold.c: New file.
48796         * modules/unicase/u32-ct-casefold: New file.
48797
48798         New module 'unicase/u16-ct-casefold'.
48799         * lib/unicase/u16-ct-casefold.c: New file.
48800         * modules/unicase/u16-ct-casefold: New file.
48801
48802         New module 'unicase/u8-ct-casefold'.
48803         * lib/unicase/u8-ct-casefold.c: New file.
48804         * lib/unicase/u-ct-casefold.h: New file, derived from
48805         lib/unicase/u-casefold.h.
48806         * modules/unicase/u8-ct-casefold: New file.
48807
48808         New module 'unicase/u32-ct-totitle'.
48809         * lib/unicase/u32-ct-totitle.c: New file.
48810         * modules/unicase/u32-ct-totitle: New file.
48811
48812         New module 'unicase/u16-ct-totitle'.
48813         * lib/unicase/u16-ct-totitle.c: New file.
48814         * modules/unicase/u16-ct-totitle: New file.
48815
48816         New module 'unicase/u8-ct-totitle'.
48817         * lib/unicase/u8-ct-totitle.c: New file.
48818         * lib/unicase/u-ct-totitle.h: New file, derived from
48819         lib/unicase/u-totitle.h.
48820         * modules/unicase/u8-ct-totitle: New file.
48821
48822         New module 'unicase/u32-ct-tolower'.
48823         * lib/unicase/u32-ct-tolower.c: New file.
48824         * modules/unicase/u32-ct-tolower: New file.
48825
48826         New module 'unicase/u16-ct-tolower'.
48827         * lib/unicase/u16-ct-tolower.c: New file.
48828         * modules/unicase/u16-ct-tolower: New file.
48829
48830         New module 'unicase/u8-ct-tolower'.
48831         * lib/unicase/u8-ct-tolower.c: New file.
48832         * modules/unicase/u8-ct-tolower: New file.
48833
48834         New module 'unicase/u32-ct-toupper'.
48835         * lib/unicase/u32-ct-toupper.c: New file.
48836         * modules/unicase/u32-ct-toupper: New file.
48837
48838         New module 'unicase/u16-ct-toupper'.
48839         * lib/unicase/u16-ct-toupper.c: New file.
48840         * modules/unicase/u16-ct-toupper: New file.
48841
48842         New module 'unicase/u8-ct-toupper'.
48843         * lib/unicase/u8-ct-toupper.c: New file.
48844         * modules/unicase/u8-ct-toupper: New file.
48845
48846         Add context arguments to u*_casemap functions.
48847         * lib/unicase/unicasemap.h: Include unicase.h.
48848         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
48849         suffix_context arguments.
48850         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
48851         functions.
48852         (FUNC): Add prefix_context and suffix_context arguments. Use
48853         uc_is_cased and uc_is_case_ignorable.
48854         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
48855         * lib/unicase/u16-casemap.c: Likewise.
48856         * lib/unicase/u32-casemap.c: Likewise.
48857         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
48858         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48859         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
48860         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48861         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
48862         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48863
48864         New module 'unicase/u32-suffix-context'.
48865         * lib/unicase/u32-suffix-context.c: New file.
48866         * modules/unicase/u32-suffix-context: New file.
48867
48868         New module 'unicase/u16-suffix-context'.
48869         * lib/unicase/u16-suffix-context.c: New file.
48870         * modules/unicase/u16-suffix-context: New file.
48871
48872         New module 'unicase/u8-suffix-context'.
48873         * lib/unicase/u8-suffix-context.c: New file.
48874         * lib/unicase/u-suffix-context.h: New file.
48875         * modules/unicase/u8-suffix-context: New file.
48876
48877         New module 'unicase/empty-suffix-context'.
48878         * lib/unicase/empty-suffix-context.c: New file.
48879         * modules/unicase/empty-suffix-context: New file.
48880
48881         New module 'unicase/u32-prefix-context'.
48882         * lib/unicase/u32-prefix-context.c: New file.
48883         * modules/unicase/u32-prefix-context: New file.
48884
48885         New module 'unicase/u16-prefix-context'.
48886         * lib/unicase/u16-prefix-context.c: New file.
48887         * modules/unicase/u16-prefix-context: New file.
48888
48889         New module 'unicase/u8-prefix-context'.
48890         * lib/unicase/u8-prefix-context.c: New file.
48891         * lib/unicase/u-prefix-context.h: New file.
48892         * lib/unicase/context.h: New file.
48893         * modules/unicase/u8-prefix-context: New file.
48894
48895         New module 'unicase/empty-prefix-context'.
48896         * lib/unicase/empty-prefix-context.c: New file.
48897         * modules/unicase/empty-prefix-context: New file.
48898
48899         New module 'unicase/ignorable'.
48900         * lib/unicase/ignorable.c: New file.
48901         * modules/unicase/ignorable: New file.
48902
48903         New module 'unicase/cased'.
48904         * lib/unicase/caseprop.h: New file.
48905         * lib/unicase/cased.c: New file.
48906         * modules/unicase/cased: New file.
48907
48908         New functions for case mapping of substrings.
48909         * lib/unicase.h (casing_prefix_context_t): New type.
48910         (unicase_empty_prefix_context): New variable.
48911         (u8_casing_prefix_context, u16_casing_prefix_context,
48912         u32_casing_prefix_context, u8_casing_prefixes_context,
48913         u16_casing_prefixes_context, u32_casing_prefixes_context): New
48914         declarations.
48915         (casing_suffix_context_t): New type.
48916         (unicase_empty_suffix_context): New variable.
48917         (u8_casing_suffix_context, u16_casing_suffix_context,
48918         u32_casing_suffix_context, u8_casing_suffixes_context,
48919         u16_casing_suffixes_context, u32_casing_suffixes_context,
48920         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
48921         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
48922         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
48923         declarations.
48924
48925 2009-06-28  Jim Meyering  <meyering@redhat.com>
48926
48927         boostrap: indent only with spaces
48928         * build-aux/bootstrap: Indent only with spaces, never TABs.
48929
48930         bootstrap: split long lines
48931         * build-aux/bootstrap: Keep line length < 80.
48932
48933         bootstrap: sync from coreutils
48934         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
48935         just as autoreconf does.  Verify a list of prerequisite
48936         package-name,version-number pairs if defined in bootstrap.conf.
48937         Refer to README-prereq, if prerequisites are not satisfied.
48938
48939 2009-06-27  Eric Blake  <ebb9@byu.net>
48940
48941         tests: add test for bogus NULL definition
48942         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
48943         * tests/test-stdlib.c: Likewise.
48944         * tests/test-string.c: Likewise.
48945         * tests/test-locale.c: Likewise.
48946         * tests/test-unistd.c: Likewise.
48947         * modules/stdio-tests (Depends-on): Add verify.
48948         * modules/stdlib-tests (Depends-on): Likewise.
48949         * modules/string-tests (Depends-on): Likewise.
48950         * modules/locale-tests (Depends-on): Likewise.
48951         * modules/unistd-tests (Depends-on): Likewise.
48952
48953 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
48954
48955         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
48956         self-explaining comment.
48957         * m4/selinux-selinux-h: Update serial.
48958         (gl_LIBSELINUX): New macro, adding a warning for missing development
48959         packages to code extracted from...
48960         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
48961         Add warning for missing development packages here, too.
48962
48963 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
48964
48965         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
48966
48967 2009-06-25  Eric Blake  <ebb9@byu.net>
48968
48969         version-etc: fix regression
48970         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
48971         gcc.
48972         (version_etc): Use it, to catch bugs with trailing NULL.
48973         * lib/version-etc.c (version_etc_arn): Delete unused argument.
48974         (version_etc_va): Fix logic bug.
48975         * modules/version-etc-tests: Add test.
48976         * tests/test-version-etc.c: New file.
48977         * tests/test-version-etc.sh: Likewise.
48978
48979 2009-06-25  Sam Steingold  <sds@gnu.org>
48980
48981         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
48982         mbtowc declaration.
48983
48984 2009-06-25  Eric Blake  <ebb9@byu.net>
48985
48986         fpurge: migrate into <stdio.h>
48987         * lib/fpurge.h: Delete...
48988         * lib/stdio.in.h (fpurge): ...and declare here, instead.
48989         * lib/fpurge.c (fpurge): Change declaring header.
48990         * modules/fpurge (Files): Drop deleted file.
48991         (Depends-on): Add stdio.
48992         (configure.ac): Set witness.
48993         * modules/stdio (Makefile.am): Support fpurge macros.
48994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48995         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
48996         * lib/fflush.c: Update client.
48997         * tests/test-fpurge.c: Likewise.
48998         * NEWS: Mention the change.
48999
49000 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49001
49002         * lib/argp-version-etc.c (program_authors): Add const
49003         qualifier.
49004         * lib/version-etc.c: Fix typos in the comments.
49005         * modules/argp-version-etc: Depends on version-etc.
49006
49007 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49008
49009         argp-version-etc: new module.
49010
49011         * lib/argp-version-etc.c: New file.
49012         * lib/argp-version-etc.h: New file.
49013         * modules/argp-version-etc: New file.
49014         * modules/argp-version-etc-tests: New file.
49015         * tests/test-argp-version-etc.c: New test.
49016         * tests/test-argp-version-etc-1.sh: New test.
49017
49018 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49019
49020         Provide additional interfaces and documentation for version-etc
49021         module.
49022
49023         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
49024         interfaces.
49025         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
49026         prototypes.
49027
49028 2009-06-24  Bruno Haible  <bruno@clisp.org>
49029
49030         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
49031         HAVE_LIB${NAME} macro.
49032         Reported by Sam Steingold <sds@gnu.org>.
49033
49034 2009-06-23  Simon Josefsson  <simon@josefsson.org>
49035
49036         * modules/hash-tests (test_hash_LDADD): Link to libintl when
49037         needed.
49038
49039 2009-06-21  Bruno Haible  <bruno@clisp.org>
49040
49041         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
49042         work.
49043         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
49044         together with LIB${NAME}, LTLIB${NAME}.
49045         Reported by Sam Steingold <sds@gnu.org>.
49046
49047 2009-06-20  Jim Meyering  <meyering@redhat.com>
49048
49049         tests: make sc_require_test_exit_idiom more generic
49050         * top/maint.mk (Exit_witness_file): New overridable variable.
49051         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
49052         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
49053
49054 2009-06-19  Jim Meyering  <meyering@redhat.com>
49055
49056         hash: reverse order of src/dst parameters in an internal interface
49057         * lib/hash.c (transfer_entries): Reverse order of parameters to
49058         put DST before SRC.  Adjust callers.
49059
49060         tests: test-hash: avoid wholesale duplication
49061         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
49062         Instead, use a loop and add a single conditional.
49063
49064         tests: test-hash: allow seed selection via a command line argument
49065         * tests/test-hash.c (get_seed): New function.
49066         (main): Use it.
49067
49068 2009-06-19  Eric Blake  <ebb9@byu.net>
49069
49070         hash: avoid memory leak on allocation failure
49071         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
49072         failure.  Factor repeated algorithm...
49073         (transfer_entries): ...into new helper routine.
49074         (hash_delete): React to hash_rehash return value.
49075
49076         hash: reduce memory pressure in hash_rehash no-op case
49077         * lib/hash.c (next_prime): Avoid overflow.
49078         (hash_initialize): Factor bucket size computation...
49079         (compute_bucket_size): ...into new helper function.
49080         (hash_rehash): Use new function and open coding to reduce memory
49081         pressure, and avoid a memory leak in USE_OBSTACK code.
49082         Reported by Jim Meyering.
49083
49084 2009-06-18  Eric Blake  <ebb9@byu.net>
49085
49086         hash: make rotation more obvious
49087         * modules/hash (Depends-on): Add bitrotate and stdint.
49088         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
49089         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
49090         (SIZE_MAX): Rely on headers for definition.
49091         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
49092         (raw_hasher): Use rotr_sz.
49093         Suggested by Jim Meyering.
49094
49095         hash: fix memory leak in last patch
49096         * lib/hash.c (hash_rehash): Avoid memory leak.
49097
49098         hash: avoid no-op rehashing
49099         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
49100
49101         hash: provide default callback functions
49102         * lib/hash.c (raw_hasher, raw_comparator): New functions.
49103         (hash_initialize): Use them as defaults.
49104         * tests/test-hash.c (main): Test this.
49105
49106         hash: minor optimization
49107         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
49108         when possible.
49109         (hash_initialize): Document this promise.
49110         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
49111         * tests/test-hash.c (hash_compare_strings): Test this.
49112
49113 2009-06-18  Bruno Haible  <bruno@clisp.org>
49114
49115         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
49116         going to be replaced anyway.
49117
49118 2009-06-18  Bruno Haible  <bruno@clisp.org>
49119
49120         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
49121         in one place.
49122         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
49123         be replaced anyway.
49124
49125 2009-06-18  Eric Blake  <ebb9@byu.net>
49126
49127         hash: check for resize before insertion
49128         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
49129         threshold before insertion, so that a pathological hash_rehash
49130         that fills every bucket can still trigger another rehash.
49131
49132 2009-06-18  Jim Meyering  <meyering@redhat.com>
49133
49134         hash-tests: add a loop around the small tests
49135         * tests/test-hash.c (main): Repeat small tests with selected
49136         small initial table sizes.
49137
49138 2009-06-17  Eric Blake  <ebb9@byu.net>
49139
49140         hash: minor cleanups
49141         * lib/hash.h (hash_entry): Make opaque, by moving...
49142         * lib/hash.c (hash_entry): ...here.
49143         (hash_insert): Clarify restrictions on what can be inserted.
49144         (hash_get_next): Clarify when it is safe to remove an element
49145         during traversal.
49146         (check_tuning): Skip verification when tuning is known safe.
49147         (hash_initialize): Clarify restrictions on tuning.
49148
49149 2009-06-17  Jim Meyering  <jim@meyering.net>
49150         and Eric Blake  <ebb9@byu.net>
49151
49152         hash-tests: new module
49153         * modules/hash-tests: New file.
49154         * tests/test-hash.c: New file.
49155
49156 2009-06-17  Eric Blake  <ebb9@byu.net>
49157
49158         strstr-simple: document new module
49159         * MODULES.html.sh: Document new module.
49160
49161         strstr, strcasestr: replace on platforms with broken memchr
49162         * modules/strstr: Split into...
49163         * modules/strstr-simple: ...new module that does not care about
49164         performance, but does care about glibc bug.
49165         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
49166         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
49167         if platform memchr is broken, per Debian bug 521737.
49168         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
49169         memchr.
49170         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
49171         * doc/posix-functions/strstr.texi (strstr): Document the fix.
49172         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49173         * modules/mountlist (Depends-on): Add strstr-simple.
49174         * modules/gen-uni-tables (Depends-on): Likewise.
49175         * modules/argz (Depends-on): Add strstr.
49176
49177 2009-06-17  Bruno Haible  <bruno@clisp.org>
49178
49179         * modules/posix_spawn-internal (Depends-on): Add errno.
49180
49181 2009-06-17  Bruno Haible  <bruno@clisp.org>
49182
49183         Define missing ESTALE on Interix 3.5.
49184         * lib/errno.in.h (ESTALE): Assign a value if missing.
49185         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
49186         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
49187         missing.
49188         * doc/posix-headers/errno.texi: Mention the Interix bug.
49189         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
49190
49191 2009-06-15  Eric Blake  <ebb9@byu.net>
49192
49193         memchr, memchr2: add valgrind exception
49194         * lib/memchr.valgrind: New file.
49195         * lib/memchr2.valgrind: New file.
49196         * modules/memchr (Files): Distribute valgrind file.
49197         * modules/memchr2 (Files): Likewise.
49198
49199         docs: memchr is no longer obsolete
49200         * MODULES.html.sh: Move memchr from obsolete to string.h section.
49201         * lib/string.in.h (memchr): Simplify logic.
49202
49203 2009-06-14  Jim Meyering  <meyering@redhat.com>
49204
49205         link-follow: fix the "checking..." message to not mention trailing slash
49206         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
49207         never considered trailing slashes.
49208
49209 2009-06-14  Bruno Haible  <bruno@clisp.org>
49210
49211         * m4/memchr.m4: Mention also the bug on IA-64.
49212         * doc/posix-functions/memchr.texi: Likewise.
49213
49214 2009-06-12  Eric Blake  <ebb9@byu.net>
49215
49216         memchr: detect broken x86_64 and alpha implementations
49217         * modules/memchr-tests (Depends-on): Move mmap detection...
49218         * modules/memchr (Depends-on): ...here.
49219         (configure.ac): Set indicator.
49220         * lib/string.in.h (memchr): Declare replacement.
49221         * modules/string (Makefile.am): Trigger replacement.
49222         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49223         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
49224         bugs.
49225         * doc/posix-functions/memchr.texi (memchr): Document the bug.
49226         * modules/getpagesize (License): Relax license.
49227
49228 2009-06-11  Bruno Haible  <bruno@clisp.org>
49229
49230         * lib/idpriv.h: Add more references.
49231
49232 2009-06-08  Bruno Haible  <bruno@clisp.org>
49233
49234         Tests for module 'idpriv-droptemp'.
49235         * modules/idpriv-droptemp-tests: New file.
49236         * tests/test-idpriv-droptemp.sh: New file.
49237         * tests/test-idpriv-droptemp.su.sh: New file.
49238         * tests/test-idpriv-droptemp.c: New file.
49239
49240         New module 'idpriv-droptemp'.
49241         * lib/idpriv-droptemp.c: New file.
49242         * modules/idpriv-droptemp: New file.
49243
49244 2009-06-08  Bruno Haible  <bruno@clisp.org>
49245
49246         Tests for module 'idpriv-drop'.
49247         * modules/idpriv-drop-tests: New file.
49248         * tests/test-idpriv-drop.sh: New file.
49249         * tests/test-idpriv-drop.su.sh: New file.
49250         * tests/test-idpriv-drop.c: New file.
49251
49252         New module 'idpriv-drop'.
49253         * lib/idpriv.h: New file.
49254         * lib-idpriv-drop.c: New file.
49255         * m4/idpriv.m4: New file.
49256         * modules/idpriv-drop: New file.
49257
49258 2009-06-08  Bruno Haible  <bruno@clisp.org>
49259
49260         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
49261         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49262         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49263         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49264         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49265         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49266         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49267
49268 2009-06-08  Eric Blake  <ebb9@byu.net>
49269
49270         test-strstr: use memory fence, when possible
49271         * tests/test-strstr.c (main): Use memory fence, in order to be
49272         more likely to trigger Debian bug 521737.
49273         * modules/strstr-tests (Files): Pull in additional files.
49274
49275         memchr: no longer obsolete, for wider field testing
49276         * modules/memchr (Status, Notice): Delete, this module is no
49277         longer obsolete.
49278         * modules/vasnprintf (Depends-on): Add memchr.
49279
49280 2009-06-07  Jim Meyering  <meyering@redhat.com>
49281
49282         hash: declare some functions with the warn_unused_result attribute
49283         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
49284
49285 2009-06-07  Bruno Haible  <bruno@clisp.org>
49286
49287         * tests/test-alignof.c: Don't test int64_t if it does not exist.
49288         Reported by Eric Blake.
49289
49290 2009-06-06  Eric Blake  <ebb9@byu.net>
49291
49292         test-alignof: fix typo with long double
49293         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
49294         compiler error.
49295
49296 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
49297
49298         Escape non-texinfo { and }s.
49299         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
49300         markup error.
49301
49302 2009-06-04  Jim Meyering  <meyering@redhat.com>
49303
49304         gitlog-to-changelog: don't infloop on an empty commit log
49305         * build-aux/gitlog-to-changelog: Warn about an empty log message.
49306         Reported by Boris Petersen <transacid@centerim.org>.
49307
49308 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
49309
49310         version-etc: extend for packagers
49311         Add three new configure options, intended for packagers:
49312           --with-packager="packager name"
49313           --with-packager-version="packager-specific version"
49314           --with-packager-bug-reports="packager bug reporting"
49315         An example with coreutils:
49316           $ ./configure \
49317             --with-packager=Gentoo \
49318             --with-packager-bug-report=http://bugs.gentoo.org/ \
49319             --with-packager-version="patchset 1.6"
49320           $ ./src/ls --version | head -n2
49321           ls (GNU coreutils) 7.1-dirty
49322           Packaged by Gentoo (patchset 1.6)
49323         Note that the bug reporting info via --help doesn't show up because
49324         coreutils uses its own custom emit_bug_reporting_address() implementation
49325         in src/system.h.  If it didn't, it'd look like:
49326           $ ./src/ls --help | tail -n4
49327           Report bugs to <bug-coreutils@gnu.org>.
49328           Report Gentoo bugs to <http://bugs.gentoo.org/>.
49329           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
49330           General help using GNU software: <http://www.gnu.org/gethelp/>.
49331         * lib/version-etc.c: Print new information, if provided.
49332         * m4/version-etc.m4: New file.
49333         * modules/version-etc (Files): Add m4/version-etc.m4.
49334         (configure.ac): Add gl_VERSION_ETC.
49335
49336 2009-05-31  Bruno Haible  <bruno@clisp.org>
49337
49338         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
49339         and 'int64_t'.
49340         * modules/alignof-tests (Dependencies): Add stdint.
49341         Reported by Eric Blake.
49342
49343 2009-05-31  Bruno Haible  <bruno@clisp.org>
49344
49345         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
49346         restriction due to compiler bugs.
49347         Reported by Eric Blake.
49348
49349 2009-05-31  Simon Josefsson  <simon@josefsson.org>
49350             Bruno Haible  <bruno@clisp.org>
49351
49352         Fix test-alignof failure.
49353         * lib/alignof.h (alignof_slot): New macro.
49354         (alignof_type): New macro, with the same semantics as the previous
49355         'alignof'.
49356         (alignof): Alias to alignof_slot.
49357         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
49358         check that the results are usable as constant expressions.
49359
49360 2009-05-31  Bruno Haible  <bruno@clisp.org>
49361
49362         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
49363         * tests/test-memchr.c (main): Check that memchr does not read past the
49364         first occurrence of the byte.
49365         * tests/test-strstr.c (main): Update comment.
49366         Suggested by Eric Blake.
49367
49368 2009-05-30  Bruno Haible  <bruno@clisp.org>
49369
49370         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
49371         detail how to use dumpbin.
49372         Reported by David Byron <dbyron@dbyron.com>.
49373
49374 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49375
49376         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
49377
49378 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49379
49380         * m4/manywarnings.m4: Add GCC 4.4 warnings.
49381
49382 2009-05-28  Bruno Haible  <bruno@clisp.org>
49383
49384         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
49385         build-aux/ files.
49386
49387 2009-05-28  Simon Josefsson  <simon@josefsson.org>
49388
49389         * gnulib-tool (func_import): Transform license on build-aux/ files too.
49390
49391 2009-05-27  Simon Josefsson  <simon@josefsson.org>
49392
49393         * gnulib-tool (sed_transform_main_lib_file)
49394         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
49395         regexps.
49396
49397 2009-05-26  Simon Josefsson  <simon@josefsson.org>
49398
49399         * tests/test-strstr.c: Add another self-test.
49400         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
49401         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
49402
49403 2009-05-23  Bruno Haible  <bruno@clisp.org>
49404
49405         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
49406         change.
49407
49408 2009-05-21  Bruno Haible  <bruno@clisp.org>
49409
49410         Simplify use of mode_t varargs.
49411         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
49412         uses 'mode_t' or 'int'.
49413         * lib/openat.c (openat): Likewise.
49414         * lib/open-safer.c (open_safer): Likewise.
49415         * m4/mode_t.m4: New file.
49416         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
49417         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
49418         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
49419         * modules/open (Files): Add m4/mode_t.m4.
49420         * modules/openat (Files): Likewise.
49421         * modules/fcntl-safer (Files): Likewise.
49422         Suggested by Eric Blake.
49423
49424 2009-05-21  Pádraig Brady  <P@draigbrady.com>
49425
49426         * doc/glibc-functions/fallocate.texi: New file.
49427         * doc/gnulib.texi: Include it.
49428
49429 2009-05-21  Eric Blake  <ebb9@byu.net>
49430             Bruno Haible  <bruno@clisp.org>
49431
49432         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
49433         invocations.
49434         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49435
49436 2009-05-21  Eric Blake  <ebb9@byu.net>
49437             Bruno Haible  <bruno@clisp.org>
49438
49439         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
49440         include_next. Fix of 2008-11-20 commit.
49441         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
49442         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
49443         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
49444         NEXT_MATH_H.
49445         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
49446         instead of NEXT_MATH_H.
49447
49448 2009-05-21  Bruno Haible  <bruno@clisp.org>
49449
49450         Avoid redefinition warnings for SIZE_MAX.
49451         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
49452         Reported by Simon Josefsson.
49453
49454 2009-05-21  Bruno Haible  <bruno@clisp.org>
49455
49456         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
49457         AC_CACHE_VAL.
49458
49459 2009-05-20  Bruno Haible  <bruno@clisp.org>
49460
49461         Make zeroptr.h work on mingw.
49462         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
49463         mprotect.
49464         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
49465         * modules/memchr2-tests (configure.ac): Likewise.
49466         * modules/memcmp-tests (configure.ac): Likewise.
49467         * modules/memmem-tests (configure.ac): Likewise.
49468         * modules/memrchr-tests (configure.ac): Likewise.
49469         Reported by Simon Josefsson.
49470
49471 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49472
49473         * tests/test-glob.c: Include string.h for strcmp prototype.
49474
49475 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49476
49477         * modules/getdelim (Depends-on): Add explicit stdint, although it
49478         was implicitly already pulled in via realloc-posix.
49479         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
49480
49481 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49482
49483         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
49484         G. Christensen" <tgc@jupiterrise.com>.
49485         * m4/sys_socket_h.m4: Check for sa_family_t.
49486         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
49487         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
49488         * tests/test-sys_socket.c: Check that sa_family_t works.
49489
49490 2009-05-18  Eric Blake  <ebb9@byu.net>
49491
49492         maint.mk: allow gnulib_dir in VPATH build
49493         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
49494
49495 2009-05-15  Jim Meyering  <meyering@redhat.com>
49496
49497         maint.mk: Give gnulib_dir a default definition.
49498         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
49499         Thus, most packages no longer need to specify this variable in cfg.mk
49500
49501 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
49502
49503         rename.m4: fix typos that would make non-mingw cross-configure fail
49504         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
49505
49506 2009-05-13  Eric Blake  <ebb9@byu.net>
49507
49508         mmap-anon: avoid out-of-order autoconf expansion
49509         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
49510         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
49511         * modules/memchr-tests (Depends-on): Add extensions.
49512         * modules/memchr2-tests (Depends-on): Add extensions.
49513         * modules/memcmp-tests (Depends-on): Add extensions.
49514         * modules/memmem-tests (Depends-on): Add extensions.
49515         * modules/memrchr-tests (Depends-on): Add extensions.
49516
49517 2009-05-13  Bruno Haible  <bruno@clisp.org>
49518
49519         Make some tests ISO C 99 compliant.
49520         * tests/zerosize-ptr.h: New file.
49521         * tests/test-memchr.c: Include zerosize-ptr.h.
49522         (main): Use a zero-size object pointer instead of NULL.
49523         * tests/test-memchr2.c: Include zerosize-ptr.h.
49524         (main): Use a zero-size object pointer instead of NULL.
49525         * tests/test-memcmp.c: Include zerosize-ptr.h.
49526         (main): Use a zero-size object pointer instead of NULL.
49527         * tests/test-memmem.c: Include zerosize-ptr.h.
49528         (main): Use a zero-size object pointer instead of NULL.
49529         * tests/test-memrchr.c: Include zerosize-ptr.h.
49530         (main): Use a zero-size object pointer instead of NULL.
49531         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
49532         m4/mmap-anon.m4.
49533         (Depends-on): Add getpagesize.
49534         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49535         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
49536         m4/mmap-anon.m4.
49537         (Depends-on): Add getpagesize.
49538         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49539         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
49540         m4/mmap-anon.m4.
49541         (Depends-on): Add getpagesize.
49542         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49543         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
49544         m4/mmap-anon.m4.
49545         (Depends-on): Add getpagesize.
49546         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49547         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
49548         m4/mmap-anon.m4.
49549         (Depends-on): Add getpagesize.
49550         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49551
49552 2009-05-12  Bruno Haible  <bruno@clisp.org>
49553
49554         Tests for module 'alignof'.
49555         * modules/alignof-tests: New file.
49556         * tests/test-alignof.c: New file.
49557
49558 2009-05-12  Bruno Haible  <bruno@clisp.org>
49559
49560         Fix alignof macro.
49561         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
49562         vendor compilers that are always correct.
49563
49564 2009-05-12  Bruno Haible  <bruno@clisp.org>
49565
49566         Make the MAP_ANONYMOUS detection work on HP-UX 11.
49567         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
49568         not whether its fully works.
49569
49570 2009-05-12  Bruno Haible  <bruno@clisp.org>
49571
49572         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
49573
49574 2009-05-12  Jim Meyering  <meyering@redhat.com>
49575
49576         * top/maint.mk: Adjust backslash alignment.
49577
49578 2009-05-11  Simon Josefsson  <simon@josefsson.org>
49579
49580         * top/maint.mk: Make $(srcdir)/build-aux configurable.
49581
49582 2009-05-11  Eric Blake  <ebb9@byu.net>
49583
49584         argp: avoid undefined behavior
49585         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
49586         macros.
49587
49588 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49589
49590         * tests/test-vc-list-files-git.sh: Do git config of user.email and
49591         user.name to prevent git commit from complaining.
49592
49593 2009-05-10  Bruno Haible  <bruno@clisp.org>
49594
49595         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
49596         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
49597         it rewrites every file name only once.
49598         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
49599
49600 2009-05-08  Bruno Haible  <bruno@clisp.org>
49601
49602         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
49603         instead of 'max'.
49604
49605 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49606
49607         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
49608         sockaddr_storage test.
49609
49610 2009-05-07  Simon Josefsson  <simon@josefsson.org>
49611
49612         * modules/sys_socket (Makefile.am): Substitute
49613         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
49614         * m4/sys_socket_h.m4: Check for sockaddr_storage.
49615         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
49616         * tests/test-sys_socket.c: Check sockaddr_storage.
49617
49618 2009-05-08  Bruno Haible  <bruno@clisp.org>
49619
49620         New module 'alignof'.
49621         * lib/alignof.h: New file.
49622         * modules/alignof: New file.
49623
49624 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49625             Bruno Haible  <bruno@clisp.org>
49626
49627         Fix test-file-has-acl on FreeBSD.
49628         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
49629         mask is implicitly added.
49630         * tests/test-file-has-acl.c: Include <signal.h>.
49631         (main): Terminate the test after 5 seconds.
49632         * modules/acl-tests (configure.ac): Check for alarm function.
49633
49634 2009-05-04  Bruno Haible  <bruno@clisp.org>
49635
49636         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
49637         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
49638         * modules/errno (configure.ac): Drop AC_REQUIRE.
49639         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
49640         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
49641
49642 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49643
49644         * modules/glob-tests: New module.
49645         * tests/test-glob.c: Add.
49646
49647 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49648
49649         * modules/fnmatch-tests: New module.
49650         * tests/test-fnmatch.c: Add.
49651
49652 2009-05-04  Eric Blake  <ebb9@byu.net>
49653
49654         maint: make the new no-submodule-changes rule VPATH-safe
49655         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
49656
49657 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49658             Bruno Haible  <bruno@clisp.org>
49659
49660         acl: Fix infinite loop on FreeBSD.
49661         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
49662         of return value from acl_get_entry.
49663         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
49664         Likewise.
49665
49666 2009-05-03  Bruno Haible  <bruno@clisp.org>
49667
49668         * lib/acl-internal.h (acl_entries): Clarify return value.
49669         * lib/acl_entries.c (acl_entries): Likewise.
49670
49671 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49672
49673         Bug fix in acl module.
49674         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
49675
49676 2009-05-03  Bruno Haible  <bruno@clisp.org>
49677
49678         Create gperf-generated file in the source dir, not in the build dir.
49679         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
49680         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
49681         * modules/unicase/locale-language (unicase/locale-languages.h):
49682         Likewise.
49683         * modules/unicase/special-casing (unicase/special-casing-table.h):
49684         Likewise.
49685         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
49686         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
49687         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
49688         Reported by Ralf Wildenhues.
49689
49690 2009-05-03  Bruno Haible  <bruno@clisp.org>
49691
49692         * modules/fnmatch (Description, configure.ac): Taken from
49693         fnmatch-posix.
49694         * modules/fnmatch-posix: Turn into a symbolic reference to the
49695         'fnmatch' module, and deprecate.
49696         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
49697
49698 2009-05-03  Bruno Haible  <bruno@clisp.org>
49699
49700         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
49701         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
49702         Reported by Ralf Wildenhues.
49703
49704 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49705
49706         * m4/fnmatch.m4: Fix fnmatch re-define.
49707
49708 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49709
49710         priv-set: new module and tests; adapt write-any-file
49711         * lib/priv-set.c: New file.
49712         * lib/priv-set.h: New file.
49713         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
49714         * lib/write-any-file.c: Simplify by using priv-set module.
49715         * m4/priv-set.m4: New file.
49716         * modules/priv-set: New file.
49717         * modules/unlinkdir: Add dependency on priv-set module.
49718         * modules/write-any-file: Likewise.
49719
49720         Tests for module 'priv-set'.
49721         * modules/priv-set-tests: New file.
49722         * tests/test-priv-set.c: New file.
49723
49724 2009-05-03  Jim Meyering  <meyering@redhat.com>
49725             Bruno Haible  <bruno@clisp.org>
49726
49727         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
49728         use the converted UTF-8 variant of the name instead.
49729
49730 2009-05-03  Jim Meyering  <meyering@redhat.com>
49731
49732         tests: tighten some getdate tests
49733         * tests/test-getdate.c (main): Tighten tests: require equality,
49734         not just greater than.  Set TZ envvar to UTC0.
49735
49736 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49737
49738         getdate: correctly interpret "next monday" when run on a Monday
49739         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
49740         that e.g., "next tues" (when run on a tuesday) results in a date
49741         that is one week in the future, and not today's date.
49742         I.e., add a week when the wday is the same as the current one.
49743         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
49744         and earlier by Martin Bernreuther and Jan Minář.
49745         * tests/test-getdate.c (main): Check that "next DAY" is always in
49746         the future and that "last DAY" is always in the past.
49747
49748 2009-05-02  Jim Meyering  <meyering@redhat.com>
49749
49750         build: ensure that a release build fails when a submodule is unclean
49751         * top/maint.mk (no-submodule-changes): New rule.
49752         (alpha beta major): Depend on it.
49753
49754 2009-05-02  Bruno Haible  <bruno@clisp.org>
49755
49756         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
49757         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
49758         shell variable gl_fnmatch_required to detect which variant is
49759         requested.
49760         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
49761         gl_FUNC_FNMATCH_POSIX.
49762         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
49763         exclude fnmatch-posix.
49764
49765 2009-05-02  Bruno Haible  <bruno@clisp.org>
49766
49767         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
49768         * modules/mbsrtowcs (License): Change to LGPLv2+.
49769         * modules/strnlen1 (License): Likewise.
49770         Reported by Simon Josefsson.
49771
49772 2009-05-02  Bruno Haible  <bruno@clisp.org>
49773
49774         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
49775         "cross".
49776         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
49777         gnulib-tool was called with option --source-base=lib.
49778
49779 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49780
49781         Use automake *-local hooks without commands, for extensibility.
49782         * modules/localcharset (Makefile.am): Rename install-exec-local
49783         rule to install-exec-localcharset, and make it a prerequisite of
49784         install-exec-local.  Likewise, rename the uninstall-local rule to
49785         uninstall-localcharset, and make it a prerequisite of the former.
49786
49787 2009-05-01  Bruno Haible  <bruno@clisp.org>
49788
49789         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
49790         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49791         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
49792         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
49793         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
49794         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49795         m4/locale-zh.m4, m4/codeset.m4.
49796
49797         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49798         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
49799         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49800         m4/locale-zh.m4.
49801
49802         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
49803         REPLACE_WCRTOMB if mbstate_t must be replaced.
49804         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
49805         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
49806
49807 2009-05-01  Bruno Haible  <bruno@clisp.org>
49808
49809         Avoid compiler warnings when redefining macros defined by <libintl.h>.
49810         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
49811         dngettext, dcngettext, textdomain, bindtextdomain,
49812         bind_textdomain_codeset): Undefine before redefining.
49813
49814 2009-04-30  Bruno Haible  <bruno@clisp.org>
49815
49816         Fix bug introduced on 2009-04-25.
49817         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
49818         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
49819         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
49820         is defined.
49821         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
49822         is defined.
49823         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
49824         is defined.
49825         Reported by Elbert_Pol <elbert.pol@gmail.com>.
49826
49827 2009-04-28  Bruno Haible  <bruno@clisp.org>
49828
49829         Comment tweaks.
49830         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
49831         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
49832         * lib/unicase.h (u*_casexfrm): Likewise.
49833         Reported by Paolo Bonzini.
49834
49835 2009-04-28  Bruno Haible  <bruno@clisp.org>
49836
49837         Fix a compilation error.
49838         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
49839         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
49840         Reported by Jim Meyering.
49841
49842 2009-04-27  Bruno Haible  <bruno@clisp.org>
49843
49844         New module 'libunistring'.
49845         * modules/libunistring: New file.
49846         * m4/libunistring.m4: New file.
49847         * MODULES.html.sh (Unicode string functions): Add it.
49848
49849 2009-04-27  Eric Blake  <ebb9@byu.net>
49850
49851         maint.mk: allow package-specific header to provide <config.h>
49852         * top/maint.mk (sc_require_config_h): New variable.
49853         (sc_require_config_h, sc_require_config_h_first): Use it.
49854
49855 2009-04-27  Simon Josefsson  <simon@josefsson.org>
49856
49857         * top/maint.mk (sc_avoid_if_before_free): Except
49858         useless-if-before-free script.
49859
49860 2009-04-27  Eric Blake  <ebb9@byu.net>
49861
49862         maintainer-makefile: depend on all required helper scripts
49863         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
49864         useless-if-before-free.
49865         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
49866         version, rather than assuming gnulib checkout is available.
49867         Reported by Simen Josefsson.
49868
49869 2009-04-26  Bruno Haible  <bruno@clisp.org>
49870
49871         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
49872         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
49873         "../" or "..".
49874
49875 2009-04-26  Bruno Haible  <bruno@clisp.org>
49876
49877         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
49878         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
49879         AC_LIB_HAVE_LINKFLAGS.
49880
49881 2009-04-26  Bruno Haible  <bruno@clisp.org>
49882
49883         Simplify calling convention of u*_conv_from_encoding.
49884         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
49885         u32_conv_from_encoding): Expect a resultbuf argument and return the
49886         result directly as a pointer.
49887         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
49888         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
49889         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
49890         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
49891         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
49892         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49893         Update.
49894         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
49895         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
49896         * lib/vasnprintf.c (VASNPRINTF): Update.
49897         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
49898         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
49899         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
49900         * NEWS: Mention the change.
49901
49902 2009-04-26  Bruno Haible  <bruno@clisp.org>
49903
49904         Simplify calling convention of u*_conv_to_encoding.
49905         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49906         u32_conv_to_encoding): Expect a resultbuf argument and return the
49907         result directly as a pointer.
49908         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49909         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
49910         freeing scaled_offsets if mem_iconveha failed.
49911         * lib/unicase/u-casexfrm.h (FUNC): Update.
49912         * lib/uninorm/u-normxfrm.h (FUNC): Update.
49913         * lib/vasnprintf.c (VASNPRINTF): Update.
49914         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
49915         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
49916         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
49917         * NEWS: Mention the change.
49918
49919 2009-04-26  Bruno Haible  <bruno@clisp.org>
49920
49921         Avoid test failures on AIX and OSF/1.
49922         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
49923         malloc(0).
49924         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49925         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49926         Likewise.
49927         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
49928         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
49929         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
49930         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
49931         * doc/posix-functions/malloc.texi: Document the portability problem
49932         related to malloc(0).
49933
49934 2009-04-26  Bruno Haible  <bruno@clisp.org>
49935
49936         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
49937         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
49938         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
49939
49940 2009-04-25  Bruno Haible  <bruno@clisp.org>
49941
49942         Avoid link error when creating a namespace clean library.
49943         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
49944         as macro with arguments if already defined as an alias.
49945         * lib/signbitf.c (gl_signbitf): Don't undefine.
49946         * lib/signbitd.c (gl_signbitd): Don't undefine.
49947         * lib/signbitl.c (gl_signbitl): Don't undefine.
49948
49949 2009-04-25  Jim Meyering  <meyering@redhat.com>
49950
49951         vc-list-files: fix another quoting bug
49952         * build-aux/vc-list-files: Avoid sed backslash expansion
49953         of pathological directory names.
49954
49955 2009-04-25  Eric Blake  <ebb9@byu.net>
49956
49957         vc-list-files: fix shell quoting error
49958         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
49959         timestamp.
49960
49961 2009-04-25  Jim Meyering  <meyering@redhat.com>
49962
49963         vc-list-files: restore lost functionality with subdir argument
49964         * build-aux/vc-list-files: When given a non-"." sub-directory
49965         argument, substitute the $dir/ prefix back onto each resulting name.
49966         Otherwise, coreutils' root_tests check would fail.
49967
49968 2009-04-24  Eric Blake  <ebb9@byu.net>
49969
49970         vc-list-files: ignore git symlinks
49971         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
49972         than ls-files, to ignore git symlinks.
49973
49974         maint.mk: import improvements from m4
49975         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
49976         (move_if_change): Delete unused macro.
49977         (news-date-check, vc-diff-check): Support VPATH builds.
49978         (announcement): Likewise.  Split --bootstrap-tools list...
49979         (boostrap-tools): ...into separate list, which can be overridden
49980         in cfg.mk.
49981         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
49982         requiring dependency on useless-if-before-free module.
49983         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
49984         Support VPATH builds.
49985
49986 2009-04-24  Jim Meyering  <meyering@redhat.com>
49987
49988         maint.mk: remove coreutils-specific rules and variables
49989         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
49990         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
49991         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
49992
49993         maint.mk: remove obsolete rule
49994         * top/maint.mk (rel-check): Remove rule.
49995         (WGET, WGETFLAGS): Remove now-unused variables.
49996
49997 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49998
49999         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
50000         consistency.
50001
50002         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
50003         '$(PATH_SEPARATOR)' instead of ':'.
50004
50005 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50006
50007         * lib/getopt1.c (main): Use 'const' for static array.
50008
50009 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50010
50011         * top/maint.mk: Sync with coreutils.
50012         * NEWS: Explain incompatibilities.
50013
50014 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50015             Bruno Haible  <bruno@clisp.org>
50016
50017         Fix cross-compilation results.
50018         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
50019         statement, as third argument of AC_TRY_RUN.
50020         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
50021         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
50022         Likewise.
50023         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
50024         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
50025         Likewise.
50026         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
50027         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
50028         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
50029
50030 2009-04-20  Bruno Haible  <bruno@clisp.org>
50031
50032         Avoid test failure on mingw.
50033         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
50034
50035 2009-04-20  Bruno Haible  <bruno@clisp.org>
50036
50037         Avoid compilation error on mingw.
50038         * modules/localename-tests (Depends-on): Add locale.
50039
50040 2009-04-19  Bruno Haible  <bruno@clisp.org>
50041
50042         Support for building a shared library on Windows platforms.
50043         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
50044         (main): Test the presence of UNINORM_NFC here.
50045         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
50046         (main): Test the presence of UNINORM_NFD here.
50047         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
50048         (main): Test the presence of UNINORM_NFKC here.
50049         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
50050         (main): Test the presence of UNINORM_NFKD here.
50051
50052 2009-04-19  Bruno Haible  <bruno@clisp.org>
50053
50054         Avoid a compiler warning.
50055         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
50056         Change type of variable 'sequence'.
50057
50058 2009-04-19  Bruno Haible  <bruno@clisp.org>
50059
50060         * modules/configmake (Makefile.am): When the contents of configmake.h
50061         does not change, arrange to preserve its modification time.
50062
50063 2009-04-17  Simon Josefsson  <simon@josefsson.org>
50064
50065         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
50066         gettext domain.
50067
50068 2009-04-16  Jim Meyering  <meyering@redhat.com>
50069
50070         useless-if-before-free: improve conversion code
50071         * build-aux/useless-if-before-free: Adjust code-in-comment to match
50072         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
50073
50074 2009-04-14  Bruno Haible  <bruno@clisp.org>
50075
50076         * modules/fcntl (Depends-on): Add extensions.
50077         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
50078
50079 2009-04-12  Ben Pfaff  <blp@gnu.org>
50080
50081         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
50082         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
50083
50084 2009-03-20  Ben Pfaff  <blp@gnu.org>
50085
50086         Make rename replace existing destinations on Windows.
50087         * m4/rename.m4: Add test for Mingw.
50088         * lib/rename.c: Add rename replacement that uses MoveFileEx with
50089         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
50090         * doc/posix-functions/rename.texi: Document.
50091
50092 2009-04-10  Bruno Haible  <bruno@clisp.org>
50093
50094         New include file "iconveh.h".
50095         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
50096         * lib/striconveh.h: Include it.
50097         (enum iconv_ilseq_handler): Remove definition.
50098         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
50099         striconveh.h.
50100         * lib/striconveha.c: Include striconveh.h.
50101         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
50102         * modules/striconveh (Files): Add lib/iconveh.h.
50103         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
50104         lib/striconveh.h.
50105
50106 2009-04-10  Bruno Haible  <bruno@clisp.org>
50107
50108         * lib/uniconv.h: Update comment.
50109
50110 2009-04-10  Bruno Haible  <bruno@clisp.org>
50111
50112         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
50113         always.
50114         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50115         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50116         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50117         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
50118         "unistring-notinline.h", so that the function gets defined always.
50119         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50120         * lib/unistr/u8-uctomb.c: Likewise.
50121         * lib/unistr/u16-mbtouc.c: Likewise.
50122         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50123         * lib/unistr/u16-uctomb.c: Likewise.
50124         * lib/unistr/u32-mbtouc.c: Likewise.
50125         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50126         * lib/unistr/u32-uctomb.c: Likewise.
50127
50128 2009-04-10  Bruno Haible  <bruno@clisp.org>
50129
50130         Mark 'utime' obsolete.
50131         * modules/utime (Status, Notice): New sections.
50132         Suggested by Jim Meyering.
50133
50134         Fix cross-compile guess for utime test.
50135         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
50136         autoconf.
50137         * doc/posix-functions/utime.texi: Give more precisions.
50138         Reported by Jan <ipif@ymail.com>.
50139
50140 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
50141
50142         filevercmp: correct today's change
50143         * lib/filevercmp.c: Also handle coreutils' test inputs.
50144         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
50145
50146         Fix regression in 'filevercmp' module. Thanks Sven Joachim
50147         for reporting it.
50148         * lib/filevercmp.c: Special handle for "", "." and "..".
50149         * tests/test-filevercmp.c: Enlarge the set suite.
50150
50151 2009-04-07  Jim Meyering  <meyering@redhat.com>
50152
50153         useless-if-before-free: show how to remove braced useless free, too
50154         * build-aux/useless-if-before-free: still only in a comment, though.
50155
50156 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
50157
50158         maint.mk: import changes to syntax-check macros from coreutils
50159         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
50160         Use them in the relevant macros.
50161
50162 2009-04-06  Bruno Haible  <bruno@clisp.org>
50163
50164         Fix unportable use of bit-fields.
50165         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
50166         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
50167         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
50168
50169 2009-04-06  Bruno Haible  <bruno@clisp.org>
50170
50171         Avoid test failures on AIX and OSF/1.
50172         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
50173         that malloc(0) = NULL.
50174         * tests/unicase/test-u8-tolower.c (check): Likewise.
50175         * tests/unicase/test-u8-totitle.c (check): Likewise.
50176         * tests/unicase/test-u8-toupper.c (check): Likewise.
50177         * tests/unicase/test-u16-casefold.c (check): Likewise.
50178         * tests/unicase/test-u16-tolower.c (check): Likewise.
50179         * tests/unicase/test-u16-totitle.c (check): Likewise.
50180         * tests/unicase/test-u16-toupper.c (check): Likewise.
50181         * tests/unicase/test-u32-casefold.c (check): Likewise.
50182         * tests/unicase/test-u32-tolower.c (check): Likewise.
50183         * tests/unicase/test-u32-totitle.c (check): Likewise.
50184         * tests/unicase/test-u32-toupper.c (check): Likewise.
50185         * tests/uninorm/test-u8-nfc.c (check): Likewise.
50186         * tests/uninorm/test-u8-nfd.c (check): Likewise.
50187         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
50188         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
50189         * tests/uninorm/test-u16-nfc.c (check): Likewise.
50190         * tests/uninorm/test-u16-nfd.c (check): Likewise.
50191         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
50192         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
50193         * tests/uninorm/test-u32-nfc.c (check): Likewise.
50194         * tests/uninorm/test-u32-nfd.c (check): Likewise.
50195         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
50196         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
50197
50198 2009-04-05  Bruno Haible  <bruno@clisp.org>
50199
50200         Work around an autoconf limitation.
50201         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
50202         comment line if it would be longer than 3 KB.
50203
50204 2009-04-05  Bruno Haible  <bruno@clisp.org>
50205
50206         Avoid test failure with libiconv-1.13.
50207         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
50208         of the expected test results.
50209
50210 2009-04-05  Bruno Haible  <bruno@clisp.org>
50211
50212         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
50213         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
50214         that it should be installed.
50215
50216 2009-04-05  Bruno Haible  <bruno@clisp.org>
50217
50218         * gnulib-tool: New option --copy-file.
50219         (func_usage): Document it.
50220         (func_dest_tmpfilename): Moved out of func_import.
50221         (func_add_file, func_update_file): New functions, extracted from
50222         func_import.
50223         (func_import): Update.
50224
50225 2009-04-05  Karl Berry  <karl@gnu.org>
50226
50227         * README: prominently mention gnulib-tool.
50228         Rearrange sections so getting the code is near the top.
50229
50230 2009-04-05  Bruno Haible  <bruno@clisp.org>
50231
50232         * lib/unicase.h: Mention u*_cmp2.
50233         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50234         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
50235         * lib/unicase/ulc-casecmp.c: Likewise.
50236         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
50237         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
50238         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
50239         unistr/u8-cmp.
50240         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
50241         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
50242         unistr/u16-cmp.
50243         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
50244         unistr/u32-cmp.
50245
50246         * lib/uninorm.h: Mention u*_cmp2.
50247         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50248         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
50249         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
50250         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
50251         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
50252         unistr/u8-cmp.
50253         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
50254         unistr/u16-cmp.
50255         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
50256         unistr/u32-cmp.
50257
50258         New module 'unistr/u32-cmp2'.
50259         * lib/unistr/u32-cmp2.c: New file.
50260         * modules/unistr/u32-cmp2: New file.
50261
50262         New module 'unistr/u16-cmp2'.
50263         * lib/unistr/u16-cmp2.c: New file.
50264         * modules/unistr/u16-cmp2: New file.
50265
50266         New module 'unistr/u8-cmp2'.
50267         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
50268         * lib/unistr/u8-cmp2.c: New file.
50269         * lib/unistr/u-cmp2.h: New file.
50270         * modules/unistr/u8-cmp2: New file.
50271
50272 2009-04-05  Bruno Haible  <bruno@clisp.org>
50273
50274         * lib/unictype.h (uc_property_is_valid): New macro.
50275         * tests/unictype/test-pr_byname.c (main): Use it.
50276
50277         * lib/unistr.h: Doc fixes.
50278         * lib/uniconv.h: Doc fixes.
50279         * lib/unictype.h: Doc fixes.
50280
50281 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
50282
50283         Port coreutils 7.2 to Solaris 8.
50284
50285         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
50286         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
50287         for Solaris 8.  This is a bit of a hack, as it means it's the
50288         caller's responsibility to add -lnsl if needed, but most likely it
50289         won't be needed since only getaddrinfo uses this and getaddrinfo
50290         isn't needed on Solaris 8.
50291
50292         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
50293         problem to Solaris 8 encountered with coreutils 7.2, which
50294         resulted in a message "fnmatch.c:292: warning: passing argument 4
50295         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
50296         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
50297
50298 2009-04-03  Simon Josefsson  <simon@josefsson.org>
50299
50300         * m4/ld-version-script.m4: Add FIXME comment.
50301
50302 2009-04-02  Simon Josefsson  <simon@josefsson.org>
50303
50304         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
50305         SOVERSION variable.
50306
50307 2009-04-02  Bruno Haible  <bruno@clisp.org>
50308
50309         * Makefile (info, html, dvi, pdf): Combine the rules.
50310         Suggested by Jim Meyering.
50311
50312 2009-04-01  Bruno Haible  <bruno@clisp.org>
50313
50314         * Makefile (info, html, dvi, pdf): New targets.
50315         Reported by Reuben Thomas <rrt@sc3d.org>.
50316
50317 2009-04-01  Bruno Haible  <bruno@clisp.org>
50318
50319         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
50320         can be put into PATH.
50321         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
50322
50323 2009-04-01  Bruno Haible  <bruno@clisp.org>
50324
50325         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
50326
50327 2009-04-01  Bruno Haible  <bruno@clisp.org>
50328
50329         Rename module 'visibility'.
50330         * modules/lib-symbol-visibility: Renamed from modules/visibility.
50331         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
50332         * doc/gnulib.texi: Update.
50333         * MODULES.html.sh (Misc): Update.
50334         * NEWS: Mention the change.
50335
50336 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50337
50338         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
50339         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
50340         Eric Blake <ebb9@byu.net> for review.
50341         * MODULES.html.sh: Add lib-msvc-compat.
50342         * doc/gnulib.texi: Link to new section.
50343         * m4/ld-output-def.m4: New file.
50344         * doc/ld-output-def.texi: New file.
50345
50346 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50347
50348         Rename ld-version-script to lib-symbol-versions.  Suggested by
50349         Bruno Haible <bruno@clisp.org>.
50350         * modules/ld-version-script: Renamed to lib-symbol-versions.
50351         * doc/ld-version-script.texi: Fix module name.
50352         * MODULES.html.sh: Add lib-symbol-versions.
50353
50354 2009-03-31  Simon Josefsson  <simon@josefsson.org>
50355
50356         * modules/u64-tests: New file.
50357         * tests/test-u64.c: New file.
50358
50359 2009-03-04  Simon Josefsson  <simon@josefsson.org>
50360
50361         * MODULES.html.sh: Mention u64.
50362         * modules/u64: New module.
50363         * modules/crypto/sha512: Depend on u64 module instead of providing
50364         u64.h.
50365
50366 2009-03-27  Eric Blake  <ebb9@byu.net>
50367
50368         test-strerror: make debugging EAI_SYSTEM easier
50369         * modules/getaddrinfo-tests (Depends-on): Add strerror.
50370         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
50371         failure was EAI_SYSTEM.
50372
50373 2009-03-25  Bruno Haible  <bruno@clisp.org>
50374
50375         Fix a problem with --enable-relocatable on Solaris 7.
50376         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
50377         since 2008-02-24.
50378
50379 2009-03-25  Eric Blake  <ebb9@byu.net>
50380
50381         test-sockets: avoid gcc warning
50382         * tests/test-sockets.c (main): Silence compiler warning.
50383
50384 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50385
50386         New modules nproc, pthread, contributed by Glen Lenker.
50387
50388         * MODULES.html.sh: Add pthread, nproc.
50389         * lib/nproc.c: New file.
50390         * lib/nproc.h: New file.
50391         * lib/pthread.in.h: New file.
50392         * m4/pthread.m4: New file.
50393         * modules/nproc: New file.
50394         * modules/pthread: New file.
50395
50396 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50397
50398         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
50399         New variable.
50400
50401 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
50402
50403         filevercmp: handle simple~ and numbered.~3~ backup suffixes
50404         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
50405         * tests/test-filevercmp.c: Add tests for backup suffixes.
50406
50407 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50408
50409         * modules/stdlib (Depends-on): Add stdint, needed when defining
50410         struct random_data on, for example, HP-UX 10.20.  Reported by
50411         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50412
50413 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50414
50415         * lib/readline.c (readline): Call fflush on stdout after printing
50416         prompt.
50417
50418 2009-03-20  Bruno Haible  <bruno@clisp.org>
50419
50420         Remove dependency from 'close' module to -lws2_32 on native Windows.
50421         * lib/close-hook.h: New file.
50422         * lib/close-hook.c: New file.
50423         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
50424         w32sock.h.
50425         (_gl_close_fd_maybe_socket): Remove function.
50426         (rpl_close): Invoke execute_all_close_hooks instead of
50427         _gl_close_fd_maybe_socket.
50428         * lib/sockets.c: Include close-hook.h, w32sock.h.
50429         (close_fd_maybe_socket): New function, essentially from lib/close.c.
50430         (close_sockets_hook): New variable.
50431         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
50432         (gl_sockets_cleanup): Unregister it.
50433         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
50434         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
50435         * modules/close-hook: New file.
50436         * modules/close (Files): Remove lib/w32sock.h.
50437         (Depends-on): Add close-hook.
50438         (Link): Remove section.
50439         * modules/sockets (Files): Add lib/w32sock.h.
50440         (Depends-on): Add close-hook.
50441         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
50442         invocation.
50443         * NEWS: Mention that LIB_CLOSE is gone.
50444
50445 2009-03-23  Eric Blake  <ebb9@byu.net>
50446
50447         signal-tests: test previous patch
50448         * tests/test-signal.c: New file.
50449         * modules/signal-tests: Likewise.
50450
50451         signal.h: always support 'volatile sig_atomic_t'
50452         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
50453         (gl_SIGNAL_H_DEFAULTS): Add a default.
50454         * modules/signal (Makefile.am): Substitute if needed.
50455         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
50456         users can blindly add volatile.
50457         * doc/posix-headers/signal.texi (signal.h): Document it.
50458         Reported by Matthew Woehlke.
50459
50460 2009-03-23  Jim Meyering  <meyering@redhat.com>
50461
50462         pathmax: PATH_MAX: use pathconf only when available
50463         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
50464         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
50465         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
50466         This avoids a link failure in a PSP cross-compilation environment
50467         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
50468
50469         * lib/vasnprintf.c (divide): Fix typo in comment.
50470
50471 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50472
50473         * gnulib-tool (func_filter_filelist): Fix comment.
50474
50475 2009-03-20  Bruno Haible  <bruno@clisp.org>
50476
50477         Make sockets.h self-contained.
50478         * lib/sockets.c: Include sockets.h first.
50479         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
50480
50481 2009-03-19  Eric Blake  <ebb9@byu.net>
50482
50483         doc: mention more functions added in cygwin 1.7.0
50484         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
50485         addition.
50486         * doc/posix-functions/log2f.texi: Likewise.
50487
50488 2009-03-19  Jim Meyering  <meyering@redhat.com>
50489
50490         fsusage: avoid syntax error due to statement-before-declaration
50491         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
50492         after all declarations.  Reported by Matthew Woehlke in
50493         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
50494
50495 2009-03-18  Eric Blake  <ebb9@byu.net>
50496
50497         build-aux/compile: sync from automake
50498         * build-aux/compile: New file, from automake.
50499         * config/srclist.txt: Mention build-aux/compile.
50500
50501 2009-03-17  Bruno Haible  <bruno@clisp.org>
50502
50503         * lib/git-merge-changelog.c: Fix typo in comment.
50504         Reported by Reuben Thomas <rrt@sc3d.org>.
50505
50506 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
50507
50508         * m4/regex.m4: update and improve help for
50509         --without-included-regex.
50510
50511 2009-03-17  Simon Josefsson  <simon@josefsson.org>
50512
50513         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
50514         failure on missing include files.
50515
50516 2009-03-17  Eric Blake  <ebb9@byu.net>
50517
50518         doc: mention more functions added in cygwin 1.7.0
50519         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
50520         addition.
50521         * doc/posix-functions/fwscanf.texi: Likewise.
50522         * doc/posix-functions/swprintf.texi: Likewise.
50523         * doc/posix-functions/swscanf.texi: Likewise.
50524         * doc/posix-functions/vfwprintf.texi: Likewise.
50525         * doc/posix-functions/vfwscanf.texi: Likewise.
50526         * doc/posix-functions/vswprintf.texi: Likewise.
50527         * doc/posix-functions/vswscanf.texi: Likewise.
50528         * doc/posix-functions/vwprintf.texi: Likewise.
50529         * doc/posix-functions/vwscanf.texi: Likewise.
50530         * doc/posix-functions/wcscasecmp.texi: Likewise.
50531         * doc/posix-functions/wcsdup.texi: Likewise.
50532         * doc/posix-functions/wcsftime.texi: Likewise.
50533         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50534         * doc/posix-functions/wprintf.texi: Likewise.
50535         * doc/posix-functions/wscanf.texi: Likewise.
50536         * doc/glibc-functions/gethostbyname2.texi: Likewise.
50537
50538 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50539
50540         maint.mk: really add $(AM_MAKEFLAGS)
50541         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
50542         was inadvertently omitted in the last commit.
50543         Spotted by Bruno Haible.
50544
50545         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
50546         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
50547         $(AM_MAKEFLAGS)' rather than plain `make'.
50548
50549         gnulib-tool: execute $MAKE not make
50550         * gnulib-tool: Default $MAKE to 'make'.
50551         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
50552         than make.  Initialize $MAKE in the do-autobuild script.
50553
50554         gnulib-tool: use $MAKE not make in generated files
50555         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
50556         make, in generated files.  Initialize $MAKE in the do-autobuild
50557         script.
50558
50559         * top/GNUmakefile (_have-git-version-gen): Fix typo.
50560
50561         GNUmakefile: disable parallelism only for multiple, recursive targets
50562         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
50563         additions in the Makefile.
50564         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
50565         by Automake.
50566         (.NOTPARALLEL): Only disable parallel builds if multiple targets
50567         are listed on the command line and at least one of them is
50568         listed in $(ALL_RECURSIVE_TARGETS).
50569
50570 2009-03-14  Bruno Haible  <bruno@clisp.org>
50571
50572         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
50573         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
50574         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
50575         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
50576         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
50577         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
50578         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
50579         unistr/u8-uctomb.
50580         * modules/unistr/u8-strchr (Depends-on): Likewise.
50581         * modules/unistr/u8-strrchr (Depends-on): Likewise.
50582         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
50583         unistr/u16-uctomb.
50584         * modules/unistr/u16-strchr (Depends-on): Likewise.
50585         * modules/unistr/u16-strrchr (Depends-on): Likewise.
50586
50587 2009-03-12  Bruno Haible  <bruno@clisp.org>
50588
50589         Work around select() bug on Interix 3.5.
50590         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
50591         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
50592         * m4/select.m4: New file.
50593         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
50594         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
50595         * modules/select (Files): Add m4/select.m4.
50596         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
50597         * modules/nanosleep (Depends-on): Add select.
50598         * modules/poll (Depends-on): Likewise.
50599         * doc/posix-functions/select.texi: Mention the Interix bug.
50600         Reported by Markus Duft <mduft@gentoo.org>.
50601
50602         * lib/select.c: Renamed from lib/winsock-select.c.
50603         * modules/select (Files): Add lib/select.c, remove
50604         lib/winsock-select.c.
50605         (configure.ac): Update.
50606
50607 2009-03-12  Jim Meyering  <meyering@redhat.com>
50608
50609         avoid gcc warnings about unused macro definitions
50610         * lib/readtokens.c (STREQ): Remove unused definition.
50611         * lib/xmalloc.c (SIZE_MAX): Likewise.
50612         * lib/openat-die.c (N_): Likewise.
50613         * lib/mountlist.c (SIZE_MAX): Remove definition.
50614         Instead, include <stdint.h>.
50615         * lib/readutmp.c: Likewise.
50616         * modules/readutmp (Depends-on): Add stdint.
50617         * modules/mountlist (Depends-on): Add stdint.
50618         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
50619
50620 2009-03-10  Bruno Haible  <bruno@clisp.org>
50621
50622         Tests for module 'mbmemcasecoll'.
50623         * modules/mbmemcasecoll-tests: New file.
50624         * tests/test-mbmemcasecoll1.sh: New file.
50625         * tests/test-mbmemcasecoll2.sh: New file.
50626         * tests/test-mbmemcasecoll3.sh: New file.
50627         * tests/test-mbmemcasecoll.c: New file.
50628
50629         New module 'mbmemcasecoll'.
50630         * lib/mbmemcasecoll.h: New file.
50631         * lib/mbmemcasecoll.c: New file.
50632         * modules/mbmemcasecoll: New file.
50633
50634         * tests/test-mbmemcasecmp.h: New file, extracted from
50635         tests/test-mbmemcasecmp.c.
50636         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
50637         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
50638         (main): Update.
50639         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
50640
50641 2009-03-09  Bruno Haible  <bruno@clisp.org>
50642
50643         Tests for module 'mbmemcasecmp'.
50644         * modules/mbmemcasecmp-tests: New file.
50645         * tests/test-mbmemcasecmp1.sh: New file.
50646         * tests/test-mbmemcasecmp2.sh: New file.
50647         * tests/test-mbmemcasecmp3.sh: New file.
50648         * tests/test-mbmemcasecmp.c: New file.
50649
50650         New module 'mbmemcasecmp'.
50651         * lib/mbmemcasecmp.h: New file.
50652         * lib/mbmemcasecmp.c: New file.
50653         * modules/mbmemcasecmp: New file.
50654
50655 2009-03-09  Bruno Haible  <bruno@clisp.org>
50656
50657         Tests for module 'unicase/ulc-casecoll'.
50658         * modules/unicase/ulc-casecoll-tests: New file.
50659         * tests/unicase/test-ulc-casecoll1.sh: New file.
50660         * tests/unicase/test-ulc-casecoll2.sh: New file.
50661         * tests/unicase/test-ulc-casecoll.c: New file.
50662
50663         New module 'unicase/ulc-casecoll'.
50664         * lib/unicase.h (ulc_casecoll): New declaration.
50665         * lib/unicase/ulc-casecoll.c: New file.
50666         * modules/unicase/ulc-casecoll: New file.
50667
50668         New module 'unicase/ulc-casexfrm'.
50669         * lib/unicase.h (ulc_casexfrm): New declaration.
50670         * lib/unicase/ulc-casexfrm.c: New file.
50671         * modules/unicase/ulc-casexfrm: New file.
50672
50673 2009-03-09  Bruno Haible  <bruno@clisp.org>
50674
50675         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
50676         invocations.
50677
50678         * m4/mbscasecmp.m4: Remove file.
50679         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
50680         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
50681
50682         * m4/mbscasestr.m4: Remove file.
50683         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
50684         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
50685
50686         * m4/mbschr.m4: Remove file.
50687         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
50688         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
50689
50690         * m4/mbscspn.m4: Remove file.
50691         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
50692         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
50693
50694         * m4/mbslen.m4: Remove file.
50695         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
50696         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
50697
50698         * m4/mbsncasecmp.m4: Remove file.
50699         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
50700         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
50701
50702         * m4/mbsnlen.m4: Remove file.
50703         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
50704         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
50705
50706         * m4/mbspbrk.m4: Remove file.
50707         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
50708         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
50709
50710         * m4/mbspcasecmp.m4: Remove file.
50711         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
50712         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
50713
50714         * m4/mbsrchr.m4: Remove file.
50715         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
50716         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
50717
50718         * m4/mbssep.m4: Remove file.
50719         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
50720         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
50721
50722         * m4/mbsspn.m4: Remove file.
50723         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
50724         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
50725
50726         * m4/mbsstr.m4: Remove file.
50727         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
50728         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
50729
50730         * m4/mbstok_r.m4: Remove file.
50731         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
50732         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
50733
50734         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
50735
50736         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
50737         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
50738
50739         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
50740
50741 2009-03-08  Bruno Haible  <bruno@clisp.org>
50742
50743         Tests for module 'unicase/ulc-casecmp'.
50744         * modules/unicase/ulc-casecmp-tests: New file.
50745         * tests/unicase/test-ulc-casecmp1.sh: New file.
50746         * tests/unicase/test-ulc-casecmp2.sh: New file.
50747         * tests/unicase/test-ulc-casecmp.c: New file.
50748
50749         New module 'unicase/ulc-casecmp'.
50750         * lib/unicase.h (ulc_casecmp): New declaration.
50751         * lib/unicase/ulc-casecmp.c: New file.
50752         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
50753         'const SRC_UNIT *'.
50754         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
50755         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
50756         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
50757         * modules/unicase/ulc-casecmp: New file.
50758
50759         Tests for module 'unicase/u32-is-cased'.
50760         * modules/unicase/u32-is-cased-tests: New file.
50761         * tests/unicase/test-u32-is-cased.c: New file.
50762
50763         Tests for module 'unicase/u16-is-cased'.
50764         * modules/unicase/u16-is-cased-tests: New file.
50765         * tests/unicase/test-u16-is-cased.c: New file.
50766
50767         Tests for module 'unicase/u8-is-cased'.
50768         * modules/unicase/u8-is-cased-tests: New file.
50769         * tests/unicase/test-u8-is-cased.c: New file.
50770         * tests/unicase/test-is-cased.h: New file.
50771
50772         New module 'unicase/u32-is-cased'.
50773         * lib/unicase/u32-is-cased.c: New file.
50774         * modules/unicase/u32-is-cased: New file.
50775
50776         New module 'unicase/u16-is-cased'.
50777         * lib/unicase/u16-is-cased.c: New file.
50778         * modules/unicase/u16-is-cased: New file.
50779
50780         New module 'unicase/u8-is-cased'.
50781         * lib/unicase/u8-is-cased.c: New file.
50782         * lib/unicase/u-is-cased.h: New file.
50783         * modules/unicase/u8-is-cased: New file.
50784
50785         Tests for module 'unicase/u32-is-casefolded'.
50786         * modules/unicase/u32-is-casefolded-tests: New file.
50787         * tests/unicase/test-u32-is-casefolded.c: New file.
50788
50789         Tests for module 'unicase/u16-is-casefolded'.
50790         * modules/unicase/u16-is-casefolded-tests: New file.
50791         * tests/unicase/test-u16-is-casefolded.c: New file.
50792
50793         Tests for module 'unicase/u8-is-casefolded'.
50794         * modules/unicase/u8-is-casefolded-tests: New file.
50795         * tests/unicase/test-u8-is-casefolded.c: New file.
50796         * tests/unicase/test-is-casefolded.h: New file.
50797
50798         New module 'unicase/u32-is-casefolded'.
50799         * lib/unicase/u32-is-casefolded.c: New file.
50800         * modules/unicase/u32-is-casefolded: New file.
50801
50802         New module 'unicase/u16-is-casefolded'.
50803         * lib/unicase/u16-is-casefolded.c: New file.
50804         * modules/unicase/u16-is-casefolded: New file.
50805
50806         New module 'unicase/u8-is-casefolded'.
50807         * lib/unicase/u8-is-casefolded.c: New file.
50808         * modules/unicase/u8-is-casefolded: New file.
50809
50810         Tests for module 'unicase/u32-is-titlecase'.
50811         * modules/unicase/u32-is-titlecase-tests: New file.
50812         * tests/unicase/test-u32-is-titlecase.c: New file.
50813
50814         Tests for module 'unicase/u16-is-titlecase'.
50815         * modules/unicase/u16-is-titlecase-tests: New file.
50816         * tests/unicase/test-u16-is-titlecase.c: New file.
50817
50818         Tests for module 'unicase/u8-is-titlecase'.
50819         * modules/unicase/u8-is-titlecase-tests: New file.
50820         * tests/unicase/test-u8-is-titlecase.c: New file.
50821         * tests/unicase/test-is-titlecase.h: New file.
50822
50823         New module 'unicase/u32-is-titlecase'.
50824         * lib/unicase/u32-is-titlecase.c: New file.
50825         * modules/unicase/u32-is-titlecase: New file.
50826
50827         New module 'unicase/u16-is-titlecase'.
50828         * lib/unicase/u16-is-titlecase.c: New file.
50829         * modules/unicase/u16-is-titlecase: New file.
50830
50831         New module 'unicase/u8-is-titlecase'.
50832         * lib/unicase/u8-is-titlecase.c: New file.
50833         * modules/unicase/u8-is-titlecase: New file.
50834
50835         Tests for module 'unicase/u32-is-lowercase'.
50836         * modules/unicase/u32-is-lowercase-tests: New file.
50837         * tests/unicase/test-u32-is-lowercase.c: New file.
50838
50839         Tests for module 'unicase/u16-is-lowercase'.
50840         * modules/unicase/u16-is-lowercase-tests: New file.
50841         * tests/unicase/test-u16-is-lowercase.c: New file.
50842
50843         Tests for module 'unicase/u8-is-lowercase'.
50844         * modules/unicase/u8-is-lowercase-tests: New file.
50845         * tests/unicase/test-u8-is-lowercase.c: New file.
50846         * tests/unicase/test-is-lowercase.h: New file.
50847
50848         New module 'unicase/u32-is-lowercase'.
50849         * lib/unicase/u32-is-lowercase.c: New file.
50850         * modules/unicase/u32-is-lowercase: New file.
50851
50852         New module 'unicase/u16-is-lowercase'.
50853         * lib/unicase/u16-is-lowercase.c: New file.
50854         * modules/unicase/u16-is-lowercase: New file.
50855
50856         New module 'unicase/u8-is-lowercase'.
50857         * lib/unicase/u8-is-lowercase.c: New file.
50858         * modules/unicase/u8-is-lowercase: New file.
50859
50860         Tests for module 'unicase/u32-is-uppercase'.
50861         * modules/unicase/u32-is-uppercase-tests: New file.
50862         * tests/unicase/test-u32-is-uppercase.c: New file.
50863
50864         Tests for module 'unicase/u16-is-uppercase'.
50865         * modules/unicase/u16-is-uppercase-tests: New file.
50866         * tests/unicase/test-u16-is-uppercase.c: New file.
50867
50868         Tests for module 'unicase/u8-is-uppercase'.
50869         * modules/unicase/u8-is-uppercase-tests: New file.
50870         * tests/unicase/test-u8-is-uppercase.c: New file.
50871         * tests/unicase/test-is-uppercase.h: New file.
50872
50873         New module 'unicase/u32-is-uppercase'.
50874         * lib/unicase/u32-is-uppercase.c: New file.
50875         * modules/unicase/u32-is-uppercase: New file.
50876
50877         New module 'unicase/u16-is-uppercase'.
50878         * lib/unicase/u16-is-uppercase.c: New file.
50879         * modules/unicase/u16-is-uppercase: New file.
50880
50881         New module 'unicase/u8-is-uppercase'.
50882         * lib/unicase/u8-is-uppercase.c: New file.
50883         * modules/unicase/u8-is-uppercase: New file.
50884
50885         New module 'unicase/u32-is-invariant'.
50886         * lib/unicase/u32-is-invariant.c: New file.
50887         * modules/unicase/u32-is-invariant: New file.
50888
50889         New module 'unicase/u16-is-invariant'.
50890         * lib/unicase/u16-is-invariant.c: New file.
50891         * modules/unicase/u16-is-invariant: New file.
50892
50893         New module 'unicase/u8-is-invariant'.
50894         * lib/unicase/u8-is-invariant.c: New file.
50895         * lib/unicase/invariant.h: New file.
50896         * lib/unicase/u-is-invariant.h: New file.
50897         * modules/unicase/u8-is-invariant: New file.
50898
50899         Tests for module 'unicase/u32-casecoll'.
50900         * modules/unicase/u32-casecoll-tests: New file.
50901         * tests/unicase/test-u32-casecoll.c: New file.
50902
50903         Tests for module 'unicase/u16-casecoll'.
50904         * modules/unicase/u16-casecoll-tests: New file.
50905         * tests/unicase/test-u16-casecoll.c: New file.
50906
50907         Tests for module 'unicase/u8-casecoll'.
50908         * modules/unicase/u8-casecoll-tests: New file.
50909         * tests/unicase/test-u8-casecoll.c: New file.
50910
50911         New module 'unicase/u32-casecoll'.
50912         * lib/unicase/u32-casecoll.c: New file.
50913         * modules/unicase/u32-casecoll: New file.
50914
50915         New module 'unicase/u16-casecoll'.
50916         * lib/unicase/u16-casecoll.c: New file.
50917         * modules/unicase/u16-casecoll: New file.
50918
50919         New module 'unicase/u8-casecoll'.
50920         * lib/unicase/u8-casecoll.c: New file.
50921         * lib/unicase/u-casecoll.h: New file.
50922         * modules/unicase/u8-casecoll: New file.
50923
50924         New module 'unicase/u32-casexfrm'.
50925         * lib/unicase/u32-casexfrm.c: New file.
50926         * modules/unicase/u32-casexfrm: New file.
50927
50928         New module 'unicase/u16-casexfrm'.
50929         * lib/unicase/u16-casexfrm.c: New file.
50930         * modules/unicase/u16-casexfrm: New file.
50931
50932         New module 'unicase/u8-casexfrm'.
50933         * lib/unicase/u8-casexfrm.c: New file.
50934         * lib/unicase/u-casexfrm.h: New file.
50935         * modules/unicase/u8-casexfrm: New file.
50936
50937         Tests for module 'unicase/u32-casecmp'.
50938         * modules/unicase/u32-casecmp-tests: New file.
50939         * tests/unicase/test-u32-casecmp.c: New file.
50940
50941         Tests for module 'unicase/u16-casecmp'.
50942         * modules/unicase/u16-casecmp-tests: New file.
50943         * tests/unicase/test-u16-casecmp.c: New file.
50944
50945         Tests for module 'unicase/u8-casecmp'.
50946         * modules/unicase/u8-casecmp-tests: New file.
50947         * tests/unicase/test-u8-casecmp.c: New file.
50948         * tests/unicase/test-casecmp.h: New file.
50949
50950         New module 'unicase/u32-casecmp'.
50951         * lib/unicase/u32-casecmp.c: New file.
50952         * modules/unicase/u32-casecmp: New file.
50953
50954         New module 'unicase/u16-casecmp'.
50955         * lib/unicase/u16-casecmp.c: New file.
50956         * modules/unicase/u16-casecmp: New file.
50957
50958         New module 'unicase/u8-casecmp'.
50959         * lib/unicase/u8-casecmp.c: New file.
50960         * lib/unicase/u-casecmp.h: New file.
50961         * modules/unicase/u8-casecmp: New file.
50962
50963         Tests for module 'unicase/u32-casefold'.
50964         * modules/unicase/u32-casefold-tests: New file.
50965         * tests/unicase/test-u32-casefold.c: New file.
50966
50967         Tests for module 'unicase/u16-casefold'.
50968         * modules/unicase/u16-casefold-tests: New file.
50969         * tests/unicase/test-u16-casefold.c: New file.
50970
50971         Tests for module 'unicase/u8-casefold'.
50972         * modules/unicase/u8-casefold-tests: New file.
50973         * tests/unicase/test-u8-casefold.c: New file.
50974
50975         New module 'unicase/u32-casefold'.
50976         * lib/unicase/u32-casefold.c: New file.
50977         * modules/unicase/u32-casefold: New file.
50978
50979         New module 'unicase/u16-casefold'.
50980         * lib/unicase/u16-casefold.c: New file.
50981         * modules/unicase/u16-casefold: New file.
50982
50983         New module 'unicase/u8-casefold'.
50984         * lib/unicase/u8-casefold.c: New file.
50985         * lib/unicase/u-casefold.h: New file.
50986         * modules/unicase/u8-casefold: New file.
50987
50988         New module 'unicase/tocasefold'.
50989         * lib/unicase/casefold.h: New file.
50990         * lib/unicase/tocasefold.c: New file.
50991         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
50992         * modules/unicase/tocasefold: New file.
50993
50994         Tests for module 'unicase/u32-totitle'.
50995         * modules/unicase/u32-totitle-tests: New file.
50996         * tests/unicase/test-u32-totitle.c: New file.
50997
50998         Tests for module 'unicase/u16-totitle'.
50999         * modules/unicase/u16-totitle-tests: New file.
51000         * tests/unicase/test-u16-totitle.c: New file.
51001
51002         Tests for module 'unicase/u8-totitle'.
51003         * modules/unicase/u8-totitle-tests: New file.
51004         * tests/unicase/test-u8-totitle.c: New file.
51005
51006         New module 'unicase/u32-totitle'.
51007         * lib/unicase/u32-totitle.c: New file.
51008         * modules/unicase/u32-totitle: New file.
51009
51010         New module 'unicase/u16-totitle'.
51011         * lib/unicase/u16-totitle.c: New file.
51012         * modules/unicase/u16-totitle: New file.
51013
51014         New module 'unicase/u8-totitle'.
51015         * lib/unicase/u8-totitle.c: New file.
51016         * lib/unicase/u-totitle.h: New file.
51017         * modules/unicase/u8-totitle: New file.
51018
51019         Tests for module 'unicase/u32-tolower'.
51020         * modules/unicase/u32-tolower-tests: New file.
51021         * tests/unicase/test-u32-tolower.c: New file.
51022
51023         Tests for module 'unicase/u16-tolower'.
51024         * modules/unicase/u16-tolower-tests: New file.
51025         * tests/unicase/test-u16-tolower.c: New file.
51026
51027         Tests for module 'unicase/u8-tolower'.
51028         * modules/unicase/u8-tolower-tests: New file.
51029         * tests/unicase/test-u8-tolower.c: New file.
51030
51031         New module 'unicase/u32-tolower'.
51032         * lib/unicase/u32-tolower.c: New file.
51033         * modules/unicase/u32-tolower: New file.
51034
51035         New module 'unicase/u16-tolower'.
51036         * lib/unicase/u16-tolower.c: New file.
51037         * modules/unicase/u16-tolower: New file.
51038
51039         New module 'unicase/u8-tolower'.
51040         * lib/unicase/u8-tolower.c: New file.
51041         * modules/unicase/u8-tolower: New file.
51042
51043         Tests for module 'unicase/u32-toupper'.
51044         * modules/unicase/u32-toupper-tests: New file.
51045         * tests/unicase/test-u32-toupper.c: New file.
51046
51047         Tests for module 'unicase/u16-toupper'.
51048         * modules/unicase/u16-toupper-tests: New file.
51049         * tests/unicase/test-u16-toupper.c: New file.
51050
51051         Tests for module 'unicase/u8-toupper'.
51052         * modules/unicase/u8-toupper-tests: New file.
51053         * tests/unicase/test-u8-toupper.c: New file.
51054
51055         New module 'unicase/u32-toupper'.
51056         * lib/unicase/u32-toupper.c: New file.
51057         * modules/unicase/u32-toupper: New file.
51058
51059         New module 'unicase/u16-toupper'.
51060         * lib/unicase/u16-toupper.c: New file.
51061         * modules/unicase/u16-toupper: New file.
51062
51063         New module 'unicase/u8-toupper'.
51064         * lib/unicase/u8-toupper.c: New file.
51065         * modules/unicase/u8-toupper: New file.
51066
51067         New module 'unicase/u32-casemap'.
51068         * lib/unicase/u32-casemap.c: New file.
51069         * modules/unicase/u32-casemap: New file.
51070
51071         New module 'unicase/u16-casemap'.
51072         * lib/unicase/u16-casemap.c: New file.
51073         * modules/unicase/u16-casemap: New file.
51074
51075         New module 'unicase/u8-casemap'.
51076         * lib/unicase/unicasemap.h: New file.
51077         * lib/unicase/u8-casemap.c: New file.
51078         * lib/unicase/u-casemap.h: New file.
51079         * modules/unicase/u8-casemap: New file.
51080
51081         New module 'unicase/special-casing'.
51082         * lib/unicase/special-casing.h: New file.
51083         * lib/unicase/special-casing.c: New file.
51084         * lib/unicase/special-casing-table.gperf: New file, generated by
51085         gen-uni-tables.c.
51086         * modules/unicase/special-casing: New file.
51087
51088         Tests for module 'unicase/locale-language'.
51089         * modules/unicase/locale-language-tests: New file.
51090         * tests/unicase/test-locale-language.sh: New file.
51091         * tests/unicase/test-locale-language.c: New file.
51092
51093         New module 'unicase/locale-language'.
51094         * lib/unicase/locale-language.c: New file.
51095         * lib/unicase/locale-languages.gperf: New file.
51096         * modules/unicase/locale-language: New file.
51097
51098         Generate more tables for case conversion and case folding.
51099         * lib/gen-uni-tables.c (SCC_*): New enum items.
51100         (struct special_casing_rule): New type.
51101         (casing_rules, num_casing_rules, allocated_casing_rules): New
51102         variables.
51103         (add_casing_rule, fill_casing_rules): New functions.
51104         (struct casefold_rule): New type.
51105         (casefolding_rules, num_casefolding_rules,
51106         allocated_casefolding_rules): New variables.
51107         (fill_casefolding_rules): New function.
51108         (unicode_casefold): New variable.
51109         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
51110         sort_casing_rules, output_casing_rules): New functions.
51111         (main): Accept to more arguments: SpecialCasing.txt and
51112         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
51113         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
51114         Output mapping for casefolding.
51115
51116         * lib/unicase.h: Include stdbool.h, uninorm.h.
51117         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
51118         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
51119         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
51120         arguments.
51121         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
51122         resultp arguments.
51123         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
51124         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
51125         resultp arguments.
51126         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
51127         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
51128         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
51129         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
51130         declarations.
51131         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
51132
51133 2009-03-08  Bruno Haible  <bruno@clisp.org>
51134
51135         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51136         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
51137         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
51138         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51139
51140 2009-03-07  Bruno Haible  <bruno@clisp.org>
51141
51142         Adjust u*_normcmp, u*_normcoll API.
51143         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51144         u16_normcoll, u32_normcoll): Change failure conventions.
51145         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
51146         errno and return -1.
51147         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51148
51149 2009-03-07  Bruno Haible  <bruno@clisp.org>
51150
51151         Tests for module 'uninorm/u32-normcoll'.
51152         * modules/uninorm/u32-normcoll-tests: New file.
51153         * tests/uninorm/test-u32-normcoll.c: New file.
51154
51155         Tests for module 'uninorm/u16-normcoll'.
51156         * modules/uninorm/u16-normcoll-tests: New file.
51157         * tests/uninorm/test-u16-normcoll.c: New file.
51158
51159         Tests for module 'uninorm/u8-normcoll'.
51160         * modules/uninorm/u8-normcoll-tests: New file.
51161         * tests/uninorm/test-u8-normcoll.c: New file.
51162
51163 2009-03-07  Bruno Haible  <bruno@clisp.org>
51164
51165         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
51166         tests/uninorm/test-u32-normcmp.c.
51167         * tests/uninorm/test-u32-normcmp.c: Include it.
51168         (test_nonascii): New function, extracted from main. Add some more
51169         tests.
51170         (main): Invoke test_ascii and test_nonascii.
51171         * modules/uninorm/u32-normcmp-tests (Files): Add
51172         tests/uninorm/test-u32-normcmp.h.
51173         (Depends-on): Remove uninorm/u32-normcmp.
51174
51175         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
51176         tests/uninorm/test-u16-normcmp.c.
51177         * tests/uninorm/test-u16-normcmp.c: Include it.
51178         (test_nonascii): New function, extracted from main. Add some more
51179         tests.
51180         (main): Invoke test_ascii and test_nonascii.
51181         * modules/uninorm/u16-normcmp-tests (Files): Add
51182         tests/uninorm/test-u16-normcmp.h.
51183         (Depends-on): Remove uninorm/u16-normcmp.
51184
51185         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
51186         tests/uninorm/test-u8-normcmp.c.
51187         * tests/uninorm/test-u8-normcmp.c: Include it.
51188         (test_nonascii): New function, extracted from main. Add some more
51189         tests.
51190         (main): Invoke test_ascii and test_nonascii.
51191         * modules/uninorm/u8-normcmp-tests (Files): Add
51192         tests/uninorm/test-u8-normcmp.h.
51193         (Depends-on): Remove uninorm/u8-normcmp.
51194
51195 2009-03-07  Bruno Haible  <bruno@clisp.org>
51196
51197         New module 'uninorm/u32-normcoll'.
51198         * lib/uninorm/u32-normcoll.c: New file.
51199         * modules/uninorm/u32-normcoll: New file.
51200
51201         New module 'uninorm/u16-normcoll'.
51202         * lib/uninorm/u16-normcoll.c: New file.
51203         * modules/uninorm/u16-normcoll: New file.
51204
51205         New module 'uninorm/u8-normcoll'.
51206         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
51207         declarations.
51208         * lib/uninorm/u8-normcoll.c: New file.
51209         * lib/uninorm/u-normcoll.h: New file.
51210         * modules/uninorm/u8-normcoll: New file.
51211
51212         New module 'uninorm/u32-normxfrm'.
51213         * lib/uninorm/u32-normxfrm.c: New file.
51214         * modules/uninorm/u32-normxfrm: New file.
51215
51216         New module 'uninorm/u16-normxfrm'.
51217         * lib/uninorm/u16-normxfrm.c: New file.
51218         * modules/uninorm/u16-normxfrm: New file.
51219
51220         New module 'uninorm/u8-normxfrm'.
51221         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
51222         declarations.
51223         * lib/uninorm/u8-normxfrm.c: New file.
51224         * lib/uninorm/u-normxfrm.h: New file.
51225         * modules/uninorm/u8-normxfrm: New file.
51226
51227 2009-03-07  Bruno Haible  <bruno@clisp.org>
51228
51229         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
51230         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
51231         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
51232
51233 2009-03-07  Bruno Haible  <bruno@clisp.org>
51234
51235         New module 'memxfrm'.
51236         * lib/memxfrm.h: New file.
51237         * lib/memxfrm.c: New file.
51238         * modules/memxfrm: New file.
51239
51240 2009-03-07  Bruno Haible  <bruno@clisp.org>
51241
51242         New module 'memcmp2'.
51243         * lib/memcmp2.h: New file.
51244         * lib/memcmp2.c: New file.
51245         * modules/memcmp2: New file.
51246
51247 2009-03-07  Bruno Haible  <bruno@clisp.org>
51248
51249         Tests for module 'uninorm/decomposing-form'.
51250         * modules/uninorm/decomposing-form-tests: New file.
51251         * tests/uninorm/test-decomposing-form.c: New file.
51252
51253         New module 'uninorm/decomposing-form'.
51254         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
51255         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
51256         Add 'decomposing_variant' field.
51257         * lib/uninorm/decomposing-form.c: New file.
51258         * lib/uninorm/nfc.c (uninorm_nfc): Update.
51259         * lib/uninorm/nfd.c (uninorm_nfd): Update.
51260         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
51261         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
51262         * modules/uninorm/decomposing-form: New file.
51263         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
51264         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
51265
51266 2009-03-07  Bruno Haible  <bruno@clisp.org>
51267
51268         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
51269         strings.
51270
51271 2009-03-06  Bruno Haible  <bruno@clisp.org>
51272
51273         Tests for module 'uninorm/u32-normcmp'.
51274         * tests/uninorm/test-u32-normcmp.c: New file.
51275         * modules/uninorm/u32-normcmp-tests: New file.
51276
51277         Tests for module 'uninorm/u16-normcmp'.
51278         * tests/uninorm/test-u16-normcmp.c: New file.
51279         * modules/uninorm/u16-normcmp-tests: New file.
51280
51281         Tests for module 'uninorm/u8-normcmp'.
51282         * tests/uninorm/test-u8-normcmp.c: New file.
51283         * modules/uninorm/u8-normcmp-tests: New file.
51284
51285         New module 'uninorm/u32-normcmp'.
51286         * lib/uninorm/u32-normcmp.c: New file.
51287         * modules/uninorm/u32-normcmp: New file.
51288
51289         New module 'uninorm/u16-normcmp'.
51290         * lib/uninorm/u16-normcmp.c: New file.
51291         * modules/uninorm/u16-normcmp: New file.
51292
51293         New module 'uninorm/u8-normcmp'.
51294         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
51295         declarations.
51296         * lib/uninorm/u8-normcmp.c: New file.
51297         * lib/uninorm/u-normcmp.h: New file.
51298         * modules/uninorm/u8-normcmp: New file.
51299
51300 2009-03-06  Bruno Haible  <bruno@clisp.org>
51301
51302         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
51303         Reported by Eric Blake.
51304
51305 2009-03-06  Eric Blake  <ebb9@byu.net>
51306             Bruno Haible  <bruno@clisp.org>
51307
51308         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
51309         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
51310         condition.
51311         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51312         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
51313         condition.
51314         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51315
51316 2009-03-06  Eric Blake  <ebb9@byu.net>
51317
51318         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
51319         to avoid compiler warnings.
51320         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
51321
51322 2009-03-05  Bruno Haible  <bruno@clisp.org>
51323
51324         * tests/test-ftell.c (main): Disable test beyond end of file on
51325         FreeMiNT.
51326         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51327
51328 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
51329
51330         * lib/filevercmp.c: Move hidden files up in ordering.
51331         * tests/test-filevercmp.c: Add tests for hidden files.
51332
51333 2009-03-04  Bruno Haible  <bruno@clisp.org>
51334
51335         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
51336         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
51337         AM_CFLAGS.
51338         Reported by Simon Josefsson.
51339
51340 2009-03-03  Bruno Haible  <bruno@clisp.org>
51341
51342         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
51343         Reported by Simon Josefsson.
51344
51345         * doc/ld-version-script.texi: Update node reference.
51346
51347 2009-03-03  Bruno Haible  <bruno@clisp.org>
51348
51349         * modules/visibility (License): Change to 'unlimited'.
51350         Suggested by Simon Josefsson.
51351
51352 2009-03-03  Jim Meyering  <meyering@redhat.com>
51353
51354         unlinkdir: cannot_unlink_dir may modify process state
51355         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
51356         it's neither thread-safe nor appropriate for use in a library.
51357
51358 2009-03-03  Eric Blake  <ebb9@byu.net>
51359
51360         test-closein: silence test under Darwin
51361         * tests/test-closein.sh: Ignore stderr from cat, since we don't
51362         care if it dies from EPIPE or EBADF.
51363
51364 2009-03-03  Bruno Haible  <bruno@clisp.org>
51365
51366         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
51367         earlier.
51368         * doc/visibility.texi: Fix @node and @section.
51369
51370 2009-03-03  Simon Josefsson  <simon@josefsson.org>
51371
51372         * doc/gnulib.texi: Link to sections for ld version script and
51373         visibility.
51374         * doc/visibility.texi: Add @node and @section.
51375         * modules/ld-version-script: New module.
51376         * m4/ld-version-script.m4: New file.
51377         * doc/ld-version-script.texi: New file.
51378
51379 2009-03-02  David Lutterkort  <lutter@redhat.com>
51380
51381         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
51382         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51383
51384 2009-03-02  Bruno Haible  <bruno@clisp.org>
51385
51386         * doc/visibility.texi: Mention libtool's -export-symbols option.
51387
51388 2009-03-02  Jim Meyering  <meyering@redhat.com>
51389
51390         announce-gen: new option: --no-print-checksums
51391         * build-aux/announce-gen (usage): Describe it.
51392         (print_checksums): Print a newline here, not in the [*] footnote.
51393         (main): Honor it.
51394
51395 2009-03-01  Bruno Haible  <bruno@clisp.org>
51396
51397         Use socklen_t in the native Windows replacements prototypes.
51398         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
51399         instead of 'int'.
51400         * lib/getsockopt.c (rpl_getsockopt): Likewise.
51401         * lib/setsockopt.c (rpl_setsockopt): Likewise.
51402         * modules/getsockopt (Depends-on): Add socklen.
51403         * modules/setsockopt (Depends-on): Add socklen.
51404
51405 2009-03-01  Bruno Haible  <bruno@clisp.org>
51406
51407         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
51408         least 4.2.
51409
51410 2009-03-01  Eric Blake  <ebb9@byu.net>
51411             Bruno Haible  <bruno@clisp.org>
51412
51413         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
51414         error messages.
51415         * lib/wait-process.c (wait_subprocess): Omit error message about
51416         deadly signal sent to the child of termsigp != NULL.
51417
51418 2009-03-01  Eric Blake  <ebb9@byu.net>
51419
51420         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
51421
51422 2009-03-01  Bruno Haible  <bruno@clisp.org>
51423
51424         Avoid a gcc warning.
51425         * tests/test-sched.c (b): Make global.
51426         Reported by Eric Blake.
51427
51428 2009-01-19  Martin Lambers  <marlam@marlam.de>
51429
51430         Provide POSIX semantics for socket timeout options on W32.
51431         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
51432         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
51433         * modules/setsockopt: Depend on sys_time module for struct timeval.
51434         * modules/getsockopt: Depend on sys_time module for struct timeval.
51435
51436 2009-03-01  Simon Josefsson  <simon@josefsson.org>
51437
51438         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
51439         __USE_GNU, for consistency with netdb.in.h.
51440         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51441
51442 2009-03-01  Bruno Haible  <bruno@clisp.org>
51443
51444         More support for FreeMiNT.
51445         * lib/fseeko.c (rpl_fseeko): Complete last commit.
51446         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51447
51448 2009-03-01  Bruno Haible  <bruno@clisp.org>
51449
51450         More support for FreeMiNT.
51451         * lib/fpurge.c (fpurge): Correct last commit.
51452         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51453
51454 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51455
51456         Fix unportable awk script in vc-list-files.
51457         * build-aux/vc-list-files: In the replacement awk script, use
51458         substr with a second argument of 1, not zero.
51459         Report by Simon Josefsson.
51460
51461 2009-02-28  Bruno Haible  <bruno@clisp.org>
51462
51463         More support for FreeMiNT.
51464         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
51465         to FreeMiNT today.
51466         * lib/fwriting.c (fwriting): Likewise.
51467         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
51468
51469 2009-02-28  Bruno Haible  <bruno@clisp.org>
51470
51471         * tests/test-freadseek.c (main): Disable test beyond end of file on
51472         FreeMiNT.
51473         * tests/test-ftello.c (main): Likewise.
51474         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51475
51476 2009-02-28  Bruno Haible  <bruno@clisp.org>
51477
51478         Add tentative support for FreeMiNT.
51479         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
51480         * lib/fpurge.c (fpurge): Likewise.
51481         * lib/freadable.c (freadable): Likewise.
51482         * lib/freading.c (freading): Likewise.
51483         * lib/freadptr.c (freadptr): Likewise.
51484         * lib/freadseek.c (freadptrinc): Likewise.
51485         * lib/fseeko.c (rpl_fseeko): Likewise.
51486         * lib/fseterr.c (fseterr): Likewise.
51487         * lib/fwritable.c (fwritable): Likewise.
51488         * lib/fwriting.c (fwriting): Likewise.
51489         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
51490         Hourihane.
51491         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51492
51493 2009-02-28  Bruno Haible  <bruno@clisp.org>
51494
51495         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
51496         SIGCHLD.
51497         Reported by Jim Meyering.
51498
51499 2009-02-28  Bruno Haible  <bruno@clisp.org>
51500
51501         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
51502         Mention the results of these tests on various platforms.
51503         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
51504         order.
51505         * doc/posix-functions/printf.texi: Likewise.
51506         * doc/posix-functions/snprintf.texi: Likewise.
51507         * doc/posix-functions/sprintf.texi: Likewise.
51508         * doc/posix-functions/vfprintf.texi: Likewise.
51509         * doc/posix-functions/vprintf.texi: Likewise.
51510         * doc/posix-functions/vsnprintf.texi: Likewise.
51511         * doc/posix-functions/vsprintf.texi: Likewise.
51512         * doc/glibc-functions/obstack_printf.texi: Likewise.
51513         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
51514
51515 2009-02-28  Bruno Haible  <bruno@clisp.org>
51516
51517         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
51518         Reported by Loïc Minier <lool@dooz.org>.
51519
51520 2009-02-27  Bruno Haible  <bruno@clisp.org>
51521
51522         * gnulib-tool (func_import): Make the sed expression used to create the
51523         sed script for updating the .gitignore file POSIX compliant.
51524         Reported by Eric Blake.
51525
51526 2009-02-27  Bruno Haible  <bruno@clisp.org>
51527
51528         * gnulib-tool (sed): Don't alias as "sed --posix".
51529         Reported by Eric Blake.
51530
51531 2009-02-27  Bruno Haible  <bruno@clisp.org>
51532
51533         Avoid test link errors.
51534         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
51535         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
51536         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
51537         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
51538         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51539
51540 2009-02-27  Bruno Haible  <bruno@clisp.org>
51541
51542         Avoid spurious "(cached)" in configure output.
51543         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
51544         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
51545         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51546         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51547         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51548         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
51549         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51550         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
51551         Reported by Eric Blake.
51552
51553 2009-02-27  Eric Blake  <ebb9@byu.net>
51554
51555         printf: fix regression in previous patch
51556         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
51557
51558 2009-02-27  Bruno Haible  <bruno@clisp.org>
51559
51560         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
51561         value.
51562         * lib/stdint.in.h: Likewise.
51563         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
51564
51565 2009-02-27  Eric Blake  <ebb9@byu.net>
51566
51567         doc: mention more functions added in cygwin 1.7.0
51568         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
51569         addition.
51570         * doc/posix-functions/open_wmemstream.texi: Likewise.
51571         * doc/posix-functions/wcsnlen.texi: Likewise.
51572         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51573         * doc/posix-functions/wcstod.texi: Likewise.
51574         * doc/posix-functions/wcstof.texi: Likewise.
51575         * doc/posix-functions/wcstoimax.texi: Likewise.
51576         * doc/posix-functions/wcstok.texi: Likewise.
51577         * doc/posix-functions/wcstoumax.texi: Likewise.
51578
51579         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
51580         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
51581         * doc/posix-functions/fprintf.texi: Update.
51582         * doc/posix-functions/printf.texi: Update.
51583         * doc/posix-functions/snprintf.texi: Update.
51584         * doc/posix-functions/sprintf.texi: Update.
51585         * doc/posix-functions/vfprintf.texi: Update.
51586         * doc/posix-functions/vprintf.texi: Update.
51587         * doc/posix-functions/vsnprintf.texi: Update.
51588         * doc/posix-functions/vsprintf.texi: Update.
51589         * doc/glibc-functions/obstack_printf.texi: Update.
51590         * doc/glibc-functions/obstack_vprintf.texi: Update.
51591
51592 2009-02-26  Eric Blake  <ebb9@byu.net>
51593
51594         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
51595         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
51596         compilation bug by using runtime conversion.
51597         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51598         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
51599         * modules/ceill-tests (Files): Use nan.h.
51600         * modules/floorl-tests (Files): Likewise.
51601         * modules/frexpl-tests (Files): Likewise.
51602         * modules/isnanl-tests (Files): Likewise.
51603         * modules/ldexpl-tests (Files): Likewise.
51604         * modules/roundl-tests (Files): Likewise.
51605         * modules/truncl-tests (Files): Likewise.
51606         * tests/test-ceill.c (main): Use a working NaN.
51607         * tests/test-floorl.c (main): Likewise.
51608         * tests/test-frexpl.c (main): Likewise.
51609         * tests/test-isnan.c (test_long_double): Likewise.
51610         * tests/test-isnanl.h (main): Likewise.
51611         * tests/test-ldexpl.h (main): Likewise.
51612         * tests/test-roundl.h (main): Likewise.
51613         * tests/test-truncl.h (main): Likewise.
51614         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
51615
51616 2009-02-26  Eric Blake  <ebb9@byu.net>
51617             Bruno Haible  <bruno@clisp.org>
51618
51619         Work around a *printf bug with %ls on Solaris.
51620         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
51621         precision is specified, sprintf stops converting the wide string
51622         argument when the number of bytes that have been produced by this
51623         conversion equals or exceeds the precision.
51624         * doc/posix-functions/fprintf.texi: Update.
51625         * doc/posix-functions/printf.texi: Update.
51626         * doc/posix-functions/snprintf.texi: Update.
51627         * doc/posix-functions/sprintf.texi: Update.
51628         * doc/posix-functions/vfprintf.texi: Update.
51629         * doc/posix-functions/vprintf.texi: Update.
51630         * doc/posix-functions/vsnprintf.texi: Update.
51631         * doc/posix-functions/vsprintf.texi: Update.
51632         * doc/glibc-functions/obstack_printf.texi: Update.
51633         * doc/glibc-functions/obstack_vprintf.texi: Update.
51634
51635 2009-02-26  Eric Blake  <ebb9@byu.net>
51636
51637         stdlib: favor compiler check of random.h
51638         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
51639         to avoid an ObjC random.h installed by Swarm.
51640
51641 2009-02-26  Bruno Haible  <bruno@clisp.org>
51642
51643         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
51644         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
51645         Reported by Gary V. Vaughan <gary@gnu.org>.
51646
51647 2009-02-26  Bruno Haible  <bruno@clisp.org>
51648
51649         Fix *printf behaviour regarding the %ls directive.
51650         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
51651         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
51652         NEED_PRINTF_DIRECTIVE_LS.
51653         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
51654         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51655         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51656         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
51657         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
51658         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
51659         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51660         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51661         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51662         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51663         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51664         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
51665         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51666         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51667         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51668         * doc/posix-functions/fprintf.texi: Update.
51669         * doc/posix-functions/printf.texi: Update.
51670         * doc/posix-functions/snprintf.texi: Update.
51671         * doc/posix-functions/sprintf.texi: Update.
51672         * doc/posix-functions/vfprintf.texi: Update.
51673         * doc/posix-functions/vprintf.texi: Update.
51674         * doc/posix-functions/vsnprintf.texi: Update.
51675         * doc/posix-functions/vsprintf.texi: Update.
51676         * doc/glibc-functions/obstack_printf.texi: Update.
51677         * doc/glibc-functions/obstack_vprintf.texi: Update.
51678         Reported by Eric Blake.
51679
51680 2009-02-25  Bruno Haible  <bruno@clisp.org>
51681
51682         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
51683         with known value.
51684         Reported by Gary V. Vaughan <gary@gnu.org>.
51685
51686 2009-02-25  Bruno Haible  <bruno@clisp.org>
51687
51688         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
51689         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
51690         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
51691         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
51692         Reported by Gary V. Vaughan <gary@gnu.org>.
51693
51694 2009-02-25  Bruno Haible  <bruno@clisp.org>
51695
51696         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
51697         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
51698         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
51699         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
51700         Reported by Gary V. Vaughan <gary@gnu.org>.
51701
51702 2009-02-25  Eric Blake  <ebb9@byu.net>
51703
51704         tests: skip fseek/ftell tests if ungetc is broken
51705         * m4/ungetc.m4: New file.
51706         * modules/fseek-tests: Split test, so ungetc dependency is
51707         separate from rest of test.
51708         * modules/fseeko-tests: Likewise.
51709         * modules/ftell-tests: Likewise.
51710         * modules/ftello-tests: Likewise.
51711         * tests/test-fseek.c (main): Isolate ungetc dependency.
51712         * tests/test-fseeko.c (main): Likewise.
51713         * tests/test-ftell.c (main): Likewise.
51714         * tests/test-ftello.c (main): Likewise.
51715         * tests/test-fseek2.sh: New file.
51716         * tests/test-fseeko2.sh: Likewise.
51717         * tests/test-ftell2.sh: Likewise.
51718         * tests/test-ftello2.sh: Likewise.
51719
51720 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
51721
51722         test-getaddrinfo: fix usage of skip return code 77
51723         * tests/test-gettaddrinfo.c: Return skip code 77 only
51724         for first occurrence of skip (4x77 is not 77)
51725
51726 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
51727
51728         strtod: avoid C99 decl-after-statement
51729         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
51730
51731 2009-02-24  Eric Blake  <ebb9@byu.net>
51732
51733         strtod: detect HP-UX 11.31 bug
51734         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
51735         Reported by Gary V. Vaughan.
51736
51737 2009-02-23  Bruno Haible  <bruno@clisp.org>
51738
51739         Fix invalid read past end of memory block.
51740         * lib/vasnprintf.c (DCHAR_SET): Define.
51741         (local_wcslen): Define only when needed.
51742         (local_strnlen, local_wcsnlen): New functions.
51743         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
51744         directives that involve a conversion ourselves.
51745         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
51746         wcsnlen, mbrtowc, wcrtomb.
51747         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
51748         * tests/test-vasprintf-posix.c (test_function): Likewise.
51749         * tests/test-snprintf-posix.h (test_function): Likewise.
51750         * tests/test-sprintf-posix.h (test_function): Likewise.
51751         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51752
51753 2009-02-22  Bruno Haible  <bruno@clisp.org>
51754
51755         Implement new clarified decomposition of Hangul syllables.
51756         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
51757         of type LTV, return only a pairwise decomposition.
51758         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
51759         Likewise.
51760         * tests/uninorm/test-decomposition.c (main): Updated expected result.
51761         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
51762         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
51763
51764 2009-02-22  Bruno Haible  <bruno@clisp.org>
51765
51766         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
51767         zero-length results and shrink excess allocated memory.
51768         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
51769         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
51770         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
51771         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
51772         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
51773         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
51774         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
51775         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
51776         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
51777         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
51778         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
51779         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
51780
51781 2009-02-21  Bruno Haible  <bruno@clisp.org>
51782
51783         * doc/gnulib.texi: Include safe-alloc.texi earlier.
51784         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
51785         spaces after a period. Put a space between a macro name and its
51786         argument list. Trivial rewordings.
51787         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
51788         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
51789         (main): Return 0 explicitly.
51790
51791 2009-02-21  Bruno Haible  <bruno@clisp.org>
51792
51793         Tests for module 'uninorm/filter'.
51794         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
51795         * modules/uninorm/filter-tests: New file.
51796
51797         New module 'uninorm/filter'.
51798         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
51799         uninorm_filter_flush, uninorm_filter_free): New declarations.
51800         * lib/uninorm/uninorm-filter.c: New file.
51801         * modules/uninorm/filter: New file.
51802
51803 2009-02-21  Bruno Haible  <bruno@clisp.org>
51804
51805         Tests for module 'uninorm/nfkc'.
51806         * tests/uninorm/test-nfkc.c: New file.
51807         * tests/uninorm/test-u8-nfkc.c: New file.
51808         * tests/uninorm/test-u16-nfkc.c: New file.
51809         * tests/uninorm/test-u32-nfkc.c: New file.
51810         * tests/uninorm/test-u32-nfkc-big.sh: New file.
51811         * tests/uninorm/test-u32-nfkc-big.c: New file.
51812         * modules/uninorm/nfkc-tests: New file.
51813
51814         New module 'uninorm/nfkc'.
51815         * lib/uninorm/nfkc.c: New file.
51816         * modules/uninorm/nfkc: New file.
51817
51818         Tests for module 'uninorm/nfkd'.
51819         * tests/uninorm/test-nfkd.c: New file.
51820         * tests/uninorm/test-u8-nfkd.c: New file.
51821         * tests/uninorm/test-u16-nfkd.c: New file.
51822         * tests/uninorm/test-u32-nfkd.c: New file.
51823         * tests/uninorm/test-u32-nfkd-big.sh: New file.
51824         * tests/uninorm/test-u32-nfkd-big.c: New file.
51825         * modules/uninorm/nfkd-tests: New file.
51826
51827         New module 'uninorm/nfkd'.
51828         * lib/uninorm/nfkd.c: New file.
51829         * modules/uninorm/nfkd: New file.
51830
51831         Tests for module 'uninorm/nfc'.
51832         * tests/uninorm/test-nfc.c: New file.
51833         * tests/uninorm/test-u8-nfc.c: New file.
51834         * tests/uninorm/test-u16-nfc.c: New file.
51835         * tests/uninorm/test-u32-nfc.c: New file.
51836         * tests/uninorm/test-u32-nfc-big.sh: New file.
51837         * tests/uninorm/test-u32-nfc-big.c: New file.
51838         * modules/uninorm/nfc-tests: New file.
51839
51840         New module 'uninorm/nfc'.
51841         * lib/uninorm/nfc.c: New file.
51842         * modules/uninorm/nfc: New file.
51843
51844         Tests for module 'uninorm/nfd'.
51845         * tests/uninorm/test-nfd.c: New file.
51846         * tests/uninorm/test-u8-nfd.c: New file.
51847         * tests/uninorm/test-u16-nfd.c: New file.
51848         * tests/uninorm/test-u32-nfd.c: New file.
51849         * tests/uninorm/test-u32-nfd-big.sh: New file.
51850         * tests/uninorm/test-u32-nfd-big.c: New file.
51851         * tests/uninorm/test-u32-normalize-big.h: New file.
51852         * tests/uninorm/test-u32-normalize-big.c: New file.
51853         * tests/uninorm/NormalizationTest.txt: New file, created from
51854         Unicode 5.1.0 NormalizationTest.txt.
51855         * modules/uninorm/nfd-tests: New file.
51856
51857         New module 'uninorm/nfd'.
51858         * lib/uninorm/nfd.c: New file.
51859         * modules/uninorm/nfd: New file.
51860
51861         New module 'uninorm/u32-normalize'.
51862         * lib/uninorm/u32-normalize.c: New file.
51863         * modules/uninorm/u32-normalize: New file.
51864
51865         New module 'uninorm/u16-normalize'.
51866         * lib/uninorm/u16-normalize.c: New file.
51867         * modules/uninorm/u16-normalize: New file.
51868
51869         New module 'uninorm/u8-normalize'.
51870         * lib/uninorm/u8-normalize.c: New file.
51871         * lib/uninorm/normalize-internal.h: New file.
51872         * lib/uninorm/u-normalize-internal.h: New file.
51873         * modules/uninorm/u8-normalize: New file.
51874
51875         New module 'uninorm/decompose-internal'.
51876         * lib/uninorm/decompose-internal.c: New file.
51877         * modules/uninorm/decompose-internal: New file.
51878
51879         Tests for module 'uninorm/composition'.
51880         * tests/uninorm/test-composition.c: New file.
51881         * modules/uninorm/composition-tests: New file.
51882
51883         New module 'uninorm/composition'.
51884         * lib/uninorm/composition.c: New file.
51885         * lib/uninorm/composition-table.gperf: New file, generated by
51886         gen-uni-tables.
51887         * modules/uninorm/composition: New file.
51888
51889         Tests for module 'uninorm/compat-decomposition'.
51890         * tests/uninorm/test-compat-decomposition.c: New file.
51891         * modules/uninorm/compat-decomposition-tests: New file.
51892
51893         New module 'uninorm/compat-decomposition'.
51894         * lib/uninorm/decompose-internal.h: New file.
51895         * lib/uninorm/compat-decomposition.c: New file.
51896         * modules/uninorm/compat-decomposition: New file.
51897
51898         Tests for module 'uninorm/canonical-decomposition'.
51899         * tests/uninorm/test-canonical-decomposition.c: New file.
51900         * modules/uninorm/canonical-decomposition-tests: New file.
51901
51902         New module 'uninorm/canonical-decomposition'.
51903         * lib/uninorm/canonical-decomposition.c: New file.
51904         * modules/uninorm/canonical-decomposition: New file.
51905
51906         Tests for module 'uninorm/decomposition'.
51907         * tests/uninorm/test-decomposition.c: New file.
51908         * modules/uninorm/decomposition-tests: New file.
51909
51910         New module 'uninorm/decomposition'.
51911         * lib/uninorm/decomposition.c: New file.
51912         * modules/uninorm/decomposition: New file.
51913
51914         New module 'uninorm/decomposition-table'.
51915         * lib/uninorm/decomposition-table.h: New file.
51916         * lib/uninorm/decomposition-table.c: New file.
51917         * lib/uninorm/decomposition-table1.h: New file, generated by
51918         gen-uni-tables.
51919         * lib/uninorm/decomposition-table2.h: New file, generated by
51920         gen-uni-tables.
51921         * modules/uninorm/decomposition-table: New file.
51922
51923         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
51924         (UC_DECOMP_*): New enumeration items.
51925         (get_decomposition): New function.
51926         (struct decomp_table): New type.
51927         (output_decomposition, output_decomposition_tables): New functions.
51928         (unicode_composition_exclusions): New variable.
51929         (fill_composition_exclusions, debug_output_composition_tables): New
51930         functions.
51931         (main): Accept one more argument. Invoke fill_composition_exclusions.
51932         Output decomposition and composition tables.
51933
51934         New module 'uninorm/base'.
51935         * lib/uninorm.h: New file.
51936         * lib/unictype.h: Update comment.
51937         * modules/uninorm/base: New file.
51938
51939 2009-02-21  David Lutterkort  <lutter@redhat.com>
51940
51941         Tests for module 'safe-alloc'.
51942         * tests/test-safe-alloc.c: New file.
51943         * modules/safe-alloc-tests: New file.
51944
51945         New module 'safe-alloc'.
51946         * lib/safe-alloc.h: New file.
51947         * lib/safe-alloc.c: New file.
51948         * m4/safe-alloc.m4: New file.
51949         * modules/safe-alloc: New file.
51950         * doc/safe-alloc.texi: New file.
51951         * doc/gnulib.texi: Include it.
51952         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
51953         safe-alloc.
51954
51955 2009-02-18  Bruno Haible  <bruno@clisp.org>
51956
51957         Fix link error on non-glibc systems.
51958         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
51959         variable.
51960         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51961
51962 2009-02-18  Jim Meyering  <meyering@redhat.com>
51963
51964         fts: avoid used-uninitialized error due to recent change
51965         * lib/fts.c (fts_read): Guard uses of the new member,
51966         parent->fts_n_dirs_remaining, since it's not relevant for
51967         the parent of a directory specified on the command-line.
51968
51969 2009-02-17  James Youngman  <jay@gnu.org>
51970             Bruno Haible  <bruno@clisp.org>
51971
51972         * m4/include_next.m4: Reformulate comment.
51973
51974 2009-02-16  Jim Meyering  <meyering@redhat.com>
51975
51976         fts: add #if guards so that the fts_lgpl module still builds
51977         * lib/fts.c: Guard just-added hash-table-using parts with
51978         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
51979         Reported by Simon Josefsson.
51980
51981 2009-02-15  Bruno Haible  <bruno@clisp.org>
51982
51983         * modules/array-mergesort-tests: New file.
51984         * tests/test-array-mergesort.c: New file.
51985
51986         New module 'array-mergesort'.
51987         * modules/array-mergesort: New file.
51988         * lib/array-mergesort.h: New file.
51989
51990 2009-02-15  Bruno Haible  <bruno@clisp.org>
51991
51992         Fix 2009-02-07 commit.
51993         * lib/gen-uni-tables.c (output_predicate, output_category,
51994         output_combclass, output_bidi_category, output_decimal_digit,
51995         output_digit, output_numeric, output_mirror, output_scripts,
51996         output_ident_category, output_simple_mapping): Fix format directives.
51997         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
51998
51999 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
52000
52001         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
52002         fixes are available from IBM.
52003
52004 2009-02-13  Jim Meyering  <meyering@redhat.com>
52005
52006         fts: arrange not to stat non-directories in more cases
52007         This makes GNU find (when it doesn't need to stat each file)
52008         *much* more efficient at traversing reiserfs file systems.
52009         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
52010         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
52011         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
52012         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
52013         (leaf_optimization_applies): New function.
52014         (LCO_hash, LCO_compare): New helper functions.
52015         (link_count_optimize_ok): New function.
52016         (fts_stat): Initialize new member (if dir).
52017         (fts_read): Decrement parent's fts_n_dirs_remaining count if
52018         we've just stat'ed a directory.  Skip the stat call when possible.
52019         ---
52020         Note this AFS-related exchange:
52021         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
52022         and note find's pioctl call in find/fstype.c.
52023         But that is necessary only if you want to enable the
52024         optimization for AFS, and for now, I don't.
52025
52026         fts: move a function definition "up" (no semantic change)
52027         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
52028         "up" to precede upcoming use of a related function.
52029
52030 2009-02-11  Jim Meyering  <meyering@redhat.com>
52031
52032         fts: correct internal computation of nlinks (optimization-related)
52033         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
52034         whether the current entry is a directory, so don't test it.
52035
52036 2009-02-10  Bruno Haible  <bruno@clisp.org>
52037
52038         Tests for module 'uniwbrk/ulc-wordbreaks'.
52039         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
52040         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
52041         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
52042
52043         Tests for module 'uniwbrk/u32-wordbreaks'.
52044         * modules/uniwbrk/u32-wordbreaks-tests: New file.
52045         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
52046
52047         Tests for module 'uniwbrk/u16-wordbreaks'.
52048         * modules/uniwbrk/u16-wordbreaks-tests: New file.
52049         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
52050
52051         Tests for module 'uniwbrk/u8-wordbreaks'.
52052         * modules/uniwbrk/u8-wordbreaks-tests: New file.
52053         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
52054
52055 2009-02-10  Bruno Haible  <bruno@clisp.org>
52056
52057         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
52058         property.
52059         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
52060         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
52061         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
52062
52063 2009-02-10  Simon Josefsson  <simon@josefsson.org>
52064
52065         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
52066         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
52067
52068 2009-02-10  Bruno Haible  <bruno@clisp.org>
52069
52070         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
52071         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
52072         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
52073         * lib/unilbrk/u8-possible-linebreaks.c: Update.
52074         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
52075         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
52076
52077 2009-02-09  Simon Josefsson  <simon@josefsson.org>
52078
52079         * lib/sockets.h (gl_fd_to_handle): New function.
52080
52081         * tests/test-sockets.c: Call gl_fd_to_handle.
52082
52083 2009-02-09  Bruno Haible  <bruno@clisp.org>
52084
52085         * doc/havelib.texi: Document the conventions on bi-arch systems.
52086
52087 2009-02-08  Bruno Haible  <bruno@clisp.org>
52088
52089         Document the AC_LIB_LINKFLAGS macro.
52090         * doc/havelib.texi: New file, mostly written on 2005-05-24.
52091         * doc/gnulib.texi: Include it.
52092
52093 2009-02-08  Bruno Haible  <bruno@clisp.org>
52094
52095         Fix wrong order of sections, compared to TOC.
52096         * doc/gnulib.texi: Include relocatable-maint.texi after the
52097         "Regular expressions" node, not before.
52098
52099 2009-02-08  Bruno Haible  <bruno@clisp.org>
52100
52101         Tests for module 'unicase/totitle'.
52102         * modules/unicase/totitle-tests: New file.
52103
52104         Tests for module 'unicase/tolower'.
52105         * modules/unicase/tolower-tests: New file.
52106
52107         Tests for module 'unicase/toupper'.
52108         * modules/unicase/toupper-tests: New file.
52109         * tests/unicase/test-mapping-part1.h: New file.
52110         * tests/unicase/test-mapping-part2.h: New file.
52111
52112         New module 'unicase/totitle'.
52113         * modules/unicase/totitle: New file.
52114         * lib/unicase/totitle.c: New file.
52115
52116         New module 'unicase/tolower'.
52117         * modules/unicase/tolower: New file.
52118         * lib/unicase/tolower.c: New file.
52119
52120         New module 'unicase/toupper'.
52121         * modules/unicase/toupper: New file.
52122         * lib/unicase/toupper.c: New file.
52123         * lib/unicase/simple-mapping.h: New file.
52124
52125         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
52126         (mapping_table): New structure.
52127         (output_simple_mapping): New function.
52128         (main): Invoke output_simple_mapping_test and output_simple_mapping.
52129         * modules/gen-uni-tables (Description): Update.
52130         * lib/unicase/toupper.h: New file, automatically generated by
52131         gen-uni-tables.
52132         * lib/unicase/tolower.h: New file, automatically generated by
52133         gen-uni-tables.
52134         * lib/unicase/totitle.h: New file, automatically generated by
52135         gen-uni-tables.
52136         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
52137         gen-uni-tables.
52138         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
52139         gen-uni-tables.
52140         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
52141         gen-uni-tables.
52142
52143         New module 'unicase/base'.
52144         * modules/unicase/base: New file.
52145         * lib/unicase.h: New file.
52146
52147 2009-02-08  Bruno Haible  <bruno@clisp.org>
52148
52149         New module 'uniwbrk/ulc-wordbreaks'.
52150         * modules/uniwbrk/ulc-wordbreaks: New file.
52151         * lib/uniwbrk/ulc-wordbreaks.c: New file.
52152
52153         New module 'uniwbrk/u32-wordbreaks'.
52154         * modules/uniwbrk/u32-wordbreaks: New file.
52155         * lib/uniwbrk/u32-wordbreaks.c: New file.
52156
52157         New module 'uniwbrk/u16-wordbreaks'.
52158         * modules/uniwbrk/u16-wordbreaks: New file.
52159         * lib/uniwbrk/u16-wordbreaks.c: New file.
52160
52161         New module 'uniwbrk/u8-wordbreaks'.
52162         * modules/uniwbrk/u8-wordbreaks: New file.
52163         * lib/uniwbrk/u8-wordbreaks.c: New file.
52164         * lib/uniwbrk/u-wordbreaks.h: New file.
52165
52166         New module 'uniwbrk/table'.
52167         * modules/uniwbrk/table: New file.
52168         * lib/uniwbrk/wbrktable.h: New file.
52169         * lib/uniwbrk/wbrktable.c: New file.
52170
52171         New module 'uniwbrk/wordbreak-property'.
52172         * modules/uniwbrk/wordbreak-property: New file.
52173         * lib/uniwbrk/wordbreak-property.c: New file.
52174
52175         * lib/gen-uni-tables.c (WBP_*): New enum items.
52176         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
52177         (unicode_org_wbp): New variable.
52178         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
52179         New functions.
52180         (wbp_table): New structure.
52181         (output_wbp, output_wbrk_tables): New functions.
52182         (main): Accept additional argument. Invoke fill_org_wbp,
52183         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
52184         output_wbrk_tables.
52185         * modules/gen-uni-tables (Description): Update.
52186         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
52187         gen-uni-tables.
52188
52189         New module 'uniwbrk/base'.
52190         * modules/uniwbrk/base: New file.
52191         * lib/uniwbrk.h: New file.
52192
52193 2009-02-08  Bruno Haible  <bruno@clisp.org>
52194
52195         Update to Unicode 5.1.0.
52196         * lib/gen-uni-tables.c (is_property_alphabetic): Include
52197         U+2185..U+2188.
52198         (is_property_default_ignorable_code_point): Don't include characters
52199         of category Cc or Cs and not-a-characters.
52200         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
52201         U+0D79, U+109E, U+109F, U+A60C.
52202         * lib/unictype/bidi_of.h: Regenerated.
52203         * lib/unictype/blocks.h: Regenerated.
52204         * lib/unictype/categ_C.h: Regenerated.
52205         * lib/unictype/categ_Cf.h: Regenerated.
52206         * lib/unictype/categ_Cn.h: Regenerated.
52207         * lib/unictype/categ_L.h: Regenerated.
52208         * lib/unictype/categ_Ll.h: Regenerated.
52209         * lib/unictype/categ_Lm.h: Regenerated.
52210         * lib/unictype/categ_Lo.h: Regenerated.
52211         * lib/unictype/categ_Lu.h: Regenerated.
52212         * lib/unictype/categ_M.h: Regenerated.
52213         * lib/unictype/categ_Mc.h: Regenerated.
52214         * lib/unictype/categ_Me.h: Regenerated.
52215         * lib/unictype/categ_Mn.h: Regenerated.
52216         * lib/unictype/categ_N.h: Regenerated.
52217         * lib/unictype/categ_Nd.h: Regenerated.
52218         * lib/unictype/categ_Nl.h: Regenerated.
52219         * lib/unictype/categ_No.h: Regenerated.
52220         * lib/unictype/categ_P.h: Regenerated.
52221         * lib/unictype/categ_Pd.h: Regenerated.
52222         * lib/unictype/categ_Pe.h: Regenerated.
52223         * lib/unictype/categ_Pf.h: Regenerated.
52224         * lib/unictype/categ_Pi.h: Regenerated.
52225         * lib/unictype/categ_Po.h: Regenerated.
52226         * lib/unictype/categ_Ps.h: Regenerated.
52227         * lib/unictype/categ_S.h: Regenerated.
52228         * lib/unictype/categ_Sk.h: Regenerated.
52229         * lib/unictype/categ_Sm.h: Regenerated.
52230         * lib/unictype/categ_So.h: Regenerated.
52231         * lib/unictype/categ_of.h: Regenerated.
52232         * lib/unictype/combining.h: Regenerated.
52233         * lib/unictype/ctype_alnum.h: Regenerated.
52234         * lib/unictype/ctype_alpha.h: Regenerated.
52235         * lib/unictype/ctype_graph.h: Regenerated.
52236         * lib/unictype/ctype_lower.h: Regenerated.
52237         * lib/unictype/ctype_print.h: Regenerated.
52238         * lib/unictype/ctype_punct.h: Regenerated.
52239         * lib/unictype/ctype_upper.h: Regenerated.
52240         * lib/unictype/decdigit.h: Regenerated.
52241         * lib/unictype/digit.h: Regenerated.
52242         * lib/unictype/mirror.h: Regenerated.
52243         * lib/unictype/numeric.h: Regenerated.
52244         * lib/unictype/pr_alphabetic.h: Regenerated.
52245         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
52246         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
52247         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
52248         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
52249         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
52250         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
52251         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
52252         * lib/unictype/pr_combining.h: Regenerated.
52253         * lib/unictype/pr_dash.h: Regenerated.
52254         * lib/unictype/pr_decimal_digit.h: Regenerated.
52255         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
52256         * lib/unictype/pr_deprecated.h: Regenerated.
52257         * lib/unictype/pr_diacritic.h: Regenerated.
52258         * lib/unictype/pr_extender.h: Regenerated.
52259         * lib/unictype/pr_format_control.h: Regenerated.
52260         * lib/unictype/pr_grapheme_base.h: Regenerated.
52261         * lib/unictype/pr_grapheme_extend.h: Regenerated.
52262         * lib/unictype/pr_grapheme_link.h: Regenerated.
52263         * lib/unictype/pr_id_continue.h: Regenerated.
52264         * lib/unictype/pr_id_start.h: Regenerated.
52265         * lib/unictype/pr_ideographic.h: Regenerated.
52266         * lib/unictype/pr_ignorable_control.h: Regenerated.
52267         * lib/unictype/pr_lowercase.h: Regenerated.
52268         * lib/unictype/pr_math.h: Regenerated.
52269         * lib/unictype/pr_numeric.h: Regenerated.
52270         * lib/unictype/pr_other_alphabetic.h: Regenerated.
52271         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
52272         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
52273         * lib/unictype/pr_other_id_continue.h: Regenerated.
52274         * lib/unictype/pr_other_lowercase.h: Regenerated.
52275         * lib/unictype/pr_other_math.h: Regenerated.
52276         * lib/unictype/pr_punctuation.h: Regenerated.
52277         * lib/unictype/pr_sentence_terminal.h: Regenerated.
52278         * lib/unictype/pr_soft_dotted.h: Regenerated.
52279         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
52280         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
52281         * lib/unictype/pr_unified_ideograph.h: Regenerated.
52282         * lib/unictype/pr_uppercase.h: Regenerated.
52283         * lib/unictype/pr_xid_continue.h: Regenerated.
52284         * lib/unictype/pr_xid_start.h: Regenerated.
52285         * lib/unictype/pr_zero_width.h: Regenerated.
52286         * lib/unictype/scripts.h: Regenerated.
52287         * lib/unictype/scripts_byname.gperf: Regenerated.
52288         * lib/unictype/sy_java_ident.h: Regenerated.
52289         * lib/unilbrk/lbrkprop1.h: Regenerated.
52290         * lib/unilbrk/lbrkprop2.h: Regenerated.
52291         * tests/unictype/test-categ_C.c: Regenerated.
52292         * tests/unictype/test-categ_Cf.c: Regenerated.
52293         * tests/unictype/test-categ_Cn.c: Regenerated.
52294         * tests/unictype/test-categ_L.c: Regenerated.
52295         * tests/unictype/test-categ_Ll.c: Regenerated.
52296         * tests/unictype/test-categ_Lm.c: Regenerated.
52297         * tests/unictype/test-categ_Lo.c: Regenerated.
52298         * tests/unictype/test-categ_Lu.c: Regenerated.
52299         * tests/unictype/test-categ_M.c: Regenerated.
52300         * tests/unictype/test-categ_Mc.c: Regenerated.
52301         * tests/unictype/test-categ_Me.c: Regenerated.
52302         * tests/unictype/test-categ_Mn.c: Regenerated.
52303         * tests/unictype/test-categ_N.c: Regenerated.
52304         * tests/unictype/test-categ_Nd.c: Regenerated.
52305         * tests/unictype/test-categ_Nl.c: Regenerated.
52306         * tests/unictype/test-categ_No.c: Regenerated.
52307         * tests/unictype/test-categ_P.c: Regenerated.
52308         * tests/unictype/test-categ_Pd.c: Regenerated.
52309         * tests/unictype/test-categ_Pe.c: Regenerated.
52310         * tests/unictype/test-categ_Pf.c: Regenerated.
52311         * tests/unictype/test-categ_Pi.c: Regenerated.
52312         * tests/unictype/test-categ_Po.c: Regenerated.
52313         * tests/unictype/test-categ_Ps.c: Regenerated.
52314         * tests/unictype/test-categ_S.c: Regenerated.
52315         * tests/unictype/test-categ_Sk.c: Regenerated.
52316         * tests/unictype/test-categ_Sm.c: Regenerated.
52317         * tests/unictype/test-categ_So.c: Regenerated.
52318         * tests/unictype/test-ctype_alnum.c: Regenerated.
52319         * tests/unictype/test-ctype_alpha.c: Regenerated.
52320         * tests/unictype/test-ctype_graph.c: Regenerated.
52321         * tests/unictype/test-ctype_lower.c: Regenerated.
52322         * tests/unictype/test-ctype_print.c: Regenerated.
52323         * tests/unictype/test-ctype_punct.c: Regenerated.
52324         * tests/unictype/test-ctype_upper.c: Regenerated.
52325         * tests/unictype/test-decdigit.h: Regenerated.
52326         * tests/unictype/test-digit.h: Regenerated.
52327         * tests/unictype/test-numeric.h: Regenerated.
52328         * tests/unictype/test-pr_alphabetic.c: Regenerated.
52329         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
52330         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
52331         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
52332         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
52333         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
52334         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
52335         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
52336         * tests/unictype/test-pr_combining.c: Regenerated.
52337         * tests/unictype/test-pr_dash.c: Regenerated.
52338         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
52339         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
52340         * tests/unictype/test-pr_deprecated.c: Regenerated.
52341         * tests/unictype/test-pr_diacritic.c: Regenerated.
52342         * tests/unictype/test-pr_extender.c: Regenerated.
52343         * tests/unictype/test-pr_format_control.c: Regenerated.
52344         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
52345         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
52346         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
52347         * tests/unictype/test-pr_id_continue.c: Regenerated.
52348         * tests/unictype/test-pr_id_start.c: Regenerated.
52349         * tests/unictype/test-pr_ideographic.c: Regenerated.
52350         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
52351         * tests/unictype/test-pr_lowercase.c: Regenerated.
52352         * tests/unictype/test-pr_math.c: Regenerated.
52353         * tests/unictype/test-pr_numeric.c: Regenerated.
52354         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
52355         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
52356         Regenerated.
52357         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
52358         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
52359         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
52360         * tests/unictype/test-pr_other_math.c: Regenerated.
52361         * tests/unictype/test-pr_punctuation.c: Regenerated.
52362         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
52363         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
52364         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
52365         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
52366         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
52367         * tests/unictype/test-pr_uppercase.c: Regenerated.
52368         * tests/unictype/test-pr_xid_continue.c: Regenerated.
52369         * tests/unictype/test-pr_xid_start.c: Regenerated.
52370         * tests/unictype/test-pr_zero_width.c: Regenerated.
52371
52372         Update to Unicode 5.1.0.
52373         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
52374         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
52375         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
52376         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
52377         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
52378         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
52379         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
52380         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
52381         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
52382         (nonspacing_table_ind): Update.
52383         * tests/uniwidth/test-uc_width2.sh: Update expected result.
52384
52385         Update to Unicode 5.1.0.
52386         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
52387         code transform.
52388         * lib/uniname/uniname.c (unicode_character_name,
52389         unicode_name_character): Add the range 0x1Fxxx to the code transform.
52390         * lib/uniname/uninames.h: Regenerated.
52391         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
52392
52393 2009-02-07  Bruno Haible  <bruno@clisp.org>
52394
52395         Merge gen-ctype and gen-lbrk into a single program.
52396         * lib/gen-uni-tables.c: New file, incorporating
52397         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
52398         Add directory prefixes to the names of the generated files.
52399         * lib/unictype/gen-ctype.c: Remove file.
52400         * lib/unilbrk/gen-lbrk.c: Remove file.
52401         * modules/gen-uni-tables: New file.
52402         * modules/unictype/gen-ctype: Remove file.
52403         * modules/unilbrk/gen-lbrk: Remove file.
52404
52405 2009-02-07  Bruno Haible  <bruno@clisp.org>
52406
52407         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
52408
52409         New module 'unistr/u32-strcoll'.
52410         * modules/unistr/u32-strcoll: New file.
52411         * lib/unistr/u32-strcoll.c: New file.
52412
52413         New module 'unistr/u16-strcoll'.
52414         * modules/unistr/u16-strcoll: New file.
52415         * lib/unistr/u16-strcoll.c: New file.
52416
52417         New module 'unistr/u8-strcoll'.
52418         * modules/unistr/u8-strcoll: New file.
52419         * lib/unistr/u8-strcoll.c: New file.
52420         * lib/unistr/u-strcoll.h: New file.
52421
52422 2009-02-07  Bruno Haible  <bruno@clisp.org>
52423
52424         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
52425         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52426         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52427         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
52428         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
52429         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
52430
52431 2009-02-07  Bruno Haible  <bruno@clisp.org>
52432
52433         Make 64-bit clean.
52434         * lib/unictype/gen-ctype.c (output_predicate, output_category,
52435         output_combclass, output_bidi_category, output_decimal_digit,
52436         output_digit, output_numeric, output_mirror, output_scripts,
52437         output_ident_category): Use proper width specifier in format strings.
52438
52439 2009-02-07  Bruno Haible  <bruno@clisp.org>
52440
52441         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
52442         failure behaviour.
52443
52444 2009-02-07  Jim Meyering  <meyering@redhat.com>
52445
52446         regex: avoid compilation failure with upcoming gcc-4.4
52447         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
52448         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
52449         "... error: integer overflow in preprocessor expression".
52450
52451 2009-02-05  Ben Pfaff  <blp@gnu.org>
52452
52453         Fix link errors on Windows when close module is used.
52454         * modules/close: Add $(LIB_CLOSE) to Link section.
52455         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
52456         $(LIB_CLOSE) on Windows.
52457
52458 2009-02-05  Jim Meyering  <meyering@redhat.com>
52459
52460         still avoid unused-parameter warnings, but do it cleanly
52461         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
52462         (get_fs_usage): Cast to void instead.
52463         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
52464         (dev_from_mount_options, read_file_system_list): Cast to void.
52465         Prompted by Bruno Haible.
52466
52467 2009-02-04  Jim Meyering  <meyering@redhat.com>
52468
52469         fsusage.c: correct copyright year
52470         * lib/fsusage.c: Reflect year in which the change is pushed into
52471
52472         avoid misc. warnings
52473         * lib/fsusage.c (UNUSED_PARAM): Define.
52474         (get_fs_usage): Mark parameter "disk" as unused.
52475         * lib/getugroups.c (getgrent): Use "void" in prototype.
52476         * lib/mountlist.c: Mark unused parameters.
52477         (read_file_system_list): Declare a local with "const".
52478         * lib/nanosleep.c (getnow): Declare static.
52479         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
52480
52481         dirfd: set errno upon failure
52482         * lib/dirfd.c: Include <errno.h>.
52483         Set errno to ENOTSUP when returning -1.
52484         * modules/dirfd (Depends-on): Add errno.
52485         Suggested by John Kodis <kodis@comcast.net>.
52486
52487 2009-02-01  Bruno Haible  <bruno@clisp.org>
52488
52489         Don't assume sizeof (long) >= sizeof (void *).
52490         * lib/memcmp.c: Include stdint.h.
52491         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
52492         srcp2 to 'const byte *'.
52493         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
52494         types to uintptr_t.
52495         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
52496         * modules/memcmp (Depends-on): Add stdint.
52497         Reported by Ozkan Sezer <sezeroz@gmail.com>.
52498
52499 2009-01-30  Eric Blake  <ebb9@byu.net>
52500
52501         fix more require-before-expand issues
52502         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
52503         expand, AC_PROG_AWK.
52504         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
52505
52506 2009-01-28  Eric Blake  <ebb9@byu.net>
52507
52508         version-etc: use consistent URL formatting
52509         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
52510         Improve formatting.  Use fputs for string without %.
52511
52512 2009-01-28  Jim Meyering  <meyering@redhat.com>
52513
52514         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
52515         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
52516         "underquoted definition of NAME" from autoconf-2.59.
52517
52518 2009-01-28  Bruno Haible  <bruno@clisp.org>
52519
52520         * doc/gnulib.texi: Add "Obsolete modules" to index.
52521
52522 2009-01-28  Jim Meyering  <meyering@redhat.com>
52523
52524         useless-if-before-free: recognize more variants
52525         * build-aux/useless-if-before-free: Also recognize e.g.,
52526         if (NULL != p) free (p);
52527
52528 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
52529
52530         test-getaddrinfo: skip (don't fail) this test when there's no network
52531         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
52532         on the presumption that it means you lack network access.
52533
52534 2009-01-26  Jim Meyering  <meyering@redhat.com>
52535
52536         fflush: avoid warnings on modern systems
52537         * lib/fflush.c (rpl_fflush): Move declarations of locals,
52538         pos and result, into scopes where they're used.
52539
52540 2009-01-26  Eric Blake  <ebb9@byu.net>
52541
52542         Silence warning reintroduced by recent extensions patch.
52543         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
52544         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
52545         autoconf.
52546
52547         Backport improved autoconf semantics of AC_DEFUN_ONCE.
52548         * m4/00gnulib.m4: New file.
52549         * gnulib-tool (func_get_filelist): Always use it.
52550         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
52551         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
52552
52553 2009-01-25  Bruno Haible  <bruno@clisp.org>
52554
52555         Make test-quotearg work on MacOS X and AIX.
52556         * tests/test-quotearg.sh: New file.
52557         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
52558         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
52559         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
52560         include <libintl.h>.
52561         (fake_locale): Remove variable.
52562         (gettext, dgettext, dcgettext): Remove functions.
52563         (main): Instead of setting a fake locale, set a real locale. Call
52564         textdomain and bindtextdomain.
52565         * modules/quotearg-tests (Files): Add the new files.
52566         (Depends-on): Add gettext, setenv, unsetenv.
52567         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52568         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
52569         Augment TESTS_ENVIRONMENT.
52570
52571 2009-01-25  Bruno Haible  <bruno@clisp.org>
52572
52573         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
52574         fr_FR.ISO8859-1 locale on MacOS X.
52575         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
52576         ja_JP.eucJP locale on MacOS X.
52577         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
52578         zh_CN.GB18030 locale on MacOS X.
52579
52580 2009-01-25  Bruno Haible  <bruno@clisp.org>
52581
52582         Avoid link errors on MacOS X 10.3.
52583         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
52584         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
52585
52586 2009-01-25  Bruno Haible  <bruno@clisp.org>
52587
52588         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52589         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
52590         * modules/pipe (Files): Remove m4/posix_spawn.m4.
52591         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52592         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
52593         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52594         posix_spawnattr_init, posix_spawnattr_setsigmask,
52595         posix_spawnattr_setflags, posix_spawnattr_destroy.
52596
52597         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52598         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
52599         * modules/execute (Files): Remove m4/posix_spawn.m4.
52600         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52601         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52602         posix_spawnattr_init, posix_spawnattr_setsigmask,
52603         posix_spawnattr_setflags, posix_spawnattr_destroy.
52604
52605 2009-01-25  Bruno Haible  <bruno@clisp.org>
52606
52607         * lib/glthread/threadlib.c: Include <stdlib.h>.
52608
52609 2009-01-25  Bruno Haible  <bruno@clisp.org>
52610
52611         * lib/glthread/threadlib.c (dummy): New declaration.
52612
52613 2009-01-25  Bruno Haible  <bruno@clisp.org>
52614
52615         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
52616         multibyte characters also for the GB18030 encoding. Don't crash when
52617         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
52618
52619 2009-01-25  Bruno Haible  <bruno@clisp.org>
52620
52621         Avoid redefining 'struct random_data' on OSF/1 5.1.
52622         * lib/stdlib.in.h: Include <random.h> if it exists.
52623         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
52624         HAVE_RANDOM_H. Include <random.h> when testing whether
52625         'struct random_data' exists.
52626         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
52627
52628 2009-01-25  Bruno Haible  <bruno@clisp.org>
52629
52630         Don't install charset.alias on MacOS X >= 10.3.
52631         * lib/localcharset.c (DARWIN7): New macro.
52632         (get_charset_aliases): Hardcode the result for Darwin7.
52633         * modules/localcharset (install-exec-local): Don't install
52634         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
52635
52636 2009-01-25  Bruno Haible  <bruno@clisp.org>
52637
52638         Don't install charset.alias on mingw and Cygwin.
52639         * modules/localcharset (install-exec-local): Don't install
52640         charset.alias on mingw and Cygwin, if the file does not yet exist.
52641         The result for these platforms is hardcoded in localcharset.c.
52642
52643 2009-01-25  Bruno Haible  <bruno@clisp.org>
52644
52645         Make it possible again to use AC_GNU_SOURCE together with gnulib.
52646         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
52647         before requiring AC_USE_SYSTEM_EXTENSIONS.
52648
52649 2009-01-25  Jim Meyering  <meyering@redhat.com>
52650
52651         c-strtod: avoid warnings
52652         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
52653         "assignment discards qualifiers from pointer target type" warnings.
52654
52655 2009-01-24  Bruno Haible  <bruno@clisp.org>
52656
52657         Add support for non-UTF-8 locales on MacOS X.
52658         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
52659         canonical encodings. For Darwin 7 and newer, don't map traditional
52660         encodings to UTF-8.
52661         Reported by Vincent Lefevre <vincent@vinc17.org>
52662         at <http://savannah.gnu.org/bugs/?25235>.
52663
52664 2009-01-24  Bruno Haible  <bruno@clisp.org>
52665
52666         * doc/gnulib.texi (Obsolete modules): New section.
52667         Reported by Mike Frysinger <vapier@gentoo.org>.
52668
52669 2009-01-24  Bruno Haible  <bruno@clisp.org>
52670
52671         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
52672         (%.dvi): New rule.
52673
52674 2009-01-24  Bruno Haible  <bruno@clisp.org>
52675
52676         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
52677         Reported by Eric Blake.
52678
52679 2009-01-24  Bruno Haible  <bruno@clisp.org>
52680
52681         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
52682         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
52683         Reported by Gary V. Vaughan <gary@gnu.org>.
52684
52685 2009-01-24  Bruno Haible  <bruno@clisp.org>
52686
52687         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
52688
52689 2009-01-23  Bruno Haible  <bruno@clisp.org>
52690
52691         Make c-strtod, c-strtold usable in libraries.
52692         * lib/c-strtod.c: Include string.h instead of xalloc.h.
52693         (C_STRTOD): Call strdup instead of xstrdup.
52694         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
52695         * modules/c-strtold (Depends-on): Likewise.
52696         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
52697         * NEWS: Mention the change.
52698         Reported by Michael Gold <mgold@ncf.ca>.
52699
52700 2009-01-23  Jim Meyering  <meyering@redhat.com>
52701
52702         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
52703         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
52704         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
52705
52706 2009-01-23  Simon Josefsson  <simon@josefsson.org>
52707
52708         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
52709         GNU CoreUtils.
52710         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
52711         * modules/version-etc (Description): Update.
52712
52713 2009-01-22  Bruno Haible  <bruno@clisp.org>
52714
52715         Cache the C locale object.
52716         * lib/c-strtod.c (c_locale_cache): New variable.
52717         (c_locale): New function.
52718         (C_STRTOD): Use it, and don't call freelocale.
52719         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
52720         Suggested by Paolo Bonzini.
52721
52722 2009-01-21  Bruno Haible  <bruno@clisp.org>
52723
52724         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
52725         conditions other than overflow.
52726
52727 2009-01-21  Bruno Haible  <bruno@clisp.org>
52728
52729         * lib/c-strtod.c: Include errno.h.
52730         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
52731         value from STRTOD_L and STRTOD.
52732
52733 2009-01-21  Bruno Haible  <bruno@clisp.org>
52734         and Jim Meyering  <meyering@redhat.com>
52735
52736         nanosleep: skip configure test (fail it) for apple universal builds
52737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
52738         universal builds, assume that nanosleep does not work.
52739         * modules/nanosleep (Depends-on): Add multiarch.
52740
52741         mktime: skip configure test (fail it) for apple universal builds
52742         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
52743         universal builds, assume that mktime does not work.
52744         * modules/mktime (Depends-on): Add multiarch.
52745
52746 2009-01-21  Eric Blake  <ebb9@byu.net>
52747
52748         multiarch: avoid expand-before-require warning
52749         * modules/multiarch (configure.ac): Require, rather than expand,
52750         gl_MULTIARCH.
52751         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
52752         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
52753         enforce that all clients require it.  Partial reversion of
52754         2008-12-29 patch.
52755
52756         error: avoid expand-before-require warning
52757         * modules/errno (configure.ac): Require, rather than expand,
52758         gl_HEADER_ERRNO_H.
52759         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
52760         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
52761         enforce that all clients require it.
52762
52763         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
52764         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
52765         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
52766         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
52767
52768 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
52769
52770         Revert:
52771         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52772
52773         regex: do not depend on obsolete modules.
52774         * modules/regex: Remove memcmp and memmove.
52775
52776 2009-01-20  Bruno Haible  <bruno@clisp.org>
52777
52778         Make the 'link' module link on Windows NT 4.
52779         * lib/link.c (_WIN32_WINNT): Don't define.
52780         (CreateHardLinkFuncType): New type.
52781         (CreateHardLinkFunc, initialized): New variables.
52782         (initialize): New function.
52783         (link): Invoke CreateHardLink indirectly through the function pointer.
52784
52785 2009-01-20  Bruno Haible  <bruno@clisp.org>
52786
52787         Fix compilation failure on mingw.
52788         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
52789
52790 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
52791
52792         * doc/c-strtod.texi: Mention a couple of restrictions.
52793
52794 2009-01-20  Jim Meyering  <meyering@redhat.com>
52795
52796         gettimeofday: move more declarations out of functions
52797         * lib/gettimeofday.c: Move extern declarations of tzset and
52798         gmtime out of containing functions.  Prompted by Bruno Haible.
52799
52800 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52801
52802         regex: do not depend on obsolete modules.
52803         * modules/regex: Remove memcmp and memmove.
52804
52805 2009-01-19  Bruno Haible  <bruno@clisp.org>
52806
52807         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52808         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
52809         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52810         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
52811         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
52812
52813 2009-01-19  Bruno Haible  <bruno@clisp.org>
52814
52815         * tests/test-link.c: Include <errno.h>.
52816         (main): Exit with code 77 when a hard link cannot be created due to
52817         the file system.
52818         * tests/test-link.sh: Skip test when a hard link cannot be created due
52819         to the file system.
52820         Suggested by Eric Blake.
52821
52822 2009-01-19  Martin Lambers  <marlam@marlam.de>
52823
52824         * modules/link-tests: New file.
52825         * tests/test-link.sh: New file.
52826         * tests/test-link.c: New file.
52827
52828 2009-01-19  Eric Blake  <ebb9@byu.net>
52829
52830         doc: mention another function added in cygwin 1.7.0
52831         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
52832         Another new function in cygwin 1.7.
52833
52834 2009-01-19  Bruno Haible  <bruno@clisp.org>
52835
52836         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52837         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
52838         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
52839         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52840         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
52841         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
52842         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
52843         * m4/md4.m4 (gl_MD4): Likewise.
52844         * m4/md5.m4 (gl_MD5): Likewise.
52845         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
52846         * m4/sha1.m4 (gl_SHA1): Likewise.
52847         * m4/sha256.m4 (gl_SHA256): Likewise.
52848         * m4/sha512.m4 (gl_SHA512): Likewise.
52849
52850 2009-01-19  Bruno Haible  <bruno@clisp.org>
52851
52852         * modules/uniname/uniname-tests (Depends-on): Add progname.
52853         * tests/uniname/test-uninames.c: Include progname.h.
52854         (main): Call set_program_name.
52855
52856         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
52857         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
52858         (main): Call set_program_name.
52859
52860         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
52861         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
52862         (main): Call set_program_name.
52863
52864         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
52865         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
52866         (main): Call set_program_name.
52867
52868         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
52869         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
52870         (main): Call set_program_name.
52871
52872         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
52873         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
52874         (main): Call set_program_name.
52875
52876         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
52877         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
52878         (main): Call set_program_name.
52879
52880         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
52881         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
52882         (main): Call set_program_name.
52883
52884         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
52885         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
52886         (main): Call set_program_name.
52887
52888 2009-01-19  Eric Blake  <ebb9@byu.net>
52889
52890         test-unistd: test previous patch
52891         * tests/test-unistd.c: Test *_FILENO macros.
52892
52893         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
52894         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52895         Guarantee a definition.
52896         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
52897         * modules/unistd-safer (Depends-on): Add dependency on unistd.
52898         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
52899         * lib/dup-safer.c (STDERR_FILENO): Likewise.
52900         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52901         Likewise.
52902         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
52903         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
52904         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52905         Likewise.
52906         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
52907         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
52908         (STDERR_FILENO): Likewise.
52909         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
52910         (STDERR_FILENO): Likewise.
52911         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
52912         (STDERR_FILENO): Likewise.
52913         Reported by Elbert Pol.
52914
52915 2009-01-19  Eric Blake  <ebb9@byu.net>
52916
52917         doc: mention more functions added in cygwin 1.7.0
52918         * doc/posix-functions/abort.texi (abort): Update wording related
52919         to cygwin.
52920         * doc/posix-functions/daylight.texi (daylight): Likewise.
52921         * doc/posix-functions/optarg.texi (optarg): Likewise.
52922         * doc/posix-functions/optarg.texi (opterr): Likewise.
52923         * doc/posix-functions/optarg.texi (optind): Likewise.
52924         * doc/posix-functions/optarg.texi (optopt): Likewise.
52925         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
52926         worked in 1.5.x, and was withdrawn in 1.7.
52927         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
52928         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
52929         cygwin versions.
52930         * doc/posix-functions/perror.texi (perror): Likewise.
52931         * doc/posix-functions/printf.texi (printf): Likewise.
52932         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
52933         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
52934         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
52935         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
52936         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
52937         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
52938         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
52939         Likewise.
52940         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
52941         Likewise.
52942         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
52943         this function.
52944         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
52945         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
52946         Likewise.
52947         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
52948         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
52949         * doc/posix-functions/confstr.texi (confstr): Likewise.
52950         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
52951         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
52952         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
52953         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
52954         * doc/posix-functions/fputws.texi (fputws): Likewise.
52955         * doc/posix-functions/fwide.texi (fwide): Likewise.
52956         * doc/posix-functions/getwc.texi (getwc): Likewise.
52957         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
52958         * doc/posix-functions/putwc.texi (putwc): Likewise.
52959         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
52960         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
52961         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
52962         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
52963         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
52964         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
52965         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
52966         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
52967         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
52968         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
52969         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
52970
52971 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52972
52973         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
52974         * lib/ioctl.c: Include <sys/ioctl.h>.
52975
52976 2009-01-19  Simon Josefsson  <simon@josefsson.org>
52977
52978         * modules/getdate-tests (Depends-on): Add progname.
52979         * tests/test-getdate.c: Use progname module, to avoid link errors
52980         on non-glibc systems.
52981
52982 2009-01-18  Simon Josefsson  <simon@josefsson.org>
52983
52984         * modules/filenamecat-tests (Depends-on): Add progname.
52985         * modules/fstrcmp-tests (Depends-on): Likewise.
52986
52987         * tests/test-filenamecat.c: Use progname module, to avoid link
52988         errors on non-glibc systems.
52989         * tests/test-fstrcmp.c: Likewise.
52990
52991 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52992
52993         gettimeofday: avoid warning: nested extern declaration of 'localtime'
52994         * lib/gettimeofday.c: Move extern declaration out of function.
52995
52996 2009-01-18  Bruno Haible  <bruno@clisp.org>
52997
52998         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
52999         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
53000         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
53001
53002 2009-01-18  Bruno Haible  <bruno@clisp.org>
53003
53004         * lib/strftime.c (MEMPCPY): Remove unused macro.
53005         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
53006
53007 2009-01-18  Martin Lambers  <marlam@marlam.de>
53008
53009         New module 'link'.
53010         * lib/unistd.in.h (link): New declaration.
53011         * lib/link.c: New file.
53012         * m4/link.m4: New file.
53013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
53014         HAVE_LINK.
53015         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
53016         * modules/link: New file.
53017         * doc/posix-functions/link.texi: Mention the new module.
53018
53019 2009-01-18  Bruno Haible  <bruno@clisp.org>
53020
53021         * tests/test-avltree_list.c (main): Call set_program_name.
53022         * tests/test-avltree_oset.c (main): Likewise.
53023         * tests/test-obstack-printf.c: Include progname.h.
53024         (main): Call set_program_name.
53025         * tests/test-quotearg.c: Include progname.h.
53026         (main): Call set_program_name.
53027         * tests/test-xmemdup0.c: Include progname.h.
53028         (main): Call set_program_name.
53029
53030 2009-01-18  Bruno Haible  <bruno@clisp.org>
53031
53032         New module 'alphasort'.
53033         * lib/dirent.in.h (alphasort): New declaration.
53034         * lib/alphasort.c: New file, from glibc with modifications.
53035         * m4/alphasort.m4: New file.
53036         * modules/alphasort: New file.
53037         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
53038         HAVE_ALPHASORT.
53039         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
53040         HAVE_ALPHASORT.
53041         * doc/posix-functions/alphasort.texi: Mention the new module and the
53042         portability problems.
53043
53044 2009-01-18  Bruno Haible  <bruno@clisp.org>
53045
53046         New module 'scandir'.
53047         * lib/dirent.in.h (scandir): New declaration.
53048         * lib/scandir.c: New file, from glibc with modifications.
53049         * m4/scandir.m4: New file.
53050         * modules/scandir: New file.
53051         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
53052         HAVE_SCANDIR.
53053         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
53054         HAVE_SCANDIR.
53055         * doc/posix-functions/scandir.texi: Mention the new module and the
53056         portability problems.
53057
53058 2009-01-17  Bruno Haible  <bruno@clisp.org>
53059
53060         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
53061         Update documentation.
53062         (func_remove_suffix): Escape all dots in the suffix. Update
53063         documentation.
53064         (func_filter_filelist): Update documentation.
53065         Reported by Ralf Wildenhues.
53066
53067 2009-01-17  Bruno Haible  <bruno@clisp.org>
53068
53069         * modules/dprintf-posix-tests: New file.
53070         * tests/test-dprintf-posix.sh: New file.
53071         * tests/test-dprintf-posix.c: New file.
53072
53073         New modules 'dprintf', 'dprintf-posix'.
53074         * lib/stdio.in.h (dprintf): New declaration.
53075         * lib/dprintf.c: New file.
53076         * m4/dprintf.m4: New file.
53077         * m4/dprintf-posix.m4: New file.
53078         * modules/dprintf: New file.
53079         * modules/dprintf-posix: New file.
53080         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
53081         HAVE_DPRINTF, REPLACE_DPRINTF.
53082         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
53083         HAVE_DPRINTF, REPLACE_DPRINTF.
53084         * doc/posix-functions/dprintf.texi: Mention the new modules.
53085
53086 2009-01-17  Bruno Haible  <bruno@clisp.org>
53087
53088         * modules/vdprintf-posix-tests: New file.
53089         * tests/test-vdprintf-posix.sh: New file.
53090         * tests/test-vdprintf-posix.c: New file.
53091
53092         New modules 'vdprintf', 'vdprintf-posix'.
53093         * lib/stdio.in.h (vdprintf): New declaration.
53094         * lib/vdprintf.c: New file.
53095         * m4/vdprintf.m4: New file.
53096         * m4/vdprintf-posix.m4: New file.
53097         * modules/vdprintf: New file.
53098         * modules/vdprintf-posix: New file.
53099         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
53100         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53101         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
53102         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53103         * doc/posix-functions/vdprintf.texi: Mention the new modules.
53104
53105 2009-01-17  Bruno Haible  <bruno@clisp.org>
53106
53107         Fix replacement of fopen on mingw.
53108         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
53109         mingw.
53110
53111 2009-01-17  Bruno Haible  <bruno@clisp.org>
53112
53113         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
53114         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
53115
53116 2009-01-17  Bruno Haible  <bruno@clisp.org>
53117
53118         Avoid test-fflush2.sh failure on mingw.
53119         * tests/test-fflush2.c: Include binary-io.h.
53120         (main): Put standard input into binary mode.
53121         * modules/fflush-tests (Depends-on): Add binary-io.
53122
53123 2009-01-17  Bruno Haible  <bruno@clisp.org>
53124
53125         * lib/wchar.in.h: In another particular situation, include only the
53126         system's <wchar.h> file.
53127         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
53128         Reported by Albert Chin-A-Young <china@thewrittenword.com>
53129         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
53130
53131 2009-01-17  Bruno Haible  <bruno@clisp.org>
53132
53133         Support for stripping executables in --enable-relocatable.
53134         * build-aux/install-reloc: Expect one more argument, or an environment
53135         variable RELOC_STRIP_PROG. If set, strip the destination program and
53136         its wrapper.
53137         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
53138         RELOC_STRIP_PROG.
53139         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
53140         to set RELOCATABLE_STRIP.
53141         * NEWS: Mention the new Makefile requirement.
53142
53143 2009-01-17  Bruno Haible  <bruno@clisp.org>
53144
53145         * build-aux/install-reloc: Remove debugging information left over by
53146         C compiler on MacOS X.
53147
53148 2009-01-17  Bruno Haible  <bruno@clisp.org>
53149
53150         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
53151         * lib/progreloc.c (find_executable): Fix type of pointer passed to
53152         _NSGetExecutablePath.
53153
53154 2009-01-16  Jim Meyering  <meyering@redhat.com>
53155
53156         strerror: avoid warnings about discarding "const"
53157         * lib/strerror.c (rpl_strerror): Instead of returning a const
53158         string from each and every "case", use a variable, and add a single
53159         cast after the switch.
53160
53161 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
53162
53163         * lib/arpa_inet.in.h: Add extern "C" block for C++.
53164
53165 2009-01-16  Bruno Haible  <bruno@clisp.org>
53166
53167         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
53168         array initializer syntax that also works in C++ mode.
53169         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53170
53171 2009-01-16  Jim Meyering  <meyering@redhat.com>
53172
53173         poll: suppress a warning
53174         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
53175         to ignore "...unsigned expression < 0 is always false" warnings.
53176
53177 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
53178
53179         poll: remove declarations of unused variables
53180         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
53181         sockbuf and optlen.
53182
53183 2009-01-15  Bruno Haible  <bruno@clisp.org>
53184
53185         Make fflush-after-ungetc POSIX compliant on BSD systems.
53186         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
53187         (clear_ungetc_buffer): Implement also for other systems.
53188         (rpl_fflush): On glibc systems, invoke
53189         clear_ungetc_buffer_preserving_position. Otherwise, invoke
53190         clear_ungetc_buffer after fetching the stream's position, not before.
53191
53192 2009-01-15  Bruno Haible  <bruno@clisp.org>
53193
53194         Make fflush-after-ungetc POSIX compliant on glibc systems.
53195         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
53196         after ungetc.
53197         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
53198         (rpl_fflush): On glibc systems, simply call the system's fflush
53199         function after clearing the ungetc buffer.
53200         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
53201         Instead, lseek only to the end of file, then use the system's fseeko
53202         for the rest. On glibc systems, reset the EOF indicator bit.
53203
53204 2009-01-15  Jim Meyering  <meyering@redhat.com>
53205
53206         openmp.m4: revert quote-adding change, for portability to older autoconf
53207         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
53208         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
53209         Simon Josefsson noticed the problem when using autoconf-2.61.
53210
53211 2009-01-15  Bruno Haible  <bruno@clisp.org>
53212
53213         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
53214         * tests/test-fflush2.c (ASSERT): Always fail.
53215         (main): Add two tests for fflush() after ungetc(), taking into account
53216         the Austin Group's clarification.
53217         Suggested by Eric Blake.
53218
53219 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
53220
53221         mktime.m4: remove K&R-style function prototypes
53222         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
53223         for the Sun C++ compiler.
53224
53225 2009-01-14  Bruno Haible  <bruno@clisp.org>
53226
53227         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
53228         while including <wchar.h>.
53229         * lib/wchar.in.h: In two particular situations on HP-UX, include only
53230         the system's <wchar.h> file.
53231         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53232
53233 2009-01-14  Bruno Haible  <bruno@clisp.org>
53234
53235         * m4/csharp.m4: Don't mention gettext on the serial number line.
53236         * m4/csharpexec.m4: Likewise.
53237         * m4/eaccess.m4: Likewise.
53238         * m4/javaexec.m4: Likewise.
53239         * m4/sig_atomic_t.m4: Likewise.
53240         * m4/tmpdir.m4: Likewise.
53241         * m4/intldir.m4: Bump gettext version.
53242         * m4/lib-ld.m4: Likewise.
53243
53244 2009-01-14  Bruno Haible  <bruno@clisp.org>
53245
53246         * lib/progname.c (set_program_name): Add more comments.
53247         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
53248
53249 2009-01-14  Simon Josefsson  <simon@josefsson.org>
53250
53251         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
53252         were sys/stat.h does not define it.
53253
53254 2009-01-14  Jim Meyering  <meyering@redhat.com>
53255
53256         many *.m4 files: improve m4 quoting
53257         99% of this change was performed by running the following commands:
53258         git ls-files | grep '\.m4$' | xargs perl -pi \
53259           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
53260           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53261           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53262           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
53263         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
53264         The remainder were to add Copyright dates, increment serial numbers,
53265         undo some changes in comments, exclude m4/intl.m4, and add quotes
53266         around the "1" in ",1" where the unusual spacing prohibited the
53267         above regexps from doing the job.  For more details, see
53268         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
53269         * m4/acl.m4: Modified.
53270         * m4/afs.m4: Likewise.
53271         * m4/alloca.m4: Likewise.
53272         * m4/argp.m4: Likewise.
53273         * m4/argz.m4: Likewise.
53274         * m4/atexit.m4: Likewise.
53275         * m4/bison-i18n.m4: Likewise.
53276         * m4/bison.m4: Likewise.
53277         * m4/byteswap.m4: Likewise.
53278         * m4/c-stack.m4: Likewise.
53279         * m4/c-strtod.m4: Likewise.
53280         * m4/calloc.m4: Likewise.
53281         * m4/canonicalize-lgpl.m4: Likewise.
53282         * m4/chown.m4: Likewise.
53283         * m4/clock_time.m4: Likewise.
53284         * m4/codeset.m4: Likewise.
53285         * m4/copy-file.m4: Likewise.
53286         * m4/csharp.m4: Likewise.
53287         * m4/csharpcomp.m4: Likewise.
53288         * m4/csharpexec.m4: Likewise.
53289         * m4/d-ino.m4: Likewise.
53290         * m4/d-type.m4: Likewise.
53291         * m4/dirfd.m4: Likewise.
53292         * m4/double-slash-root.m4: Likewise.
53293         * m4/eaccess.m4: Likewise.
53294         * m4/eealloc.m4: Likewise.
53295         * m4/environ.m4: Likewise.
53296         * m4/errno_h.m4: Likewise.
53297         * m4/euidaccess.m4: Likewise.
53298         * m4/execute.m4: Likewise.
53299         * m4/fatal-signal.m4: Likewise.
53300         * m4/fchdir.m4: Likewise.
53301         * m4/fcntl_h.m4: Likewise.
53302         * m4/fileblocks.m4: Likewise.
53303         * m4/filenamecat.m4: Likewise.
53304         * m4/findprog.m4: Likewise.
53305         * m4/flexmember.m4: Likewise.
53306         * m4/fnmatch.m4: Likewise.
53307         * m4/fopen.m4: Likewise.
53308         * m4/fpending.m4: Likewise.
53309         * m4/fprintf-posix.m4: Likewise.
53310         * m4/free.m4: Likewise.
53311         * m4/frexp.m4: Likewise.
53312         * m4/frexpl.m4: Likewise.
53313         * m4/fsusage.m4: Likewise.
53314         * m4/ftruncate.m4: Likewise.
53315         * m4/gc-camellia.m4: Likewise.
53316         * m4/gc-random.m4: Likewise.
53317         * m4/gc.m4: Likewise.
53318         * m4/getaddrinfo.m4: Likewise.
53319         * m4/getcwd-abort-bug.m4: Likewise.
53320         * m4/getcwd-path-max.m4: Likewise.
53321         * m4/getdate.m4: Likewise.
53322         * m4/getdomainname.m4: Likewise.
53323         * m4/getgroups.m4: Likewise.
53324         * m4/gethostname.m4: Likewise.
53325         * m4/gethrxtime.m4: Likewise.
53326         * m4/getline.m4: Likewise.
53327         * m4/getloadavg.m4: Likewise.
53328         * m4/getndelim2.m4: Likewise.
53329         * m4/getpass.m4: Likewise.
53330         * m4/gettext.m4: Likewise.
53331         * m4/gettime.m4: Likewise.
53332         * m4/gettimeofday.m4: Likewise.
53333         * m4/gnulib-common.m4: Likewise.
53334         * m4/group-member.m4: Likewise.
53335         * m4/host-os.m4: Likewise.
53336         * m4/iconv.m4: Likewise.
53337         * m4/iconv_open.m4: Likewise.
53338         * m4/inet_ntop.m4: Likewise.
53339         * m4/inet_pton.m4: Likewise.
53340         * m4/inline.m4: Likewise.
53341         * m4/intldir.m4: Likewise.
53342         * m4/intlmacosx.m4: Likewise.
53343         * m4/intmax.m4: Likewise.
53344         * m4/intmax_t.m4: Likewise.
53345         * m4/inttypes.m4: Likewise.
53346         * m4/inttypes_h.m4: Likewise.
53347         * m4/inttypes-pri.m4: Likewise.
53348         * m4/isapipe.m4: Likewise.
53349         * m4/isnand.m4: Likewise.
53350         * m4/isnanf.m4: Likewise.
53351         * m4/isnanl.m4: Likewise.
53352         * m4/javacomp.m4: Likewise.
53353         * m4/javaexec.m4: Likewise.
53354         * m4/jm-winsz1.m4: Likewise.
53355         * m4/jm-winsz2.m4: Likewise.
53356         * m4/lchown.m4: Likewise.
53357         * m4/lcmessage.m4: Likewise.
53358         * m4/ldexpl.m4: Likewise.
53359         * m4/lib-ld.m4: Likewise.
53360         * m4/lib-link.m4: Likewise.
53361         * m4/libsigsegv.m4: Likewise.
53362         * m4/link-follow.m4: Likewise.
53363         * m4/localcharset.m4: Likewise.
53364         * m4/locale-fr.m4: Likewise.
53365         * m4/locale-ja.m4: Likewise.
53366         * m4/locale-tr.m4: Likewise.
53367         * m4/locale-zh.m4: Likewise.
53368         * m4/lock.m4: Likewise.
53369         * m4/longlong.m4: Likewise.
53370         * m4/ls-mntd-fs.m4: Likewise.
53371         * m4/lstat.m4: Likewise.
53372         * m4/malloc.m4: Likewise.
53373         * m4/mathl.m4: Likewise.
53374         * m4/mbrtowc.m4: Likewise.
53375         * m4/mbstate_t.m4: Likewise.
53376         * m4/mbswidth.m4: Likewise.
53377         * m4/memchr.m4: Likewise.
53378         * m4/memcmp.m4: Likewise.
53379         * m4/memcpy.m4: Likewise.
53380         * m4/memmem.m4: Likewise.
53381         * m4/memmove.m4: Likewise.
53382         * m4/mempcpy.m4: Likewise.
53383         * m4/memrchr.m4: Likewise.
53384         * m4/memset.m4: Likewise.
53385         * m4/minmax.m4: Likewise.
53386         * m4/mkdir-slash.m4: Likewise.
53387         * m4/mkdtemp.m4: Likewise.
53388         * m4/mktime.m4: Likewise.
53389         * m4/mmap-anon.m4: Likewise.
53390         * m4/mountlist.m4: Likewise.
53391         * m4/nanosleep.m4: Likewise.
53392         * m4/nls.m4: Likewise.
53393         * m4/nocrash.m4: Likewise.
53394         * m4/open.m4: Likewise.
53395         * m4/openat.m4: Likewise.
53396         * m4/openmp.m4: Likewise.
53397         * m4/pathmax.m4: Likewise.
53398         * m4/perl.m4: Likewise.
53399         * m4/physmem.m4: Likewise.
53400         * m4/pipe.m4: Likewise.
53401         * m4/po.m4: Likewise.
53402         * m4/poll.m4: Likewise.
53403         * m4/posixtm.m4: Likewise.
53404         * m4/posixver.m4: Likewise.
53405         * m4/printf-frexp.m4: Likewise.
53406         * m4/printf-frexpl.m4: Likewise.
53407         * m4/printf-posix.m4: Likewise.
53408         * m4/printf-posix-rpl.m4: Likewise.
53409         * m4/printf.m4: Likewise.
53410         * m4/progtest.m4: Likewise.
53411         * m4/putenv.m4: Likewise.
53412         * m4/readline.m4: Likewise.
53413         * m4/readlink.m4: Likewise.
53414         * m4/readutmp.m4: Likewise.
53415         * m4/realloc.m4: Likewise.
53416         * m4/regex.m4: Likewise.
53417         * m4/relocatable.m4: Likewise.
53418         * m4/relocatable-lib.m4: Likewise.
53419         * m4/rename-dest-slash.m4: Likewise.
53420         * m4/rename.m4: Likewise.
53421         * m4/rmdir-errno.m4: Likewise.
53422         * m4/rmdir.m4: Likewise.
53423         * m4/roundf.m4: Likewise.
53424         * m4/roundl.m4: Likewise.
53425         * m4/rpmatch.m4: Likewise.
53426         * m4/save-cwd.m4: Likewise.
53427         * m4/selinux-selinux-h.m4: Likewise.
53428         * m4/setenv.m4: Likewise.
53429         * m4/settime.m4: Likewise.
53430         * m4/sig2str.m4: Likewise.
53431         * m4/sig_atomic_t.m4: Likewise.
53432         * m4/signalblocking.m4: Likewise.
53433         * m4/signbit.m4: Likewise.
53434         * m4/sigpipe.m4: Likewise.
53435         * m4/sockets.m4: Likewise.
53436         * m4/sockpfaf.m4: Likewise.
53437         * m4/st_dm_mode.m4: Likewise.
53438         * m4/stat-time.m4: Likewise.
53439         * m4/stdbool.m4: Likewise.
53440         * m4/stdint.m4: Likewise.
53441         * m4/stdint_h.m4: Likewise.
53442         * m4/stpcpy.m4: Likewise.
53443         * m4/stpncpy.m4: Likewise.
53444         * m4/strcase.m4: Likewise.
53445         * m4/strchrnul.m4: Likewise.
53446         * m4/strcspn.m4: Likewise.
53447         * m4/strdup.m4: Likewise.
53448         * m4/strftime.m4: Likewise.
53449         * m4/strndup.m4: Likewise.
53450         * m4/strnlen.m4: Likewise.
53451         * m4/strpbrk.m4: Likewise.
53452         * m4/strptime.m4: Likewise.
53453         * m4/strsep.m4: Likewise.
53454         * m4/strtod.m4: Likewise.
53455         * m4/strtoimax.m4: Likewise.
53456         * m4/strtok_r.m4: Likewise.
53457         * m4/strtol.m4: Likewise.
53458         * m4/strtoll.m4: Likewise.
53459         * m4/strtoul.m4: Likewise.
53460         * m4/strtoull.m4: Likewise.
53461         * m4/strtoumax.m4: Likewise.
53462         * m4/strverscmp.m4: Likewise.
53463         * m4/threadlib.m4: Likewise.
53464         * m4/timegm.m4: Likewise.
53465         * m4/tm_gmtoff.m4: Likewise.
53466         * m4/tmpdir.m4: Likewise.
53467         * m4/tmpfile.m4: Likewise.
53468         * m4/tzset.m4: Likewise.
53469         * m4/uintmax_t.m4: Likewise.
53470         * m4/unlinkdir.m4: Likewise.
53471         * m4/unlocked-io.m4: Likewise.
53472         * m4/uptime.m4: Likewise.
53473         * m4/userspec.m4: Likewise.
53474         * m4/utimbuf.m4: Likewise.
53475         * m4/utime.m4: Likewise.
53476         * m4/utimes-null.m4: Likewise.
53477         * m4/utimes.m4: Likewise.
53478         * m4/vararrays.m4: Likewise.
53479         * m4/vasnprintf.m4: Likewise.
53480         * m4/vfprintf-posix.m4: Likewise.
53481         * m4/vprintf-posix.m4: Likewise.
53482         * m4/wait-process.m4: Likewise.
53483         * m4/wchar_t.m4: Likewise.
53484         * m4/wint_t.m4: Likewise.
53485         * m4/write-any-file.m4: Likewise.
53486         * m4/yield.m4: Likewise.
53487
53488 2009-01-13  Bruno Haible  <bruno@clisp.org>
53489
53490         Avoid test-copy-file.sh failures when ACL support insufficient.
53491         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
53492         TESTS_ENVIRONMENT.
53493         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
53494         Reported by Jim Meyering.
53495
53496 2009-01-13  Bruno Haible  <bruno@clisp.org>
53497
53498         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
53499         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
53500         * modules/unistdio/u8-printf-parse (Files): Likewise.
53501         * modules/unistdio/u32-printf-parse (Files): Likewise.
53502         * modules/unistdio/ulc-printf-parse (Files): Likewise.
53503
53504 2009-01-13  Simon Josefsson  <simon@josefsson.org>
53505
53506         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
53507         and m4/inttypes_h.m4 too.
53508
53509 2009-01-12  Eric Blake  <ebb9@byu.net>
53510
53511         tests: IRIX 6.2 cc can't compile -0.0 into .data
53512         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
53513         rather than at compile-time.
53514         * tests/test-floorl.c (minus_zero): Likewise.
53515         * tests/test-frexpl.c (minus_zero): Likewise.
53516         * tests/test-isnan.c (minus_zerol): Likewise.
53517         * tests/test-isnanl.h (minus_zero): Likewise.
53518         * tests/test-ldexpl.c (minus_zero): Likewise.
53519         * tests/test-roundl.c (minus_zero): Likewise.
53520         * tests/test-signbit.c (minus_zerol): Likewise.
53521         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53522         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53523         * tests/test-truncl.c (minus_zero): Likewise.
53524         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53525         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53526         Reported by Tom G. Christensen and Nelson H. F. Beebe.
53527
53528 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53529
53530         regex: fix glibc bug 9697
53531         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
53532         handling.
53533
53534 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53535
53536         regex: fix glibc bug 697
53537         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
53538         being NULL also if there are no backreferences.
53539
53540 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53541
53542         regex: merge glibc changes
53543         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
53544         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
53545         re_string_skip_chars, re_string_reconstruct): Likewise.
53546         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
53547
53548 2009-01-07  Jim Meyering  <meyering@redhat.com>
53549
53550         poll: filter through cppi
53551         * lib/poll.c: Indent cpp directives to reflect nesting.
53552
53553 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
53554
53555         poll: don't return uninitialized
53556         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
53557
53558 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
53559
53560         avoid compile failure on AIX 6.1
53561         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
53562         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
53563
53564 2009-01-04  Jim Meyering  <meyering@redhat.com>
53565
53566         remove duplicate inclusion of <stdio.h>
53567         * tests/test-fprintf-posix.c: Likewise.
53568         * tests/test-printf-posix.c: Likewise.
53569         * tests/test-snprintf-posix.c: Likewise.
53570         * tests/test-sprintf-posix.c: Likewise.
53571         * tests/test-vasprintf-posix.c: Likewise.
53572         * tests/test-vfprintf-posix.c: Likewise.
53573         * tests/test-vprintf-posix.c: Likewise.
53574         * tests/test-vsnprintf-posix.c: Likewise.
53575         * tests/test-vsprintf-posix.c: Likewise.
53576
53577 2009-01-03  Jim Meyering  <meyering@redhat.com>
53578
53579         gnulib-tool: fix sed-based filtering
53580         * gnulib-tool (func_filter_filelist): Remove extra backslash
53581         in sed_fff_filter definition.
53582
53583 2009-01-02  Jim Meyering  <meyering@redhat.com>
53584
53585         strftime: avoid compilation failure on Solaris 2.6
53586         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
53587         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
53588         Don't #define mbrlen or mbsinit, since now they're guaranteed to
53589         be available.  Reported by Tom G. Christensen.  Details in
53590         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
53591
53592 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53593             Bruno Haible  <bruno@clisp.org>
53594
53595         Speed up gnulib-tool by doing more string processing through shell
53596         built-ins.
53597         * gnulib-tool (fast_func_append): New variable.
53598         (func_remove_prefix, func_remove_suffix): New functions.
53599         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
53600         (func_filter_filelist): New function.
53601         (func_get_dependencies): Use func_remove_suffix instead of sed.
53602         (func_get_automake_snippet): Use func_filter_filelist instead of a
53603         subshell and sed invocation.
53604
53605 2009-01-01  Bruno Haible  <bruno@clisp.org>
53606
53607         Fix a security bug.
53608         * gnulib-tool (func_import, import, update): Don't allow the characters
53609         '"', '$', '`', '\' in macro arguments that become part of commands that
53610         are evaluated.
53611
53612 2009-01-01  Bruno Haible  <bruno@clisp.org>
53613
53614         * gnulib-tool (func_reset_sigpipe): Add more comments.
53615
53616 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53617
53618         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
53619         func_emit_tests_Makefile_am, func_import): Abort loops early if we
53620         already know the answer.
53621
53622 2009-01-01  Jim Meyering  <meyering@redhat.com>
53623
53624         * lib/version-etc.c (version_etc_va): Update copyright year.
53625
53626 2008-12-30  Bruno Haible  <bruno@clisp.org>
53627
53628         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
53629         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
53630         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
53631
53632 2008-12-29  Eric Blake  <ebb9@byu.net>
53633
53634         multiarch: avoid autoconf AC_REQUIRE bug
53635         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
53636         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
53637         2.63 and older.
53638         Reported by Bruno Haible, and analyzed in
53639         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
53640
53641 2008-12-29  Bruno Haible  <bruno@clisp.org>
53642
53643         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
53644         files in subdirectories correctly.
53645         Reported by Ralf Wildenhues.
53646
53647 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53648
53649         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
53650         rather than 'join FILE -', for Solaris join.
53651
53652 2008-12-29  Bruno Haible  <bruno@clisp.org>
53653
53654         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
53655         quoting.
53656         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53657         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
53658         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
53659         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
53660         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
53661         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
53662         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
53663         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
53664         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53665         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
53666         * m4/nls.m4 (AM_NLS): Likewise.
53667         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
53668         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
53669         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
53670         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
53671         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
53672         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
53673         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
53674         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
53675         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
53676         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53677         * m4/xsize.m4 (gl_XSIZE): Likewise.
53678         Suggested by Jim Meyering.
53679
53680 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53681
53682         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
53683         * lib/parse-duration.c: use a switch instead of cascading if's.
53684
53685 2008-12-29  Eric Blake  <ebb9@byu.net>
53686
53687         wchar.h: supply WEOF on Irix 5.3
53688         * lib/wchar.in.h (wint_t): Also supply WEOF.
53689         * lib/wctype.in.h (wint_t): Likewise.
53690         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
53691         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
53692         Reported by Tom G. Christensen.
53693
53694 2008-12-26  Bruno Haible  <bruno@clisp.org>
53695
53696         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
53697         i486, i586, i686.
53698
53699 2008-12-26  Bruno Haible  <bruno@clisp.org>
53700
53701         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
53702
53703 2008-12-26  Bruno Haible  <bruno@clisp.org>
53704
53705         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
53706         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
53707         not __STDC_CONSTANT_MACROS.
53708         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53709
53710 2008-12-25  Bruno Haible  <bruno@clisp.org>
53711
53712         Add support for universal builds to vasnprintf.
53713         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
53714         universal builds, guess no.
53715         * modules/vasnprintf-posix (Depends-on): Add multiarch.
53716         * modules/vasprintf-posix (Depends-on): Likewise.
53717         * modules/fprintf-posix (Depends-on): Likewise.
53718         * modules/vfprintf-posix (Depends-on): Likewise.
53719         * modules/snprintf-posix (Depends-on): Likewise.
53720         * modules/vsnprintf-posix (Depends-on): Likewise.
53721         * modules/sprintf-posix (Depends-on): Likewise.
53722         * modules/vsprintf-posix (Depends-on): Likewise.
53723         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53724         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53725         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53726         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53727         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53728         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53729         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53730
53731         Add support for universal builds to <inttypes.h>.
53732         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
53733         _SCNu64_PREFIX): In Apple
53734         universal builds, define directly, using _LP64.
53735         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
53736         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
53737         * modules/inttypes (Depends-on): Add multiarch.
53738         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53739
53740         Add support for universal builds to <stdint.h>.
53741         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
53742         universal builds, define directly, using _LP64.
53743         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
53744         Apple universal builds, don't test for the size and suffix of ptrdiff_t
53745         and size_t.
53746         * modules/stdint (Depends-on): Add multiarch.
53747         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53748
53749         New module 'multiarch'.
53750         * modules/multiarch: New file.
53751         * m4/multiarch.m4: New file.
53752
53753 2008-12-25  Bruno Haible  <bruno@clisp.org>
53754
53755         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
53756
53757 2008-12-25  Bruno Haible  <bruno@clisp.org>
53758
53759         * modules/btowc (License): Relicense under LGPLv2+.
53760         * modules/mbsinit (License): Likewise.
53761         * modules/mbrtowc (License): Likewise.
53762         * modules/wcrtomb (License): Likewise.
53763         * modules/streq (License): Likewise.
53764         Reported by David Lutterkort <lutter@redhat.com>.
53765
53766 2008-12-23  Bruno Haible  <bruno@clisp.org>
53767
53768         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
53769
53770 2008-12-23  Bruno Haible  <bruno@clisp.org>
53771
53772         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
53773         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
53774         GETADDRINFO_LIB, not in LIBS.
53775         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
53776         * modules/canon-host (Link): Likewise.
53777         * NEWS: Mention the change.
53778         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
53779         GETADDRINFO_LIB.
53780
53781 2008-12-22  Bruno Haible  <bruno@clisp.org>
53782
53783         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
53784         * doc/posix-functions/iswalpha_l.texi: Likewise.
53785         * doc/posix-functions/iswblank_l.texi: Likewise.
53786         * doc/posix-functions/iswcntrl_l.texi: Likewise.
53787         * doc/posix-functions/iswctype_l.texi: Likewise.
53788         * doc/posix-functions/iswdigit_l.texi: Likewise.
53789         * doc/posix-functions/iswgraph_l.texi: Likewise.
53790         * doc/posix-functions/iswlower_l.texi: Likewise.
53791         * doc/posix-functions/iswprint_l.texi: Likewise.
53792         * doc/posix-functions/iswpunct_l.texi: Likewise.
53793         * doc/posix-functions/iswspace_l.texi: Likewise.
53794         * doc/posix-functions/iswupper_l.texi: Likewise.
53795         * doc/posix-functions/iswxdigit_l.texi: Likewise.
53796         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
53797         * doc/posix-functions/open_wmemstream.texi: Likewise.
53798         * doc/posix-functions/swscanf.texi: Likewise.
53799         * doc/posix-functions/towctrans_l.texi: Likewise.
53800         * doc/posix-functions/towlower.texi: Likewise.
53801         * doc/posix-functions/towlower_l.texi: Likewise.
53802         * doc/posix-functions/towupper.texi: Likewise.
53803         * doc/posix-functions/towupper_l.texi: Likewise.
53804         * doc/posix-functions/vfwprintf.texi: Likewise.
53805         * doc/posix-functions/vfwscanf.texi: Likewise.
53806         * doc/posix-functions/vswscanf.texi: Likewise.
53807         * doc/posix-functions/vwprintf.texi: Likewise.
53808         * doc/posix-functions/vwscanf.texi: Likewise.
53809         * doc/posix-functions/wcpcpy.texi: Likewise.
53810         * doc/posix-functions/wcpncpy.texi: Likewise.
53811         * doc/posix-functions/wcscasecmp.texi: Likewise.
53812         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
53813         * doc/posix-functions/wcscoll_l.texi: Likewise.
53814         * doc/posix-functions/wcsdup.texi: Likewise.
53815         * doc/posix-functions/wcsncasecmp.texi: Likewise.
53816         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
53817         * doc/posix-functions/wcsnlen.texi: Likewise.
53818         * doc/posix-functions/wcsnrtombs.texi: Likewise.
53819         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
53820         * doc/posix-functions/wctrans_l.texi: Likewise.
53821         * doc/posix-functions/wctype_l.texi: Likewise.
53822         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
53823         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
53824         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
53825         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
53826         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
53827         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
53828         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
53829         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
53830         * doc/glibc-functions/wcschrnul.texi: Likewise.
53831         * doc/glibc-functions/wcsftime_l.texi: Likewise.
53832         * doc/glibc-functions/wcstod_l.texi: Likewise.
53833         * doc/glibc-functions/wcstof_l.texi: Likewise.
53834         * doc/glibc-functions/wcstol_l.texi: Likewise.
53835         * doc/glibc-functions/wcstold_l.texi: Likewise.
53836         * doc/glibc-functions/wcstoll_l.texi: Likewise.
53837         * doc/glibc-functions/wcstoq.texi: Likewise.
53838         * doc/glibc-functions/wcstoul_l.texi: Likewise.
53839         * doc/glibc-functions/wcstoull_l.texi: Likewise.
53840         * doc/glibc-functions/wcstouq.texi: Likewise.
53841         * doc/glibc-functions/wmempcpy.texi: Likewise.
53842
53843 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
53844             Eric Blake  <ebb9@byu.net>
53845             Paolo Bonzini  <bonzini@gnu.org>
53846             Bruno Haible  <bruno@clisp.org>
53847
53848         Make c-stack work on Haiku.
53849         * lib/c-stack.c (SA_ONSTACK): Define fallback.
53850         (c_stack_action): Use SA_ONSTACK flag.
53851
53852 2008-12-22  Bruno Haible  <bruno@clisp.org>
53853
53854         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
53855
53856 2008-12-22  Bruno Haible  <bruno@clisp.org>
53857
53858         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
53859         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
53860         being overridden.
53861         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
53862         New macros.
53863         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
53864         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
53865         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
53866         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
53867
53868 2008-12-22  Bruno Haible  <bruno@clisp.org>
53869
53870         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
53871         from test code.
53872
53873 2008-12-22  Eric Blake  <ebb9@byu.net>
53874
53875         Avoid gcc warnings on cygwin.
53876         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
53877         Avoid unused variable.
53878         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
53879         Likewise.
53880
53881 2008-12-22  Bruno Haible  <bruno@clisp.org>
53882
53883         Remove HAVE_MBRTOWC conditionals.
53884         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
53885         (mbscasecmp): Assume mbrtowc function.
53886         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
53887         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
53888         * lib/mbschr.c: Include mbuiter.h unconditionally.
53889         (mbschr): Assume mbrtowc function.
53890         * lib/mbscspn.c: Include mbuiter.h unconditionally.
53891         (mbscspn): Assume mbrtowc function.
53892         * lib/mbslen.c: Include mbuiter.h unconditionally.
53893         (mbslen): Assume mbrtowc function.
53894         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
53895         (mbsncasecmp): Assume mbrtowc function.
53896         * lib/mbsnlen.c: Include mbiter.h unconditionally.
53897         (mbsnlen): Assume mbrtowc function.
53898         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
53899         (mbspbrk): Assume mbrtowc function.
53900         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
53901         (mbspcasecmp): Assume mbrtowc function.
53902         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
53903         (mbsrchr): Assume mbrtowc function.
53904         * lib/mbssep.c: Include mbuiter.h unconditionally.
53905         (mbssep): Assume mbrtowc function.
53906         * lib/mbsspn.c: Include mbuiter.h unconditionally.
53907         (mbsspn): Assume mbrtowc function.
53908         * lib/mbsstr.c: Include mbuiter.h unconditionally.
53909         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
53910         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
53911         (mbstok_r): Assume mbrtowc function.
53912         * lib/propername.c: Include mbuiter.h unconditionally.
53913         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
53914         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
53915         (trim2): Assume mbrtowc function.
53916         * lib/mbswidth.c (mbsinit): Remove fallback definition.
53917         (mbsnwidth): Assume mbrtowc function.
53918         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
53919         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
53920         fallback definitions.
53921         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
53922
53923 2008-12-22  Bruno Haible  <bruno@clisp.org>
53924
53925         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
53926
53927 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
53928
53929         * modules/regex: Request emulations for the mb*/wc* functions we need.
53930         * m4/regex.m4: Don't look for those functions here.
53931         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
53932
53933 2008-12-22  Bruno Haible  <bruno@clisp.org>
53934
53935         * modules/fnmatch (Depends-on): Remove duplicated dependency.
53936
53937 2008-12-21  Bruno Haible  <bruno@clisp.org>
53938
53939         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
53940         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
53941         (Include): Remove conditionalization.
53942         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
53943         (Include): Remove conditionalization.
53944         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
53945         (Include): Remove conditionalization.
53946         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
53947         * m4/mbfile.m4 (gl_MBFILE): Likewise.
53948         * NEWS: Mention the change.
53949         Reported by Alan Hourihane <alanh@fairlite.co.uk>
53950         via Sergey Poznyakoff <gray@gnu.org.ua>.
53951
53952 2008-12-21  Bruno Haible  <bruno@clisp.org>
53953
53954         * MODULES.html.sh (Extended multibyte and wide character utilities
53955         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
53956         wcrtomb, wcsrtombs.
53957         (Support for systems lacking POSIX:2008): Add accept, bind, close,
53958         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
53959         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
53960         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
53961
53962 2008-12-21  Bruno Haible  <bruno@clisp.org>
53963
53964         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
53965
53966 2008-12-21  Bruno Haible  <bruno@clisp.org>
53967
53968         * modules/wcsnrtombs-tests: New file.
53969         * tests/test-wcsnrtombs1.sh: New file.
53970         * tests/test-wcsnrtombs2.sh: New file.
53971         * tests/test-wcsnrtombs3.sh: New file.
53972         * tests/test-wcsnrtombs4.sh: New file.
53973         * tests/test-wcsnrtombs.c: New file.
53974
53975         New module 'wcsnrtombs'.
53976         * lib/wchar.in.h (wcsnrtombs): New declaration.
53977         * lib/wcsnrtombs.c: New file.
53978         * lib/wcsrtombs-state.c: New file.
53979         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
53980         (internal_state): Remove variable.
53981         * m4/wcsnrtombs.m4: New file.
53982         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
53983         compilation units.
53984         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
53985         HAVE_WCSNRTOMBS.
53986         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
53987         HAVE_WCSNRTOMBS.
53988         * modules/wcsnrtombs: New file.
53989         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
53990         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
53991
53992 2008-12-21  Bruno Haible  <bruno@clisp.org>
53993
53994         * modules/wcsrtombs-tests: New file.
53995         * tests/test-wcsrtombs1.sh: New file.
53996         * tests/test-wcsrtombs2.sh: New file.
53997         * tests/test-wcsrtombs3.sh: New file.
53998         * tests/test-wcsrtombs4.sh: New file.
53999         * tests/test-wcsrtombs.c: New file.
54000
54001         New module 'wcsrtombs'.
54002         * lib/wchar.in.h (wcsrtombs): New declaration.
54003         * lib/wcsrtombs.c: New file.
54004         * m4/wcsrtombs.m4: New file.
54005         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
54006         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54007         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
54008         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54009         * modules/wcsrtombs: New file.
54010         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
54011         bugs.
54012
54013 2008-12-21  Bruno Haible  <bruno@clisp.org>
54014
54015         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
54016         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
54017         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
54018         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
54019         if not correct.
54020         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
54021         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
54022         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54023         m4/locale-zh.m4, m4/codeset.m4.
54024         * doc/posix-functions/wcrtomb.texi: Document the bug.
54025
54026 2008-12-21  Bruno Haible  <bruno@clisp.org>
54027
54028         Work around a btowc() bug on IRIX 6.5.
54029         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
54030         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
54031         REPLACE_WTOBC if not.
54032         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
54033         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
54034         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
54035
54036 2008-12-21  Bruno Haible  <bruno@clisp.org>
54037
54038         * modules/wcrtomb-tests: New file.
54039         * tests/test-wcrtomb.sh: New file.
54040         * tests/test-wcrtomb.c: New file.
54041
54042         New module 'wcrtomb'.
54043         * lib/wchar.in.h (wcrtomb): New declaration.
54044         * lib/wcrtomb.c: New file.
54045         * m4/wcrtomb.m4: New file.
54046         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
54047         HAVE_WCRTOMB.
54048         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
54049         HAVE_WCRTOMB.
54050         * modules/wcrtomb: New file.
54051         * doc/posix-functions/wcrtomb.texi: Mention the new module.
54052
54053 2008-12-21  Bruno Haible  <bruno@clisp.org>
54054
54055         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
54056         * modules/mbsrtowcs (Files): Likewise.
54057         * modules/wctob (Files): Likewise.
54058         * modules/c-strcase-tests (Files): Likewise.
54059         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
54060         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
54061         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
54062         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
54063         * modules/vasnprintf-posix-tests (Files): Likewise.
54064
54065 2008-12-21  William Pursell  <bill.pursell@gmail.com>
54066
54067         gitlog-to-changelog: pass all command-line arguments to git-log
54068         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
54069         it is sometimes convenient to filter the commits in various ways.
54070         gitlog-to-changelog only allows --since to specify a start date,
54071         but git-log itself supports many other filtering mechanisms.
54072         At the moment, I want to filter by branch name.  Rather than
54073         adding a --branch option to gitlog-to-changelog, it seems more
54074         flexible to simply pass all options directly to git-log and let
54075         git do the work.  Notice that this effectively makes --since a
54076         redundant option for gitlog-to-changelog, but removing it would
54077         require current usage to change since calls would then require
54078         an additional '--'.
54079
54080 2008-12-21  Bruno Haible  <bruno@clisp.org>
54081
54082         * modules/mbsnrtowcs-tests: New file.
54083         * tests/test-mbsnrtowcs1.sh: New file.
54084         * tests/test-mbsnrtowcs2.sh: New file.
54085         * tests/test-mbsnrtowcs3.sh: New file.
54086         * tests/test-mbsnrtowcs4.sh: New file.
54087         * tests/test-mbsnrtowcs.c: New file.
54088
54089         New module 'mbsnrtowcs'.
54090         * lib/wchar.in.h (mbsnrtowcs): New declaration.
54091         * lib/mbsnrtowcs.c: New file.
54092         * lib/mbsrtowcs-state.c: New file.
54093         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
54094         (internal_state): Remove variable.
54095         * m4/mbsnrtowcs.m4: New file.
54096         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
54097         compilation units.
54098         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
54099         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54100         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
54101         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54102         * modules/mbsnrtowcs: New file.
54103         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
54104         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
54105         portability problem.
54106
54107 2008-12-21  Bruno Haible  <bruno@clisp.org>
54108
54109         Work around mbsrtowcs bug.
54110         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
54111         (gl_FUNC_MBSRTOWCS): Invoke it.
54112         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54113         m4/locale-zh.m4.
54114         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
54115
54116 2008-12-21  Bruno Haible  <bruno@clisp.org>
54117
54118         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
54119
54120 2008-12-21  Bruno Haible  <bruno@clisp.org>
54121
54122         Update doc for AIX.
54123         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
54124         16-bit wchar_t type.
54125         * doc/posix-functions/btowc.texi: Likewise.
54126         * doc/posix-functions/fgetwc.texi: Likewise.
54127         * doc/posix-functions/fgetws.texi: Likewise.
54128         * doc/posix-functions/fputwc.texi: Likewise.
54129         * doc/posix-functions/fputws.texi: Likewise.
54130         * doc/posix-functions/fwide.texi: Likewise.
54131         * doc/posix-functions/fwprintf.texi: Likewise.
54132         * doc/posix-functions/fwscanf.texi: Likewise.
54133         * doc/posix-functions/getwchar.texi: Likewise.
54134         * doc/posix-functions/getwc.texi: Likewise.
54135         * doc/posix-functions/iswalnum.texi: Likewise.
54136         * doc/posix-functions/iswalpha.texi: Likewise.
54137         * doc/posix-functions/iswblank.texi: Likewise.
54138         * doc/posix-functions/iswcntrl.texi: Likewise.
54139         * doc/posix-functions/iswctype.texi: Likewise.
54140         * doc/posix-functions/iswdigit.texi: Likewise.
54141         * doc/posix-functions/iswgraph.texi: Likewise.
54142         * doc/posix-functions/iswlower.texi: Likewise.
54143         * doc/posix-functions/iswprint.texi: Likewise.
54144         * doc/posix-functions/iswpunct.texi: Likewise.
54145         * doc/posix-functions/iswspace.texi: Likewise.
54146         * doc/posix-functions/iswupper.texi: Likewise.
54147         * doc/posix-functions/iswxdigit.texi: Likewise.
54148         * doc/posix-functions/mbrtowc.texi: Likewise.
54149         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54150         * doc/posix-functions/mbstowcs.texi: Likewise.
54151         * doc/posix-functions/mbtowc.texi: Likewise.
54152         * doc/posix-functions/putwchar.texi: Likewise.
54153         * doc/posix-functions/putwc.texi: Likewise.
54154         * doc/posix-functions/swprintf.texi: Likewise.
54155         * doc/posix-functions/tolower.texi: Likewise.
54156         * doc/posix-functions/toupper.texi: Likewise.
54157         * doc/posix-functions/towctrans.texi: Likewise.
54158         * doc/posix-functions/ungetwc.texi: Likewise.
54159         * doc/posix-functions/vswprintf.texi: Likewise.
54160         * doc/posix-functions/wcrtomb.texi: Likewise.
54161         * doc/posix-functions/wcscat.texi: Likewise.
54162         * doc/posix-functions/wcschr.texi: Likewise.
54163         * doc/posix-functions/wcscmp.texi: Likewise.
54164         * doc/posix-functions/wcscoll.texi: Likewise.
54165         * doc/posix-functions/wcscpy.texi: Likewise.
54166         * doc/posix-functions/wcscspn.texi: Likewise.
54167         * doc/posix-functions/wcsftime.texi: Likewise.
54168         * doc/posix-functions/wcslen.texi: Likewise.
54169         * doc/posix-functions/wcsncat.texi: Likewise.
54170         * doc/posix-functions/wcsncmp.texi: Likewise.
54171         * doc/posix-functions/wcsncpy.texi: Likewise.
54172         * doc/posix-functions/wcspbrk.texi: Likewise.
54173         * doc/posix-functions/wcsrchr.texi: Likewise.
54174         * doc/posix-functions/wcsrtombs.texi: Likewise.
54175         * doc/posix-functions/wcsspn.texi: Likewise.
54176         * doc/posix-functions/wcsstr.texi: Likewise.
54177         * doc/posix-functions/wcstod.texi: Likewise.
54178         * doc/posix-functions/wcstof.texi: Likewise.
54179         * doc/posix-functions/wcstoimax.texi: Likewise.
54180         * doc/posix-functions/wcstok.texi: Likewise.
54181         * doc/posix-functions/wcstold.texi: Likewise.
54182         * doc/posix-functions/wcstoll.texi: Likewise.
54183         * doc/posix-functions/wcstol.texi: Likewise.
54184         * doc/posix-functions/wcstombs.texi: Likewise.
54185         * doc/posix-functions/wcstoull.texi: Likewise.
54186         * doc/posix-functions/wcstoul.texi: Likewise.
54187         * doc/posix-functions/wcstoumax.texi: Likewise.
54188         * doc/posix-functions/wcswidth.texi: Likewise.
54189         * doc/posix-functions/wcsxfrm.texi: Likewise.
54190         * doc/posix-functions/wctob.texi: Likewise.
54191         * doc/posix-functions/wctomb.texi: Likewise.
54192         * doc/posix-functions/wctrans.texi: Likewise.
54193         * doc/posix-functions/wctype.texi: Likewise.
54194         * doc/posix-functions/wcwidth.texi: Likewise.
54195         * doc/posix-functions/wmemchr.texi: Likewise.
54196         * doc/posix-functions/wmemcmp.texi: Likewise.
54197         * doc/posix-functions/wmemcpy.texi: Likewise.
54198         * doc/posix-functions/wmemmove.texi: Likewise.
54199         * doc/posix-functions/wmemset.texi: Likewise.
54200         * doc/posix-functions/wprintf.texi: Likewise.
54201         * doc/posix-functions/wscanf.texi: Likewise.
54202
54203 2008-12-21  Bruno Haible  <bruno@clisp.org>
54204
54205         Update doc for HP-UX 11.11.
54206         * doc/posix-functions/btowc.texi: Clarify that the function is missing
54207         in HP-UX version 11.00, not in all versions of HP-UX 11.
54208         * doc/posix-functions/fwide.texi: Likewise.
54209         * doc/posix-functions/fwprintf.texi: Likewise.
54210         * doc/posix-functions/fwscanf.texi: Likewise.
54211         * doc/posix-functions/inet_ntop.texi: Likewise.
54212         * doc/posix-functions/inet_pton.texi: Likewise.
54213         * doc/posix-functions/mbrlen.texi: Likewise.
54214         * doc/posix-functions/mbrtowc.texi: Likewise.
54215         * doc/posix-functions/mbsinit.texi: Likewise.
54216         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54217         * doc/posix-functions/swprintf.texi: Likewise.
54218         * doc/posix-functions/swscanf.texi: Likewise.
54219         * doc/posix-functions/towctrans.texi: Likewise.
54220         * doc/posix-functions/vfwprintf.texi: Likewise.
54221         * doc/posix-functions/vswprintf.texi: Likewise.
54222         * doc/posix-functions/vwprintf.texi: Likewise.
54223         * doc/posix-functions/wcrtomb.texi: Likewise.
54224         * doc/posix-functions/wcsrtombs.texi: Likewise.
54225         * doc/posix-functions/wcsstr.texi: Likewise.
54226         * doc/posix-functions/wctob.texi: Likewise.
54227         * doc/posix-functions/wctrans.texi: Likewise.
54228         * doc/posix-functions/wmemchr.texi: Likewise.
54229         * doc/posix-functions/wmemcmp.texi: Likewise.
54230         * doc/posix-functions/wmemcpy.texi: Likewise.
54231         * doc/posix-functions/wmemmove.texi: Likewise.
54232         * doc/posix-functions/wmemset.texi: Likewise.
54233         * doc/posix-functions/wprintf.texi: Likewise.
54234         * doc/posix-functions/wscanf.texi: Likewise.
54235
54236 2008-12-21  Bruno Haible  <bruno@clisp.org>
54237
54238         Work around a portability problem.
54239         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
54240         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
54241
54242 2008-12-20  Bruno Haible  <bruno@clisp.org>
54243
54244         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
54245         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
54246         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
54247         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
54248         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
54249
54250         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
54251         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
54252         set.
54253         (GNULIB_defined_mbstate_t): New macro.
54254         (mbsinit): Redefine if REPLACE_MBSINIT is set.
54255         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
54256         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
54257         reuses the system's mbrtowc function but works around the bugs.
54258         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
54259         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
54260         macros.
54261         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
54262         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
54263         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
54264         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
54265         REPLACE_MBSINIT if mbsinit needs to be overridden.
54266         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
54267         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54268         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
54269         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54270         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54271         m4/locale-zh.m4.
54272         (Depends): Add mbsinit.
54273         * modules/mbsinit (Depends): Add mbrtowc.
54274         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
54275
54276 2008-12-20  Bruno Haible  <bruno@clisp.org>
54277
54278         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
54279         so that there are no conversion errors on AIX.
54280         * tests/test-mbsrtowcs.c (main): LIkewise.
54281
54282 2008-12-20  Bruno Haible  <bruno@clisp.org>
54283
54284         Work around wctob bug on Solaris <= 9.
54285         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
54286         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
54287         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
54288         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
54289         * modules/wctob (Files): Add m4/locale-fr.m4.
54290         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
54291
54292 2008-12-20  Bruno Haible  <bruno@clisp.org>
54293
54294         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
54295         /dev/null.
54296         * tests/test-select-in.sh: Likewise.
54297         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54298
54299 2008-12-20  Bruno Haible  <bruno@clisp.org>
54300
54301         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
54302         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
54303         Cygwin 1.5.x.
54304
54305 2008-12-20  Bruno Haible  <bruno@clisp.org>
54306
54307         Ensure mbstate_t is defined on HP-UX 11.11.
54308         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
54309         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
54310         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
54311         AC_USE_SYSTEM_EXTENSIONS.
54312         * modules/fnmatch (Depends-on): Add extensions.
54313         * modules/mbrlen (Depends-on): Likewise.
54314         * modules/mbrtowc (Depends-on): Likewise.
54315         * modules/mbsinit (Depends-on): Likewise.
54316         * modules/mbsrtowcs (Depends-on): Likewise.
54317         * modules/mbswidth (Depends-on): Likewise.
54318         * modules/quotearg (Depends-on): Likewise.
54319         * modules/strftime (Depends-on): Likewise.
54320
54321 2008-12-20  Bruno Haible  <bruno@clisp.org>
54322
54323         Ensure wctob is declared on IRIX 6.5.
54324         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
54325         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
54326         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
54327         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
54328         of HAVE_WCTOB.
54329         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
54330         HAVE_WCTOB.
54331         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
54332
54333 2008-12-19  Bruno Haible  <bruno@clisp.org>
54334
54335         * modules/mbsrtowcs-tests: New file.
54336         * tests/test-mbsrtowcs1.sh: New file.
54337         * tests/test-mbsrtowcs2.sh: New file.
54338         * tests/test-mbsrtowcs3.sh: New file.
54339         * tests/test-mbsrtowcs4.sh: New file.
54340         * tests/test-mbsrtowcs.c: New file.
54341
54342         New module 'mbsrtowcs'.
54343         * lib/wchar.in.h (mbsrtowcs): New declaration.
54344         * lib/mbsrtowcs.c: New file.
54345         * m4/mbsrtowcs.m4: New file.
54346         * modules/mbsrtowcs: New file.
54347         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
54348         HAVE_MBSRTOWCS.
54349         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
54350         HAVE_MBSRTOWCS.
54351         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
54352
54353 2008-12-19  Bruno Haible  <bruno@clisp.org>
54354
54355         New module 'mbrlen'.
54356         * lib/wchar.in.h (mbrlen): New declaration.
54357         * lib/mbrlen.c: New file.
54358         * m4/mbrlen.m4: New file.
54359         * modules/mbrlen: New file.
54360         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
54361         HAVE_MBRLEN.
54362         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
54363         HAVE_MBRLEN.
54364         * doc/posix-functions/mbrlen.texi: Document the new module.
54365
54366 2008-12-19  Bruno Haible  <bruno@clisp.org>
54367
54368         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
54369         * modules/mbrtowc (Depends-on): Add verify.
54370         Suggested by Paul Eggert.
54371
54372 2008-12-18  Bruno Haible  <bruno@clisp.org>
54373
54374         * modules/mbsinit-tests: New file.
54375         * tests/test-mbsinit.sh: New file.
54376         * tests/test-mbsinit.c: New file.
54377
54378 2008-12-18  Bruno Haible  <bruno@clisp.org>
54379
54380         * modules/mbrtowc-tests: New file.
54381         * tests/test-mbrtowc1.sh: New file.
54382         * tests/test-mbrtowc2.sh: New file.
54383         * tests/test-mbrtowc3.sh: New file.
54384         * tests/test-mbrtowc4.sh: New file.
54385         * tests/test-mbrtowc.c: New file.
54386
54387         New module 'mbrtowc'.
54388         * lib/wchar.in.h (mbstate_t): Override when the system does not have
54389         mbsinit and mbrtowc.
54390         (mbrtowc): New declaration.
54391         * lib/mbrtowc.c: New file.
54392         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
54393         * modules/mbrtowc: New file.
54394         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
54395         HAVE_MBRTOWC.
54396         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
54397         HAVE_MBRTOWC.
54398         * doc/posix-functions/mbrtowc.texi: Document the new module.
54399
54400 2008-12-18  Bruno Haible  <bruno@clisp.org>
54401
54402         New module 'wctob'.
54403         * lib/wchar.in.h (wctob): New declaration.
54404         * lib/wctob.c: New file.
54405         * m4/wctob.m4: New file.
54406         * modules/wctob: New file.
54407         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
54408         HAVE_WCTOB.
54409         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
54410         * doc/posix-functions/wctob.texi: Document the new module.
54411
54412 2008-12-18  Bruno Haible  <bruno@clisp.org>
54413
54414         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
54415         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
54416
54417 2008-12-18  Simon Josefsson  <simon@josefsson.org>
54418
54419         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
54420         G. Christensen" <tgc@jupiterrise.com>.
54421
54422         * lib/flock.c: Need to include errno.h.  Reported by "Tom
54423         G. Christensen" <tgc@jupiterrise.com>.
54424
54425         * lib/flock.c: Need to include string.h.  Reported by "Tom
54426         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
54427         <ebb9@byu.net>.
54428
54429 2008-12-18  Bruno Haible  <bruno@clisp.org>
54430
54431         * m4/locale-ja.m4: New file, from GNU gettext.
54432
54433 2008-12-17  Bruno Haible  <bruno@clisp.org>
54434
54435         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
54436         Suggested by Eric Blake.
54437
54438 2008-12-17  Bruno Haible  <bruno@clisp.org>
54439
54440         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
54441
54442 2008-12-17  Bruno Haible  <bruno@clisp.org>
54443
54444         * lib/mbsinit.c: Include verify.h. Verify an assumption.
54445         * modules/mbsinit (Depends-on): Add verify.
54446         Suggested by Paul Eggert.
54447
54448 2008-12-17  Bruno Haible  <bruno@clisp.org>
54449
54450         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
54451         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
54452         gl_FUNC_MBRTOWC.
54453         * m4/mbiter.m4 (gl_MBITER): LIkewise.
54454         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
54455         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
54456         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
54457         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
54458         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
54459         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
54460         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
54461         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
54462         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
54463         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
54464         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
54465         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
54466         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
54467         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
54468         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54469         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
54470         * modules/trim (configure.ac): Likewise.
54471
54472 2008-12-17  Bruno Haible  <bruno@clisp.org>
54473
54474         * modules/btowc-tests: New file.
54475         * tests/test-btowc1.sh: New file.
54476         * tests/test-btowc2.sh: New file.
54477         * tests/test-btowc.c: New file.
54478
54479         New module 'btowc'.
54480         * lib/wchar.in.h (btowc): New declaration.
54481         * lib/btowc.c: New file.
54482         * m4/btowc.m4: New file.
54483         * modules/btowc: New file.
54484         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
54485         HAVE_BTOWC.
54486         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
54487         * doc/posix-functions/btowc.texi: Document the new module.
54488
54489 2008-12-17  Bruno Haible  <bruno@clisp.org>
54490
54491         New module 'mbsinit'.
54492         * lib/wchar.in.h (mbsinit): New declaration.
54493         * lib/mbsinit.c: New file.
54494         * m4/mbsinit.m4: New file.
54495         * modules/mbsinit: New file.
54496         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
54497         HAVE_MBSINIT.
54498         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
54499         HAVE_MBSINIT.
54500         * doc/posix-functions/mbsinit.texi: Document the new module.
54501
54502 2008-12-16  Bruno Haible  <bruno@clisp.org>
54503
54504         * lib/unistd.in.h: Add comment.
54505         * tests/test-environ.c: Don't include <stdlib.h>.
54506
54507 2008-12-16  Bruno Haible  <bruno@clisp.org>
54508
54509         * lib/parse-duration.h (parse_duration): Document return value
54510         convention.
54511         * lib/parse-duration.c: Include specification header first. Add
54512         comments.
54513         (_): Remove macro.
54514         (parse_year_month_day, parse_hour_minute_second): Move side effects
54515         outside of strchr call.
54516         (parse_non_iso8601): Move side effects outside of isspace call.
54517         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
54518         call.
54519
54520 2008-12-16  Bruno Haible  <bruno@clisp.org>
54521
54522         * tests/test-parse-duration.sh: Produce no output when the test
54523         succeeds.
54524
54525 2008-12-16  Bruno Haible  <bruno@clisp.org>
54526
54527         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
54528         expressions.
54529
54530 2008-12-15  Bruno Haible  <bruno@clisp.org>
54531
54532         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
54533         * doc/glibc-functions/flistxattr.texi: Likewise.
54534         * doc/glibc-functions/fopencookie.texi: Likewise.
54535         * doc/glibc-functions/fremovexattr.texi: Likewise.
54536         * doc/glibc-functions/fsetxattr.texi: Likewise.
54537         * doc/glibc-functions/getxattr.texi: Likewise.
54538         * doc/glibc-functions/lgetxattr.texi: Likewise.
54539         * doc/glibc-functions/listxattr.texi: Likewise.
54540         * doc/glibc-functions/llistxattr.texi: Likewise.
54541         * doc/glibc-functions/lremovexattr.texi: Likewise.
54542         * doc/glibc-functions/lsetxattr.texi: Likewise.
54543         * doc/glibc-functions/removexattr.texi: Likewise.
54544         * doc/glibc-functions/setxattr.texi: Likewise.
54545         * doc/posix-functions/open_memstream.texi: Likewise.
54546
54547 2008-12-15  Eric Blake  <ebb9@byu.net>
54548
54549         Update doc for cygwin 1.7.
54550         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
54551         functions.
54552         * doc/posix-functions/fchmodat.texi: Likewise.
54553         * doc/posix-functions/fchownat.texi: Likewise.
54554         * doc/posix-functions/fdopendir.texi: Likewise.
54555         * doc/posix-functions/fmemopen.texi: Likewise.
54556         * doc/posix-functions/freeaddrinfo.texi: Likewise.
54557         * doc/posix-functions/fstatat.texi: Likewise.
54558         * doc/posix-functions/futimens.texi: Likewise.
54559         * doc/posix-functions/gai_strerror.texi: Likewise.
54560         * doc/posix-functions/getaddrinfo.texi: Likewise.
54561         * doc/posix-functions/getnameinfo.texi: Likewise.
54562         * doc/posix-functions/if_freenameindex.texi: Likewise.
54563         * doc/posix-functions/if_indextoname.texi: Likewise.
54564         * doc/posix-functions/if_nameindex.texi: Likewise.
54565         * doc/posix-functions/if_nametoindex.texi: Likewise.
54566         * doc/posix-functions/insque.texi: Likewise.
54567         * doc/posix-functions/linkat.texi: Likewise.
54568         * doc/posix-functions/llrint.texi: Likewise.
54569         * doc/posix-functions/llrintf.texi: Likewise.
54570         * doc/posix-functions/llrintl.texi: Likewise.
54571         * doc/posix-functions/lockf.texi: Likewise.
54572         * doc/posix-functions/lrintl.texi: Likewise.
54573         * doc/posix-functions/mkdirat.texi: Likewise.
54574         * doc/posix-functions/mkfifoat.texi: Likewise.
54575         * doc/posix-functions/mknodat.texi: Likewise.
54576         * doc/posix-functions/mq_close.texi: Likewise.
54577         * doc/posix-functions/mq_getattr.texi: Likewise.
54578         * doc/posix-functions/mq_notify.texi: Likewise.
54579         * doc/posix-functions/mq_open.texi: Likewise.
54580         * doc/posix-functions/mq_receive.texi: Likewise.
54581         * doc/posix-functions/mq_send.texi: Likewise.
54582         * doc/posix-functions/mq_setattr.texi: Likewise.
54583         * doc/posix-functions/mq_timedreceive.texi: Likewise.
54584         * doc/posix-functions/mq_timedsend.texi: Likewise.
54585         * doc/posix-functions/mq_unlink.texi: Likewise.
54586         * doc/posix-functions/open_memstream.texi: Likewise.
54587         * doc/posix-functions/openat.texi: Likewise.
54588         * doc/posix-functions/posix_fadvise.texi: Likewise.
54589         * doc/posix-functions/posix_fallocate.texi: Likewise.
54590         * doc/posix-functions/posix_madvise.texi: Likewise.
54591         * doc/posix-functions/posix_memalign.texi: Likewise.
54592         * doc/posix-functions/posix_openpt.texi: Likewise.
54593         * doc/posix-functions/readlinkat.texi: Likewise.
54594         * doc/posix-functions/remque.texi: Likewise.
54595         * doc/posix-functions/renameat.texi: Likewise.
54596         * doc/posix-functions/rintl.texi: Likewise.
54597         * doc/posix-functions/sem_unlink.texi: Likewise.
54598         * doc/posix-functions/shm_open.texi: Likewise.
54599         * doc/posix-functions/shm_unlink.texi: Likewise.
54600         * doc/posix-functions/signgam.texi: Likewise.
54601         * doc/posix-functions/sigset.texi: Likewise.
54602         * doc/posix-functions/stpcpy.texi: Likewise.
54603         * doc/posix-functions/stpncpy.texi: Likewise.
54604         * doc/posix-functions/strerror.texi: Likewise.
54605         * doc/posix-functions/strtod.texi: Likewise.
54606         * doc/posix-functions/symlinkat.texi: Likewise.
54607         * doc/posix-functions/unlinkat.texi: Likewise.
54608         * doc/posix-functions/utimensat.texi: Likewise.
54609         * doc/glibc-functions/bindresvport.texi: Likewise.
54610         * doc/glibc-functions/dn_expand.texi: Likewise.
54611         * doc/glibc-functions/exp10.texi: Likewise.
54612         * doc/glibc-functions/exp10f.texi: Likewise.
54613         * doc/glibc-functions/fgetxattr.texi: Likewise.
54614         * doc/glibc-functions/flistxattr.texi: Likewise.
54615         * doc/glibc-functions/fopencookie.texi: Likewise.
54616         * doc/glibc-functions/freeifaddrs.texi: Likewise.
54617         * doc/glibc-functions/fremovexattr.texi: Likewise.
54618         * doc/glibc-functions/fsetxattr.texi: Likewise.
54619         * doc/glibc-functions/getifaddrs.texi: Likewise.
54620         * doc/glibc-functions/getxattr.texi: Likewise.
54621         * doc/glibc-functions/lgetxattr.texi: Likewise.
54622         * doc/glibc-functions/listxattr.texi: Likewise.
54623         * doc/glibc-functions/llistxattr.texi: Likewise.
54624         * doc/glibc-functions/lremovexattr.texi: Likewise.
54625         * doc/glibc-functions/lsetxattr.texi: Likewise.
54626         * doc/glibc-functions/pow10.texi: Likewise.
54627         * doc/glibc-functions/pow10f.texi: Likewise.
54628         * doc/glibc-functions/rcmd_af.texi: Likewise.
54629         * doc/glibc-functions/removexattr.texi: Likewise.
54630         * doc/glibc-functions/res_init.texi: Likewise.
54631         * doc/glibc-functions/res_mkquery.texi: Likewise.
54632         * doc/glibc-functions/res_query.texi: Likewise.
54633         * doc/glibc-functions/res_querydomain.texi: Likewise.
54634         * doc/glibc-functions/res_send.texi: Likewise.
54635         * doc/glibc-functions/rresvport_af.texi: Likewise.
54636         * doc/glibc-functions/setxattr.texi: Likewise.
54637         * doc/glibc-functions/strcasestr.texi: Likewise.
54638
54639 2008-12-15  Bruno Haible  <bruno@clisp.org>
54640
54641         Fix compilation error on OSF/1 4.0.
54642         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
54643         <sys/time.h>, simply delegate to the system header.
54644         Reported by Daniel Richard G. <oss@teragram.com>.
54645
54646 2008-12-15  Bruno Haible  <bruno@clisp.org>
54647
54648         * doc/posix-functions/openat.texi: Mention the 'openat' module.
54649         * doc/posix-functions/fchmodat.texi: Likewise.
54650         * doc/posix-functions/fchownat.texi: Likewise.
54651         * doc/posix-functions/fdopendir.texi: Likewise.
54652         * doc/posix-functions/fstatat.texi: Likewise.
54653         * doc/posix-functions/mkdirat.texi: Likewise.
54654         * doc/posix-functions/unlinkat.texi: Likewise.
54655
54656 2008-12-14  Bruno Haible  <bruno@clisp.org>
54657
54658         Update doc for POSIX:2008.
54659         * doc/posix-functions/faccessat.texi: New file.
54660         * doc/posix-functions/fchmodat.texi: New file.
54661         * doc/posix-functions/fchownat.texi: New file.
54662         * doc/posix-functions/fdopendir.texi: New file.
54663         * doc/posix-functions/fstatat.texi: New file.
54664         * doc/posix-functions/futimens.texi: New file.
54665         * doc/posix-functions/linkat.texi: New file.
54666         * doc/posix-functions/mkdirat.texi: New file.
54667         * doc/posix-functions/mkfifoat.texi: New file.
54668         * doc/posix-functions/mknodat.texi: New file.
54669         * doc/posix-functions/open_wmemstream.texi: New file.
54670         * doc/posix-functions/openat.texi: New file.
54671         * doc/posix-functions/psiginfo.texi: New file.
54672         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
54673         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
54674         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
54675         * doc/posix-functions/readlinkat.texi: New file.
54676         * doc/posix-functions/renameat.texi: New file.
54677         * doc/posix-functions/strerror_l.texi: New file.
54678         * doc/posix-functions/symlinkat.texi: New file.
54679         * doc/posix-functions/unlinkat.texi: New file.
54680         * doc/posix-functions/utimensat.texi: New file.
54681         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54682
54683 2008-12-14  Bruno Haible  <bruno@clisp.org>
54684
54685         Update doc for POSIX:2008.
54686         * doc/posix-functions/alphasort.texi: Renamed from
54687         doc/glibc-functions/alphasort.texi.
54688         * doc/posix-functions/dirfd.texi: Renamed from
54689         doc/glibc-functions/dirfd.texi.
54690         * doc/posix-functions/dprintf.texi: Renamed from
54691         doc/glibc-functions/dprintf.texi.
54692         * doc/posix-functions/duplocale.texi: Renamed from
54693         doc/glibc-functions/duplocale.texi.
54694         * doc/posix-functions/fexecve.texi: Renamed from
54695         doc/glibc-functions/fexecve.texi.
54696         * doc/posix-functions/fmemopen.texi: Renamed from
54697         doc/glibc-functions/fmemopen.texi.
54698         * doc/posix-functions/freelocale.texi: Renamed from
54699         doc/glibc-functions/freelocale.texi.
54700         * doc/posix-functions/getdate_err.texi: Renamed from
54701         doc/glibc-functions/getdate_err.texi.
54702         * doc/posix-functions/isalnum_l.texi: Renamed from
54703         doc/glibc-functions/isalnum_l.texi.
54704         * doc/posix-functions/isalpha_l.texi: Renamed from
54705         doc/glibc-functions/isalpha_l.texi.
54706         * doc/posix-functions/isblank_l.texi: Renamed from
54707         doc/glibc-functions/isblank_l.texi.
54708         * doc/posix-functions/iscntrl_l.texi: Renamed from
54709         doc/glibc-functions/iscntrl_l.texi.
54710         * doc/posix-functions/isdigit_l.texi: Renamed from
54711         doc/glibc-functions/isdigit_l.texi.
54712         * doc/posix-functions/isgraph_l.texi: Renamed from
54713         doc/glibc-functions/isgraph_l.texi.
54714         * doc/posix-functions/islower_l.texi: Renamed from
54715         doc/glibc-functions/islower_l.texi.
54716         * doc/posix-functions/isprint_l.texi: Renamed from
54717         doc/glibc-functions/isprint_l.texi.
54718         * doc/posix-functions/ispunct_l.texi: Renamed from
54719         doc/glibc-functions/ispunct_l.texi.
54720         * doc/posix-functions/isspace_l.texi: Renamed from
54721         doc/glibc-functions/isspace_l.texi.
54722         * doc/posix-functions/isupper_l.texi: Renamed from
54723         doc/glibc-functions/isupper_l.texi.
54724         * doc/posix-functions/iswalnum_l.texi: Renamed from
54725         doc/glibc-functions/iswalnum_l.texi.
54726         * doc/posix-functions/iswalpha_l.texi: Renamed from
54727         doc/glibc-functions/iswalpha_l.texi.
54728         * doc/posix-functions/iswblank_l.texi: Renamed from
54729         doc/glibc-functions/iswblank_l.texi.
54730         * doc/posix-functions/iswcntrl_l.texi: Renamed from
54731         doc/glibc-functions/iswcntrl_l.texi.
54732         * doc/posix-functions/iswctype_l.texi: Renamed from
54733         doc/glibc-functions/iswctype_l.texi.
54734         * doc/posix-functions/iswdigit_l.texi: Renamed from
54735         doc/glibc-functions/iswdigit_l.texi.
54736         * doc/posix-functions/iswgraph_l.texi: Renamed from
54737         doc/glibc-functions/iswgraph_l.texi.
54738         * doc/posix-functions/iswlower_l.texi: Renamed from
54739         doc/glibc-functions/iswlower_l.texi.
54740         * doc/posix-functions/iswprint_l.texi: Renamed from
54741         doc/glibc-functions/iswprint_l.texi.
54742         * doc/posix-functions/iswpunct_l.texi: Renamed from
54743         doc/glibc-functions/iswpunct_l.texi.
54744         * doc/posix-functions/iswspace_l.texi: Renamed from
54745         doc/glibc-functions/iswspace_l.texi.
54746         * doc/posix-functions/iswupper_l.texi: Renamed from
54747         doc/glibc-functions/iswupper_l.texi.
54748         * doc/posix-functions/iswxdigit_l.texi: Renamed from
54749         doc/glibc-functions/iswxdigit_l.texi.
54750         * doc/posix-functions/isxdigit_l.texi: Renamed from
54751         doc/glibc-functions/isxdigit_l.texi.
54752         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
54753         doc/glibc-functions/mbsnrtowcs.texi.
54754         * doc/posix-functions/mkdtemp.texi: Renamed from
54755         doc/glibc-functions/mkdtemp.texi.
54756         * doc/posix-functions/newlocale.texi: Renamed from
54757         doc/glibc-functions/newlocale.texi.
54758         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
54759         doc/glibc-functions/nl_langinfo_l.texi.
54760         * doc/posix-functions/open_memstream.texi: Renamed from
54761         doc/glibc-functions/open_memstream.texi.
54762         * doc/posix-functions/opterr.texi: Renamed from
54763         doc/glibc-functions/opterr.texi.
54764         * doc/posix-functions/optind.texi: Renamed from
54765         doc/glibc-functions/optind.texi.
54766         * doc/posix-functions/optopt.texi: Renamed from
54767         doc/glibc-functions/optopt.texi.
54768         * doc/posix-functions/psignal.texi: Renamed from
54769         doc/glibc-functions/psignal.texi.
54770         * doc/posix-functions/scandir.texi: Renamed from
54771         doc/glibc-functions/scandir.texi.
54772         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
54773         doc/glibc-functions/sched_get_priority_min.texi.
54774         * doc/posix-functions/signgam.texi: Renamed from
54775         doc/glibc-functions/signgam.texi.
54776         * doc/posix-functions/stpcpy.texi: Renamed from
54777         doc/glibc-functions/stpcpy.texi.
54778         * doc/posix-functions/stpncpy.texi: Renamed from
54779         doc/glibc-functions/stpncpy.texi.
54780         * doc/posix-functions/strcasecmp_l.texi: Renamed from
54781         doc/glibc-functions/strcasecmp_l.texi.
54782         * doc/posix-functions/strcoll_l.texi: Renamed from
54783         doc/glibc-functions/strcoll_l.texi.
54784         * doc/posix-functions/strfmon_l.texi: Renamed from
54785         doc/glibc-functions/strfmon_l.texi.
54786         * doc/posix-functions/strftime_l.texi: Renamed from
54787         doc/glibc-functions/strftime_l.texi.
54788         * doc/posix-functions/strncasecmp_l.texi: Renamed from
54789         doc/glibc-functions/strncasecmp_l.texi.
54790         * doc/posix-functions/strndup.texi: Renamed from
54791         doc/glibc-functions/strndup.texi.
54792         * doc/posix-functions/strnlen.texi: Renamed from
54793         doc/glibc-functions/strnlen.texi.
54794         * doc/posix-functions/strsignal.texi: Renamed from
54795         doc/glibc-functions/strsignal.texi.
54796         * doc/posix-functions/strxfrm_l.texi: Renamed from
54797         doc/glibc-functions/strxfrm_l.texi.
54798         * doc/posix-functions/timer_gettime.texi: Renamed from
54799         doc/glibc-functions/timer_gettime.texi.
54800         * doc/posix-functions/tolower_l.texi: Renamed from
54801         doc/glibc-functions/tolower_l.texi.
54802         * doc/posix-functions/toupper_l.texi: Renamed from
54803         doc/glibc-functions/toupper_l.texi.
54804         * doc/posix-functions/towctrans_l.texi: Renamed from
54805         doc/glibc-functions/towctrans_l.texi.
54806         * doc/posix-functions/towlower_l.texi: Renamed from
54807         doc/glibc-functions/towlower_l.texi.
54808         * doc/posix-functions/towupper_l.texi: Renamed from
54809         doc/glibc-functions/towupper_l.texi.
54810         * doc/posix-functions/uselocale.texi: Renamed from
54811         doc/glibc-functions/uselocale.texi.
54812         * doc/posix-functions/vdprintf.texi: Renamed from
54813         doc/glibc-functions/vdprintf.texi.
54814         * doc/posix-functions/wcpcpy.texi:
54815         Renamed from doc/glibc-functions/wcpcpy.texi.
54816         * doc/posix-functions/wcpncpy.texi: Renamed from
54817         doc/glibc-functions/wcpncpy.texi.
54818         * doc/posix-functions/wcscasecmp.texi: Renamed from
54819         doc/glibc-functions/wcscasecmp.texi.
54820         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
54821         doc/glibc-functions/wcscasecmp_l.texi.
54822         * doc/posix-functions/wcscoll_l.texi: Renamed from
54823         doc/glibc-functions/wcscoll_l.texi.
54824         * doc/posix-functions/wcsdup.texi: Renamed from
54825         doc/glibc-functions/wcsdup.texi.
54826         * doc/posix-functions/wcsncasecmp.texi: Renamed from
54827         doc/glibc-functions/wcsncasecmp.texi.
54828         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
54829         doc/glibc-functions/wcsncasecmp_l.texi.
54830         * doc/posix-functions/wcsnlen.texi: Renamed from
54831         doc/glibc-functions/wcsnlen.texi.
54832         * doc/posix-functions/wcsnrtombs.texi: Renamed from
54833         doc/glibc-functions/wcsnrtombs.texi.
54834         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
54835         doc/glibc-functions/wcsxfrm_l.texi.
54836         * doc/posix-functions/wctrans_l.texi: Renamed from
54837         doc/glibc-functions/wctrans_l.texi.
54838         * doc/posix-functions/wctype_l.texi: Renamed from
54839         doc/glibc-functions/wctype_l.texi.
54840         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54841         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
54842         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
54843         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
54844         these subsections.
54845         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
54846         Remove sections.
54847
54848 2008-12-14  Bruno Haible  <bruno@clisp.org>
54849
54850         Update doc for POSIX:2008.
54851         * doc/posix-functions/*.texi: Update URL of POSIX specification.
54852
54853 2008-12-14  Bruno Haible  <bruno@clisp.org>
54854
54855         Update doc for POSIX:2008.
54856         * doc/pastposix-functions/bcmp.texi: Renamed from
54857         doc/posix-functions/bcmp.texi.
54858         * doc/pastposix-functions/bcopy.texi: Renamed from
54859         doc/posix-functions/bcopy.texi.
54860         * doc/pastposix-functions/bsd_signal.texi: Renamed from
54861         doc/posix-functions/bsd_signal.texi.
54862         * doc/pastposix-functions/bzero.texi: Renamed from
54863         doc/posix-functions/bzero.texi.
54864         * doc/pastposix-functions/ecvt.texi: Renamed from
54865         doc/posix-functions/ecvt.texi.
54866         * doc/pastposix-functions/fcvt.texi: Renamed from
54867         doc/posix-functions/fcvt.texi.
54868         * doc/pastposix-functions/ftime.texi: Renamed from
54869         doc/posix-functions/ftime.texi.
54870         * doc/pastposix-functions/gcvt.texi: Renamed from
54871         doc/posix-functions/gcvt.texi.
54872         * doc/pastposix-functions/getcontext.texi: Renamed from
54873         doc/posix-functions/getcontext.texi.
54874         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
54875         doc/posix-functions/gethostbyaddr.texi.
54876         * doc/pastposix-functions/gethostbyname.texi: Renamed from
54877         doc/posix-functions/gethostbyname.texi.
54878         * doc/pastposix-functions/getwd.texi: Renamed from
54879         doc/posix-functions/getwd.texi.
54880         * doc/pastposix-functions/h_errno.texi: Renamed from
54881         doc/posix-functions/h_errno.texi.
54882         * doc/pastposix-functions/index.texi: Renamed from
54883         doc/posix-functions/index.texi.
54884         * doc/pastposix-functions/makecontext.texi: Renamed from
54885         doc/posix-functions/makecontext.texi.
54886         * doc/pastposix-functions/mktemp.texi: Renamed from
54887         doc/posix-functions/mktemp.texi.
54888         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
54889         doc/posix-functions/pthread_attr_getstackaddr.texi.
54890         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
54891         doc/posix-functions/pthread_attr_setstackaddr.texi.
54892         * doc/pastposix-functions/rindex.texi: Renamed from
54893         doc/posix-functions/rindex.texi.
54894         * doc/pastposix-functions/scalb.texi: Renamed from
54895         doc/posix-functions/scalb.texi.
54896         * doc/pastposix-functions/setcontext.texi: Renamed from
54897         doc/posix-functions/setcontext.texi.
54898         * doc/pastposix-functions/swapcontext.texi: Renamed from
54899         doc/posix-functions/swapcontext.texi.
54900         * doc/pastposix-functions/ualarm.texi: Renamed from
54901         doc/posix-functions/ualarm.texi.
54902         * doc/pastposix-functions/usleep.texi: Renamed from
54903         doc/posix-functions/usleep.texi.
54904         * doc/pastposix-functions/vfork.texi: Renamed from
54905         doc/posix-functions/vfork.texi.
54906         * doc/pastposix-functions/wcswcs.texi: Renamed from
54907         doc/posix-functions/wcswcs.texi.
54908         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
54909         (Function Substitutes): Update.
54910
54911 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54912
54913         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
54914         m4/strerror.m4.
54915
54916 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54917             Bruno Haible  <bruno@clisp.org>
54918
54919         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
54920
54921 2008-12-13  Bruno Haible  <bruno@clisp.org>
54922
54923         * modules/strtoull (Depends-on): Remove unistd.
54924
54925 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54926
54927         * modules/strtoull (Depends-on): Add stdlib.
54928
54929 2008-12-11  Simon Josefsson  <simon@josefsson.org>
54930
54931         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
54932
54933 2008-12-10  Jim Meyering  <meyering@redhat.com>
54934
54935         gl_ASSERT: don't say assertions are disabled when they're not
54936         * m4/assert.m4 (gl_ASSERT): Do not make configure report
54937         "checking whether to enable assertions... no", when they are in
54938         fact enabled.  This is solely a bug in the output of configure.
54939         In spite of saying "no", NDEBUG was not defined in that case.
54940         Also, as noted by Eric Blake, leave assertions enabled upon
54941         --enable-assert=INVALID.
54942
54943 2008-12-10  Bruno Haible  <bruno@clisp.org>
54944
54945         Change MODULES.html to refer to POSIX:2008 where possible.
54946         * MODULES.html.sh (POSIX2008_URL): New variable.
54947         (posix_headers): Remove sys/timeb, ucontext.
54948         (posix2001_headers): New variable.
54949         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
54950         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
54951         index, makecontext, mktemp, pthread_attr_getstackaddr,
54952         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
54953         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
54954         (posix2001_functions): New variable.
54955         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
54956         otherwise.
54957
54958 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54959
54960         add missing include to parse-duration.c
54961         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
54962         * modules/parse-duration (Depends-on): Add xalloc.
54963
54964         fix sed script reading maint.mk
54965         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
54966         (syntax-check-rules): Use it.
54967
54968 2008-12-09  Bruno Haible  <bruno@clisp.org>
54969
54970         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
54971         MacOS X 10.4/PowerPC.
54972         Reported by Simon Josefsson.
54973
54974 2008-12-08  Jim Meyering  <meyering@redhat.com>
54975
54976         work around mingw's lack of some S_IF definitions
54977         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
54978         Reported by Simon Josefsson.
54979
54980 2008-12-08  Bruno Haible  <bruno@clisp.org>
54981
54982         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
54983         applied to variables. Needed on MacOS X 10.4/PowerPC.
54984         Reported by Simon Josefsson.
54985
54986 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
54987         and Eric Blake  <ebb9@byu.net>
54988
54989         assert: honor --enable-assert
54990         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
54991         order to honor --enable-assert, rather than treating it as a
54992         synonym for --disable-assert.
54993
54994 2008-12-08  Jim Meyering  <meyering@redhat.com>
54995
54996         * lib/posixtm.c: Remove now-useless declaration of mktime.
54997
54998         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
54999
55000 2008-12-07  Bruno Haible  <bruno@clisp.org>
55001
55002         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
55003         test_once): Mark functions as static.
55004         * tests/test-tls.c (test_tls): Likewise.
55005
55006 2008-12-07  Bruno Haible  <bruno@clisp.org>
55007
55008         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
55009         iconv_register_autodetect.
55010
55011 2008-12-07  Jim Meyering  <meyering@redhat.com>
55012
55013         posixtm.c: avoid a warning
55014         * lib/posixtm.c (posixtime): Don't initialize tm0.
55015         It's no longer needed to placate gcc4's -Wuninitialized,
55016         and the attempt to placate would elicit a new warning.
55017
55018         unicodeio.c: mark unused parameters
55019         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55020         (fallback_failure_callback): Likewise.
55021
55022 2008-12-07  Bruno Haible  <bruno@clisp.org>
55023
55024         * gnulib-tool (func_create_testdir): When building the tests
55025         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
55026         Reported by Simon Josefsson.
55027
55028 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55029
55030         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
55031
55032 2008-12-06  Bruno Haible  <bruno@clisp.org>
55033
55034         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
55035         Suggested by Eric Blake.
55036
55037 2008-12-06  Bruno Haible  <bruno@clisp.org>
55038
55039         Fix a c-stack test failure on MacOS X.
55040         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
55041         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
55042         handler for SIGBUS as well.
55043         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
55044         install a signal handler for SIGBUS as well.
55045         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
55046
55047 2008-12-06  Bruno Haible  <bruno@clisp.org>
55048
55049         Advocacy documentation.
55050         * doc/gnulib-intro.texi (Benefits): New section.
55051         * doc/gnulib.texi: Update.
55052
55053 2008-12-06  Bruno Haible  <bruno@clisp.org>
55054
55055         Document the 'manywarnings' module.
55056         * doc/manywarnings.texi: New file.
55057         * doc/gnulib.texi: Include it.
55058
55059 2008-12-05  Eric Blake  <ebb9@byu.net>
55060
55061         tests: silence some gcc warnings
55062         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
55063         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
55064         type mismatches.
55065
55066 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55067             Bruno Haible  <bruno@clisp.org>
55068
55069         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
55070
55071 2008-11-29  Jim Meyering  <meyering@redhat.com>
55072
55073         unicodeio.c: mark unused parameters
55074         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55075         (fallback_failure_callback): Likewise.
55076
55077         fts: fix a thinko
55078         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
55079         (set_stat_type): Return S_IF*-valued "type" directly.
55080         Prompted by James Youngman's spotting a related bug.
55081         Confirmed by further testing through find.
55082
55083         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
55084         * lib/fts.c (D_TYPE): Define.
55085         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
55086         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
55087         (s_ifmt_shift_bits): New function.
55088         (set_stat_type): New function.
55089         (fts_build): When not calling fts_stat, call set_stat_type
55090         to propagate dirent.d_type info to fts_read caller.
55091         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
55092         fts_statp->st_mode type information may be valid.
55093
55094 2008-11-28  Simon Josefsson  <simon@josefsson.org>
55095
55096         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
55097         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
55098         <sds@gnu.org>.
55099
55100 2008-11-20  Bruno Haible  <bruno@clisp.org>
55101
55102         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
55103         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
55104         INCLUDE_NEXT.
55105         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
55106         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
55107         * modules/math (Makefile.am): Substitute
55108         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
55109         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55110
55111 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
55112             Bruno Haible  <bruno@clisp.org>
55113
55114         * lib/stdint.in.h: Define all type macros so that their expansion is
55115         a single typedef'ed token. Fixes a compilation failure in Boost which
55116         does "using ::int8_t;".
55117
55118 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55119
55120         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
55121         gl_MANYWARN_ALL_GCC.
55122         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
55123         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
55124         * modules/manywarnings: New file.
55125         * MODULES.html.sh: Mention manywarnings module.
55126
55127 2008-11-18  Bruno Haible  <bruno@clisp.org>
55128
55129         * doc/gnulib-tool.texi (Unit tests): New section.
55130
55131 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55132
55133         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
55134         paths like 'lib/po/foo.po'.
55135
55136 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55137
55138         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
55139         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
55140
55141 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55142
55143         * m4/warnings.m4: Use CPPFLAGS to really check whether the
55144         parameter works.
55145
55146 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55147
55148         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
55149
55150 2008-11-17  Bruce Korb  <bkorb@gnu.org>
55151
55152         * modules/parse-duration-tests: New file.
55153         * tests/test-parse-duration.sh: New file.
55154         * tests/test-parse-duration.c: New file.
55155
55156         New module 'parse-duration'.
55157         * lib/parse-duration.h: New file.
55158         * lib/parse-duration.c: New file.
55159         * modules/parse-duration: New file.
55160
55161 2008-11-17  Bruno Haible  <bruno@clisp.org>
55162
55163         * tests/test-select-out.sh: Comment out the first pipe test.
55164         Reported by Simon Josefsson.
55165
55166 2008-11-17  Bruno Haible  <bruno@clisp.org>
55167
55168         * modules/getaddrinfo (Depends-on): Add servent, hostent.
55169         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
55170         gl_HOSTENT.
55171
55172 2008-11-17  Bruno Haible  <bruno@clisp.org>
55173
55174         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
55175         -lnetwork and -lnet. Needed for Haiku and BeOS.
55176
55177 2008-11-16  Bruno Haible  <bruno@clisp.org>
55178
55179         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
55180
55181 2008-11-16  Bruno Haible  <bruno@clisp.org>
55182
55183         Avoid test failure on Haiku.
55184         * tests/test-fsync.c: Include <errno.h>.
55185         (main): Don't require that fsync (0) fails.
55186
55187 2008-11-15  Bruno Haible  <bruno@clisp.org>
55188
55189         New module 'hostent'.
55190         * modules/hostent: New file.
55191         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
55192
55193 2008-11-15  Bruno Haible  <bruno@clisp.org>
55194
55195         New module 'servent'.
55196         * modules/servent: New file.
55197         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
55198
55199 2008-11-15  Bruno Haible  <bruno@clisp.org>
55200
55201         Avoid generating same test program with two different rules.
55202         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
55203         test-frexp to test-frexp-nolibm.
55204         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
55205         test-frexpl to test-frexpl-nolibm.
55206
55207 2008-11-15  Bruno Haible  <bruno@clisp.org>
55208
55209         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
55210         $(FREXPL_LIBM).
55211
55212 2008-11-15  Bruno Haible  <bruno@clisp.org>
55213
55214         * lib/netdb.in.h: Activate the definitions also when the system's
55215         <netdb.h> has 'struct addrinfo'.
55216         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
55217         EAI_OVERFLOW or AI_NUMERICSERV.
55218         * doc/posix-headers/netdb.texi: Document the problem.
55219
55220 2008-11-15  Bruno Haible  <bruno@clisp.org>
55221
55222         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
55223
55224         Make the 'sched' module work on platforms where <sched.h> exists but
55225         is incomplete (such as Haiku).
55226         * lib/sched.in.h; Include the system's <sched.h> if it exists.
55227         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
55228         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
55229         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
55230         HAVE_STRUCT_SCHED_PARAM.
55231         * modules/sched (Depends-on): Add include_next.
55232         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
55233         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
55234         * doc/posix-headers/sched.texi: Document the issue.
55235
55236 2008-11-13  Jim Meyering  <meyering@redhat.com>
55237
55238         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
55239         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
55240         test would fail due to the difference in the Report bugs to ...
55241         line.  The expected address is empty, "<>", while the actual
55242         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
55243
55244 2008-11-12  Bruno Haible  <bruno@clisp.org>
55245
55246         lstat: don't compile lstat.c on systems lacking lstat
55247         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
55248         which don't have lstat; this is handled by lib/sys_stat.in.h already.
55249         Reported by Daniel P. Berrange via Jim Meyering.
55250
55251 2008-11-12  Jim Meyering  <meyering@redhat.com>
55252
55253         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
55254
55255 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55256
55257         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
55258         instead.
55259
55260 2008-11-12  Bruno Haible  <bruno@clisp.org>
55261
55262         * lib/unicodeio.c: Include unistr.h.
55263         (utf8_wctomb): Remove function.
55264         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
55265
55266 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55267
55268         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
55269         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
55270         <bruno@clisp.org>.
55271         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
55272
55273 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55274
55275         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
55276         * doc/gnulib.texi: Add section for warnings.
55277
55278 2008-11-11  Bruno Haible  <bruno@clisp.org>
55279
55280         * lib/sockets.h: Add a comment.
55281
55282 2008-11-11  Karl Berry  <karl@gnu.org>
55283
55284         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
55285
55286 2008-11-11  Eric Blake  <ebb9@byu.net>
55287
55288         fdl.texi: avoid git symlinks
55289         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
55290
55291 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55292
55293         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
55294
55295 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55296
55297         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
55298         (gl_WARN_ADD): Substitute $2 if literal.
55299
55300 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55301
55302         * m4/warning.m4: Remove.
55303
55304 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55305
55306         * m4/warnings.m4: Almost complete rewrite. :-)
55307
55308 2008-11-10  Simon Josefsson  <simon@josefsson.org>
55309
55310         * modules/warnings: New module.
55311         * m4/warnings.m4: New file.
55312         * MODULES.html.sh: Mention warnings module.
55313         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
55314         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55315
55316 2008-11-10  Eric Blake  <ebb9@byu.net>
55317
55318         fdl.texi: make a symlink to the latest version
55319         * doc/standards.texi: Revert today's earlier change.
55320         * doc/fdl-1.2.texi: Rename from old fdl.texi...
55321         * doc/fdl.texi: ...and replace this with a symlink to the newer
55322         fdl-1.3.texi.
55323
55324 2008-11-10  Bruno Haible  <bruno@clisp.org>
55325
55326         * tests/test-select-fd.c (main): Accept the result file name as fourth
55327         argument.
55328         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
55329         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
55330
55331 2008-11-10  Bruno Haible  <bruno@clisp.org>
55332
55333         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
55334         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
55335         as autoconf-substituted macros.
55336         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
55337         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
55338         gl_NETDB_H_DEFAULTS. Set these variables.
55339         * modules/netdb (Makefile.am): Substitute these variables.
55340
55341 2008-11-10  Eric Blake  <ebb9@byu.net>
55342
55343         standards.texi: include correct file for FDL 1.3
55344         * doc/standards.texi (GNU Free Documentation License): Change
55345         include file to pull in FDL 1.3, not 1.2.
55346
55347         fdl.texi: revert accidental change to license
55348         * doc/fdl.texi: This is FDL 1.2, not 1.3.
55349
55350 2008-11-10  Bruno Haible  <bruno@clisp.org>
55351
55352         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
55353         cross-compiling guesses also when the native compile gives no result.
55354
55355 2008-11-10  Bruno Haible  <bruno@clisp.org>
55356
55357         * lib/spawni.c (__spawni): Force variable into the stack.
55358
55359 2008-11-10  Bruno Haible  <bruno@clisp.org>
55360
55361         Add support for Haiku.
55362         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
55363         glibc and BeOS, but also on Haiku.
55364         * lib/fpurge.c (fpurge): Likewise.
55365         * lib/freadable.c (freadable): Likewise.
55366         * lib/freadahead.c (freadahead): Likewise.
55367         * lib/freading.c (freading): Likewise.
55368         * lib/freadptr.c (freadptr): Likewise.
55369         * lib/freadseek.c (freadptrinc): Likewise.
55370         * lib/fseeko.c (rpl_fseeko): Likewise.
55371         * lib/fseterr.c (fseterr): Likewise.
55372         * lib/fwritable.c (fwritable): Likewise.
55373         * lib/fwriting.c (fwriting): Likewise.
55374         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
55375
55376 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55377
55378         * lib/config.charset: Treat Haiku like BeOS.
55379
55380 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55381
55382         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
55383         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
55384
55385 2008-11-08  Bruno Haible  <bruno@clisp.org>
55386
55387         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
55388         AC_CACHE_CHECK.
55389
55390 2008-11-08  Bruno Haible  <bruno@clisp.org>
55391
55392         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
55393
55394 2008-11-08  Bruno Haible  <bruno@clisp.org>
55395
55396         * tests/test-select-fd.c: New file.
55397         * tests/test-select-in.sh: New file.
55398         * tests/test-select-out.sh: New file.
55399         * tests/test-select-stdin.c: New file.
55400         * modules/select-tests (Files): Add the new files.
55401         (Depends-on): Add gettimeofday.
55402         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
55403         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
55404         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
55405
55406 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
55407             Bruno Haible  <bruno@clisp.org>
55408
55409         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
55410
55411 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
55412
55413         * build-aux/pmccabe2html: Added support for C++ source files.
55414
55415 2008-11-05  Ben Pfaff  <blp@gnu.org>
55416
55417         Fix lib/close.c build on Windows.
55418         * modules/close (Files): Add lib/w32sock.h.
55419
55420 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
55421
55422         Accept Bison's NEWS format.
55423         * build-aux/announce-gen (print_news_deltas): Tweak
55424         $re_prefix.
55425
55426 2008-11-04  Bruno Haible  <bruno@clisp.org>
55427
55428         * modules/random_r (Maintainer): Add glibc.
55429
55430 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55431
55432         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
55433         by karl@freefriends.org (Karl Berry).
55434         * doc/alloca.texi: Likewise.
55435         * doc/c-ctype.texi: Likewise.
55436         * doc/c-strcase.texi: Likewise.
55437         * doc/c-strcaseeq.texi: Likewise.
55438         * doc/c-strcasestr.texi: Likewise.
55439         * doc/c-strstr.texi: Likewise.
55440         * doc/c-strtod.texi: Likewise.
55441         * doc/c-strtold.texi: Likewise.
55442         * doc/ctime.texi: Likewise.
55443         * doc/error.texi: Likewise.
55444         * doc/fdl.texi: Likewise.
55445         * doc/gcd.texi: Likewise.
55446         * doc/getdate.texi: Likewise.
55447         * doc/gnulib-intro.texi: Likewise.
55448         * doc/gnulib-tool.texi: Likewise.
55449         * doc/gnulib.texi: Likewise.
55450         * doc/inet_ntoa.texi: Likewise.
55451         * doc/maintain.texi: Likewise.
55452         * doc/make-stds.texi: Likewise.
55453         * doc/quote.texi: Likewise.
55454         * doc/regexprops-generic.texi: Likewise.
55455         * doc/standards.texi: Likewise.
55456         * doc/verify.texi: Likewise.
55457         * doc/visibility.texi: Likewise.
55458         * doc/gnulib.texi (GNU Free Documentation License): Include
55459         fdl-1.3.texi instead of fdl.texi.
55460
55461 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55462
55463         * doc/fdl-1.3.texi: New file, from
55464         <http://www.gnu.org/licenses/fdl-1.3.texi>.
55465         * modules/fdl-1.3: Add.
55466         * MODULES.html.sh: Add fdl-1.3.
55467
55468 2008-11-03  Bruno Haible  <bruno@clisp.org>
55469
55470         Make determination of absolute name of header file work with AIX xlc.
55471         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
55472         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
55473         preprocessing.
55474         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55475         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
55476
55477 2008-11-03  Simon Josefsson  <simon@josefsson.org>
55478
55479         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
55480         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
55481         <ludo@gnu.org>.
55482
55483 2008-11-02  Bruno Haible  <bruno@clisp.org>
55484
55485         Mark 'strpbrk' obsolete.
55486         * modules/strpbrk (Status, Notice): New sections.
55487         * modules/strtok_r (Depends-on): Add strpbrk.
55488
55489 2008-11-02  Bruno Haible  <bruno@clisp.org>
55490
55491         Mark 'strdup' obsolete.
55492         * modules/strdup (Status, Notice): New sections.
55493         * modules/findprog (Depends-on): Add strdup.
55494         * modules/getaddrinfo (Depends-on): Likewise.
55495         * modules/localename (Depends-on): Likewise.
55496         * modules/relocatable-lib (Depends-on): Likewise.
55497         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
55498         * modules/relocatable-prog (Depends-on): Likewise.
55499         * modules/trim (Depends-on): Likewise.
55500         * modules/unictype/gen-ctype (Depends-on): Likewise.
55501         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55502
55503 2008-11-02  Bruno Haible  <bruno@clisp.org>
55504
55505         Mark 'strcspn' obsolete.
55506         * modules/strcspn (Status, Notice): New sections.
55507
55508 2008-11-02  Bruno Haible  <bruno@clisp.org>
55509
55510         Mark 'rmdir' obsolete.
55511         * modules/rmdir (Status, Notice): New sections.
55512         * modules/clean-temp (Depends-on): Add rmdir.
55513         * modules/openat (Depends-on): Likewise.
55514
55515 2008-11-02  Bruno Haible  <bruno@clisp.org>
55516
55517         Mark 'raise' obsolete.
55518         * modules/raise (Status, Notice): New sections.
55519         (Include): Specify <signal.h>.
55520         * modules/stdio (Depends-on): Add raise.
55521         * modules/write (Depends-on): Likewise.
55522
55523 2008-11-02  Bruno Haible  <bruno@clisp.org>
55524
55525         Mark 'memset' obsolete.
55526         * modules/memset (Status, Notice): New sections.
55527
55528 2008-11-02  Bruno Haible  <bruno@clisp.org>
55529
55530         Mark 'memmove' obsolete.
55531         * modules/memmove (Status, Notice): New sections.
55532         * modules/argp (Depends-on): Add memmove.
55533         * modules/argz (Depends-on): Likewise.
55534         * modules/canonicalize (Depends-on): Likewise.
55535         * modules/canonicalize-lgpl (Depends-on): Likewise.
55536         * modules/fts (Depends-on): Likewise.
55537         * modules/getcwd (Depends-on): Likewise.
55538         * modules/human (Depends-on): Likewise.
55539         * modules/regex (Depends-on): Likewise.
55540         * modules/striconveh (Depends-on): Likewise.
55541         * modules/trim (Depends-on): Likewise.
55542         * modules/unistr/u8-move (Depends-on): Likewise.
55543         * modules/unistr/u16-move (Depends-on): Likewise.
55544         * modules/unistr/u32-move (Depends-on): Likewise.
55545
55546 2008-11-02  Bruno Haible  <bruno@clisp.org>
55547
55548         Mark 'memcpy' obsolete.
55549         * modules/memcpy (Status, Notice): New sections.
55550
55551 2008-11-02  Bruno Haible  <bruno@clisp.org>
55552
55553         Mark 'memcmp' obsolete.
55554         * modules/memcmp (Status, Notice): New sections.
55555         * modules/argmatch (Depends-on): Add memchr.
55556         * modules/backupfile (Depends-on): Likewise.
55557         * modules/c-strcasestr (Depends-on): Likewise.
55558         * modules/crypto/des (Depends-on): Likewise.
55559         * modules/csharpcomp (Depends-on): Likewise.
55560         * modules/fnmatch (Depends-on): Likewise.
55561         * modules/git-merge-changelog (Depends-on): Likewise.
55562         * modules/isnand (Depends-on): Likewise.
55563         * modules/isnand-nolibm (Depends-on): Likewise.
55564         * modules/isnanf (Depends-on): Likewise.
55565         * modules/isnanf-nolibm (Depends-on): Likewise.
55566         * modules/isnanl (Depends-on): Likewise.
55567         * modules/isnanl-nolibm (Depends-on): Likewise.
55568         * modules/mbchar (Depends-on): Likewise.
55569         * modules/memcoll (Depends-on): Likewise.
55570         * modules/quotearg (Depends-on): Likewise.
55571         * modules/regex (Depends-on): Likewise.
55572         * modules/relocatable-prog (Depends-on): Likewise.
55573         * modules/same (Depends-on): Likewise.
55574         * modules/signbit (Depends-on): Likewise.
55575         * modules/strcasestr-simple (Depends-on): Likewise.
55576         * modules/unictype/gen-ctype (Depends-on): Likewise.
55577         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55578         * modules/uniname/uniname (Depends-on): Likewise.
55579         * modules/unistr/u8-cmp (Depends-on): Likewise.
55580
55581 2008-11-02  Bruno Haible  <bruno@clisp.org>
55582
55583         Mark 'memchr' obsolete.
55584         * modules/memchr (Status, Notice): New sections.
55585         * modules/argp (Depends-on): Add memchr.
55586         * modules/base64 (Depends-on): Likewise.
55587         * modules/c-strcasestr (Depends-on): Likewise.
55588         * modules/chdir-long (Depends-on): Likewise.
55589         * modules/fnmatch (Depends-on): Likewise.
55590         * modules/getsubopt (Depends-on): Likewise.
55591         * modules/git-merge-changelog (Depends-on): Likewise.
55592         * modules/glob (Depends-on): Likewise.
55593         * modules/strcasestr-simple (Depends-on): Likewise.
55594         * modules/strnlen (Depends-on): Likewise.
55595
55596 2008-11-02  Bruno Haible  <bruno@clisp.org>
55597
55598         Mark 'atexit' obsolete.
55599         * modules/atexit (Status, Notice): New sections.
55600         * modules/chdir-long (Depends-on): Add atexit.
55601         * modules/wait-process (Depends-on): Likewise.
55602
55603 2008-11-02  Bruno Haible  <bruno@clisp.org>
55604
55605         * gnulib-tool: New option --with-obsolete.
55606         (func_usage): Document it.
55607         (func_modules_transitive_closure): Drop obsolete dependencies if
55608         incobsolete is not true.
55609         (func_import): Read and save the incobsolete variable to the cache.
55610
55611 2008-11-02  Bruno Haible  <bruno@clisp.org>
55612
55613         * modules/TEMPLATE-EXTENDED: New field 'Status'.
55614         * gnulib-tool: New option --extract-status.
55615         (func_usage): Document it.
55616         (sed_extract_prog): Recognize it.
55617         (func_get_status): New function.
55618
55619 2008-10-30  Simon Josefsson  <simon@josefsson.org>
55620
55621         * modules/sockets (License): Change from LGPL to LGPLv2+.
55622
55623 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55624
55625         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
55626
55627 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55628
55629         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55630         Mention times and sys_times.
55631         * modules/sys_times, modules/sys_times-tests: New modules.
55632         * modules/times, modules/times-tests: Likewise
55633         * m4/sys_times_h.m4: New file.
55634         * lib/sys_times.in.h: Likewise
55635         * lib/times.c: Likewise.
55636         * tests/test-sys_times.c: Likewise.
55637         * tests/test-times.c: Likewise.
55638         * doc/posix-headers/sys_times.texi: Update.
55639         * doc/posix-functions/times.texi: Update.
55640
55641 2008-10-28  Jim Meyering  <meyering@redhat.com>
55642
55643         * modules/tempname (Depends-on): Add lstat.
55644
55645         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
55646
55647 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55648
55649         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
55650         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
55651         using idiom used elsewhere in gnulib.
55652
55653 2008-10-27  Jim Meyering  <meyering@redhat.com>
55654
55655         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
55656
55657 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55658
55659         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
55660         TESTS_ENVIRONMENT, for shell scripts that needs to call built
55661         programs.
55662         * tests/test-argp-2.sh: Use $EXEEXT when needed.
55663
55664 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55665
55666         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
55667
55668 2008-10-27  Bruno Haible  <bruno@clisp.org>
55669
55670         * tests/test-lstat.c: Include <stdio.h>.
55671
55672 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55673
55674         * modules/lstat-tests: New module.
55675         * tests/test-lstat.c: New file.
55676
55677 2008-10-26  Jim Meyering  <meyering@redhat.com>
55678
55679         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
55680
55681 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55682             Bruno Haible  <bruno@clisp.org>
55683
55684         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
55685         * modules/configmake (Include): Add a note that the include must come
55686         after all system headers.
55687         * lib/javaversion.c: Include configmake.h after all other includes.
55688
55689 2008-10-26  Bruno Haible  <bruno@clisp.org>
55690
55691         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
55692         HAVE_STRUCT_RANDOM_DATA to 1.
55693         (gl_STDLIB_H): Simplify.
55694
55695 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55696
55697         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
55698         substitute HAVE_STRUCT_RANDOM_DATA.
55699         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
55700         random_data.
55701         * modules/stdlib (Makefile.am): Substitute
55702         HAVE_STRUCT_RANDOM_DATA.
55703
55704 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55705
55706         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
55707         * doc/gnulib-intro.texi (Copyright): Likewise.
55708
55709 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55710
55711         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
55712         findings.
55713
55714 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
55715             Bruno Haible  <bruno@clisp.org>
55716
55717         * lib/unistd.in.h: Include <winsock2.h>.
55718         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
55719         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
55720         Provide dummy declarations.
55721         (gethostname): Override.
55722         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
55723         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
55724         gl_PREREQ_SYS_H_WINSOCK2.
55725         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
55726         * doc/posix-functions/gethostname.texi: More details.
55727
55728 2008-10-25  Bruno Haible  <bruno@clisp.org>
55729
55730         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55731         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
55732         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
55733
55734         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
55735         here ...
55736         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
55737         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
55738         gl_UNISTD_H_DEFAULTS.
55739
55740 2008-10-25  Eric Blake  <ebb9@byu.net>
55741
55742         signbit: avoid spurious compiler failure
55743         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
55744         declarations inside function.
55745
55746 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55747             Bruno Haible  <bruno@clisp.org>
55748
55749         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
55750         * modules/random_r (Depends-on): Add stdint.
55751
55752 2008-10-24  Bruno Haible  <bruno@clisp.org>
55753
55754         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
55755         Eggert.
55756         * modules/strerror (License): Likewise.
55757
55758 2008-10-24  Jim Meyering  <meyering@redhat.com>
55759
55760         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
55761         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
55762
55763 2008-10-24  Eric Blake  <ebb9@byu.net>
55764
55765         getgroups: fix compilation when getgroups is available
55766         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
55767         but with <config.h> override of getgroups disabled.
55768
55769 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55770
55771         * doc/gnulib.texi (Header files): Add note about C++ problems.
55772         Explained by Bruno Haible <bruno@clisp.org>.
55773
55774 2008-10-23  Bruno Haible  <bruno@clisp.org>
55775
55776         Define a dummy SA_NODEFER macro on Interix.
55777         * lib/signal.in.h (SA_NODEFER): Define fallback.
55778         Reported by Aleksey Cheusov <cheusov@tut.by> via
55779         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
55780
55781 2008-10-23  Bruno Haible  <bruno@clisp.org>
55782
55783         * modules/freadahead (License): Change to LGPLv2+.
55784         Suggested by Simon Josefsson.
55785
55786 2008-10-23  Jim Meyering  <meyering@redhat.com>
55787
55788         random_r: new module
55789         * modules/random_r: New file.
55790         * m4/random_r.m4: New file.
55791         * lib/random_r.c: New file, from glibc.
55792         * modules/random_r-tests: New file.
55793         * tests/test-random_r.c: New file.
55794         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
55795          Declare.
55796         (RAND_MAX): Define.
55797         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
55798         * modules/stdlib: Substitute them, too.
55799         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
55800         * doc/glibc-functions/initstate_r.texi: Mention the new module.
55801         * doc/glibc-functions/random_r.texi: Likewise.
55802         * doc/glibc-functions/setstate_r.texi: Likewise.
55803         * doc/glibc-functions/srandom_r.texi: Likewise.
55804         * config/srclist.txt: Mention it.
55805
55806 2008-10-23  David Lutterkort  <lutter@redhat.com>
55807
55808         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
55809         link requirement
55810
55811 2008-10-23  Jim Meyering  <meyering@redhat.com>
55812
55813         selinux-h: mark parameters of stub functions as intentionally unused
55814         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
55815         * lib/se-context.in.h: Likewise.
55816
55817 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55818
55819         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
55820
55821 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55822
55823         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
55824
55825 2008-10-22  Eric Blake  <ebb9@byu.net>
55826
55827         glthread/thread: avoid compiler warning
55828         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
55829         Add unreachable abort to silence compiler.
55830
55831 2008-10-22  Eric Blake  <ebb9@byu.net>
55832
55833         netdb: also supply struct addrinfo for cygwin 1.5.x
55834         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
55835         older cygwin.
55836         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
55837         cygwin.
55838         * doc/posix-headers/netdb.texi (netdb.h): Document this.
55839
55840 2008-10-22  Bruno Haible  <bruno@clisp.org>
55841
55842         * users.txt: Update entry about pspp.
55843
55844 2008-10-21  Bruno Haible  <bruno@clisp.org>
55845
55846         Simplification.
55847         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
55848         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
55849
55850         Simplification.
55851         * lib/ioctl.c (ioctl): Don't undefine.
55852         * lib/socket.c (socket): Don't undefine.
55853
55854         Remove unused module indicator macros.
55855         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
55856         GNULIB_$1 as a C macro.
55857
55858         * doc/posix-functions/close.texi: Undo last change.
55859         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
55860         Windows platforms.
55861
55862 2008-10-21  Bruno Haible  <bruno@clisp.org>
55863
55864         Add gethostname() declaration to <unistd.h>.
55865         * lib/unistd.in.h (gethostname): New declaration.
55866         * lib/gethostname.c: Include <unistd.h>.
55867         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
55868         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
55869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
55870         and HAVE_GETHOSTNAME.
55871         * modules/gethostname (Depends-on): Add unistd.
55872         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55873         (Include): Specify <unistd.h>.
55874         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
55875         HAVE_GETHOSTNAME.
55876         * tests/test-gethostname.c: Include <unistd.h> first.
55877
55878 2008-10-21  Bruno Haible  <bruno@clisp.org>
55879
55880         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
55881         * modules/select-tests (Depends-on): Likewise.
55882         Reported by Simon Josefsson.
55883
55884 2008-10-21  Simon Josefsson  <simon@josefsson.org>
55885
55886         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
55887         * lib/accept.c: New file, based on winsock.c.
55888         * lib/bind.c: New file, based on winsock.c.
55889         * lib/connect.c: New file, based on winsock.c.
55890         * lib/getpeername.c: New file, based on winsock.c.
55891         * lib/getsockname.c: New file, based on winsock.c.
55892         * lib/getsockopt.c: New file, based on winsock.c.
55893         * lib/ioctl.c: New file, based on winsock.c.
55894         * lib/listen.c: New file, based on winsock.c.
55895         * lib/recv.c: New file, based on winsock.c.
55896         * lib/recvfrom.c: New file, based on winsock.c.
55897         * lib/send.c: New file, based on winsock.c.
55898         * lib/sendto.c: New file, based on winsock.c.
55899         * lib/setsockopt.c: New file, based on winsock.c.
55900         * lib/shutdown.c: New file, based on winsock.c.
55901         * lib/socket.c: New file, based on winsock.c.
55902         * lib/w32sock.h: New file, based on winsock.c.
55903         * lib/winsock.c: Remove file.
55904         * modules/accept: Likewise.
55905         * modules/bind: Likewise.
55906         * modules/connect: Likewise.
55907         * modules/getpeername: Likewise.
55908         * modules/getsockname: Likewise.
55909         * modules/getsockopt: Likewise.
55910         * modules/ioctl: Likewise.
55911         * modules/listen: Likewise.
55912         * modules/recv: Likewise.
55913         * modules/recvfrom: Likewise.
55914         * modules/send: Likewise.
55915         * modules/sendto: Likewise.
55916         * modules/setsockopt: Likewise.
55917         * modules/shutdown: Likewise.
55918         * modules/socket: Use socket.c instead of winsock.c.
55919         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
55920         * doc/posix-functions/accept.texi: Doc fix.
55921         * doc/posix-functions/bind.texi: Doc fix.
55922         * doc/posix-functions/close.texi: Doc fix.
55923         * doc/posix-functions/connect.texi: Doc fix.
55924         * doc/posix-functions/getpeername.texi: Doc fix.
55925         * doc/posix-functions/getsockname.texi: Doc fix.
55926         * doc/posix-functions/getsockopt.texi: Doc fix.
55927         * doc/posix-functions/ioctl.texi: Doc fix.
55928         * doc/posix-functions/listen.texi: Doc fix.
55929         * doc/posix-functions/recv.texi: Doc fix.
55930         * doc/posix-functions/recvfrom.texi: Doc fix.
55931         * doc/posix-functions/send.texi: Doc fix.
55932         * doc/posix-functions/sendto.texi: Doc fix.
55933         * doc/posix-functions/setsockopt.texi: Doc fix.
55934         * doc/posix-functions/shutdown.texi: Doc fix.
55935         * doc/posix-functions/socket.texi: Doc fix.
55936
55937 2008-10-20  Bruno Haible  <bruno@clisp.org>
55938
55939         Take into account the role of SIGABRT_COMPAT on Windows 2008.
55940         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
55941         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
55942         as an alias for SIGABRT.
55943         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
55944         (sigaction): Map it to SIGABRT.
55945         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
55946
55947 2008-10-20  Bruno Haible  <bruno@clisp.org>
55948
55949         * lib/fts.c: Don't include lstat.h.
55950         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
55951
55952         Move the lstat() declaration to <sys/stat.h>.
55953         * lib/lstat.h: Remove file.
55954         * lib/sys_stat.in.h: Add special invocation convention.
55955         (lstat): New declaration.
55956         * lib/lstat.c (orig_lstat): New function.
55957         (rpl_lstat): Use orig_lstat instead of lstat.
55958         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
55959         AC_C_INLINE. Set REPLACE_LSTAT.
55960         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
55961         and REPLACE_LSTAT.
55962         * modules/lstat (Files): Remove lib/lstat.h.
55963         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55964         (Include): Specify <sys/stat.h> instead of lstat.h.
55965         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
55966         REPLACE_LSTAT.
55967         * NEWS: Mention the change.
55968
55969 2008-10-20  Bruno Haible  <bruno@clisp.org>
55970
55971         * modules/posix_spawn-tests: New file.
55972         * tests/test-posix_spawn3.c: New file.
55973
55974 2008-10-20  Bruno Haible  <bruno@clisp.org>
55975
55976         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
55977         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55978         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
55979         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55980         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
55981
55982 2008-10-20  Bruno Haible  <bruno@clisp.org>
55983
55984         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
55985         of posix_spawn on AIX 5.3.
55986
55987 2008-10-20  Bruno Haible  <bruno@clisp.org>
55988
55989         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
55990
55991 2008-10-20  Bruno Haible  <bruno@clisp.org>
55992
55993         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
55994         of AC_LANG_PROGRAM.
55995
55996 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55997
55998         * lib/netdb.in.h: Don't define GNU specific constants until they
55999         are supported or needed.  Reported by Bruno Haible
56000         <bruno@clisp.org>.
56001
56002 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56003
56004         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
56005
56006 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56007
56008         * lib/getaddrinfo.h: Remove file.
56009         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
56010         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
56011         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
56012         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
56013         * modules/netdb: Substitute GNULIB_GETADDRINFO.
56014         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
56015         * tests/test-getaddrinfo.c: Likewise.
56016         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
56017         * NEWS: Mention change.
56018
56019 2008-10-19  Bruno Haible  <bruno@clisp.org>
56020
56021         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
56022
56023 2008-10-19  Bruno Haible  <bruno@clisp.org>
56024
56025         * lib/wait-process.c: Include simply <sys/wait.h>.
56026         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
56027         WIFSTOPPED): Remove fallback definitions.
56028         * modules/wait-process (Depends-on): Add sys_wait.
56029
56030         New module 'sys_wait'.
56031         * modules/sys_wait: New file.
56032         * lib/sys_wait.in.h: New file, partially copied from
56033         lib/wait-process.c.
56034         * m4/sys_wait_h.m4: New file.
56035         * doc/posix-headers/sys_wait.texi: Mention the new module.
56036
56037 2008-10-19  Bruno Haible  <bruno@clisp.org>
56038
56039         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
56040
56041 2008-10-19  Bruno Haible  <bruno@clisp.org>
56042
56043         Assume that waitpid() fills an 'int' status, not a 'union wait'.
56044         * lib/wait-process.c (WAIT_T): Remove type.
56045         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
56046         (wait_subprocess): Update.
56047
56048 2008-10-19  Bruno Haible  <bruno@clisp.org>
56049
56050         New module 'atoll'.
56051         * modules/atoll: New file.
56052         * lib/stdlib.in.h (atoll): New declaration.
56053         * lib/atoll.c: New file, from glibc with modifications.
56054         * m4/atoll.m4: New file.
56055         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
56056         HAVE_ATOLL.
56057         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
56058         * doc/posix-functions/atoll.texi: Mention the new module.
56059
56060 2008-10-19  Bruno Haible  <bruno@clisp.org>
56061
56062         Add strtoull() declaration to <stdlib.h>.
56063         * lib/stdlib.in.h (strtoull): New declaration.
56064         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56065         Set HAVE_STRTOULL.
56066         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
56067         HAVE_STRTOULL.
56068         * modules/strtoull (Depends-on): Add stdlib.
56069         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56070         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
56071         HAVE_STRTOULL.
56072
56073 2008-10-19  Bruno Haible  <bruno@clisp.org>
56074
56075         Add strtoll() declaration to <stdlib.h>.
56076         * lib/stdlib.in.h (strtoll): New declaration.
56077         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56078         Set HAVE_STRTOLL.
56079         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
56080         HAVE_STRTOLL.
56081         * modules/strtoll (Depends-on): Add stdlib.
56082         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56083         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
56084
56085 2008-10-19  Bruno Haible  <bruno@clisp.org>
56086
56087         * modules/bcopy (Depends-on): Add strings.
56088         (Include): Specify <strings.h>.
56089
56090 2008-10-19  Bruno Haible  <bruno@clisp.org>
56091
56092         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
56093
56094 2008-10-19  Bruno Haible  <bruno@clisp.org>
56095
56096         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
56097         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
56098         mingw.
56099
56100 2008-10-19  Bruno Haible  <bruno@clisp.org>
56101
56102         * lib/atanl.c: Don't include isnanl.h.
56103         * lib/cosl.c: Likewise.
56104         * lib/ldexpl.c: Likewise.
56105         * lib/logl.c: Likewise.
56106         * lib/sinl.c: Likewise.
56107         * lib/sqrtl.c: Likewise.
56108         * lib/tanl.c: Likewise.
56109
56110         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
56111         * lib/isnanf.h: Remove file.
56112         * lib/isnand.h: Remove file.
56113         * lib/isnanl.h: Remove file.
56114         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
56115         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
56116         macros.
56117         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
56118         HAVE_ISNANF, don't define it as a C macro.
56119         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
56120         HAVE_ISNAND, don't define it as a C macro.
56121         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
56122         HAVE_ISNANL, don't define it as a C macro.
56123         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
56124         HAVE_ISNAN[FDL].
56125         * modules/isnanf (Files): Remove lib/isnanf.h.
56126         (Depends-on): Add math.
56127         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56128         (Include): Specify <math.h> instead of isnanf.h.
56129         * modules/isnand (Files): Remove lib/isnand.h.
56130         (Depends-on): Add math.
56131         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56132         (Include): Specify <math.h> instead of isnand.h.
56133         * modules/isnanl (Files): Remove lib/isnanl.h.
56134         (Depends-on): Add math.
56135         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56136         (Include): Specify <math.h> instead of isnanl.h.
56137         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
56138         HAVE_ISNAN[FDL].
56139         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
56140         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
56141         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
56142         * NEWS: Mention the change.
56143
56144 2008-10-18  Bruno Haible  <bruno@clisp.org>
56145
56146         Add getusershell(), setusershell(), endusershell() declarations to
56147         <unistd.h>.
56148         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
56149         declarations.
56150         * lib/getusershell.c: Include unistd.h.
56151         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
56152         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56153         HAVE_GETUSERSHELL.
56154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
56155         and HAVE_GETUSERSHELL.
56156         * modules/getusershell (Depends-on): Add unistd, extensions.
56157         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56158         (Include): Specify <unistd.h>.
56159         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
56160         HAVE_GETUSERSHELL.
56161
56162 2008-10-18  Bruno Haible  <bruno@clisp.org>
56163
56164         Add a getloadavg() declaration to <stdlib.h>.
56165         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
56166         getloadavg declaration.
56167         (getloadavg): New declaration.
56168         * lib/getloadavg.c: Include <stdlib.h> first.
56169         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
56170         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
56171         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
56172         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
56173         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56174         * modules/getloadavg (Depends-on): Add stdlib, extensions.
56175         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56176         (Include): Specify <stdlib.h>.
56177         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
56178         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56179
56180 2008-10-18  Bruno Haible  <bruno@clisp.org>
56181
56182         * lib/dirchownmod.c: Don't include lchmod.h.
56183
56184         Move the lchmod() declaration to <sys/stat.h>.
56185         * lib/lchmod.h: Remove file.
56186         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
56187         (lchmod): New declaration, moved here from lib/lchown.h.
56188         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
56189         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
56190         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
56191         and HAVE_LCHMOD.
56192         * modules/lchmod (Files): Remove lib/lchmod.h.
56193         (Depends-on): Add sys_stat, extensions.
56194         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
56195         (Include): Specify <sys/stat.h> instead of lchmod.h.
56196         * modules/sys_stat (Depends-on): Add link-warning.
56197         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
56198         definition of GL_LINK_WARNING.
56199         * NEWS: Mention the change.
56200
56201 2008-10-18  Bruno Haible  <bruno@clisp.org>
56202
56203         * lib/fchdir.c: Don't include dirfd.h.
56204         * lib/fts.c: Likewise.
56205         * lib/getcwd.c: Likewise.
56206         * lib/glob.c: Likewise.
56207
56208         Move the dirfd() declaration to <dirent.h>.
56209         * lib/dirfd.h: Remove file.
56210         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
56211         (dirfd): New declaration.
56212         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
56213         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
56214         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
56215         HAVE_DECL_DIRFD.
56216         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
56217         HAVE_DECL_DIRFD.
56218         * modules/dirfd (Files): Remove lib/dirfd.h.
56219         (Depends-on): Add dirent, extensions.
56220         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
56221         (Include): Specify <dirent.h> instead of dirfd.h.
56222         * modules/dirent (Depends-on): Add link-warning.
56223         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
56224         definition of GL_LINK_WARNING.
56225         * NEWS: Mention the change.
56226
56227 2008-10-18  Bruno Haible  <bruno@clisp.org>
56228
56229         Move the euidaccess() declaration to <unistd.h>.
56230         * lib/euidaccess.h: Remove file.
56231         * lib/unistd.in.h (euidaccess): New declaration.
56232         * lib/euidaccess.c: Don't include euidaccess.h.
56233         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
56234         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
56235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
56236         and HAVE_EUIDACCESS.
56237         * modules/euidaccess (Files): Remove lib/euidaccess.h.
56238         (Depends-on): Add unistd.
56239         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56240         (Include): Specify <unistd.h> instead of euidaccess.h.
56241         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
56242         HAVE_EUIDACCESS.
56243         * NEWS: Mention the change.
56244
56245 2008-10-18  Bruno Haible  <bruno@clisp.org>
56246
56247         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
56248
56249         Move the getdomainname() declaration to <unistd.h>.
56250         * lib/getdomainname.h: Remove file.
56251         * lib/unistd.in.h (getdomainname): New declaration.
56252         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
56253         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
56254         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56255         HAVE_GETDOMAINNAME.
56256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56257         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
56258         * modules/getdomainname (Files): Remove lib/getdomainname.h.
56259         (Depends-on): Add unistd, extensions.
56260         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56261         (Includes): Specify <unistd.h> instead of getdomainname.h.
56262         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
56263         HAVE_GETDOMAINNAME.
56264         * NEWS: Mention the change.
56265
56266 2008-10-18  Bruno Haible  <bruno@clisp.org>
56267
56268         * modules/dirent: New file.
56269         * m4/dirent_h.m4: New file.
56270         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
56271         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
56272         * modules/fchdir (Files): Remove lib/dirent.in.h.
56273         (Depends-on): Add dirent.
56274         (Makefile.am): Move rules to modules/dirent.
56275         * doc/posix-headers/dirent.texi: Mention the new module.
56276
56277 2008-10-18  Bruno Haible  <bruno@clisp.org>
56278
56279         Avoid -Wunused-parameter warnings in public gnulib header files.
56280         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
56281         macro.
56282         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
56283
56284 2008-10-18  Bruno Haible  <bruno@clisp.org>
56285
56286         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
56287         * doc/glibc-functions/error.texi: Mention the module 'error'.
56288         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
56289         * doc/glibc-functions/getdomainname.texi: Mention the module
56290         'getdomainname'.
56291         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
56292         * doc/glibc-functions/getpagesize.texi: Mention the module
56293         'getpagesize'.
56294         * doc/glibc-functions/getusershell.texi: Mention the module
56295         'getusershell'.
56296         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
56297         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
56298         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
56299         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
56300         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
56301         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
56302         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
56303         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
56304         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
56305         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
56306         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
56307         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
56308         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
56309         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
56310
56311 2008-10-17  Bruno Haible  <bruno@clisp.org>
56312
56313         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
56314         HP-UX and IRIX, use -0.0L.
56315         * tests/test-ceill.c (minus_zero): Likewise.
56316         * tests/test-floorl.c (minus_zero): Likewise.
56317         * tests/test-frexpl.c (minus_zero): Likewise.
56318         * tests/test-isnan.c (minus_zerol): Likewise.
56319         * tests/test-isnanl.h (minus_zero): Likewise.
56320         * tests/test-ldexpl.c (minus_zero): Likewise.
56321         * tests/test-roundl.c (minus_zero): Likewise.
56322         * tests/test-signbit.c (minus_zerol): Likewise.
56323         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
56324         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
56325         * tests/test-truncl.c (minus_zero): Likewise.
56326         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
56327         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
56328         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
56329         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
56330
56331 2008-10-17  Bruno Haible  <bruno@clisp.org>
56332
56333         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
56334         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
56335         that it gets activated only for gcc >= 3.0.
56336         * lib/dirent.in.h: Likewise.
56337         * lib/errno.in.h: Likewise.
56338         * lib/fcntl.in.h: Likewise.
56339         * lib/float.in.h: Likewise.
56340         * lib/iconv.in.h: Likewise.
56341         * lib/inttypes.in.h: Likewise.
56342         * lib/locale.in.h: Likewise.
56343         * lib/math.in.h: Likewise.
56344         * lib/netdb.in.h: Likewise.
56345         * lib/netinet_in.in.h: Likewise.
56346         * lib/search.in.h: Likewise.
56347         * lib/signal.in.h: Likewise.
56348         * lib/spawn.in.h: Likewise.
56349         * lib/stdarg.in.h: Likewise.
56350         * lib/stdint.in.h: Likewise.
56351         * lib/stdio.in.h: Likewise.
56352         * lib/stdlib.in.h: Likewise.
56353         * lib/string.in.h: Likewise.
56354         * lib/strings.in.h: Likewise.
56355         * lib/sys_file.in.h: Likewise.
56356         * lib/sys_ioctl.in.h: Likewise.
56357         * lib/sys_select.in.h: Likewise.
56358         * lib/sys_socket.in.h: Likewise.
56359         * lib/sys_stat.in.h: Likewise.
56360         * lib/sys_time.in.h: Likewise.
56361         * lib/sysexits.in.h: Likewise.
56362         * lib/time.in.h: Likewise.
56363         * lib/unistd.in.h: Likewise.
56364         * lib/wchar.in.h: Likewise.
56365         * lib/wctype.in.h: Likewise.
56366         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56367
56368 2008-10-17  Jim Meyering  <meyering@redhat.com>
56369
56370         ignore-value: don't depend on inline module
56371         * modules/ignore-value (Depends-on): Remove 'inline'.
56372         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
56373         Suggestion from Bruno Haible.
56374
56375 2008-10-17  Bruno Haible  <bruno@clisp.org>
56376
56377         New implementation of condition variables for Win32.
56378         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
56379         (gl_linked_waitqueue_t): New type.
56380         (gl_cond_t): Use it.
56381         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
56382         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
56383         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
56384         (glthread_cond_init_func, glthread_cond_wait_func,
56385         glthread_cond_timedwait_func, glthread_cond_signal_func,
56386         glthread_cond_broadcast_func, glthread_cond_destroy_func):
56387         Reimplemented on the basis of gl_linked_waitqueue_t.
56388         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
56389         gl_waitqueue_t.
56390         (gl_rwlock_t): Update.
56391         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
56392
56393 2008-10-17  Simon Josefsson  <simon@josefsson.org>
56394
56395         * modules/recvfrom (Depends-on): Add dependency on getpeername.
56396         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56397
56398 2008-10-17  Jim Meyering  <meyering@redhat.com>
56399
56400         ignore-value: new module
56401         * modules/ignore-value: New file.
56402         * lib/ignore-value.h: New file.
56403         * MODULES.html.sh (Compiler warning management): New section,
56404         just for this module.  More to come.
56405
56406 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56407
56408         open-safer.c: avoid 'signed and unsigned in conditional...' warning
56409         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
56410         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
56411
56412 2008-10-16  Jim Meyering  <meyering@redhat.com>
56413
56414         openat-die.c: avoid 'no previous prototype' warning
56415         * lib/openat-die.c: Include "openat.h".
56416         Reported by Reuben Thomas <rrt@sc3d.org>.
56417
56418 2008-10-16  Simon Josefsson  <simon@josefsson.org>
56419
56420         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
56421         * lib/netdb.in.h: Fix typo.
56422         Reported by Bruno Haible  <bruno@clisp.org>
56423
56424         * lib/netdb.in.h: Include sys/socket.h for platforms without
56425         netdb.h, to get structures like hostent on MinGW.
56426         * modules/netdb (Depends-on): Add sys_socket.
56427
56428 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56429
56430         * modules/netdb, modules/netdb-tests: New file.
56431         * m4/netdb_h.m4: New file.
56432         * lib/netdb.in.h: Add, currently just an empty file pending
56433         definitions.
56434         * tests/test-netdb.c: New file.
56435         * doc/posix-headers/netdb.texi: Mention that we replace it if
56436         needed.
56437         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56438         netdb.
56439
56440 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56441
56442         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
56443         with code.
56444
56445 2008-10-13  Bruno Haible  <bruno@clisp.org>
56446
56447         * lib/glthread/cond.c (glthread_cond_wait_func,
56448         glthread_cond_timedwait_func): Add a comment.
56449
56450 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56451
56452         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
56453         * tests/test-select.c: Likewise,
56454
56455 2008-10-13  Bruno Haible  <bruno@clisp.org>
56456
56457         * lib/glthread/cond.c (glthread_cond_wait_func,
56458         glthread_cond_timedwait_func): Fix variable name.
56459         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56460
56461 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
56462
56463         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
56464         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
56465         struct sockaddr.sa_len.
56466         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
56467
56468 2008-10-13  Simon Josefsson  <simon@josefsson.org>
56469
56470         * build-aux/pmccabe2html: Add css and css_url parameters.
56471
56472 2008-10-12  Bruno Haible  <bruno@clisp.org>
56473
56474         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
56475         calling aclx_get.
56476         Reported by Rainer Tammer <tammer@tammer.net>.
56477
56478 2008-10-12  Bruno Haible  <bruno@clisp.org>
56479
56480         Use msvcrt aware primitives for creation/termination of Win32 threads.
56481         * lib/glthread/thread.c: Include <process.h>.
56482         (glthread_create_func): Use _beginthreadex instead of CreateThread.
56483         (wrapper_func): Update signature.
56484         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
56485
56486 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56487             Bruno Haible  <bruno@clisp.org>
56488
56489         Provide a Win32 implementation of the 'cond' module.
56490         * lib/glthread/cond.h [USE_WIN32]: New implementation.
56491         * lib/glthread/cond.c (glthread_cond_init_func,
56492         glthread_cond_wait_func, glthread_cond_timedwait_func,
56493         glthread_cond_signal_func, glthread_cond_broadcast_func,
56494         glthread_cond_destroy_func) [USE_WIN32]: New functions.
56495         * modules/cond (Dependencies): Add gettimeofday.
56496
56497 2008-10-11  Bruno Haible  <bruno@clisp.org>
56498
56499         Make sleep work on older versions of mingw.
56500         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
56501         only whether it exists.
56502         * doc/posix-functions/sleep.texi: Mention the problem with older
56503         versions of mingw.
56504
56505 2008-10-11  Bruno Haible  <bruno@clisp.org>
56506
56507         New module 'shutdown'.
56508         * modules/shutdown: New file.
56509         * lib/sys_socket.in.h (shutdown): New declaration.
56510         * lib/winsock.c (shutdown): New function.
56511         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
56512         GNULIB_SHUTDOWN.
56513         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
56514         * doc/posix-functions/shutdown.texi: Document the new module.
56515
56516 2008-10-11  Jim Meyering  <meyering@redhat.com>
56517
56518         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
56519
56520 2008-10-11  Bruno Haible  <bruno@clisp.org>
56521
56522         New module 'fclose'.
56523         * modules/fclose: New file.
56524         * lib/stdio.in.h (fclose): New declaration.
56525         * lib/fclose.c: New file.
56526         * m4/fclose.m4: New file.
56527         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
56528         REPLACE_FCLOSE.
56529         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
56530         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
56531         REPLACE_FCLOSE.
56532         * modules/close (Depends-on): fclose.
56533         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
56534
56535 2008-10-11  Bruno Haible  <bruno@clisp.org>
56536
56537         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
56538         set errno and don't call _close.
56539
56540 2008-10-10  Bruno Haible  <bruno@clisp.org>
56541
56542         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
56543         ACL, not afterwards. Fixes test failure on Cygwin.
56544
56545 2008-10-09  Ben Pfaff  <blp@gnu.org>
56546
56547         * build-aux/announce-gen: Fix gnulib version related part of usage
56548         message.  Die with a useful error message if no tarballs are
56549         found.
56550
56551 2008-10-10  Jim Meyering  <meyering@redhat.com>
56552
56553         bootstrap: use git's --depth=N option only if it's supported
56554         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
56555         recognize the --depth option.  Reported by Pádraig Brady.
56556
56557 2008-10-09  Bruno Haible  <bruno@clisp.org>
56558
56559         New module 'ioctl'.
56560         * modules/ioctl: New file.
56561         * lib/sys_socket.in.h (ioctl): Remove declaration.
56562         * lib/winsock.c: Include <sys/ioctl.h>.
56563         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
56564         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
56565         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
56566         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
56567         * doc/posix-functions/ioctl.texi: Mention the new module.
56568
56569 2008-10-09  Bruno Haible  <bruno@clisp.org>
56570
56571         New module 'sys_ioctl'.
56572         * lib/sys_ioctl.in.h: New file.
56573         * m4/sys_ioctl_h.m4: New file.
56574         * modules/sys_ioctl: New file.
56575         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
56576
56577 2008-10-09  Bruno Haible  <bruno@clisp.org>
56578
56579         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
56580         * lib/winsock.c: Include <stdarg.h>.
56581         (rpl_ioctl): Change to second argument 'int' and then varargs.
56582
56583 2008-10-09  Bruno Haible  <bruno@clisp.org>
56584
56585         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
56586         when the sys_socket module is present and the system has <winsock2.h>.
56587
56588 2008-10-09  Bruno Haible  <bruno@clisp.org>
56589
56590         * doc/posix-functions/close.texi: Mention module 'close' instead of
56591         module 'sys_socket'.
56592
56593 2008-10-09  Bruno Haible  <bruno@clisp.org>
56594
56595         * doc/glibc-headers/sys_ioctl.texi: New file.
56596         * doc/gnulib.texi: Include it.
56597
56598 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56599             Bruno Haible  <bruno@clisp.org>
56600
56601         Combine the two replacements of 'close'.
56602         * lib/sys_socket.in.h (close): Define to a reminder to include
56603         <unistd.h>.
56604         (_gl_close_fd_maybe_socket): New declaration.
56605         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
56606         * lib/winsock.c (close): Remove undefinition.
56607         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
56608         needed for the gnulib module 'close'.
56609         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
56610         define to an error symbol or to a warning, if suitable.
56611         * lib/close.c: Include <sys/socket.h>.
56612         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
56613         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
56614         UNISTD_H_HAVE_WINSOCK2_H.
56615         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
56616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56617         UNISTD_H_HAVE_WINSOCK2_H.
56618         * modules/sys_socket (Files): Add m4/unistd_h.m4.
56619         (configure.ac): Set a module indicator.
56620         (Makefile.am): Substitute GNULIB_CLOSE.
56621         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
56622         * modules/poll-tests (Depends-on): Add close.
56623         * modules/select-tests (Depends-on): Likewise.
56624
56625 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56626             Bruno Haible  <bruno@clisp.org>
56627
56628         New module 'close'.
56629         * modules/close: New file.
56630         * lib/unistd.in.h (close): Move declaration out of the
56631         FCHDIR_REPLACEMENT scope.
56632         (_gl_unregister_fd): New declaration.
56633         * lib/close.c: New file.
56634         * lib/fchdir.c (rpl_close): Remove function.
56635         * m4/close.m4: New file.
56636         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56637         close.
56638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
56639         REPLACE_CLOSE.
56640         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
56641         REPLACE_CLOSE.
56642         * modules/fchdir (Depends-on): Add close.
56643
56644 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56645             Bruno Haible  <bruno@clisp.org>
56646
56647         * lib/fcntl.in.h (open): Simplify conditionals.
56648         (_gl_register_fd): New declaration.
56649         * lib/fchdir.c (rpl_open): Remove function.
56650         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
56651         also.
56652         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
56653         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56654         open.
56655
56656 2008-10-09  Jim Meyering  <meyering@redhat.com>
56657
56658         GNUmakefile: use the more name-space-friendly "_version"
56659         * top/GNUmakefile (_dummy): Update.
56660         (_version): Rename from "version".
56661
56662 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56663             Bruno Haible  <bruno@clisp.org>
56664
56665         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
56666         rpl_close.
56667         (_gl_register_fd): New function, extracted from rpl_open.
56668         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
56669         (rpl_open, rpl_opendir): Use _gl_register_fd.
56670
56671 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56672
56673         Fix organization of 'open' replacement.
56674         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
56675         (gl_FUNC_OPEN): Use it.
56676         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
56677
56678 2008-10-08  Bruno Haible  <bruno@clisp.org>
56679
56680         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
56681
56682 2008-10-08  Simon Josefsson  <simon@josefsson.org>
56683
56684         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
56685         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
56686         listen).
56687
56688 2008-10-08  Eric Blake  <ebb9@byu.net>
56689
56690         GNUmakefile: add 'make version' target
56691         * top/GNUmakefile (_curr-ver): Split version update rules...
56692         (version): ...into a target.
56693
56694 2008-10-07  Bruno Haible  <bruno@clisp.org>
56695
56696         Use a more portable replacement expression for -0.0L.
56697         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
56698         instead of -0.0L. Fix m4 quotation.
56699
56700         * tests/test-signbit.c: Include <float.h>.
56701         (minus_zero): New variable.
56702         (test_signbitl): Use minus_zero instead of -zero.
56703         * modules/signbit-tests (Depends-on): Add float.
56704
56705         * tests/test-ceill.c: Include <float.h>.
56706         (zero): Remove variable.
56707         (minus_zero): New variable.
56708         (main): Use minus_zero instead of -zero.
56709         * modules/ceill-tests (Depends-on): Add float.
56710
56711         * tests/test-floorl.c: Include <float.h>.
56712         (zero): Remove variable.
56713         (minus_zero): New variable.
56714         (main): Use minus_zero instead of -zero.
56715         * modules/floorl-tests (Depends-on): Add float.
56716
56717         * tests/test-roundl.c: Include <float.h>.
56718         (zero): Remove variable.
56719         (minus_zero): New variable.
56720         (main): Use minus_zero instead of -zero.
56721         * modules/roundl-tests (Depends-on): Add float.
56722
56723         * tests/test-truncl.c: Include <float.h>.
56724         (zero): Remove variable.
56725         (minus_zero): New variable.
56726         (main): Use minus_zero instead of -zero.
56727         * modules/truncl-tests (Depends-on): Add float.
56728
56729         * tests/test-frexpl.c (zero): Remove variable.
56730         (minus_zero): New variable.
56731         (main): Use minus_zero instead of -zero.
56732         * modules/frexpl-tests (Depends-on): Add float.
56733
56734         * tests/test-isnan.c (zerol): Remove variable.
56735         (minus_zerol): New variable.
56736         (test_long_double): Use minus_zerol instead of -zerol.
56737         * modules/isnan-tests (Depends-on): Add float.
56738
56739         * tests/test-isnanl.h (zero): Remove variable.
56740         (minus_zero): New variable.
56741         (main): Use minus_zero instead of -zero.
56742         * modules/isnanl-nolibm-tests (Depends-on): Add float.
56743         * modules/isnanl-tests (Depends-on): Add float.
56744
56745         * tests/test-ldexpl.c (zero): Remove variable.
56746         (minus_zero): New variable.
56747         (main): Use minus_zero instead of -zero.
56748         * modules/ldexpl-tests (Depends-on): Add float.
56749
56750         * tests/test-snprintf-posix.h (zerol): Remove variable.
56751         (minus_zerol): New variable.
56752         (test_function): Use minus_zerol instead of -zerol.
56753         * modules/snprintf-posix-tests (Depends-on): Add float.
56754         * modules/vsnprintf-posix-tests (Depends-on): Add float.
56755
56756         * tests/test-sprintf-posix.h (zerol): Remove variable.
56757         (minus_zerol): New variable.
56758         (test_function): Use minus_zerol instead of -zerol.
56759         * modules/sprintf-posix-tests (Depends-on): Add float.
56760         * modules/vsprintf-posix-tests (Depends-on): Add float.
56761
56762         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
56763         (minus_zerol): New variable.
56764         (test_function): Use minus_zerol instead of -zerol.
56765         * modules/vasnprintf-posix-tests (Depends-on): Add float.
56766
56767         * tests/test-vasprintf-posix.c (zerol): Remove variable.
56768         (minus_zerol): New variable.
56769         (test_function): Use minus_zerol instead of -zerol.
56770         * modules/vasprintf-posix-tests (Depends-on): Add float.
56771
56772 2008-10-07  Simon Josefsson  <simon@josefsson.org>
56773
56774         * MODULES.html.sh (Support for building documentation): Mention
56775         pmccabe2html.  Sort entries.
56776
56777         Add pmccabe2html module, from gnupdf.
56778         * build-aux/pmccabe.css: New file.
56779         * build-aux/pmccabe2html: New file.
56780         * m4/pmccabe2html.m4: New file.
56781         * modules/pmccabe2html: New file.
56782
56783 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
56784
56785         flock: new module
56786         * MODULES.html.sh: Add to list of modules.
56787         * lib/flock.c: flock implementation for Windows and Unix systems
56788         which have fcntl.
56789         * doc/glibc-functions/flock.texi: Update documentation.
56790         * lib/sys_file.in.h: <sys/file.h> header file.
56791         * m4/flock.m4: M4 macros.
56792         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
56793         * modules/flock: flock module.
56794         * modules/flock-tests: flock tests module.
56795         * modules/sys_file: sys/file.h module.
56796         * tests/test-flock.c: test suite for flock.
56797
56798 2008-10-06  Jim Meyering  <meyering@redhat.com>
56799
56800         bootstrap: check for LT_INIT more portably still ;-)
56801         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
56802         Spotted by Bruno Haible.
56803
56804 2008-10-06  Eric Blake  <ebb9@byu.net>
56805
56806         test-signbit: avoid tripping Irix cc bug on -0.0L
56807         * tests/test-signbit.c (minus_zerol): Delete, and replace with
56808         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
56809         entire testsuite consistent and avoids an Irix 6.2 bug.
56810
56811 2008-10-05  Bruno Haible  <bruno@clisp.org>
56812             Jim Meyering  <jim@meyering.net>
56813
56814         Add an option for ignoring EPIPE during close_stdout.
56815         * lib/closeout.h: Include <stdbool.h>.
56816         (close_stdout_set_ignore_EPIPE): New declaration.
56817         * lib/closeout.c: Include <stdbool.h>.
56818         (ignore_EPIPE): New variable.
56819         (close_stdout_set_ignore_EPIPE): New function.
56820         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
56821         * lib/close-stream.c (close_stream): Mention the possible EPIPE
56822         failure.
56823         * modules/closeout (Depends-on): Add stdbool.
56824
56825 2008-10-05  Bruno Haible  <bruno@clisp.org>
56826
56827         * modules/accept: New file.
56828         * modules/bind: New file.
56829         * modules/connect: New file.
56830         * modules/getpeername: New file.
56831         * modules/getsockname: New file.
56832         * modules/getsockopt: New file.
56833         * modules/listen: New file.
56834         * modules/recv: New file.
56835         * modules/recvfrom: New file.
56836         * modules/send: New file.
56837         * modules/sendto: New file.
56838         * modules/setsockopt: New file.
56839         * modules/socket: New file.
56840         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
56841         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
56842         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
56843         the particular module is requested. Add a link warning when the
56844         particular module is not requested.
56845         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
56846         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
56847         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
56848         the particular module is requested.
56849         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
56850         gl_SYS_SOCKET_H_DEFAULTS): New macros.
56851         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
56852         * modules/sys_socket (Depends-on): Add link-warning.
56853         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
56854         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
56855         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
56856         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
56857         GL_LINK_WARNING.
56858         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
56859         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
56860         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
56861         * doc/posix-functions/getpeername.texi: Mention the new module
56862         'getpeername'.
56863         * doc/posix-functions/getsockname.texi: Mention the new module
56864         'getsockname'.
56865         * doc/posix-functions/getsockopt.texi: Mention the new module
56866         'getsockopt'.
56867         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
56868         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
56869         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
56870         * doc/posix-functions/send.texi: Mention the new module 'send'.
56871         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
56872         * doc/posix-functions/setsockopt.texi: Mention the new module
56873         'setsockopt'.
56874         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
56875         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
56876         listen, connect, accept.
56877         * modules/select-tests (Depends-on): Likewise.
56878
56879 2008-10-05  Bruno Haible  <bruno@clisp.org>
56880
56881         * lib/winsock.c (strerror): Remove unused #undef.
56882         (rpl_close): Remove unused local variable.
56883
56884         * modules/sys_socket (Depends-on); Add errno.
56885
56886 2008-10-05  Bruno Haible  <bruno@clisp.org>
56887
56888         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
56889         (select): Add a link warning when the 'select' module is not used.
56890         * modules/sys_select (Depends-on): Add link-warning.
56891         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
56892         Suggested by Paolo Bonzini.
56893
56894 2008-10-05  Jim Meyering  <meyering@redhat.com>
56895
56896         bootstrap: check for LT_INIT more portably
56897         * build-aux/bootstrap: Avoid using grep -E, since it's not
56898         portable enough.  Suggestion from Bruno Haible.
56899
56900 2008-10-05  Bruno Haible  <bruno@clisp.org>
56901
56902         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
56903         as being fixed by gnulib.
56904
56905 2008-10-05  Bruno Haible  <bruno@clisp.org>
56906
56907         * modules/select-tests: New file, mostly copied from
56908         modules/sys_select-tests.
56909         * tests/test-select.c: New file, mostly copied from
56910         tests/test-sys_select.c.
56911         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
56912         * modules/sys_select-tests (Depends-on): Remove all dependencies.
56913         (Makefile.am): Remove test_sys_select_LDADD.
56914
56915         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
56916         to an undefined symbol, for an error message.
56917         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
56918         (gl_SYS_SELECT_H_DEFAULTS): New macro.
56919         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
56920         winsock-select.c here.
56921         * modules/sys_select (Files): Remove lib/winsock-select.c.
56922         (Depends-on): Remove alloca.
56923         (Makefile.am): Substitute GNULIB_SELECT.
56924         * modules/select: New file.
56925         * doc/posix-functions/select.texi: Update.
56926
56927 2008-10-05  Bruno Haible  <bruno@clisp.org>
56928
56929         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
56930         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
56931         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
56932         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
56933         getdtablesize.
56934         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
56935         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
56936
56937 2008-10-05  Bruno Haible  <bruno@clisp.org>
56938
56939         * modules/getdtablesize-tests: New file.
56940         * tests/test-getdtablesize.c: New file.
56941
56942         New module 'getdtablesize'.
56943         * lib/unistd.in.h (getdtablesize): New declaration.
56944         * lib/getdtablesize.c: New file.
56945         * m4/getdtablesize.m4: New file.
56946         * modules/getdtablesize: New file.
56947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56948         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
56949         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
56950         HAVE_GETDTABLESIZE.
56951         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
56952
56953 2008-10-05  Bruno Haible  <bruno@clisp.org>
56954
56955         * modules/sched (Makefile.am): Fix typo.
56956         Reported by Simon Josefsson.
56957
56958 2008-10-05  Jim Meyering  <meyering@redhat.com>
56959
56960         bootstrap: check for LT_INIT, too
56961         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
56962         are deprecated.  Suggestion from Ralf Wildenhues.
56963
56964 2008-10-05  Bruno Haible  <bruno@clisp.org>
56965
56966         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
56967         overriding them by ours.
56968         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
56969
56970 2008-10-05  Jim Meyering  <meyering@redhat.com>
56971
56972         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
56973         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
56974         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
56975
56976 2008-10-04  Bruno Haible  <bruno@clisp.org>
56977
56978         * modules/dup2 (License): Change to LGPLv2+.
56979         * modules/sleep (License): Likewise.
56980         * modules/perror (License): Likewise.
56981         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
56982         Blake.
56983         * modules/signal (License): Likewise.
56984         * modules/sigprocmask (License): Likewise.
56985         * modules/raise (License): Change to LGPLv2+, with approval by Jim
56986         Meyering.
56987
56988 2008-10-04  Bruno Haible  <bruno@clisp.org>
56989
56990         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
56991         Reported by Rainer Tammer <tammer@tammer.net>.
56992
56993 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
56994             Bruno Haible  <bruno@clisp.org>
56995
56996         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
56997         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
56998         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
56999
57000 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
57001
57002         filevercmp: new module
57003         * lib/filevercmp.h: New function filevercmp comparing version strings.
57004         * lib/filevercmp.c: Implementation of filevercmp function.
57005         * modules/filevercmp: Module metadata.
57006         * tests/test-filevercmp.c: Unit test for new module.
57007         * modules/filevercmp-tests: Unit test metadata.
57008         * MODULES.html.sh: Add filevercmp module.
57009
57010 2008-10-03  Bruno Haible  <bruno@clisp.org>
57011
57012         * lib/c-ctype.h: Add comment.
57013         Reported by Jim Meyering.
57014
57015 2008-10-02  Bruno Haible  <bruno@clisp.org>
57016
57017         * modules/posix_spawn-internal (Depends-on): Add 'open'.
57018
57019 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57020
57021         * build-aux/bootstrap: Allow renaming bootstrap, and change the
57022         name of bootstrap.conf accordingly.
57023
57024 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57025
57026         * build-aux/bootstrap: Install git-merge-changelog configuration
57027         items into .gitconfig if needed.
57028
57029 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57030
57031         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
57032         git repository, and initialize/update it accordingly.
57033
57034 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
57035
57036         * modules/fsync-tests: New file.
57037         * tests/test-fsync.c: New file.
57038
57039         New module 'fsync'.
57040         * lib/fsync.c: New file.
57041         * m4/fsync.m4: New file.
57042         * modules/fsync: New file.
57043         * lib/unistd.in.h (fsync): New declaration.
57044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
57045         GNULIB_FSYNC and HAVE_FSYNC.
57046         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
57047         * MODULES.html.sh (posix_functions): Add fsync.
57048         * doc/posix-functions/fsync.texi: Mention the new module.
57049
57050 2008-10-02  Jim Meyering  <meyering@redhat.com>
57051
57052         fts.c: sync with similar code from coreutils' remove.c
57053         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
57054         Guard also with "#if defined __linux__", since for now at least,
57055         this code is Linux-kernel-specific.
57056
57057 2008-10-02  Jim Meyering  <meyering@redhat.com>
57058
57059         fts: bug fixes
57060         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
57061         Include <sys/vfs.h>, not <sys/statfs.h>.
57062
57063         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
57064         Include <sys/vfs.h>, not <sys/statfs.h>.
57065
57066 2008-10-01  Bruno Haible  <bruno@clisp.org>
57067
57068         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
57069         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
57070         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
57071         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
57072         * doc/posix-functions/posix_spawnp.texi: Likewise.
57073         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
57074         whether posix_spawn actually works.
57075         * m4/pipe.m4 (gl_PIPE): Likewise.
57076         * modules/execute (Files): Add m4/posix_spawn.m4.
57077         * modules/pipe (Files): Add m4/posix_spawn.m4.
57078         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
57079
57080 2008-10-01  Jim Meyering  <meyering@redhat.com>
57081
57082         remove trailing spaces
57083         * NEWS: Likewise.
57084         * lib/poll.c (poll): Likewise.
57085         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
57086         * lib/winsock.c (rpl_close): Likewise.
57087         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
57088         * modules/yield: Likewise.
57089         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
57090         * tests/test-sys_select.c (connect_to_socket): Likewise.
57091
57092         fts.c: adjust a new interface to be more generally useful
57093         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
57094         (fts_build): Adjust caller.
57095
57096 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57097
57098         * modules/cond-tests: New file.
57099         * tests/test-cond.c: New file.
57100
57101 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57102             Bruno Haible  <bruno@clisp.org>
57103
57104         * modules/cond (Dependencies): Add errno, time.
57105         * lib/glthread/cond.h: Include <time.h>.
57106         (gl_cond_define, gl_cond_define_initialized): Use the same definition
57107         across platforms.
57108
57109 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57110             Bruno Haible  <bruno@clisp.org>
57111
57112         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
57113
57114 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57115             Bruno Haible  <bruno@clisp.org>
57116
57117         * modules/tls-tests (Depends-on): Add thread, yield.
57118         (configure.ac): Remove all checks.
57119         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
57120         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57121         gl_thread_self): Remove definitions. Include glthread/thread.h and
57122         glthread/yield.h instead.
57123         (test_tls): Pass an additional NULL argument to gl_thread_join.
57124
57125 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57126             Bruno Haible  <bruno@clisp.org>
57127
57128         * modules/lock-tests (Depends-on): Add thread, yield.
57129         (configure.ac): Remove all checks.
57130         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
57131         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57132         gl_thread_self): Remove definitions. Include glthread/thread.h and
57133         glthread/yield.h instead.
57134         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
57135         additional NULL argument to gl_thread_join.
57136
57137 2008-09-30  Bruno Haible  <bruno@clisp.org>
57138
57139         Fix the Win32 implementation of the 'thread' module.
57140         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
57141         pointer type.
57142         (gl_thread_self): Invoke gl_thread_self_func.
57143         (gl_thread_self_func): New declaration.
57144         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
57145         (do_init_self_key, init_self_key): New functions.
57146         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
57147         Remove some fields.
57148         (running_threads, running_lock): Remove variables.
57149         (get_current_thread_handle): New function.
57150         (gl_thread_self_func, wrapper_func, glthread_create_func,
57151         glthread_join_func, gl_thread_exit_func): Largely rewritten and
57152         simplified.
57153
57154 2008-09-30  Bruno Haible  <bruno@clisp.org>
57155
57156         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
57157         files.
57158
57159 2008-09-30  Jim Meyering  <meyering@redhat.com>
57160
57161         fts.m4: correct the test for statfs.f_type
57162         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
57163         when checking for statfs.f_type.
57164
57165 2008-09-15  Simon Josefsson  <simon@josefsson.org>
57166
57167         tests: avoid some compiler warnings
57168         * tests/test-memchr.c (main): Pass NULL indirectly.
57169         * tests/test-getdate.c (main): Remove unused variable 'ret'.
57170
57171 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
57172
57173         getdate.y: disallow countable dayshifts like "4 yesterday ago"
57174         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
57175         exactly specified dayshifts.
57176         (dayshift): New rule.
57177         (rel): Add dayshift.
57178         (relative_time_table) [tomorrow, yesterday, today, now]:
57179         Use tDAY_SHIFT in place of tDAY_UNIT.
57180         * tests/test-getdate.c: Add tests for now-disallowed countable
57181         dayshifts, e.g., "4 yesterday ago".
57182
57183 2008-09-29  Bruno Haible  <bruno@clisp.org>
57184
57185         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
57186         * tests/test-posix_spawn1.in.sh: Renamed from
57187         tests/test-posix_spawn.in.sh.
57188         * tests/test-posix_spawn2.c: New file.
57189         * tests/test-posix_spawn2.in.sh: New file.
57190         * modules/posix_spawnp-tests (Files): Update.
57191         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
57192
57193 2008-09-29  Bruno Haible  <bruno@clisp.org>
57194
57195         Propagate effects of putenv/setenv/unsetenv to child processes.
57196         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
57197         * lib/pipe.c (create_pipe): Likewise.
57198
57199 2008-09-29  Bruno Haible  <bruno@clisp.org>
57200
57201         Enable use of shell scripts as executables in mingw.
57202         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
57203         run the program as a shell script.
57204         * lib/pipe.c (create_pipe): Likewise.
57205         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
57206         resulting array.
57207
57208 2008-09-29  Eric Blake  <ebb9@byu.net>
57209
57210         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
57211
57212 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
57213
57214         * doc/posix-functions/accept.texi: Update mingw problems.
57215         * doc/posix-functions/bind.texi: Update mingw problems.
57216         * doc/posix-functions/close.texi: Update mingw problems.
57217         * doc/posix-functions/connect.texi: Update mingw problems.
57218         * doc/posix-functions/getpeername.texi: Update mingw problems.
57219         * doc/posix-functions/getsockname.texi: Update mingw problems.
57220         * doc/posix-functions/getsockopt.texi: Update mingw problems.
57221         * doc/posix-functions/ioctl.texi: Update mingw problems.
57222         * doc/posix-functions/listen.texi: Update mingw problems.
57223         * doc/posix-functions/recv.texi: Update mingw problems.
57224         * doc/posix-functions/recvfrom.texi: Update mingw problems.
57225         * doc/posix-functions/select.texi: Update mingw problems.
57226         * doc/posix-functions/send.texi: Update mingw problems.
57227         * doc/posix-functions/sendto.texi: Update mingw problems.
57228         * doc/posix-functions/setsockopt.texi: Update mingw problems.
57229         * doc/posix-functions/socket.texi: Update mingw problems.
57230
57231 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
57232             Bruno Haible  <bruno@clisp.org>
57233
57234         * lib/sys_select.in.h: Include sys/time.h.
57235         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
57236         * modules/sys_select: Depend on sys_time.
57237         * tests/test-sys_select.c: Test that sys/select.h defines struct
57238         timeval fully.
57239
57240 2008-09-29  Bruno Haible  <bruno@clisp.org>
57241
57242         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
57243         * lib/sys_select.in.h: Likewise.
57244
57245 2008-09-29  Bruno Haible  <bruno@clisp.org>
57246
57247         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
57248
57249 2008-09-29  Bruno Haible  <bruno@clisp.org>
57250
57251         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
57252         Set LIBSOCKET instead of augmenting LIBS.
57253         * modules/sockets (Link): New section.
57254         * modules/sockets-tests (test_sockets_LDADD): New variable.
57255         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
57256         * modules/poll-tests (test_poll_LDADD): New variable.
57257         * NEWS: Document the change.
57258
57259 2008-09-29  Bruno Haible  <bruno@clisp.org>
57260
57261         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
57262         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
57263         ARPA_INET_H directly.
57264         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57265
57266 2008-09-28  Bruno Haible  <bruno@clisp.org>
57267
57268         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
57269         from gl_HEADER_SYS_SOCKET.
57270         (gl_HEADER_SYS_SOCKET): Invoke it.
57271         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57272
57273 2008-09-28  Bruno Haible  <bruno@clisp.org>
57274
57275         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
57276         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
57277         Needed on OSF/1 4.0.
57278
57279 2008-09-28  Bruno Haible  <bruno@clisp.org>
57280
57281         Override open more carefully.
57282         * lib/open.c (orig_open): New function.
57283         (rpl_open): Use orig_open instead of open.
57284         * lib/fcntl.in.h: Add special invocation convention.
57285         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
57286         (gl_FUNC_OPEN): Invoke it.
57287
57288         Override freopen more carefully.
57289         * lib/freopen.c (orig_freopen): New function.
57290         (rpl_freopen): Use orig_freopen instead of freopen.
57291         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
57292         (gl_FUNC_FREOPEN): Invoke it.
57293
57294         Override fopen more carefully.
57295         * lib/fopen.c (orig_fopen): New function.
57296         (rpl_fopen): Use orig_fopen instead of fopen.
57297         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
57298         (gl_FUNC_FOPEN): Invoke it.
57299         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
57300
57301 2008-09-28  Bruno Haible  <bruno@clisp.org>
57302
57303         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
57304         SIGPIPE.
57305
57306 2008-09-28  Bruno Haible  <bruno@clisp.org>
57307
57308         * tests/test-sigaction.c (handler, main): Disable the check whether
57309         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
57310         glibc systems with LinuxThreads.
57311
57312 2008-09-28  Bruno Haible  <bruno@clisp.org>
57313
57314         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
57315
57316         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
57317         with AIX xlc.
57318         * lib/fcntl.in.h (open): Likewise.
57319         Reported by Rainer Tammer <tammer@tammer.net>.
57320
57321 2008-09-28  Bruno Haible  <bruno@clisp.org>
57322
57323         * modules/posix_spawnp-tests: New file.
57324         * tests/test-posix_spawn.c: New file.
57325         * tests/test-posix_spawn.in.sh: New file.
57326
57327         New module 'posix_spawnp'.
57328         * modules/posix_spawnp: New file.
57329         * lib/spawnp.c: New file, from GNU libc with modifications.
57330         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
57331
57332         New module 'posix_spawn'.
57333         * modules/posix_spawn: New file.
57334         * lib/spawn.c: New file, from GNU libc with modifications.
57335         * doc/posix-functions/posix_spawn.texi: Mention the new module.
57336
57337         New module 'posix_spawnattr_destroy'.
57338         * modules/posix_spawnattr_destroy: New file.
57339         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
57340         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
57341         module.
57342
57343         New module 'posix_spawnattr_setsigmask'.
57344         * modules/posix_spawnattr_setsigmask: New file.
57345         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
57346         modifications.
57347         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
57348         new module.
57349
57350         New module 'posix_spawnattr_getsigmask'.
57351         * modules/posix_spawnattr_getsigmask: New file.
57352         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
57353         modifications.
57354         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
57355         new module.
57356
57357         New module 'posix_spawnattr_setsigdefault'.
57358         * modules/posix_spawnattr_setsigdefault: New file.
57359         * lib/spawnattr_setdefault.c: New file, from GNU libc with
57360         modifications.
57361         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
57362         new module.
57363
57364         New module 'posix_spawnattr_getsigdefault'.
57365         * modules/posix_spawnattr_getsigdefault: New file.
57366         * lib/spawnattr_getdefault.c: New file, from GNU libc with
57367         modifications.
57368         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
57369         new module.
57370
57371         New module 'posix_spawnattr_setschedpolicy'.
57372         * modules/posix_spawnattr_setschedpolicy: New file.
57373         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
57374         modifications.
57375         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
57376         new module.
57377
57378         New module 'posix_spawnattr_getschedpolicy'.
57379         * modules/posix_spawnattr_getschedpolicy: New file.
57380         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
57381         modifications.
57382         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
57383         new module.
57384
57385         New module 'posix_spawnattr_setschedparam'.
57386         * modules/posix_spawnattr_setschedparam: New file.
57387         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
57388         modifications.
57389         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
57390         new module.
57391
57392         New module 'posix_spawnattr_getschedparam'.
57393         * modules/posix_spawnattr_getschedparam: New file.
57394         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
57395         modifications.
57396         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
57397         new module.
57398
57399         New module 'posix_spawnattr_setpgroup'.
57400         * modules/posix_spawnattr_setpgroup: New file.
57401         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
57402         modifications.
57403         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
57404         module.
57405
57406         New module 'posix_spawnattr_getpgroup'.
57407         * modules/posix_spawnattr_getpgroup: New file.
57408         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
57409         modifications.
57410         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
57411         module.
57412
57413         New module 'posix_spawnattr_setflags'.
57414         * modules/posix_spawnattr_setflags: New file.
57415         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
57416         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
57417         module.
57418
57419         New module 'posix_spawnattr_getflags'.
57420         * modules/posix_spawnattr_getflags: New file.
57421         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
57422         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
57423         module.
57424
57425         New module 'posix_spawnattr_init'.
57426         * modules/posix_spawnattr_init: New file.
57427         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
57428         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
57429         module.
57430
57431         New module 'posix_spawn_file_actions_destroy'.
57432         * modules/posix_spawn_file_actions_destroy: New file.
57433         * lib/spawn_faction_destroy.c: New file, from GNU libc with
57434         modifications.
57435         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
57436         the new module.
57437
57438         New module 'posix_spawn_file_actions_addopen'.
57439         * modules/posix_spawn_file_actions_addopen: New file.
57440         * lib/spawn_faction_addopen.c: New file, from GNU libc with
57441         modifications.
57442         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
57443         the new module.
57444
57445         New module 'posix_spawn_file_actions_adddup2'.
57446         * modules/posix_spawn_file_actions_adddup2: New file.
57447         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
57448         modifications.
57449         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
57450         the new module.
57451
57452         New module 'posix_spawn_file_actions_addclose'.
57453         * modules/posix_spawn_file_actions_addclose: New file.
57454         * lib/spawn_faction_addclose.c: New file, from GNU libc with
57455         modifications.
57456         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
57457         the new module.
57458
57459         New module 'posix_spawn_file_actions_init'.
57460         * modules/posix_spawn_file_actions_init: New file.
57461         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
57462         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
57463         new module.
57464
57465         New module 'posix_spawn-internal'.
57466         * modules/posix_spawn-internal: New file.
57467         * lib/spawn_int.h: New file, from GNU libc with modifications.
57468         * lib/spawni.c: New file, from GNU libc with modifications.
57469         * m4/posix_spawn.m4: New file.
57470
57471         New module 'spawn'.
57472         * modules/spawn: New file.
57473         * lib/spawn.in.h: New file, from GNU libc with modifications.
57474         * m4/spawn_h.m4: New file.
57475         * doc/posix-headers/spawn.texi: Mention the new module.
57476
57477 2008-09-28  Bruno Haible  <bruno@clisp.org>
57478
57479         * modules/sched-tests: New file.
57480         * tests/test-sched.c: New file.
57481
57482         New module 'sched'.
57483         * modules/sched: New file.
57484         * lib/sched.in.h: New file.
57485         * m4/sched_h.m4: New file.
57486         * doc/posix-headers/sched.texi: Mention the new module.
57487
57488 2008-09-27  Eric Blake  <ebb9@byu.net>
57489
57490         Fix previous patch, and tweak references to $0.
57491         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
57492         (func_version, func_gnulib_dir): Don't call this program
57493         gnulib-tool.
57494         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
57495         with using $0 in function.
57496         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
57497         (func_fatal_error): Reuse the name the user invoked us with.
57498
57499 2008-09-27  Bruno Haible  <bruno@clisp.org>
57500
57501         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
57502         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
57503         (gl_ICONV_H): Not here.
57504         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
57505         instead of assigning ICONV_H directly.
57506
57507         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
57508         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
57509         WCHAR_H directly.
57510
57511 2008-09-27  Bruno Haible  <bruno@clisp.org>
57512
57513         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
57514         * modules/arpa_inet (Depends-on): Add link-warning.
57515         (Makefile.am): Insert the definition of GL_LINK-WARNING.
57516         * modules/unistd (Makefile.am): Likewise.
57517
57518 2008-09-26  Bruno Haible  <bruno@clisp.org>
57519
57520         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
57521         variables.
57522         (func_version): Essentially copied from gnulib-tool.
57523         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
57524         func_readlink): Copied from gnulib-tool.
57525
57526 2008-09-26  Bruno Haible  <bruno@clisp.org>
57527
57528         * gnulib-tool (func_version): Change directory to $gnulib_dir before
57529         invoking git-version-gen.
57530
57531 2008-09-26  Bruno Haible  <bruno@clisp.org>
57532
57533         * posix-modules: Update to directory names changed on 2008-01-19.
57534         Remove commas in output before splitting into words. No more need to
57535         avoid 'ftruncate' since 2007-02-19.
57536
57537 2008-09-26  Bruno Haible  <bruno@clisp.org>
57538
57539         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
57540
57541 2008-09-26  Bruno Haible  <bruno@clisp.org>
57542
57543         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
57544         * modules/fwriteerror (Depends-on): Add errno.
57545
57546 2008-09-26  Bruno Haible  <bruno@clisp.org>
57547
57548         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
57549         * tests/test-vc-list-files-cvs.sh: Likewise.
57550
57551 2008-09-26  Bruno Haible  <bruno@clisp.org>
57552
57553         * doc/posix-headers/sys_resource.texi: Reorder items.
57554
57555 2008-09-26  Jim Meyering  <meyering@redhat.com>
57556
57557         fts: tweak inode comparison function
57558         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
57559         inode numbers, as documented.
57560
57561         fts: sort dirent entries on inode number before traversing
57562         This avoids a quadratic, seek-related performance penalty when
57563         operating on a directory containing many entries (measurable at 10k;
57564         3.5 hours at 2 million entries with a cold cache) on certain types
57565         of file systems, including ext3 and ext4, but not tmpfs.
57566         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
57567         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
57568         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
57569         (fs_handles_readdir_ordered_dirents_efficiently): New function.
57570         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
57571         (fts_build): Set the stat.st_ino member from D_INO.
57572         If it is likely to be useful, sort dirent entries on inode number.
57573
57574         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
57575         and the struct statfs.f_type member.
57576         * modules/fts (Depends-on): Add d-ino.
57577
57578 2008-09-26  Bruno Haible  <bruno@clisp.org>
57579
57580         * modules/sigpipe-die (Depends-on): Add sigpipe.
57581
57582         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
57583         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
57584         and GNULIB_STDIO_H_SIGPIPE are set.
57585         * lib/stdio-write.c: New file.
57586         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
57587         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57588         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57589         REPLACE_STDIO_WRITE_FUNCS.
57590         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
57591         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57592         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57593         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57594         * modules/stdio (Files): Add lib/stdio-write.c.
57595         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
57596         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57597         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57598         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57599         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
57600         REPLACE_FPRINTF_POSIX.
57601         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
57602         REPLACE_PRINTF_POSIX.
57603         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
57604         REPLACE_VFPRINTF_POSIX.
57605         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
57606         REPLACE_VPRINTF_POSIX.
57607         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
57608         SIGPIPE issue.
57609         * doc/posix-functions/fputc.texi: Likewise.
57610         * doc/posix-functions/fputs.texi: Likewise.
57611         * doc/posix-functions/fwrite.texi: Likewise.
57612         * doc/posix-functions/printf.texi: Likewise.
57613         * doc/posix-functions/putc.texi: Likewise.
57614         * doc/posix-functions/putchar.texi: Likewise.
57615         * doc/posix-functions/puts.texi: Likewise.
57616         * doc/posix-functions/vfprintf.texi: Likewise.
57617         * doc/posix-functions/vprintf.texi: Likewise.
57618
57619         * modules/safe-write (Depends-on): Add write.
57620
57621         * modules/sigpipe-tests: New file.
57622         * tests/test-sigpipe.c: New file.
57623         * tests/test-sigpipe.sh: New file.
57624
57625         * modules/write: New file.
57626         * lib/unistd.in.h: Include <sys/types.h>.
57627         (write): New declaration.
57628         * lib/write.c: New file.
57629         * m4/write.m4: New file.
57630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57631         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
57632         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
57633         GNULIB_WRITE, REPLACE_WRITE.
57634         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
57635         and the SIGPIPE issue.
57636
57637         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
57638         (raise): New declaration.
57639         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
57640         (ext_signal): New function.
57641         (rpl_raise): New function.
57642         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
57643         GNULIB_SIGNAL_H_SIGPIPE.
57644         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
57645         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
57646
57647         * modules/sigpipe: New file.
57648         * m4/sigpipe.m4: New file.
57649
57650 2008-09-25  Derek Price  <derek@ximbiot.com>
57651             Bruno Haible  <bruno@clisp.org>
57652
57653         * gnulib-tool (func_import): Report all license incompatibilities, not
57654         just the first one.
57655
57656 2008-09-25  Bruno Haible  <bruno@clisp.org>
57657
57658         * gnulib-tool (func_import): When computing the edits, consider not
57659         only the Makefile.ams that exist but also those that will be generated.
57660
57661 2008-09-25  Simon Josefsson  <simon@josefsson.org>
57662
57663         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
57664         fixes gnulib-tool --test warning about duplicate dependency.
57665
57666 2008-09-25  Bruno Haible  <bruno@clisp.org>
57667
57668         * gnulib-tool: Don't ask the user to perform edits in the generated
57669         Makefile.ams.
57670         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
57671         apply to the Makefile.am being generated.
57672         (func_emit_tests_Makefile_am): Execute edits that apply to the
57673         Makefile.am being generated.
57674         (func_import): Setup list of Makefile.am edits before emitting the
57675         Makefile.ams, not at the end.
57676         (func_create_testdir): Update.
57677         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57678
57679 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57680
57681         * gnulib-tool (func_import): Store the --tests-base option in the
57682         comment in gnulib-cache.m4.
57683
57684 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
57685
57686         * NEWS: Document increased portability that sys_select now provides.
57687
57688         * lib/sys_select.in.h: Install select wrapper.
57689         * lib/sys_socket.in.h: Use more descriptive name when there is no
57690         select wrapper.
57691         * lib/winsock-select.c: New.
57692         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
57693         Require gl_HEADER_SYS_SOCKET.
57694         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
57695         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
57696         * tests/test-sys_select.c: Add functional tests.
57697
57698 2008-09-24  Eric Blake  <ebb9@byu.net>
57699
57700         open, fopen: close fd leak in last patch
57701         * lib/open.c (rpl_open): Close fd before returning error.
57702         * lib/fopen.c (rpl_fopen): Close fd before returning error.
57703         * doc/posix-functions/open.texi (open): Document that Irix also
57704         has the bug.
57705         * doc/posix-functions/fopen.texi (fopen): Likewise.
57706         Reported by Paolo Bonzini.
57707
57708 2008-09-24  Bruno Haible  <bruno@clisp.org>
57709
57710         Ensure that a filename ending in a slash cannot be used to access a
57711         non-directory.
57712         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
57713         to check whether it's really a directory.
57714         * lib/fopen.c: Include fcntl.h, unistd.h.
57715         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
57716         and fdopen().
57717         * modules/fopen (Depends-on): Add unistd.
57718         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
57719         * tests/test-fopen.c (main): Likewise.
57720         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
57721         * doc/posix-functions/fopen.texi: Likewise.
57722         Reported by Eric Blake.
57723
57724 2008-09-23  Eric Blake  <ebb9@byu.net>
57725
57726         c-stack: avoid compiler optimizations when provoking overflow
57727         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
57728         recursion harder to optimize, to ensure a stack overflow occurs.
57729         * tests/test-c-stack.c (recurse): Likewise.
57730         Borrowed from libsigsegv.
57731
57732         c-stack: work around Irix sigaltstack bug
57733         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
57734         whether sigaltstack uses wrong end of stack_t (copied in part from
57735         libsigsegv).
57736         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
57737         Irix bug, without requiring an over-allocation.
57738         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
57739         bug.
57740
57741         fopen: document mingw bug on directories
57742         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
57743         not allowing a stream visiting a directory, even though reading
57744         from such a stream is not portable.
57745
57746 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57747
57748         * lib/poll.c: Rewrite.
57749         * modules/poll: Depend on alloca.
57750
57751 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57752
57753         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
57754         instead define prototypes for a full set of wrappers.  Ensure
57755         that Cygwin does not use the compatibility code, which is only
57756         for MinGW.
57757         * lib/winsock.c: New.
57758         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
57759         * modules/sys_socket: Add lib/winsock.c.
57760
57761         * modules/poll-tests: Add errno and perror.
57762         * tests/test-poll.c: Use ioctl, not ioctlsocket.
57763
57764 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57765
57766         * tests/test-poll.c: Downgrade minimum needed Winsock version.
57767
57768 2008-09-23  Bruno Haible  <bruno@clisp.org>
57769
57770         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
57771         * doc/glibc-functions/*: Likewise.
57772
57773 2008-09-23  Simon Josefsson  <simon@josefsson.org>
57774
57775         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
57776         success.
57777
57778 2008-09-22  Eric Blake  <ebb9@byu.net>
57779             Bruno Haible  <bruno@clisp.org>
57780
57781         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
57782         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
57783         supply %A but mishandle pseudo-NaN.
57784         Reported by Simon Josefsson.
57785
57786 2008-09-21  Bruno Haible  <bruno@clisp.org>
57787
57788         * tests/test-lock.c (main): Tweak skip message.
57789         * tests/test-tls.c (main): Likewise.
57790
57791 2008-09-21  Bruno Haible  <bruno@clisp.org>
57792
57793         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
57794         whether 'struct sigaction' has sa_sigaction here...
57795         (gl_PREREQ_SIG_HANDLER_H): ... not here.
57796         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
57797
57798 2008-09-21  Bruno Haible  <bruno@clisp.org>
57799
57800         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
57801         section.
57802         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
57803         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
57804         the new section.
57805         (Support for obsolete systems lacking POSIX:2001): New section.
57806         (String handling <string.h>): Move strdup to the new section.
57807         Suggested by Simon Josefsson and Paolo Bonzini.
57808
57809 2008-09-21  Bruno Haible  <bruno@clisp.org>
57810
57811         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
57812         exponents in %e and %g results on 'long double'. Needed for mingw's
57813         improved *printf functions.
57814         * tests/test-vasprintf-posix.c (test_function): Likewise.
57815         * tests/test-snprintf-posix.h (test_function): Likewise.
57816         * tests/test-sprintf-posix.h (test_function): Likewise.
57817         Reported by Eric Blake.
57818
57819 2008-09-21  Bruno Haible  <bruno@clisp.org>
57820
57821         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
57822         * tests/test-sprintf-posix.h (test_function): Likewise.
57823
57824 2008-09-21  Bruno Haible  <bruno@clisp.org>
57825
57826         * modules/getpass (Depends-on): Add strdup-posix.
57827
57828         New module 'strdup-posix'.
57829         * modules/strdup-posix: New file.
57830         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
57831         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
57832         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57833         REPLACE_STRDUP.
57834         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
57835         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
57836         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57837         strdup-posix.
57838
57839         * modules/strdup (Depends-on): Remove malloc-posix.
57840
57841 2008-09-20  Bruno Haible  <bruno@clisp.org>
57842
57843         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
57844         Wildenhues.
57845
57846 2008-09-20  Bruno Haible  <bruno@clisp.org>
57847
57848         Ensure that wint_t gets defined on IRIX 5.3.
57849         * lib/wchar.in.h (wint_t): Define if not defined by the system.
57850         * lib/wctype.in.h (wint_t): Likewise.
57851         (__wctype_wint_t): Remove type.
57852         (isw*): Use wint_t instead of __wctype_wint_t.
57853         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
57854         * modules/wchar (Files): Add m4/wint_t.m4.
57855         (Makefile.am): Substitute HAVE_WINT_T.
57856         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
57857         * tests/test-wctype.c: Check that wint_t is defined.
57858         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
57859         * doc/posix-headers/wctype.texi: Likewise.
57860         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57861
57862 2008-09-18  Bruno Haible  <bruno@clisp.org>
57863
57864         * gnulib-tool (func_exit): Update comment.
57865
57866 2008-09-18  Simon Josefsson  <simon@josefsson.org>
57867
57868         * modules/getaddrinfo (Depends-on): Remove strdup, this module
57869         assumes strdup exists and does not depend on strdup to return
57870         ENOMEM on out of memory conditions.
57871
57872 2008-09-18  Bruno Haible  <bruno@clisp.org>
57873
57874         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
57875         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
57876         digits for the exponent.
57877
57878 2008-09-18  Jim Meyering  <meyering@redhat.com>
57879             Bruno Haible  <bruno@clisp.org>
57880
57881         * lib/vasnprintf.c (decimal_point_char): Define also if
57882         NEED_PRINTF_INFINITE_LONG_DOUBLE.
57883
57884 2008-09-16  Bruno Haible  <bruno@clisp.org>
57885         and Eric Blake  <ebb9@byu.net>
57886
57887         vasnprintf: support Irix 5.3
57888         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
57889         that mishandle long double infinity.
57890         Reported by Tom G. Christensen.
57891
57892 2008-09-16  Bruno Haible  <bruno@clisp.org>
57893
57894         * doc/glibc-functions/scandir.texi: Mention the function is missing on
57895         Solaris 9.
57896         * doc/glibc-functions/alphasort.texi: Likewise.
57897         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
57898
57899 2008-09-16  Jim Meyering  <meyering@redhat.com>
57900
57901         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
57902         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
57903         a umask modification leak out of a subshell.  Otherwise, the
57904         opensolaris /bin/sh would be accepted and thus cause unwarranted
57905         failures in the coreutils test suite.
57906
57907 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
57908
57909         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
57910         to succeed.
57911
57912 2008-09-16  Jim Meyering  <meyering@redhat.com>
57913
57914         avoid spurious test failure when library is built without ACL support
57915         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
57916         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
57917         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
57918         * tests/test-copy-acl.sh: Likewise.
57919
57920 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57921
57922         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
57923         based on character occurrence counts.
57924
57925 2008-09-15  Eric Blake  <ebb9@byu.net>
57926
57927         tests: avoid some compiler warnings
57928         * tests/test-memchr.c (main): Pass NULL indirectly.
57929         * tests/test-closein.c (main): Avoid unused variable.
57930
57931 2008-09-15  Bruno Haible  <bruno@clisp.org>
57932
57933         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
57934         are missing on OpenBSD 4.0 individually.
57935         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57936
57937 2008-09-15  Bruno Haible  <bruno@clisp.org>
57938
57939         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
57940         * doc/posix-functions/strerror.texi: Mention also Cygwin.
57941         * doc/posix-functions/perror.texi: Likewise.
57942         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
57943         is missing.
57944         Reported by Eric Blake.
57945
57946         * lib/errno.in.h: Use replacement values >= 2000.
57947         Reported by Eric Blake.
57948
57949 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57950
57951         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
57952         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
57953         limit.
57954         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
57955         compareseq was aborted.
57956
57957 2008-09-14  Bruno Haible  <bruno@clisp.org>
57958
57959         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
57960         yvec_edit_count.
57961         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
57962         (fstrcmp_bounded): Simplify result computation accordingly.
57963
57964 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57965
57966         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
57967         (fstrcmp): Define in terms of fstrcmp_bounded.
57968         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
57969         lower_bound argument.
57970         Return quickly if the result is certainly < lower_bound.
57971         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
57972
57973 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57974
57975         * lib/diffseq.h (EARLY_ABORT): New macro.
57976         (compareseq): Change return type to bool. Return true when EARLY_ABORT
57977         evaluates to true.
57978
57979 2008-09-14  Bruno Haible  <bruno@clisp.org>
57980
57981         * modules/perror-tests: New file.
57982         * tests/test-perror.sh: New file.
57983         * tests/test-perror.c: New file.
57984
57985         New module 'perror'.
57986         * lib/stdio.in.h (perror): New declaration.
57987         * lib/perror.c: New file.
57988         * m4/perror.m4: New file.
57989         * modules/perror: New file.
57990         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
57991         * doc/posix-functions/perror.texi: Mention the perror module.
57992         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
57993         REPLACE_PERROR.
57994         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
57995         REPLACE_PERROR.
57996
57997 2008-09-14  Bruno Haible  <bruno@clisp.org>
57998
57999         * modules/stdio (Makefile.am): Reorder to match the order in
58000         lib/stdio.in.h.
58001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58002
58003 2008-09-13  Bruno Haible  <bruno@clisp.org>
58004
58005         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
58006
58007 2008-09-13  Bruno Haible  <bruno@clisp.org>
58008
58009         Extend strerror to cover the added errno values.
58010         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
58011         (rpl_strerror): Provide error messages for the added errno values and
58012         for the WSA* values.
58013         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
58014         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
58015         strerror.
58016         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
58017         * modules/strerror (Depends-on): Add errno.
58018         * doc/posix-functions/strerror.texi: Document the change.
58019         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
58020         and EOVERFLOW.
58021
58022 2008-09-13  Bruno Haible  <bruno@clisp.org>
58023
58024         * modules/EOVERFLOW: Remove file.
58025         * m4/eoverflow.m4: Remove file.
58026         * modules/EOVERFLOW-tests: Remove file.
58027         * tests/test-EOVERFLOW.c: Remove file.
58028         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
58029         * modules/ftell (Depends-on): Likewise.
58030         * modules/getdelim (Depends-on): Likewise.
58031         * modules/getugroups (Depends-on): Likewise.
58032         * modules/poll (Depends-on): Likewise.
58033         * modules/snprintf (Depends-on): Likewise.
58034         * modules/sprintf-posix (Depends-on): Likewise.
58035         * modules/vasnprintf (Depends-on): Likewise.
58036         * modules/vasprintf (Depends-on): Likewise.
58037         * modules/vfprintf-posix (Depends-on): Likewise.
58038         * modules/vsnprintf (Depends-on): Likewise.
58039         * modules/vsprintf-posix (Depends-on): Likewise.
58040         * modules/xvasprintf (Depends-on): Likewise.
58041         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58042         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
58043         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
58044         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
58045         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58046         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
58047         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
58048         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
58049         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58050         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
58051         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
58052         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
58053         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58054         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
58055         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
58056         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
58057         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58058         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
58059         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
58060         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
58061         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58062         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
58063         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
58064         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
58065         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
58066         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58067         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
58068         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
58069         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
58070         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
58071         * MODULES.html.sh: Remove EOVERFLOW.
58072         * NEWS: Mention the change.
58073
58074 2008-09-13  Bruno Haible  <bruno@clisp.org>
58075
58076         * modules/errno-tests: New file.
58077         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
58078
58079         * lib/errno.in.h: New file.
58080         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
58081         * modules/errno: New file.
58082         * doc/posix-headers/errno.texi: Update documentation.
58083         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
58084
58085 2008-09-13  Bruno Haible  <bruno@clisp.org>
58086
58087         * tests/test-poll.c: Use #if for native Windows, rather than testing
58088         __MSVCRT__.
58089
58090 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58091             Bruno Haible  <bruno@clisp.org>
58092
58093         * lib/glob.c: Don't include <pwd.h> on native Windows.
58094         (WINDOWS32): New macro.
58095         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
58096
58097 2008-09-13  Bruno Haible  <bruno@clisp.org>
58098
58099         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
58100         (ETIMEDOUT): Remove macro.
58101         (glthread_cond_timedwait_multithreaded): New declaration.
58102         (glthread_cond_timedwait): Use it.
58103         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
58104         (glthread_cond_timedwait_multithreaded): New function.
58105
58106 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58107
58108         * modules/poll-tests: Do not check for io.h.
58109         * tests/test-poll.c: Check for __MSVCRT__ instead.
58110
58111 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58112
58113         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
58114         * modules/poll-tests: Add inet_pton, stdbool, sockets.
58115         * tests/test-poll.c: Use them.  Use _pipe on Windows.
58116
58117 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58118
58119         * modules/poll-tests: New.
58120         * tests/test-poll.c: New.
58121
58122 2008-09-12  Eric Blake  <ebb9@byu.net>
58123
58124         frexp: test for NetBSD failure on -0.0
58125         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
58126         not all, bugs from NetBSD 3.0 have been fixed.
58127         * doc/posix-functions/frexp.texi (frexp): Document bug.
58128         Reported by Thomas Klausner.
58129
58130         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
58131         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
58132         literal -0.0.
58133         Reported by Jonathan C. Patschke <jp@centtech.com>.
58134
58135 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58136
58137         * lib/glthread/cond.h: Use dummy implementation also if
58138         USE_WIN32_THREADS.
58139
58140 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58141
58142         * modules/fnmatch-posix (License): Change to LGPLv2+.
58143         * modules/fnmatch-gnu (License): Likewise.
58144
58145 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58146
58147         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
58148
58149 2008-09-11  Jim Meyering  <meyering@redhat.com>
58150
58151         * users.txt: Add gtk-vnc.
58152
58153 2008-09-08  Simon Josefsson  <simon@josefsson.org>
58154
58155         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
58156         rotate amounts.
58157
58158         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
58159         required for 16-bit and 8-bit rotates.
58160         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
58161         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
58162         UINT8_MAX instead of hard-coded constants.
58163         Suggested by Paul Eggert.
58164
58165 2008-09-07  Bruno Haible  <bruno@clisp.org>
58166
58167         * tests/test-striconveh.c (main): Check behaviour when converting from
58168         UTF-7.
58169
58170         Make striconveh work better with stateful encodings.
58171         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
58172         that iconv does not increment the inptr when returning -1/EINVAL.
58173
58174 2008-09-07  Bruno Haible  <bruno@clisp.org>
58175
58176         * build-aux/config.rpath: Update according to libtool-2.2.6.
58177         * build-aux/config.libpath: Likewise.
58178
58179 2008-09-06  Bruno Haible  <bruno@clisp.org>
58180
58181         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
58182         * lib/freadptr.c (freadptr): Likewise.
58183         * lib/freadseek.c (freadptrinc): Likewise.
58184         Reported by Simon Josefsson.
58185
58186 2008-09-06  Bruno Haible  <bruno@clisp.org>
58187
58188         * modules/freadptr (License): Change to LGPLv2+.
58189         * modules/freadseek (License): Likewise.
58190         Suggested by Eric Blake.
58191
58192         * modules/memchr2 (License): Change to LGPLv2+.
58193         Approved by Eric Blake.
58194
58195 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58196             Bruno Haible  <bruno@clisp.org>
58197
58198         Make gnulib-tool work with native 'sed' on AIX.
58199         * gnulib-tool (sed_noop): New variable.
58200         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
58201         func_add_or_update, func_create_testdir): Use it to initialize sed
58202         script variables.
58203         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58204
58205 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
58206             Bruno Haible  <bruno@clisp.org>
58207
58208         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
58209         also works after #include directives.
58210
58211 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
58212
58213         getdate.y: reject an out-of-range timezone value
58214         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
58215         the range [-24...+24].  When specified with only one or two digits,
58216         * tests/test-getdate.c: Tests for the fix.
58217         * doc/getdate.texi: Document this change.
58218
58219 2008-09-03  Bruno Haible  <bruno@clisp.org>
58220
58221         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
58222
58223 2008-09-02  Simon Josefsson  <simon@josefsson.org>
58224
58225         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
58226         <bruce.korb@gmail.com> with ideas from Ben Pfaff
58227         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
58228         Blake <ebb9@byu.net>.
58229
58230         * tests/test-bitrotate.c: Add more test vectors.
58231
58232 2008-09-02  Eric Blake  <ebb9@byu.net>
58233
58234         vasnprintf-posix: handle large precision via %.*d
58235         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
58236         when handling it ourselves.
58237         * tests/test-vasnprintf-posix.c (test_function): Add test.
58238         * tests/test-snprintf-posix.h (test_function): Likewise.
58239         * tests/test-sprintf-posix.h (test_function): Likewise.
58240         * tests/test-vasprintf-posix.c (test_function): Likewise.
58241         Reported by Alain Guibert.
58242
58243 2008-09-01  Eric Blake  <ebb9@byu.net>
58244
58245         c-stack: make configure-time check more robust
58246         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
58247         successful sigaction call.
58248         Reported by Tom G. Christensen.
58249
58250 2008-09-01  Bruno Haible  <bruno@clisp.org>
58251
58252         New module 'findprog-lgpl'.
58253         * modules/findprog-lgpl: New file.
58254         * lib/findprog-lgpl.c: New file.
58255         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
58256         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
58257         to decide whether to use strdup or xstrdup, concatenated_filename or
58258         xconcatenated_filename.
58259
58260 2008-09-01  Bruno Haible  <bruno@clisp.org>
58261
58262         Split module 'concat-filename' into 'concat-filename' (LGPL) and
58263         'xconcat-filename' (GPL).
58264         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
58265         (License): Change to LGPLv2+.
58266         * modules/xconcat-filename: New file.
58267         * lib/concat-filename.h (concatenated_filename): Change specification.
58268         (xconcatenated_filename): New declaration.
58269         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
58270         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
58271         memory situations.
58272         * lib/xconcat-filename.c: New file.
58273         * NEWS: Mention the change.
58274         * lib/findprog.c: Include concat-filename.h, not filename.h.
58275         (find_in_path): Use xconcatenated_filename instead of
58276         concatenated_filename.
58277         * lib/javacomp.c: Include concat-filename.h, not filename.h.
58278         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58279         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58280         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58281         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
58282         instead of concatenated_filename.
58283         * lib/javaexec.c: Include concat-filename.h, not filename.h.
58284         (execute_java_class): Use xconcatenated_filename instead of
58285         concatenated_filename.
58286         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
58287         * modules/javacomp (Depends-on): Likewise.
58288         * modules/javaexec (Depends-on): Likewise.
58289
58290 2008-09-01  Bruno Haible  <bruno@clisp.org>
58291
58292         Split module 'filename' into 'filename' and 'concat-filename'.
58293         * modules/filename: Keep only lib/filename.h.
58294         (License): Change to LGPLv2+.
58295         * modules/concat-filename: New file, extracted from modules/filename.
58296         * lib/filename.h (concatenated_filename): Remove declaration.
58297         * lib/concat-filename.h: New file, extracted from lib/filename.h.
58298         * lib/concat-filename.c: Include concat-filename.h.
58299         * NEWS: Mention the change.
58300
58301 2008-09-01  Simon Josefsson  <simon@josefsson.org>
58302
58303         * lib/bitrotate.h (rotl8, rotr8): Add.
58304
58305         * modules/bitrotate (configure.ac): Need
58306         AC_REQUIRE([AC_C_INLINE]).
58307         (Description): Mention stdint.h.  Reported by Bruno Haible
58308         <bruno@clisp.org>.
58309
58310         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
58311         Paolo Bonzini <bonzini@gnu.org>.
58312
58313 2008-08-31  Bruno Haible  <bruno@clisp.org>
58314
58315         Assume Solaris specific bi-arch conventions on Solaris systems.
58316         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
58317         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
58318         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
58319         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
58320         like acl_libdirstem.
58321         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
58322         acl_libdirstem.
58323         * NEWS: Mention the change.
58324         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
58325
58326 2008-08-31  Jim Meyering  <meyering@redhat.com>
58327
58328         * lib/strftime.h: Add comments describing the two added arguments.
58329
58330         remove duplicate #include directives
58331         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
58332         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
58333
58334 2008-08-31  Bruno Haible  <bruno@clisp.org>
58335
58336         New module 'sigpipe-die'.
58337         * modules/sigpipe-die: New file.
58338         * lib/sigpipe-die.h: New file.
58339         * lib/sigpipe-die.c: New file.
58340         * MODULES.html.sh (Signal handling): Add sigpipe-die.
58341
58342 2008-08-31  Bruno Haible  <bruno@clisp.org>
58343
58344         Don't override previously installed signal handlers.
58345         * lib/fatal-signal.c (saved_sigactions): New variable.
58346         (uninstall_handlers): Reset the signal to the saved handler, not
58347         to SIG_DFL (except when ignored).
58348         (install_handlers): Save the previous handlers.
58349
58350 2008-08-30  Bruno Haible  <bruno@clisp.org>
58351
58352         * gnulib-tool (func_reset_sigpipe): New function.
58353         (func_get_automake_snippet, func_modules_transitive_closure,
58354         func_import): Invoke it before a join command that reads from stdin,
58355         to avoid "echo: write error: Broken pipe" error messages on stderr.
58356         Reported by Sam Steingold <sds@gnu.org>.
58357
58358 2008-08-30  Bruno Haible  <bruno@clisp.org>
58359
58360         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
58361         Code copied from m4/open.m4.
58362         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
58363         access and the filename ends in a slash. Code copied from lib/open.c.
58364         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
58365         * tests/test-fopen.c (main): Check against bug with trailing slash.
58366
58367 2008-08-29  Bruno Haible  <bruno@clisp.org>
58368
58369         Avoid some "gcc -pedantic" warnings.
58370         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
58371         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
58372         * lib/dirent.in.h: Likewise.
58373         * lib/fcntl.in.h: Likewise.
58374         * lib/float.in.h: Likewise.
58375         * lib/iconv.in.h: Likewise.
58376         * lib/inttypes.in.h: Likewise.
58377         * lib/locale.in.h: Likewise.
58378         * lib/math.in.h: Likewise.
58379         * lib/netinet_in.in.h: Likewise.
58380         * lib/search.in.h: Likewise.
58381         * lib/signal.in.h: Likewise.
58382         * lib/stdarg.in.h: Likewise.
58383         * lib/stdint.in.h: Likewise.
58384         * lib/stdio.in.h: Likewise.
58385         * lib/stdlib.in.h: Likewise.
58386         * lib/string.in.h: Likewise.
58387         * lib/strings.in.h: Likewise.
58388         * lib/sys_select.in.h: Likewise.
58389         * lib/sys_socket.in.h: Likewise.
58390         * lib/sys_stat.in.h: Likewise.
58391         * lib/sys_time.in.h: Likewise.
58392         * lib/sysexits.in.h: Likewise.
58393         * lib/time.in.h: Likewise.
58394         * lib/unistd.in.h: Likewise.
58395         * lib/wchar.in.h: Likewise.
58396         * lib/wctype.in.h: Likewise.
58397         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
58398         * modules/fchdir (Makefile.am): Likewise.
58399         * modules/fcntl (Makefile.am): Likewise.
58400         * modules/float (Makefile.am): Likewise.
58401         * modules/iconv_open (Makefile.am): Likewise.
58402         * modules/inttypes (Makefile.am): Likewise.
58403         * modules/locale (Makefile.am): Likewise.
58404         * modules/math (Makefile.am): Likewise.
58405         * modules/netinet_in (Makefile.am): Likewise.
58406         * modules/search (Makefile.am): Likewise.
58407         * modules/signal (Makefile.am): Likewise.
58408         * modules/stdarg (Makefile.am): Likewise.
58409         * modules/stdint (Makefile.am): Likewise.
58410         * modules/stdio (Makefile.am): Likewise.
58411         * modules/stdlib (Makefile.am): Likewise.
58412         * modules/string (Makefile.am): Likewise.
58413         * modules/strings (Makefile.am): Likewise.
58414         * modules/sys_select (Makefile.am): Likewise.
58415         * modules/sys_socket (Makefile.am): Likewise.
58416         * modules/sys_stat (Makefile.am): Likewise.
58417         * modules/sys_time (Makefile.am): Likewise.
58418         * modules/sysexits (Makefile.am): Likewise.
58419         * modules/time (Makefile.am): Likewise.
58420         * modules/unistd (Makefile.am): Likewise.
58421         * modules/wchar (Makefile.am): Likewise.
58422         * modules/wctype (Makefile.am): Likewise.
58423         Reported by Reuben Thomas <rrt@sc3d.org>.
58424
58425 2008-08-29  Bruno Haible  <bruno@clisp.org>
58426
58427         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
58428         any more.
58429
58430 2008-08-29  Simon Josefsson  <simon@josefsson.org>
58431
58432         * MODULES.html.sh (Misc): Add bitrotate.
58433
58434         * modules/bitrotate: New file.
58435
58436         * lib/bitrotate.h: New file.
58437
58438         * modules/bitrotate-tests: New file.
58439
58440         * tests/test-bitrotate.c: New file.
58441
58442         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
58443         on the bitrotate module.
58444
58445         * lib/arctwo.c: Use new bitrotate module.
58446
58447 2008-08-29  Jim Meyering  <meyering@redhat.com>
58448
58449         bootstrap: merge changes from coreutils
58450         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
58451         of copied files.  Remove a kludge, now that this is fixed.
58452         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
58453         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
58454         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
58455
58456 2008-08-29  Bruno Haible  <bruno@clisp.org>
58457
58458         * MODULES.html.sh: Remove --cvs-urls option.
58459
58460 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
58461
58462         maint.mk: adjust to file name change
58463         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
58464
58465 2008-08-28  Jim Meyering  <meyering@redhat.com>
58466
58467         * modules/getndelim2 (License): Relicense to LGPLv2+.
58468         Approved by Richard Stallman for the version of 1995, and by
58469         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
58470
58471 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
58472
58473         * lib/getdelim.c (flockfile, funlockfile): Make all of them
58474         dummy if one is not available.  Do not touch them if
58475         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
58476         (getc_maybe_unlocked): New.
58477         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
58478
58479 2008-08-26  Eric Blake  <ebb9@byu.net>
58480
58481         doc/INSTALL: resync from autoconf
58482         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
58483         (INSTALL_PRELUDE): Delete; this is done more efficiently by
58484         moving...
58485         * install.texi [!autoconf]: ...here.  Resync from autoconf.
58486         * INSTALL: Regenerate.
58487         * INSTALL.ISO: New file.
58488         * INSTALL.UTF-8: Likewise.
58489
58490 2008-08-26  Jim Meyering  <meyering@redhat.com>
58491
58492         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
58493         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
58494         these definitions conditional, so that they may be overridden, too.
58495
58496 2008-08-26  Bruno Haible  <bruno@clisp.org>
58497
58498         Generate INSTALL file variants with prettier quotes.
58499         * doc/Makefile (INSTALL_PRELUDE): New macro.
58500         (INSTALL): Use it.
58501         (INSTALL.ISO, INSTALL.UTF-8): New rules.
58502
58503 2008-08-26  Bruno Haible  <bruno@clisp.org>
58504
58505         Run makeinfo in an English locale.
58506         * doc/Makefile (MAKEINFO): New variable.
58507
58508 2008-08-26  Bruno Haible  <bruno@clisp.org>
58509
58510         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
58511         Suggested by Eric Blake.
58512
58513 2008-08-25  Bruno Haible  <bruno@clisp.org>
58514
58515         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
58516
58517 2008-08-25  Eric Blake  <ebb9@byu.net>
58518
58519         c-stack: test that stack overflow can be caught
58520         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
58521         that platform allows handling stack overflow; at least OS/2 EMX
58522         has sigaltstack, but crashes before transferring control to
58523         handler on stack overflow.
58524         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
58525         check for HAVE_STACK_OVERFLOW_HANDLING.
58526         Reported by Elbert Pol.
58527
58528 2008-08-25  Bruno Haible  <bruno@clisp.org>
58529
58530         * doc/posix-functions/strftime.texi: Fix description of strftime
58531         module.
58532
58533 2008-08-24  Bruno Haible  <bruno@clisp.org>
58534
58535         * tests/uniwidth/test-uc_width2.c: New file.
58536         * tests/uniwidth/test-uc_width2.sh: New file.
58537         * modules/uniwidth/width-tests (Files): Add the new files.
58538         (TESTS): Add uniwidth/test-uc_width2.sh.
58539         (TESTS_ENVIRONMENT): New variable.
58540         (check_PROGRAMS): Add test-uc_width2.
58541         (test_uc_width2_SOURCES): New variable.
58542
58543         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
58544         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
58545         not 0x00AB.
58546         Reported by Alexander V. Lukyanov <lav@netis.ru>.
58547
58548 2008-08-22  Eric Blake  <ebb9@byu.net>
58549
58550         test-lock, test-tls: mention why a test is skipped
58551         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
58552         skipped.
58553         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
58554
58555         count-one-bits: relax license
58556         * modules/count-one-bits (License): Relicense to LGPLv2+.
58557         Suggested by Ludovic Courtès, approved by Ben Pfaff.
58558
58559 2008-08-22  Andreas Schwab  <schwab@suse.de>
58560
58561         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
58562         Remove spurious space in assignment.
58563
58564 2008-08-21  Simon Josefsson  <simon@josefsson.org>
58565
58566         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
58567         Paul Eggert <eggert@CS.UCLA.EDU>.
58568
58569 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
58570
58571         * modules/gettext: Add m4/threadlib.m4.
58572
58573 2008-08-19  Eric Blake  <ebb9@byu.net>
58574
58575         test-c-stack: fix compilation failure on FreeBSD 5.0
58576         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
58577         headers before <sys/resource.h>.
58578         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
58579         the bug.
58580         Reported by Nelson H. F. Beebe.
58581
58582         strverscmp: migrate from "strverscmp.h" to <string.h>
58583         * modules/string (Makefile.am): Add new hooks.
58584         * modules/strverscmp (Files): Remove strverscmp.h.
58585         (Depends-on): Add string.
58586         (configure.ac): Add indicator.
58587         (Include): Mention new header.
58588         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
58589         defaults.
58590         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
58591         results.
58592         * lib/strverscmp.h: Delete.
58593         * lib/string.in.h (strverscmp): Provide declaration, when needed.
58594         * tests/test-strverscmp.c (includes): Adjust client.
58595         * lib/check-version.c (includes): Likewise.
58596         * NEWS: Document the change.
58597
58598         strverscmp: add unit test
58599         * modules/strverscmp-tests: New file.
58600         * tests/test-strverscmp.c: Likewise.
58601
58602 2008-08-19  Simon Josefsson  <simon@josefsson.org>
58603
58604         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
58605         regarding Windows crypto stuff, from Mono.
58606
58607 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
58608
58609         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
58610         if present, for intel RND.  Return error on failures.
58611
58612 2008-08-18  Ben Pfaff  <blp@gnu.org>
58613
58614         gitlog-to-changelog: give better diagnostic for failed pipe-open
58615         * build-aux/gitlog-to-changelog: Improve error message: suggest
58616         that the version of Git may be too old.
58617
58618 2008-08-18  Simon Josefsson  <simon@josefsson.org>
58619
58620         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
58621         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
58622
58623 2008-08-18  Bruno Haible  <bruno@clisp.org>
58624
58625         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
58626         pthread_in_use().
58627
58628 2008-08-18  Bruno Haible  <bruno@clisp.org>
58629
58630         * lib/glthread/threadlib.c: Include <pthread.h>.
58631
58632 2008-08-18  Bruno Haible  <bruno@clisp.org>
58633
58634         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
58635         glthread_recursive_lock_* macros.
58636         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
58637         Fix syntax error.
58638
58639 2008-08-18  Bruno Haible  <bruno@clisp.org>
58640
58641         * lib/glthread/thread.c: Avoid forcing a context switch right after
58642         thread creation.
58643
58644 2008-08-17  Bruno Haible  <bruno@clisp.org>
58645
58646         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
58647         * lib/glthread/thread.h: Provide Win32 specific implementation.
58648         * modules/thread (Files): Add lib/glthread/thread.c.
58649         (Depends-on): Add lock.
58650         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
58651
58652 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58653
58654         New module 'yield'.
58655         * modules/yield: New file.
58656         * lib/glthread/yield.h: New file.
58657         * m4/yield.m4: New file.
58658         * MODULES.html.sh (Multithreading): Add yield.
58659
58660 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58661
58662         New module 'thread'.
58663         * modules/thread: New file.
58664         * lib/glthread/thread.h: New file.
58665         * m4/thread.m4: New file.
58666         * MODULES.html.sh (Multithreading): Add thread.
58667
58668 2008-08-17  Bruno Haible  <bruno@clisp.org>
58669
58670         * lib/glthread/lock.h: Include <stdlib.h> always.
58671         * lib/glthread/tls.h: Likewise.
58672         * lib/glthread/cond.h: Likewise.
58673
58674 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58675
58676         New module 'cond'.
58677         * modules/cond: New file.
58678         * lib/glthread/cond.h: New file.
58679         * lib/glthread/cond.c: New file.
58680         * m4/cond.m4: New file.
58681         * MODULES.html.sh (Multithreading): Add cond.
58682
58683 2008-08-16  Eric Blake  <ebb9@byu.net>
58684
58685         c-stack: fix regression on Irix 5.3 from 2008-06-21
58686         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
58687         sa_sigaction...
58688         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
58689         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
58690         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
58691         * modules/signal (Makefile.am): Use the value.
58692         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
58693         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
58694         * doc/posix-headers/signal.texi (signal.h): Document this
58695         portability issue.
58696         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
58697         Reported by Tom G. Christensen.
58698
58699 2008-08-17  Bruno Haible  <bruno@clisp.org>
58700
58701         New module 'threadlib'.
58702         * modules/threadlib: New file.
58703         * lib/glthread/threadlib.c: New file, extracted from
58704         lib/glthread/lock.c.
58705         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
58706         functions.
58707         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
58708         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
58709         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
58710         macros.
58711         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
58712         (gl_DISABLE_THREADS): Remove macro.
58713         * modules/lock (Files): Remove build-aux/config.rpath.
58714         (Depends-on): Remove havelib. Add threadlib.
58715         (configure.ac-early): Remove section.
58716         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
58717         * modules/tls (Depends-on): Remove lock. Add threadlib.
58718         (Link): New section, copied from threadlib.
58719         * MODULES.html.sh (Multithreading): Add threadlib.
58720
58721 2008-08-14  Bruno Haible  <bruno@clisp.org>
58722
58723         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
58724         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
58725         glthread_rwlock_unlock, glthread_rwlock_destroy,
58726         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
58727         glthread_recursive_lock_destroy): Define as macros always.
58728         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
58729         glthread_lock_lock.
58730         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
58731         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
58732         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
58733         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
58734         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
58735         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
58736         (glthread_recursive_lock_lock_func): Renamed from
58737         glthread_recursive_lock_lock.
58738         (glthread_recursive_lock_unlock_func): Renamed from
58739         glthread_recursive_lock_unlock.
58740         (glthread_recursive_lock_destroy_func): Renamed from
58741         glthread_recursive_lock_destroy.
58742
58743 2008-08-14  Bruno Haible  <bruno@clisp.org>
58744
58745         * lib/glthread/lock.h: Renamed from lib/lock.h.
58746         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
58747         * lib/glthread/tls.h: Renamed from lib/tls.h.
58748         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
58749         * lib/fstrcmp.c: Update includes.
58750         * lib/strsignal.c: Update includes.
58751         * modules/lock (Files, Makefile.am): Update.
58752         (Include): Change to "glthread/lock.h".
58753         * modules/tls (Files, Makefile.am): Update.
58754         (Include): Change to "glthread/tls.h".
58755         * tests/test-lock.c: Update includes.
58756         * tests/test-tls.c: Update includes.
58757         * NEWS: Mention the renamed header files.
58758
58759 2008-08-11  Jim Meyering  <meyering@redhat.com>
58760
58761         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
58762
58763 2008-08-11  Eric Blake  <ebb9@byu.net>
58764
58765         test-c-stack: avoid C99-ism
58766         * tests/test-c-stack.c (main): Fix whitespace, move declaration
58767         before statement.
58768         Reported by Alain Guibert.
58769
58770 2008-08-10  Jim Meyering  <meyering@redhat.com>
58771
58772         ensure that return value of uinttostr et al are not ignored
58773         * lib/inttostr.h (__GNUC_PREREQ): Define.
58774         (__attribute_warn_unused_result__): Define.
58775         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
58776
58777 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
58778
58779         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
58780         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
58781
58782 2008-08-07  Jim Meyering  <meyering@redhat.com>
58783
58784         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
58785
58786         * modules/mkstemp (License): Relicense under LGPLv2+.
58787         * modules/tempname (License): Likewise.
58788
58789 2008-08-06  Bruno Haible  <bruno@clisp.org>
58790
58791         * lib/poll.c (poll): Further micro-optimization.
58792
58793 2008-08-06  Jim Meyering  <meyering@redhat.com>
58794
58795         inet_pton.c: use locale-independent tolower
58796         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
58797         (inet_pton6): Use c_tolower rather than tolower.
58798         * modules/inet_pton (Depends-on): Add c-ctype.
58799
58800 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
58801
58802         * lib/poll.c (poll): Avoid division when timeout is 0, cache
58803         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
58804
58805 2008-08-06  Jim Meyering  <meyering@redhat.com>
58806
58807         * modules/inet_pton (License): Relicense under LGPLv2+.
58808
58809 2008-08-03  Bruno Haible  <bruno@clisp.org>
58810
58811         Additional non-aborting API for lock and tls.
58812         * lib/lock.h: Include <errno.h>.
58813         (glthread_lock_init): New macro/function.
58814         (gl_lock_init): Define as wrapper around glthread_lock_init.
58815         (glthread_lock_lock): New macro/function.
58816         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
58817         (glthread_lock_unlock): New macro/function.
58818         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
58819         (glthread_lock_destroy): New macro/function.
58820         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
58821         (glthread_rwlock_init): New macro/function.
58822         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
58823         (glthread_rwlock_rdlock): New macro/function.
58824         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
58825         (glthread_rwlock_wrlock): New macro/function.
58826         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
58827         (glthread_rwlock_unlock): New macro/function.
58828         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
58829         (glthread_rwlock_destroy): New macro/function.
58830         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
58831         (glthread_recursive_lock_init): New macro/function.
58832         (gl_recursive_lock_init): Define as wrapper around
58833         glthread_recursive_lock_init.
58834         (glthread_recursive_lock_lock): New macro/function.
58835         (gl_recursive_lock_lock): Define as wrapper around
58836         glthread_recursive_lock_lock.
58837         (glthread_recursive_lock_unlock): New macro/function.
58838         (gl_recursive_lock_unlock): Define as wrapper around
58839         glthread_recursive_lock_unlock.
58840         (glthread_recursive_lock_destroy): New macro/function.
58841         (gl_recursive_lock_destroy): Define as wrapper around
58842         glthread_recursive_lock_destroy.
58843         (glthread_once): New macro/function.
58844         (gl_once): Define as wrapper around glthread_once.
58845         Update function declarations.
58846         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
58847         glthread_rwlock_init. Return error code.
58848         (glthread_rwlock_rdlock_multithreaded): Renamed from
58849         glthread_rwlock_rdlock. Return error code.
58850         (glthread_rwlock_wrlock_multithreaded): Renamed from
58851         glthread_rwlock_wrlock. Return error code.
58852         (glthread_rwlock_unlock_multithreaded): Renamed from
58853         glthread_rwlock_unlock. Return error code.
58854         (glthread_rwlock_destroy_multithreaded): Renamed from
58855         glthread_rwlock_destroy. Return error code.
58856         (glthread_recursive_lock_init_multithreaded): Renamed from
58857         glthread_recursive_lock_init. Return error code.
58858         (glthread_recursive_lock_lock_multithreaded): Renamed from
58859         glthread_recursive_lock_lock. Return error code.
58860         (glthread_recursive_lock_unlock_multithreaded): Renamed from
58861         glthread_recursive_lock_unlock. Return error code.
58862         (glthread_recursive_lock_destroy_multithreaded): Renamed from
58863         glthread_recursive_lock_destroy. Return error code.
58864         (glthread_once_call): Make static.
58865         (glthread_once_multithreaded): Renamed from glthread_once.
58866         * lib/tls.h: Include <errno.h>.
58867         (glthread_tls_key_init): New macro/function.
58868         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
58869         (glthread_tls_set): New macro/function.
58870         (gl_tls_set): Define as wrapper around glthread_tls_set.
58871         (glthread_tls_key_destroy): New macro/function.
58872         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
58873         Update function declarations.
58874         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
58875         glthread_tls_get.
58876         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
58877
58878 2008-08-04  Eric Blake  <ebb9@byu.net>
58879
58880         gnumakefile: use space, not TAB, outside of targets
58881         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
58882
58883 2008-08-02  Jim Meyering  <meyering@redhat.com>
58884
58885         getdate.y: avoid locale-dependent date parsing failure
58886         In Turkish locales, getdate would fail to recognize keywords
58887         containing a lowercase "i".  The solution is not to rely on
58888         locale-sensitive case-conversion.
58889         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
58890         (lookup_word): Use c_toupper in place of toupper.
58891         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
58892         Reported by Vefa Bicakci <bicave@superonline.com> in
58893         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
58894         * modules/getdate (Depends-on): Add c-ctype.
58895
58896 2008-08-02  Bruno Haible  <bruno@clisp.org>
58897
58898         * gnulib-tool (func_import): When updating or creating a .gitignore
58899         file, prepend each added line with a slash, and ignore leading slashes
58900         from the existing lines.
58901         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58902
58903 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58904
58905         Portability fix for GNU make 3.79.1.
58906         * top/GNUmakefile: Avoid 'else COND', which older GNU make
58907         versions do not understand.
58908
58909 2008-08-01  Bruno Haible  <bruno@clisp.org>
58910
58911         Work around bug of HP-UX 10.20 cc with -0.0 literal.
58912         * tests/test-isnanf.h (zero): New variable.
58913         (main): Avoid literal -0.0f.
58914         * tests/test-isnand.h (zero): New variable.
58915         (main): Avoid literal -0.0.
58916         * tests/test-isnanl.h (zero): New variable.
58917         (main): Avoid literal -0.0L.
58918         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
58919         (test_float, test_double, test_long_double): Avoid literals -0.0f,
58920         -0.0, -0.0L.
58921         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
58922         (test_signbitd): Avoid literal -0.0.
58923         (test_signbitl): Avoid literal -0.0L.
58924         * tests/test-ceilf1.c (zero): New variable.
58925         (main): Avoid literal -0.0f.
58926         * tests/test-ceill.c (zero): New variable.
58927         (main): Avoid literal -0.0L.
58928         * tests/test-floorf1.c (zero): New variable.
58929         (main): Avoid literal -0.0f.
58930         * tests/test-floorl.c (zero): New variable.
58931         (main): Avoid literal -0.0L.
58932         * tests/test-roundf1.c (zero): New variable.
58933         (main): Avoid literal -0.0f.
58934         * tests/test-round1.c (zero): New variable.
58935         (main): Avoid literal -0.0.
58936         * tests/test-roundl.c (zero): New variable.
58937         (main): Avoid literal -0.0L.
58938         * tests/test-truncf1.c (zero): New variable.
58939         (main): Avoid literal -0.0f.
58940         * tests/test-trunc1.c (zero): New variable.
58941         (main): Avoid literal -0.0.
58942         * tests/test-truncl.c (zero): New variable.
58943         (main): Avoid literal -0.0L.
58944         * tests/test-frexp.c (zero): New variable.
58945         (main): Avoid literal -0.0.
58946         * tests/test-frexpl.c (zero): New variable.
58947         (main): Avoid literal -0.0L.
58948         * tests/test-ldexpl.c (zero): New variable.
58949         (main): Avoid literal -0.0L.
58950         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58951         (zerod, zerol): New variables.
58952         (test_function): Avoid literals -0.0, -0.0L.
58953         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58954         (zerod, zerol): New variables.
58955         (test_function): Avoid literals -0.0, -0.0L.
58956         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58957         (zerod, zerol): New variables.
58958         (test_function): Avoid literals -0.0, -0.0L.
58959         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58960         (zerod, zerol): New variables.
58961         (test_function): Avoid literals -0.0, -0.0L.
58962         * tests/test-strtod.c (zero): New variable.
58963         (main): Avoid literal -0.0.
58964         Reported by Jonathan C. Patschke <jp@centtech.com>.
58965
58966 2008-07-31  Jim Meyering  <meyering@redhat.com>
58967
58968         sha256.h: correct definition of SHA224_DIGEST_SIZE
58969         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
58970         Reported by Paulie Pena IV <paulie4@gmail.com>.
58971         Define as 224 / 8, rather than as a literal.
58972         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
58973         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
58974         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
58975
58976 2008-07-31  Bruno Haible  <bruno@clisp.org>
58977
58978         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
58979         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
58980         Reported by Jonathan Patschke <jp@centtech.com>.
58981
58982 2008-07-31  Bruno Haible  <bruno@clisp.org>
58983
58984         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
58985         Reported by Paolo Bonzini <bonzini@gnu.org>.
58986
58987 2008-07-30  Eric Blake  <ebb9@byu.net>
58988
58989         test-strtod: allow compilation without -lm
58990         * tests/test-strtod.c (main): Avoid link dependence on fabs.
58991         Reported by Dennis Clarke <blastwave@gmail.com>.
58992
58993 2008-07-28  Jim Meyering  <meyering@redhat.com>
58994
58995         bootstrap: work also when there are no .po files in po/
58996         * build-aux/bootstrap (update_po_files): Complete the change
58997         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
58998
58999 2008-07-27  Jim Meyering  <meyering@redhat.com>
59000
59001         * users.txt: Add zile.
59002
59003 2008-07-26  Ben Pfaff  <blp@gnu.org>
59004
59005         Add missing dependencies on new m4/exponent[fdl].m4 files.
59006         * modules/isnanf-nolibm: Add m4/exponentf.m4.
59007         * modules/isnand-nolibm: Add m4/exponentd.m4.
59008         * modules/isnanl-nolibm: Add m4/exponentl.m4.
59009         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
59010         m4/isnan[fdl].m4, because the macros actually used moved.
59011         Reported by Jim Meyering.
59012
59013 2008-07-14  Ben Pfaff  <blp@gnu.org>
59014
59015         Add isinf module.
59016         * lib/isinf.c: New file.
59017         * lib/math.in.h: Define isinf macro if we have decided to replace
59018         it.
59019         * m4/isinf.m4: New file.
59020         * m4/math_h.m4: Initialize and substitute variables for isinf
59021         module.
59022         * modules/isinf: New file.
59023         * modules/isinf-tests: New file.
59024         * modules/math: Add substitutions for new module.
59025         * tests/test-isinf.c: New file.
59026         * doc/posix-functions/isinf.texi: Mention new module.
59027         * MODULES.html.sh: Mention new module.
59028
59029 2008-07-14  Ben Pfaff  <blp@gnu.org>
59030
59031         Factor out some macros for use by additional modules.
59032         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
59033         exponentf.m4.
59034         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
59035         exponentd.m4.
59036         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
59037         file exponentl.m4.
59038         * m4/exponentf.m4: New file.
59039         * m4/exponentd.m4: New file.
59040         * m4/exponentl.m4: New file.
59041         * modules/isnanf: Use new file m4/exponentf.m4.
59042         * modules/isnand: Use new file m4/exponentd.m4.
59043         * modules/isnanl: Use new file m4/exponentl.m4.
59044
59045 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
59046
59047         mktime.c: normalize tp->tm_isdst value to -1/0/1.
59048         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
59049         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
59050         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
59051
59052         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
59053         readlink on platforms without PATH_MAX.
59054
59055 2008-07-21  Eric Blake  <ebb9@byu.net>
59056
59057         Warn, not fail, on stale version.
59058         * top/GNUmakefile (_curr-ver): Tone down previous patch.
59059
59060         Don't allow installation with stale devel version number.
59061         * top/GNUmakefile (_is-install-target): New macro.
59062         (_curr-ver): Forbid installation with stale version number.
59063
59064 2008-07-20  Bruno Haible  <bruno@clisp.org>
59065
59066         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
59067         TESTS_ENVIRONMENT.
59068         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
59069
59070 2008-07-20  Bruno Haible  <bruno@clisp.org>
59071
59072         * lib/c-stack.h (c_stack_action): Add documentation.
59073         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
59074
59075 2008-07-20  Bruno Haible  <bruno@clisp.org>
59076
59077         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
59078         * modules/readlink (License): Likewise.
59079
59080 2008-07-17  Eric Blake  <ebb9@byu.net>
59081
59082         * modules/c-stack (Link): Fix typo.
59083
59084         Make c-stack use libsigsegv, when available.
59085         * modules/c-stack (Depends-on): Add libsigsegv.
59086         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
59087         needed.
59088         * lib/c-stack.c (SIGSTKSZ): Define fallback.
59089         (segv_handler, overflow_handler, c_stack_action)
59090         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
59091         implementation when libsigsegv is available, but only when using
59092         the library is necessary.
59093         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
59094         comment, explaining why XSI check fails on Linux.
59095         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
59096         * tests/test-c-stack2.sh: Tweak skip message.
59097         * NEWS: Document new link-time requirements.
59098
59099 2008-07-16  Eric Blake  <ebb9@byu.net>
59100
59101         c-stack: Expose false positives when not using libsigsegv.
59102         * modules/c-stack-tests (Files): Expand test.
59103         * tests/test-c-stack.c (main): Add means to conditionally trigger
59104         non-overflow SIGSEGV.
59105         * tests/test-c-stack2.sh: New file.
59106
59107 2008-07-14  Bruno Haible  <bruno@clisp.org>
59108
59109         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
59110         Reported by Eric Blake.
59111
59112 2008-07-14  Sam Steingold  <sds@gnu.org>
59113             Bruno Haible  <bruno@clisp.org>
59114
59115         New module libsigsegv.
59116         * modules/libsigsegv: New file.
59117         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
59118         modifications.
59119         * MODULES.html.sh (Signal handling): New section.
59120
59121 2008-07-14  Bruno Haible  <bruno@clisp.org>
59122
59123         * modules/unictype/ctype-* (Description): Add the word "function".
59124         Improves the resulting doc in MODULES.html.
59125
59126 2008-07-12  Ben Pfaff  <blp@gnu.org>
59127
59128         Add longlong module.
59129         * modules/longlong: New file.
59130
59131 2008-07-12  Bruno Haible  <bruno@clisp.org>
59132
59133         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
59134         to empty.
59135
59136 2008-07-10  Ben Pfaff  <blp@gnu.org>
59137
59138         Add isnan module.
59139         * doc/posix-functions/isnan.texi: Mention new module.
59140         * lib/math.in.h: Define isnan macro if we have decided to replace
59141         it.
59142         * m4/isnan.m4: New file.
59143         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
59144         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
59145         also.
59146         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
59147         redundancy.
59148         * m4/math_h.m4: Initialize and substitute variables for isnan
59149         module.
59150         * modules/isnan: New file.
59151         * modules/isnan-tests: New file.
59152         * modules/math: Add substitutions for new module.
59153         * tests/test-isnan.c: New file.
59154         * MODULES.html.sh: Mention new module.
59155
59156 2008-07-10  Ben Pfaff  <blp@gnu.org>
59157
59158         Add isnanf module.
59159         * lib/isnanf.m4: New file.
59160         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
59161         (gl_HAVE_ISNANF_IN_LIBM): New macro.
59162         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
59163         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
59164         * modules/isnanf: New file.
59165         * modules/isnanf-tests: New file.
59166         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
59167         files.
59168         * tests/test-isnanf-nolibm.c: factored most of its contents into
59169         new file tests/test-isnanf.h.
59170         * tests/test-isnanf.h: New file.
59171         * tests/test-isnanf.c: New file.
59172         * MODULES.html.sh: Mention new module.
59173         * doc/glibc-functions/isnanf.texi: Mention new module.
59174
59175 2008-07-10  Ben Pfaff  <blp@gnu.org>
59176
59177         Add isnand module.
59178         * lib/isnand.h: New file.
59179         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
59180         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
59181         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
59182         functionality also.
59183         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
59184         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
59185         (gl_HAVE_ISNAND_IN_LIBM): New macro.
59186         * modules/isnand: New file.
59187         * modules/isnand-tests: New file.
59188         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
59189         files.
59190         * tests/test-isnand-nolibm.c: factored most of its contents into
59191         new file tests/test-isnand.h.
59192         * tests/test-isnand.h: New file.
59193         * tests/test-isnand.c: New file.
59194         * MODULES.html.sh: Mention new module.
59195
59196 2008-07-10  Ben Pfaff  <blp@gnu.org>
59197
59198         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
59199         * lib/isnand.h: Rename lib/isnand-nolibm.h.
59200         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
59201         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
59202         * modules/isnanf-nolibm: Update references to renamed files.
59203         * modules/isnand-nolibm: Likewise.
59204         * modules/isnanf-nolibm-tests: Likewise.
59205         * modules/isnand-nolibm-tests: Likewise.
59206         * lib/frexp.c: Likewise.
59207         * lib/isfinite.c: Likewise.
59208         * lib/signbitd.c: Likewise.
59209         * lib/signbitf.c: Likewise.
59210         * lib/vasnprintf.c: Likewise.
59211         * tests/test-ceilf1.c: Likewise.
59212         * tests/test-ceilf2.c: Likewise.
59213         * tests/test-floorf1.c: Likewise.
59214         * tests/test-floorf2.c: Likewise.
59215         * tests/test-frexp.c: Likewise.
59216         * tests/test-round1.c: Likewise.
59217         * tests/test-round2.c: Likewise.
59218         * tests/test-roundf1.c: Likewise.
59219         * tests/test-strtod.c: Likewise.
59220         * tests/test-trunc1.c: Likewise.
59221         * tests/test-trunc2.c: Likewise.
59222         * tests/test-truncf1.c: Likewise.
59223         * tests/test-truncf2.c: Likewise.
59224         * NEWS: Mention the renamed header files.
59225
59226 2008-07-11  Jim Meyering  <meyering@redhat.com>
59227
59228         vc-list-files: make the last-resort awk code more portable
59229         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
59230         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
59231         does not support it.
59232
59233 2008-07-10  Eric Blake  <ebb9@byu.net>
59234
59235         Work with tar's bootstrap.
59236         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
59237         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
59238         an m4 comment.
59239
59240 2008-07-09  Jim Meyering  <meyering@redhat.com>
59241
59242         posix-shell.m4: fix typo that made this test malfunction
59243         * m4/posix-shell.m4: Remove capitalization in variable name.
59244
59245 2008-07-08  Bruno Haible  <bruno@clisp.org>
59246
59247         * m4/onceonly.m4: Update comments.
59248         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59249
59250 2008-07-04  Jim Meyering  <meyering@redhat.com>
59251
59252         * users.txt: Add vc-dwim.
59253         (bison, coreutils): Use the gitweb URL.
59254
59255 2008-07-03  Jim Meyering  <meyering@redhat.com>
59256
59257         * users.txt: Add libffcall.  From Sam Steingold.
59258
59259 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
59260
59261         getdate.y: do not ignore TZ with relative day, month or year offset
59262         * lib/getdate.y (get_date): Move the tz-handling block to follow the
59263         relative-date-handling, since otherwise, the latter would clobber the
59264         sole output (an updated Start value) of the tz-handling block.
59265         * tests/test-getdate.c: Tests for the fix
59266
59267 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59268
59269         Recognize 'foo_LIBRARIES += libgnu.a'.
59270         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
59271         makefile snippet has already specified an installation location,
59272         also using '+='.
59273
59274 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
59275
59276         getdate.y: factor out common actions
59277         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
59278         Use them in place of open-coded actions.
59279
59280 2008-07-01  Simon Josefsson  <simon@josefsson.org>
59281
59282         Add self-test for getdate module.
59283         * modules/getdate-tests: New file.
59284         * tests/test-getdate.c: New file.
59285
59286 2008-06-29  Bruno Haible  <bruno@clisp.org>
59287
59288         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
59289         .gitignore.
59290         Reported by Sylvain Beucler <beuc@beuc.net>.
59291
59292 2008-06-29  Bruno Haible  <bruno@clisp.org>
59293
59294         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
59295         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
59296
59297 2008-06-29  Bruno Haible  <bruno@clisp.org>
59298
59299         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
59300         EXTRA_DIST.
59301         Reported by Sylvain Beucler <beuc@beuc.net>.
59302
59303 2008-06-26  Jim Meyering  <meyering@redhat.com>
59304
59305         make several modules depend on the "open" module
59306         This provides slightly increased consistency when opening-for-write
59307         the name of a non-directory spelled with a trailing slash.
59308         * modules/chdir-safer: Likewise.
59309         * modules/chown: Likewise.
59310         * modules/clean-temp: Likewise.
59311         * modules/copy-file: Likewise.
59312         * modules/fchdir: Likewise.
59313         * modules/fcntl-safer: Likewise.
59314         * modules/pipe: Likewise.
59315         * modules/utime: Likewise.
59316         Prompted by Eric Blake and Bruno Haible.
59317
59318 2008-06-24  Andreas Schwab  <schwab@suse.de>
59319
59320         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
59321         literals can be used as initializers for global variables.
59322
59323 2008-06-23  Eric Blake  <ebb9@byu.net>
59324
59325         Make gnulib-cache.m4 easier to diff.
59326         * gnulib-tool (func_import): Allow newlines when reading cached
59327         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
59328
59329 2008-06-23  Bruno Haible  <bruno@clisp.org>
59330
59331         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
59332         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
59333         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
59334         m4/signalblocking.m4.
59335         (gl_PREREQ_SIGACTION): Don't invoke it.
59336         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
59337         gl_PREREQ_SIG_HANDLER_H.
59338         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59339         Don't check for sigaction here.
59340
59341 2008-06-23  Bruno Haible  <bruno@clisp.org>
59342
59343         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
59344         (install_handlers): Don't set the SA_RESETHAND flag.
59345
59346 2008-06-23  Bruno Haible  <bruno@clisp.org>
59347
59348         * m4/sigaction.m4: Comment fixes.
59349         * lib/signal.in.h: Likewise.
59350
59351 2008-06-23  Eric Blake  <ebb9@byu.net>
59352
59353         Fix typo.
59354         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
59355
59356         Avoid SA_ namespace.
59357         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
59358         Reported by Ralf Wildenhues.
59359
59360         Avoid test failure due to SA_RESTORER.
59361         * tests/test-sigaction.c (SA_MASK): New macro.
59362         (main): Avoid failing due to extension flags being set.
59363         Reported by Jim Meyering.
59364
59365         Revert use of sig-handler.h in sigprocmask.c.
59366         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
59367         it requires the existence of struct sigaction.
59368         * lib/sigprocmask.c (handler_t): Restore typedef.
59369         (rpl_signal, old_handlers): Use local type.
59370
59371 2008-06-22  Bruno Haible  <bruno@clisp.org>
59372
59373         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
59374         conditionally.
59375         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59376
59377 2008-06-22  Bruno Haible  <bruno@clisp.org>
59378
59379         * doc/posix-functions/siginterrupt.texi: Move note.
59380
59381         * lib/signal.in.h (SA_RESTART): New macro.
59382         * lib/sigaction.c: Update comment.
59383
59384         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
59385
59386         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
59387         (gl_PREREQ_SIGPROCMASK): Invoke it.
59388         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
59389
59390         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
59391
59392         * lib/sigprocmask.c: Update a comment.
59393
59394 2008-06-21  Eric Blake  <ebb9@byu.net>
59395
59396         Use sigaction module rather than signal().
59397         * modules/c-stack (Depends-on): Add sigaction.
59398         * modules/fatal-signal (Depends-on): Likewise.
59399         * modules/nanosleep (Depends-on): Likewise.
59400         * modules/sigprocmask (Files): Add sig-handler.h.
59401         * modules/sigaction (Files): Likewise.
59402         * lib/sig-handler.h (get_handler): New file, suggested by Paul
59403         Eggert.
59404         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
59405         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
59406         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
59407         (init_fatal_signals): Likewise.
59408         * lib/nanosleep.c (rpl_nanosleep): Likewise.
59409         (siginterrupt): Delete fallback.
59410         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
59411         instead.
59412         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
59413         siginterrupt.
59414
59415         New module sigaction, for mingw.
59416         * modules/sigaction: New module...
59417         * modules/sigaction-tests: ...and its test.
59418         * m4/sigaction.m4: New file.
59419         * lib/sigaction.c: Likewise.
59420         * tests/test-sigaction.c: Likewise.
59421         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
59422         * modules/signal (Makefile.am): Likewise.
59423         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
59424         needed.
59425         * doc/posix-headers/signal.texi (signal.h): Mention provided
59426         types.
59427         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
59428         that sigaction is preferable.
59429         * doc/posix-functions/sigaction.texi (sigaction): Mention new
59430         module.
59431         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59432         sigaction.
59433
59434         Improve robustness of sigprocmask by overriding signal.
59435         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
59436         is in use.
59437         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
59438         (SIGKILL, SIGSTOP): Provide fallbacks.
59439         (rpl_signal): Implement.
59440         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
59441         signal can be called inside handlers.
59442
59443         Fix nanosleep module on mingw.
59444         * modules/nanosleep (Depends-on): Add sys_select.
59445         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
59446
59447         Fix licensing of sigprocmask.
59448         * modules/raise (License): Relicense as LGPL.
59449
59450 2008-06-21  Bruno Haible  <bruno@clisp.org>
59451
59452         * lib/propername.c (proper_name_utf8): Don't use the transliterated
59453         result if it contains question marks.
59454         Reported by Michael Geng <linux@michaelgeng.de>.
59455
59456 2008-06-19  Bruno Haible  <bruno@clisp.org>
59457
59458         Fix CVS-ism.
59459         * doc/gnulib.texi: Include updated-stamp.texi.
59460         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
59461         (updated-stamp.texi): New rule.
59462         (gnulib.info): Depend on it.
59463         * doc/.gitignore: Add updated-stamp.texi.
59464         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
59465
59466 2008-06-19  Bruno Haible  <bruno@clisp.org>
59467
59468         * doc/Makefile (gnulib.info): Update and simplify dependencies.
59469         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59470
59471 2008-06-19  Eric Blake  <ebb9@byu.net>
59472
59473         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
59474         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
59475         Reported by Stepan Kasal.
59476
59477 2008-06-18  Bruno Haible  <bruno@clisp.org>
59478
59479         * lib/fatal-signal.c (init_fatal_signals): Add comment.
59480         Reported by Eric Blake.
59481
59482 2008-06-18  Eric Blake  <ebb9@byu.net>
59483
59484         Work around cygwin 1.5.25 strsignal bug.
59485         * tests/test-strsignal.c: Allow for const char *.
59486         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
59487
59488 2008-06-18  Simon Josefsson  <simon@josefsson.org>
59489
59490         * users.txt: Update URL to article and add author/date
59491         information.
59492
59493 2008-06-17  Bruno Haible  <bruno@clisp.org>
59494
59495         New macro gl_DISABLE_THREADS.
59496         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
59497         if the user did not pass --enable-threads or --disable-threads option.
59498         (gl_DISABLE_THREADS): New macro.
59499         Reported by Eric Blake <ebb9@byu.net>.
59500
59501 2008-06-17  Bruno Haible  <bruno@clisp.org>
59502
59503         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
59504         when the macro ignores it.
59505         Based on a patch by Eric Blake <ebb9@byu.net>.
59506
59507 2008-06-17  Bruno Haible  <bruno@clisp.org>
59508
59509         * modules/tls (License): Change to LGPLv2+.
59510         Reported by Eric Blake.
59511
59512 2008-06-17  Eric Blake  <ebb9@byu.net>
59513
59514         Simplify c-stack prerequisites.
59515         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
59516         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
59517         no longer requires <ucontext.h> to exist.  Optimize setrlimit
59518         check.
59519         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
59520         <sys/resource.h>.
59521
59522         Move c-stack test into testsuite.
59523         * modules/c-stack-tests: New file.
59524         * lib/c-stack.c [DEBUG]: Move test program...
59525         * tests/test-c-stack.c: ...into this new file.  Skip rather than
59526         fail test if sigaltstack is lacking.
59527         * tests/test-c-stack.sh: New driver file.
59528
59529 2008-06-16  Eric Blake  <ebb9@byu.net>
59530
59531         Use raise module consistently.
59532         * modules/fatal-signal (Depends-on): Add raise.
59533         * modules/sigprocmask (Depends-on): Likewise.
59534         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
59535         * lib/sigprocmask.c (sigprocmask): Likewise.
59536         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59537         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
59538
59539         Fix compliance bug in sigpending.
59540         * lib/sigprocmask.c (sigpending): Return pending array via
59541         parameter, not return value.
59542
59543 2008-06-14  Eric Blake  <ebb9@byu.net>
59544
59545         Improve obstack-printf test code.
59546         * tests/test-obstack-printf.c (test_function): Fix comment, and
59547         simplify usage of obstack_* in macros.  Add a test for coverage.
59548         Reported by Bruno Haible.
59549
59550 2008-06-14  Bruno Haible  <bruno@clisp.org>
59551
59552         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
59553         array size as a constant, not as a const variable.
59554         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
59555         AC_USE_SYSTEM_EXTENSIONS.
59556         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
59557         Test whether the obstack_printf function actually exists.
59558         * modules/obstack-printf (Depends-on): Add extensions.
59559         (Include): Remove obstack.h.
59560         * modules/obstack-printf-posix (Depends-on): Add extensions.
59561         (Include): Remove obstack.h.
59562
59563 2008-06-13  Eric Blake  <ebb9@byu.net>
59564
59565         Add obstack-printf and obstack-printf-posix modules.
59566         * modules/obstack-printf: New file.
59567         * modules/obstack-printf-posix: Likewise.
59568         * MODULES.html.sh (Misc): Mention them.
59569         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
59570         Likewise.
59571         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
59572         Likewise.
59573         * modules/stdio (Makefile.am): Accomodate new modules.
59574         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59575         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
59576         Declare.
59577         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
59578         functions.
59579         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
59580         (gl_REPLACE_OBSTACK_PRINTF): New macros
59581         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
59582         * tests/test-obstack-printf.c: New file.
59583         * modules/obstack-printf-tests: Likewise.
59584         * modules/obstack-printf-posix-tests: Likewise.
59585
59586 2008-06-11  Bruno Haible  <bruno@clisp.org>
59587
59588         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
59589         * lib/open.c: Include errno.h.
59590         (open): Fail when attempting to write to a file that has a trailing
59591         slash.
59592         * tests/test-open.c (main): Test against trailing slash bug.
59593         * doc/posix-functions/open.texi: Mention the trailing slash bug.
59594
59595 2008-06-10  Bruno Haible  <bruno@clisp.org>
59596
59597         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
59598         for $? to work inside the trap command, with various /bin/sh-s.
59599         * tests/test-vc-list-files-cvs.sh: Likewise.
59600
59601 2008-06-10  Bruno Haible  <bruno@clisp.org>
59602
59603         * lib/acl-internal.h: Don't include gettext.h here.
59604         * lib/set-mode-acl.c: Include gettext.h here.
59605         * lib/copy-acl.c: Likewise.
59606
59607 2008-06-10  Bruno Haible  <bruno@clisp.org>
59608
59609         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
59610         * lib/wait-process.c (wait_subprocess): Likewise.
59611         * lib/execute.h (execute): Add termsigp argument.
59612         * lib/execute.c (execute): Likewise.
59613         * lib/csharpcomp.c (compile_csharp_using_pnet,
59614         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
59615         * lib/csharpexec.c (execute_csharp_using_pnet,
59616         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
59617         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
59618         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
59619         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
59620         is_jikes_present): Update.
59621         * lib/javaexec.c (execute_java_class): Update.
59622         * lib/javaversion.c (execute_and_read_line): Update.
59623         * NEWS: Document the changes.
59624         Reported by Eric Blake.
59625
59626 2008-06-10  Eric Blake  <ebb9@byu.net>
59627
59628         Add missing include.
59629         * tests/test-strstr.c (includes): Add <signal.h>.
59630         * tests/test-strcasestr.c (includes): Likewise.
59631         * tests/test-memmem.c (includes): Likewise.
59632
59633 2008-06-10  Bruno Haible  <bruno@clisp.org>
59634
59635         * lib/wait-process.c (wait_subprocess): Add an assertion.
59636
59637 2008-06-10  Bruno Haible  <bruno@clisp.org>
59638
59639         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
59640
59641 2008-06-10  Bruno Haible  <bruno@clisp.org>
59642
59643         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
59644         using alarm().
59645         * tests/test-strcasestr.c (main): Likewise.
59646         * tests/test-strstr.c (main): Likewise.
59647
59648 2008-06-09  Bruno Haible  <bruno@clisp.org>
59649
59650         Work around the Solaris 10 ACE ACLs ABI change.
59651         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
59652         declare if ACL_NO_TRIVIAL is present.
59653         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
59654         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
59655         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
59656         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
59657         define if ACL_NO_TRIVIAL is present.
59658         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
59659         and use the current ABI.
59660         (file_has_acl): Use same #if condition as elsewhere.
59661         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
59662         in use, and use the current ABI.
59663         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
59664         Reported by Jim Meyering.
59665
59666 2008-06-09  Eric Blake  <ebb9@byu.net>
59667
59668         Work around environments that (stupidly) ignore SIGALRM.
59669         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
59670         before using alarm().
59671         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59672         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59673         Reported by Ian Beckwith <ianb@erislabs.net>.
59674
59675         Produce autobuild blurb earlier in log.
59676         * modules/autobuild (configure.ac-early): Move AB_INIT here.
59677
59678 2008-06-09  Jim Meyering  <meyering@redhat.com>
59679         and Ondřej Vašík  <ovasik@redhat.com>
59680
59681         utimens.c: correct kernel bug work-around
59682         Ondřej Vašík found that the invalid return value of 280 indicates
59683         failure, not success, and the kernel bug we're trying to work
59684         around affects not just the utimensat call, but also the fallback
59685         futimens call.
59686         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
59687         not success.
59688         [HAVE_FUTIMENS]: Use the same work-around, here.
59689
59690 2008-06-09  Jim Meyering  <meyering@redhat.com>
59691
59692         add more guards around definition of ACE_-related code
59693         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
59694         ALLOW and ACE_OWNER are also defined.
59695
59696 2008-06-08  Bruno Haible  <bruno@clisp.org>
59697
59698         * lib/acl-internal.h: Add me as co-author.
59699         * lib/file-has-acl.c: Likewise.
59700         * lib/set-mode-acl.c: Likewise.
59701         * lib/copy-acl.c: Likewise.
59702
59703 2008-06-08  Bruno Haible  <bruno@clisp.org>
59704
59705         Add support for AIX ACLs.
59706         * lib/acl-internal.h (acl_nontrivial): New declaration.
59707         * lib/file-has-acl.c (acl_nontrivial): New function.
59708         (file_has_acl): Add implementation using AIX 4 ACL API.
59709         * lib/set-mode-acl.c (qset_acl): Likewise.
59710         * lib/copy-acl.c (qcopy_acl): Likewise.
59711
59712 2008-06-08  Bruno Haible  <bruno@clisp.org>
59713
59714         Add support for HP-UX 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 HP-UX 11 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 Cygwin ACLs.
59724         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
59725         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
59726         the chmod_or_fchmod call.
59727         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
59728
59729 2008-06-08  Bruno Haible  <bruno@clisp.org>
59730
59731         Fix bug with setuid modes in Solaris 10+ code.
59732         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
59733         succeeded, when the mode contains some special bits.
59734
59735 2008-06-08  Bruno Haible  <bruno@clisp.org>
59736
59737         Add support for Solaris 7..10 ACLs.
59738         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
59739         declarations.
59740         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
59741         functions.
59742         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
59743         * lib/set-mode-acl.c (qset_acl): Likewise.
59744         * lib/copy-acl.c (qcopy_acl): Likewise.
59745
59746 2008-06-08  Bruno Haible  <bruno@clisp.org>
59747
59748         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
59749         declaration.
59750         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
59751         (acl_access_nontrivial): Remove MacOS X case.
59752         (file_has_acl): Use acl_extended_nontrivial.
59753         * lib/copy-acl.c (qcopy_acl): Likewise.
59754
59755 2008-06-08  Bruno Haible  <bruno@clisp.org>
59756
59757         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
59758
59759 2008-06-08  Jim Meyering  <meyering@redhat.com>
59760
59761         * modules/acl (Maintainer): Add Bruno Haible.
59762
59763 2008-06-07  Bruno Haible  <bruno@clisp.org>
59764
59765         Improve support for Tru64 ACLs.
59766         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
59767         ACL on OSF/1.
59768
59769 2008-06-07  Bruno Haible  <bruno@clisp.org>
59770
59771         Add support for MacOS X ACLs.
59772         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
59773         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
59774         * lib/set-mode-acl.c (qset_acl): Likewise.
59775         * lib/copy-acl.c (qcopy_acl): Likewise.
59776
59777 2008-06-07  Bruno Haible  <bruno@clisp.org>
59778
59779         Fix memory leak introduced on 2008-05-22.
59780         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
59781         use.
59782
59783 2008-06-07  Bruno Haible  <bruno@clisp.org>
59784
59785         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
59786         to construct an empty ACL.
59787
59788 2008-06-07  Bruno Haible  <bruno@clisp.org>
59789
59790         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
59791         precisely.
59792         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
59793
59794 2008-06-07  Bruno Haible  <bruno@clisp.org>
59795
59796         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
59797         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
59798
59799 2008-06-07  Bruno Haible  <bruno@clisp.org>
59800
59801         * doc/posix-functions/_setjmp.texi: Explain the use of this function
59802         regardless of POSIX.
59803         * doc/posix-functions/_longjmp.texi: Likewise.
59804         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
59805         SystemV platform in this case.
59806
59807 2008-06-06  Eric Blake  <ebb9@byu.net>
59808
59809         Document abort() bugs.
59810         * doc/posix-functions/abort.texi (abort): Mention anomalies.
59811
59812         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
59813         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
59814         sigsetjmp.
59815         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
59816         siglongjmp, but only as a macro.
59817         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
59818         is obsolete.
59819         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
59820
59821         Tweak documentation to cover cygwin argz bugs.
59822         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
59823         argz bug fix; no code change needed since no cygwin releases
59824         occurred between the last fix and the bug being tested.
59825         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
59826         module and recently fixed cygwin bugs.
59827         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
59828         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
59829         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
59830         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
59831         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
59832         Likewise.
59833         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
59834         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
59835         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
59836         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
59837         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
59838         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
59839         Likewise.
59840
59841         Avoid gcc warning on cygwin.
59842         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
59843         !ACL_NO_TRIVIAL]: Avoid unused variable.
59844
59845 2008-06-05  Eric Blake  <ebb9@byu.net>
59846
59847         Be tolerant of UNKNOWN version in gnulib-tool test dir.
59848         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
59849         git-version-gen fails to come up with a version.
59850         Reported by Simon Josefsson.
59851
59852 2008-06-05  Jim Meyering  <meyering@redhat.com>
59853             Paul Eggert  <eggert@cs.ucla.edu>
59854
59855         utimens.c: work around a probable Linux kernel bug
59856         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
59857         appears to be a kernel bug that causes utimensat to return 280
59858         instead of 0, indicating success.
59859
59860 2008-06-04  Bruno Haible  <bruno@clisp.org>
59861
59862         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
59863         2008-06-01 commit.
59864
59865 2008-06-04  Bruno Haible  <bruno@clisp.org>
59866
59867         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
59868         * lib/file-has-acl.c (acl_access_nontrivial): New function.
59869         (file_has_acl): Use it. Save errno afterwards.
59870         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
59871
59872 2008-06-03  Bruno Haible  <bruno@clisp.org>
59873
59874         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
59875         draft code. Simplify #ifs.
59876         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
59877         Put Solaris code after POSIX-draft code. Fix comments regarding
59878         Solaris 10, HP-UX. Mention Cygwin.
59879         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
59880
59881 2008-06-03  Eric Blake  <ebb9@byu.net>
59882
59883         Provide fallback for older kernels.
59884         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
59885         Provide runtime fallback if kernel lacks support.
59886         Reported by Mike Frysinger.
59887
59888 2008-06-02  Bruno Haible  <bruno@clisp.org>
59889
59890         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
59891         it exists.
59892
59893 2008-06-02  Bruno Haible  <bruno@clisp.org>
59894
59895         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
59896         * lib/copy-acl.c (qcopy_acl): Update comment.
59897
59898 2008-06-02  Bruno Haible  <bruno@clisp.org>
59899
59900         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
59901         like ACL APIs.
59902
59903 2008-06-02  Bruno Haible  <bruno@clisp.org>
59904
59905         * tests/test-file-has-acl.sh: Use different code for Cygwin.
59906         * tests/test-set-mode-acl.sh: Likewise.
59907         * tests/test-copy-acl.sh: Likewise.
59908         * tests/test-copy-file.sh: Likewise.
59909
59910 2008-06-02  Bruno Haible  <bruno@clisp.org>
59911
59912         * tests/test-file-has-acl.sh: Remove unused code.
59913
59914 2008-06-01  Bruno Haible  <bruno@clisp.org>
59915
59916         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
59917         (copy_acl): Just a wrapper around qcopy_acl that emits the error
59918         messages.
59919         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
59920
59921 2008-06-01  Bruno Haible  <bruno@clisp.org>
59922
59923         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
59924         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
59925         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
59926         APIs.
59927         * modules/acl-tests (configure.ac): Remove tests now contained in
59928         m4/acl.m4.
59929
59930 2008-06-02  Jim Meyering  <meyering@redhat.com>
59931
59932         announce-gen: use a better key-server host name
59933         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
59934         it may be more consistently reliable.  Suggested by Werner Koch
59935         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
59936
59937 2008-06-01  Bruno Haible  <bruno@clisp.org>
59938
59939         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
59940         Reported by Voroskoi Andras <voroskoi@gmail.com>.
59941
59942 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
59943
59944         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
59945
59946 2008-06-01  Bruno Haible  <bruno@clisp.org>
59947
59948         New ACL tests.
59949         * tests/test-file-has-acl.sh: New file.
59950         * tests/test-file-has-acl.c: New file.
59951         * tests/test-set-mode-acl.sh: New file.
59952         * tests/test-set-mode-acl.c: New file.
59953         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
59954         * tests/test-copy-acl.c: New file.
59955         * modules/acl-tests: New file, based on modules/copy-file-tests.
59956         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
59957         (Depends-on): Add acl-tests.
59958         (configure.ac): Remove checks.
59959         (Makefile.am): Don't create test-sameacls program here any more.
59960
59961 2008-06-01  Bruno Haible  <bruno@clisp.org>
59962
59963         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
59964         * tests/test-sameacls.c: Include progname.h.
59965         (main): Invoke set_program_name. Portability fixes for MacOS X,
59966         Solaris, HP-UX.
59967
59968 2008-06-01  Bruno Haible  <bruno@clisp.org>
59969
59970         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
59971         function.
59972         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
59973
59974 2008-06-01  Bruno Haible  <bruno@clisp.org>
59975
59976         * modules/rpmatch (Depends-on): Add strdup.
59977
59978 2008-06-01  Bruno Haible  <bruno@clisp.org>
59979
59980         * lib/pipe.c: Include unistd-safer.h.
59981         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
59982         * modules/pipe (Depends-on): Add unistd-safer.
59983
59984 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59985
59986         * modules/autobuild (configure.ac): Call AB_INIT.
59987
59988 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59989
59990         * tests/test-getaddrinfo.c: Don't print debug messages by default.
59991         Suggested by Bruno Haible <bruno@clisp.org>.
59992
59993 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59994
59995         * tests/test-base64.c: Cast size_t to unsigned long when invoking
59996         printf.  Use %lu instead of %d.  Reported by Bruno Haible
59997         <bruno@clisp.org>.
59998
59999 2008-05-29  Eric Blake  <ebb9@byu.net>
60000
60001         Prefer new POSIX 200x interfaces over futimesat.
60002         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
60003         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
60004         when available.
60005         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
60006
60007 2008-05-28  Bruno Haible  <bruno@clisp.org>
60008
60009         * modules/stpcpy (License): Change to LGPLv2+.
60010         Requested by David Lutterkort <dlutter@redhat.com>.
60011
60012 2008-05-27  Bruno Haible  <bruno@clisp.org>
60013
60014         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
60015         current mingw.
60016         Reported by Jose E. Marchesi <jemarch@gnu.org>.
60017
60018 2008-05-27  Bruno Haible  <bruno@clisp.org>
60019
60020         * modules/iconv_open (Link): New section, from module 'iconv'.
60021         * modules/striconv (Link): Likewise.
60022         * modules/striconveh (Link): Likewise.
60023         * modules/xstriconv (Link): Likewise.
60024         * modules/unicodeio (Link): Likewise.
60025         * modules/propername (Link): Likewise.
60026         Reported by Jim Meyering.
60027
60028 2008-05-26  Jim Meyering  <meyering@redhat.com>
60029
60030         sha256: do not artificially restrict buffer length to be < 2^32
60031         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
60032         uint32_t to size_t.
60033         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
60034         to match.
60035
60036         avoid unaligned access errors, e.g., on sparc
60037         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
60038         direct access through a possibly-unaligned uint64* pointer.
60039         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
60040         direct access through a possibly-unaligned uint32* pointer.
60041         Prompted by this patch from Tom "spot" Callaway:
60042         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
60043
60044         sha512.c: fix typo in comment
60045         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
60046
60047 2008-05-25  Bruno Haible  <bruno@clisp.org>
60048
60049         * lib/set-mode-acl.c: Renamed from lib/acl.c.
60050         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
60051         (Makefile.am): Update lib_SOURCES.
60052
60053 2008-05-25  Bruno Haible  <bruno@clisp.org>
60054
60055         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
60056
60057 2008-05-25  Jim Meyering  <meyering@redhat.com>
60058
60059         useless-if-before-free: freed expr may have white-space differences
60060         * build-aux/useless-if-before-free: Recognize cases in which the
60061         freed expression differs from the tested one in embedded white
60062         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
60063         $1 was used, so we can't make any regexp shy.  Improved tests now
60064         detect this.
60065
60066         useless-if-before-free: accept white space in the expression.
60067         * build-aux/useless-if-before-free: For now, any white space
60068         in the expression must be identical in the free argument.
60069
60070         useless-if-before-free: efficiency tweak
60071         * build-aux/useless-if-before-free: Make the expression-matching
60072         regexp "shy".
60073         Make the *outer* regexp shy, not the expr-matching one.
60074
60075         update code-in-comment to accept cast of free arg
60076         * build-aux/useless-if-before-free: Update regexp.
60077
60078 2008-05-25  Bruno Haible  <bruno@clisp.org>
60079
60080         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
60081         * modules/copy-file-tests (Files, Makefile.am): Update.
60082         * tests/test-copy-file.c (func_test_copy): Update.
60083
60084 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
60085
60086         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
60087
60088 2008-05-23  Bruno Haible  <bruno@clisp.org>
60089
60090         Improve support for ACLs on OSF/1.
60091         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
60092         Remove fallback for unknown flavors of ACLs.
60093
60094 2008-05-22  Bruno Haible  <bruno@clisp.org>
60095
60096         Add support for ACLs on OSF/1.
60097         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
60098         replacements.
60099         (acl_free_text): New macro fallback.
60100         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
60101         acl_free.
60102         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
60103         acl_free_text function. Require AC_C_INLINE.
60104
60105 2008-05-22  Bruno Haible  <bruno@clisp.org>
60106
60107         Make copy_acl work on MacOS X 10.5.
60108         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
60109         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
60110         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
60111         If MODE_INSIDE_ACL, don't assume that every system has the same text
60112         representation for ACLs as FreeBSD.
60113         * lib/copy-acl.c (copy_acl): Add support for platforms with
60114         !MODE_INSIDE_ACL.
60115         * lib/file-has-acl.c (file_has_acl): Likewise.
60116         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
60117         FreeBSD, MacOS X, or IRIX, respectively.
60118
60119 2008-05-22  Bruno Haible  <bruno@clisp.org>
60120
60121         * lib/acl.h: Don't include <sys/acl.h>.
60122         (GETACLCNT): Move fallback to lib/acl-internal.h.
60123         * lib/acl-internal.h: Include <sys/acl.h> here.
60124         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
60125
60126 2008-05-22  Bruno Haible  <bruno@clisp.org>
60127
60128         Split off copy_acl function to separate file.
60129         * lib/copy-acl.c: New file, extracted from lib/acl.c.
60130         * lib/acl.c (copy_acl): Moved function to separate file.
60131         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
60132         * modules/acl (Files): Add lib/copy-acl.c.
60133         (Makefiles.am): Augment lib_SOURCES.
60134
60135 2008-05-22  Bruno Haible  <bruno@clisp.org>
60136
60137         * modules/copy-file-tests: New file.
60138         * tests/test-copy-file.sh: New file.
60139         * tests/test-copy-file.c: New file.
60140         * tests/test-copy-file-sameacls.c: New file.
60141
60142 2008-05-22  Eric Blake  <ebb9@byu.net>
60143
60144         Avoid gcc warning.
60145         * tests/test-memcmp.c (main): Pass NULL indirectly.
60146
60147 2008-05-21  Bruno Haible  <bruno@clisp.org>
60148
60149         Add reference doc about ACLs.
60150         * doc/acl-resources.txt: New file.
60151         * doc/acl-cygwin.txt: New file.
60152
60153 2008-05-21  Bruno Haible  <bruno@clisp.org>
60154
60155         Avoid one more warning from gcc.
60156         * lib/vasnprintf.c (IF_LINT): Update comments.
60157         (VASNPRINTF): Use it also for the 'prefix' array initializer.
60158
60159 2008-05-21  Jim Meyering  <meyering@redhat.com>
60160
60161         avoid a warning from gcc
60162         * lib/vasnprintf.c (IF_LINT): Define.
60163         (scale10_round_decimal_long_double):
60164         Use it to avoid a "may be used uninitialized" warning.
60165         (scale10_round_decimal_double): Likewise.
60166
60167 2008-05-21  Simon Josefsson  <simon@josefsson.org>
60168
60169         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
60170         declared.
60171
60172 2008-05-20  Bruno Haible  <bruno@clisp.org>
60173
60174         * tests/test-memcmp.c (main): Test also the sign of the result. Test
60175         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
60176
60177 2008-05-20  Simon Josefsson  <simon@josefsson.org>
60178
60179         * modules/memcmp-tests: New file.
60180         * tests/test-memcmp.c: New file.
60181
60182 2008-05-19  Bruno Haible  <bruno@clisp.org>
60183
60184         * modules/propername (Notice, configure.ac): Put quoted "..." into
60185         --keyword option.
60186         * lib/propername.h: Update comments accordingly.
60187         Reported by Eric Blake.
60188
60189 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
60190
60191         * modules/getpass-gnu (Depends-on): Add fseeko.
60192
60193 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60194
60195         * modules/base64-tests: New file.
60196
60197 2008-05-19  Bo Borgerson <gigabo@gmail.com>
60198
60199         * lib/base64.c (base64_decode_ctx): If a decode context structure
60200         was passed in use it to ignore newlines.  If a context structure
60201         was _not_ passed in, continue to treat newlines as garbage (this
60202         is the historical behavior).  Formerly base64_decode.
60203         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60204         takes a decode context structure.
60205         * lib/base64.h (base64_decode): Macro for four-argument calls.
60206         (base64_decode_alloc): Likewise.
60207         * lib/base64.c (base64_decode_ctx): If a decode context structure
60208         was passed in use it to ignore newlines.  If a context structure
60209         was _not_ passed in, continue to treat newlines as garbage (this
60210         is the historical behavior).  Formerly base64_decode.
60211         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60212         takes a decode context structure.
60213         * lib/base64.h (base64_decode): Macro for four-argument calls.
60214         (base64_decode_alloc): Likewise.
60215
60216 2008-05-19  Jim Meyering  <meyering@redhat.com>
60217
60218         avoid a warning from gcc
60219         * lib/trim.c (IF_LINT): Define.
60220         (trim2): Use it to avoid a "may be used uninitialized" warning.
60221
60222         Fix doc typo.
60223         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
60224
60225 2008-05-19  Bruno Haible  <bruno@clisp.org>
60226
60227         * doc/glibc-functions/getpass.texi: Document limits of other
60228         implementations.
60229
60230 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60231             Bruno Haible <bruno@clisp.org>
60232
60233         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
60234
60235 2008-05-18  Bruno Haible  <bruno@clisp.org>
60236
60237         * modules/propername: New file, from GNU gettext.
60238         * lib/propername.h: New file, from GNU gettext.
60239         * lib/propername.c: New file, from GNU gettext.
60240         * MODULES.html.sh (Internationalization functions): Add propername.
60241
60242 2008-05-16  Jim Meyering  <meyering@redhat.com>
60243             Bruno Haible  <bruno@clisp.org>
60244
60245         Avoid some warnings from "gcc -Wshadow".
60246         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
60247
60248 2008-05-15  Eric Blake  <ebb9@byu.net>
60249
60250         Extend previous patch to cygwin 1.7.0.
60251         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
60252         fast implementation in cygwin >= 1.7.0.
60253         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60254         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60255
60256 2008-05-15  Bruno Haible  <bruno@clisp.org>
60257
60258         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
60259         implementation in glibc >= 2.9.
60260         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60261         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60262
60263 2008-05-15  Bruno Haible  <bruno@clisp.org>
60264
60265         * MODULES.html.sh (Internationalization functions): Remove linebreak.
60266         (Unicode string functions): Add unilbrk/*.
60267         Reported by Karl Berry.
60268
60269 2008-05-15  Eric Blake  <ebb9@byu.net>
60270
60271         Fix violation of <stdbool.h> replacement in regex.
60272         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
60273         * lib/regexec.c (re_search_internal): Likewise.
60274         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
60275
60276 2008-05-15  Jim Meyering  <meyering@redhat.com>
60277
60278         avoid distracting test output when git or cvs is not found
60279         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
60280         * tests/test-vc-list-files-git.sh: Likewise.
60281
60282 2008-05-15  Eric Blake  <ebb9@byu.net>
60283
60284         Glibc finally accepted the memmem speedup code, bugzilla #5514.
60285         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
60286         glibc version.
60287         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60288         * doc/posix-functions/strstr.texi (strstr): Likewise.
60289         * lib/str-two-way.h (MAX): Sychronize with glibc.
60290
60291 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
60292
60293         * lib/regcomp.c (optimize_utf8): Add a note on why we test
60294         opr.ctx_type.
60295         (calc_first): Initialize constraint field.
60296         (duplicate_node_closure): Use it instead of special casing ANCHORS.
60297         Fix grammar.
60298         (duplicate_node): Merge constraint field for all node types.
60299         (calc_eclosure_iter): Look at constraint field for all node types.
60300         * lib/regex_internal.c (create_cd_newstate): Don't look at
60301         opr.ctx_type.
60302
60303 2008-05-14  Bruno Haible  <bruno@clisp.org>
60304
60305         Help GCC to do better code generation.
60306         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
60307         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
60308         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
60309         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
60310         Declare with attribute 'malloc' if supported.
60311
60312 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
60313
60314         use "echo STR|wc -c" rather than unportable "expr length STR"
60315         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
60316         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
60317
60318 2008-05-14  Jim Meyering  <meyering@redhat.com>
60319
60320         use dd ibs=$n count=1 ... rather than less-portable head -c$n
60321         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
60322         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
60323         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
60324         via Collin Lasse.
60325
60326 2008-05-14  Eric Blake  <ebb9@byu.net>
60327
60328         Avoid quadratic growth in gl_LIBSOURCES.
60329         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
60330         Suggested by Bruno Haible.
60331
60332         Test xmemdup0.
60333         * modules/xmemdup0-tests: New file.
60334         * tests/test-xmemdup0.c: Likewise.
60335
60336 2008-05-13  Eric Blake  <ebb9@byu.net>
60337
60338         Split xmemdup0 into its own module.
60339         * modules/xmemdup0: New file.
60340         * lib/xmemdup0.h: Likewise.
60341         * lib/xmemdup0.c: Likewise.
60342         * MODULES.html.sh (Memory management functions): Add xmemdup0.
60343         * lib/xalloc.h (xmemdup0): Remove.
60344         * lib/xmalloc.c (xmemdup0): Likewise.
60345
60346 2008-05-13  Eric Blake  <ebb9@byu.net>
60347             Bruno Haible  <bruno@clisp.org>
60348
60349         Reduce number of forks required during autoconf.
60350         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
60351         and gl_LIBSOURCES_DIR.
60352         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
60353         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
60354         m4_syscmd per file.
60355         <m4_foreach_w>: Move...
60356         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
60357
60358 2008-05-13  Eric Blake  <ebb9@byu.net>
60359
60360         * gnulib-tool: Fix various comment typos.
60361
60362 2008-05-12  Bruno Haible  <bruno@clisp.org>
60363
60364         Tailor the linebreaking algorithm.
60365         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
60366
60367 2008-05-12  Bruno Haible  <bruno@clisp.org>
60368
60369         Update to Unicode 5.0.0.
60370         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60371         LBP_JV, LBP_JT. Redistribute values.
60372         (unilbrk_table): Change size.
60373         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
60374         Unicode TR#14 rev. 22.
60375         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60376         LBP_JV, LBP_JT. Redistribute values.
60377         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
60378         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
60379         Update.
60380         * lib/unilbrk/lbrkprop1.h: Regenerated.
60381         * lib/unilbrk/lbrkprop2.h: Regenerated.
60382         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
60383         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
60384         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
60385         Likewise.
60386         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
60387         Likewise.
60388         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
60389         result.
60390         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60391         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60392         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60393         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
60394         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
60395         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
60396
60397 2008-05-11  Bruno Haible  <bruno@clisp.org>
60398
60399         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
60400
60401 2008-05-11  Bruno Haible  <bruno@clisp.org>
60402
60403         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
60404         * modules/unilbrk/gen-lbrk: New file.
60405
60406 2008-05-11  Bruno Haible  <bruno@clisp.org>
60407
60408         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
60409         * m4/sha512.m4 (gl_SHA512): Likewise.
60410
60411 2008-05-11  Jim Meyering  <meyering@redhat.com>
60412
60413         New modules: crypto/sha256, crypto/sha512 (from coreutils)
60414         * modules/crypto/sha256: New file.
60415         * modules/crypto/sha512: Likewise.
60416         * lib/sha256.c: Likewise.
60417         * lib/sha256.h: Likewise.
60418         * lib/sha512.c: Likewise.
60419         * lib/sha512.h: Likewise.
60420         * lib/u64.h: Likewise.
60421         * m4/sha256.m4: Likewise.
60422         * m4/sha512.m4: Likewise.
60423         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
60424
60425 2008-05-10  Bruno Haible  <bruno@clisp.org>
60426
60427         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
60428         (Input/Output <stdio.h>): Add xprintf.
60429         (Signal handling <signal.h>): Add strsignal.
60430         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
60431         (Core language properties): Add func.
60432         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
60433         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
60434         strings.
60435         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
60436         (Input/output): New section.
60437         (File system functions): Add openat-die, stat-macros.
60438         (Networking functions): Add sockets.
60439         (Unicode string functions): Add unictype/*.
60440         (Support for building libraries and executables): Add gperf.
60441         (Support for building documentation): Add agpl-3.0.
60442         (Misc): Add nocrash.
60443
60444 2008-05-10  Bruno Haible  <bruno@clisp.org>
60445
60446         * modules/unictype/gen-ctype: New file.
60447
60448 2008-05-10  Jim Meyering  <meyering@redhat.com>
60449
60450         Make chdir-safer.c more efficient on a system with no symlinks.
60451         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
60452         also if ELOOP is zero.  Suggested by Bruno Haible.
60453
60454         Make chdir-safer.c slightly safer.
60455         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
60456         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
60457
60458         Avoid compile failure on systems without ELOOP (like mingw).
60459         * lib/chdir-safer.c (ELOOP): Define if not already defined.
60460         Reported by Bruno Haible.
60461
60462 2008-05-10  Bruno Haible  <bruno@clisp.org>
60463
60464         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
60465         (is_utf8_encoding): Use a case-insensitive comparison.
60466         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
60467         streq.
60468
60469 2008-05-10  Bruno Haible  <bruno@clisp.org>
60470
60471         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
60472         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
60473         * lib/unilbrk/ulc-common.h (iconv_string_length,
60474         iconv_string_keeping_offsets): Remove declarations.
60475         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
60476         Don't include <iconv.h>, streq.h, xsize.h.
60477         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
60478         conversion.
60479         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
60480         <iconv.h>, streq.h, xsize.h.
60481         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
60482         conversion.
60483         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
60484         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
60485         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
60486         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
60487
60488 2008-05-10  Bruno Haible  <bruno@clisp.org>
60489
60490         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
60491         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
60492
60493         * modules/unilbrk/u32-width-linebreaks-tests: New file.
60494         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
60495
60496         * modules/unilbrk/u16-width-linebreaks-tests: New file.
60497         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
60498
60499         * modules/unilbrk/u8-width-linebreaks-tests: New file.
60500         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
60501
60502         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
60503         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
60504
60505         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
60506         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
60507
60508         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
60509         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
60510
60511         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
60512         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
60513
60514 2008-05-10  Bruno Haible  <bruno@clisp.org>
60515
60516         Split up 'linebreak' module.
60517         * lib/unilbrk.h: New file, based on lib/linebreak.h.
60518         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
60519         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
60520         modifications.
60521         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
60522         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
60523         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
60524         lib/linebreak.c.
60525         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
60526         lib/linebreak.c.
60527         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
60528         lib/linebreak.c.
60529         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
60530         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
60531         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
60532         lib/linebreak.c.
60533         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
60534         lib/linebreak.c.
60535         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
60536         lib/linebreak.c.
60537         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
60538         lib/linebreak.c.
60539         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
60540         lib/linebreak.c.
60541         * modules/unilbrk/base: New file.
60542         * modules/unilbrk/tables: New file.
60543         * modules/unilbrk/u8-possible-linebreaks: New file.
60544         * modules/unilbrk/u16-possible-linebreaks: New file.
60545         * modules/unilbrk/u32-possible-linebreaks: New file.
60546         * modules/unilbrk/ulc-common: New file.
60547         * modules/unilbrk/ulc-possible-linebreaks: New file.
60548         * modules/unilbrk/u8-width-linebreaks: New file.
60549         * modules/unilbrk/u16-width-linebreaks: New file.
60550         * modules/unilbrk/u32-width-linebreaks: New file.
60551         * modules/unilbrk/ulc-width-linebreaks: New file.
60552         * lib/linebreak.h: Remove file.
60553         * lib/linebreak.c: Remove file.
60554         * m4/linebreak.m4: Remove file.
60555         * modules/linebreak: Remove file.
60556         * NEWS: Mention the changes.
60557
60558 2008-05-09  Eric Blake  <ebb9@byu.net>
60559
60560         Add xmemdup0.
60561         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
60562         implementation.
60563         * lib/xmalloc.c (xmemdup0): New C implementation.
60564
60565 2008-05-08  Bruno Haible  <bruno@clisp.org>
60566
60567         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
60568
60569 2008-05-07  Eric Blake  <ebb9@byu.net>
60570
60571         Support cross-compilation of <wctype.h>.
60572         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
60573         AC_CACHE_CHECK.
60574
60575 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
60576
60577         * build-aux/vc-list-files: Add support for bzr.
60578
60579 2008-05-03  Jim Meyering  <meyering@redhat.com>
60580
60581         avoid failed assertion with tight malloc
60582         * tests/test-getndelim2.c: Correct an off-by-one assertion.
60583
60584 2008-05-03  Simon Josefsson  <simon@josefsson.org>
60585
60586         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
60587         are needed from arpa/inet.h.
60588         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
60589         Reported by Bruno Haible.
60590
60591 2008-05-02  Jim Meyering  <meyering@redhat.com>
60592
60593         avoid compilation error on FreeBSD 6
60594         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
60595
60596 2008-05-01  Jim Meyering  <meyering@redhat.com>
60597
60598         useless-if-before-free: correct --help's exit status description
60599         * build-aux/useless-if-before-free (usage): Like grep, exit 0
60600         for one or more matches, etc.  Reported by Bruno Haible.
60601
60602         vc-list-files: make the stand-alone gnulib test work
60603         * modules/vc-list-files-tests (configure.ac):
60604         Define and AC_SUBST abs_aux_dir.
60605         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
60606         $(abs_top_srcdir) to each script and having each of them
60607         duplicate the work of setting PATH, set PATH here, using
60608         the new variable, abs_aux_dir instead.
60609         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
60610         * tests/test-vc-list-files-git.sh: Likewise.
60611         Reported by Bruno Haible.
60612
60613 2008-05-01  Bruno Haible  <bruno@clisp.org>
60614
60615         * lib/getndelim2.c (getndelim2): Fix newsize computation during
60616         reallocation. Rename 'done' to 'found_delimiter'.
60617
60618 2008-05-01  Jim Meyering  <meyering@redhat.com>
60619
60620         vc-list-files: accommodate /bin/sh like the one from Solaris 10
60621         * build-aux/vc-list-files: Use `...`, not $(...).
60622
60623 2008-04-30  Jim Meyering  <meyering@redhat.com>
60624
60625         add tests for vc-list-files
60626         * modules/vc-list-files-tests: New module.
60627         * tests/test-vc-list-files-cvs.sh: New file.
60628         * tests/test-vc-list-files-git.sh: New file.
60629
60630         avoid a warning from gcc
60631         * lib/getndelim2.c (IF_LINT): Define.
60632         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
60633
60634         vc-list-files: work properly with build-aux/cvsu, too
60635         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
60636         to all cvs-based clauses.
60637
60638         vc-list-files: work properly in the CVS+awk case, too
60639         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
60640
60641         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
60642         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
60643         take more than one file argument, so .  Add quotes, just in case $dir
60644         ever contains a shell meta-character.  Prompted by Soren Hansen in
60645         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
60646
60647 2008-04-29  Eric Blake  <ebb9@byu.net>
60648
60649         Optimize getndelim2 to use block operations when possible.
60650         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
60651         freadseek, and memchr2.
60652         * lib/getndelim2.c (getndelim2): Use them for block reads.
60653
60654 2008-04-29  Bruno Haible  <bruno@clisp.org>
60655
60656         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
60657         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60658         * modules/inet_ntop (Depends-on): Add extensions.
60659         * modules/inet_pton (Depends-on): Likewise.
60660         Reported by Simon Josefsson.
60661
60662 2008-04-29  Jim Meyering  <meyering@redhat.com>
60663
60664         When the is more than one match in a block, match all of them.
60665         * build-aux/useless-if-before-free: Iterate through each block
60666         until there are no more matches.
60667
60668         Fix broken useless-if-before-free script.
60669         * build-aux/useless-if-before-free: Fix typo: missing "?" after
60670         the expression to match cast of argument to free-like function.
60671
60672 2008-04-29  Eric Blake  <ebb9@byu.net>
60673
60674         Use new header.
60675         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
60676
60677 2008-04-29  Jim Meyering  <meyering@redhat.com>
60678
60679         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
60680         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
60681         by gnulib to exist and to declare e.g., inet_ntop.
60682         Don't include "inet_ntop.h", now removed.
60683
60684         * m4/arpa_inet_h.m4: Remove trailing blanks.
60685
60686 2008-04-29  Eric Blake  <ebb9@byu.net>
60687
60688         Silence valgrind on safe reads beyond potential array bounds.
60689         * lib/rawmemchr.valgrind: New file.
60690         * lib/strchrnul.valgrind: Likewise.
60691         * modules/rawmemchr (Files): Distribute new file.
60692         * modules/strchrnul (Files): Likewise.
60693         Suggested by Bruno Haible.
60694
60695 2008-04-29  Bruno Haible  <bruno@clisp.org>
60696
60697         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
60698         (inet_ntop, inet_pton): Change portability warning's wording.
60699         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
60700         Invoke gl_CHECK_NEXT_HEADERS.
60701         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
60702         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
60703         set ARPA_INET_H.
60704         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60705         * modules/arpa_inet (Description): No longer only for systems that
60706         lack it.
60707         (Depends-on): Add include_next.
60708         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
60709         HAVE_ARPA_INET_H.
60710
60711 2008-04-29  Jim Meyering  <meyering@redhat.com>
60712
60713         * modules/mkdir (License): Re-license as LGPLv2+.
60714
60715 2008-04-29  Bruno Haible  <bruno@clisp.org>
60716
60717         * modules/rawmemchr (Maintainer): Set to Eric.
60718         * modules/strchrnul (Maintainer): Likewise.
60719
60720 2008-04-29  Simon Josefsson  <simon@josefsson.org>
60721
60722         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
60723         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
60724
60725         * modules/arpa_inet (arpa/inet.h): Use them.
60726
60727 2008-04-28  Eric Blake  <ebb9@byu.net>
60728
60729         Test getndelim2.
60730         * modules/getndelim2-tests: New file.
60731         * tests/test-getndelim2.c: Likewise.
60732         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
60733         stream.
60734         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
60735
60736         * MODULES.html.sh: Document new module.
60737
60738 2008-04-20  Bruno Haible  <bruno@clisp.org>
60739
60740         * lib/c-stack.c (die): Use raise.
60741         * modules/c-stack (Depends-on): Add raise.
60742
60743 2008-04-28  Bruno Haible  <bruno@clisp.org>
60744
60745         Expect rpmatch to be declared.
60746         * lib/yesno.c (rpmatch): Remove declaration.
60747
60748         Declare rpmatch.
60749         * lib/stdlib.in.h (rpmatch): New declaration.
60750         * lib/rpmatch.c: Include <stdlib.h> first.
60751         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
60752         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
60753         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
60754         HAVE_RPMATCH.
60755         * modules/rpmatch (Depends-on): Add stdlib, extensions.
60756         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60757         (Include): Set to <stdlib.h>.
60758         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
60759         HAVE_RPMATCH.
60760         * NEWS: Document the change.
60761
60762 2008-04-28  Bruno Haible  <bruno@clisp.org>
60763
60764         Change rpmatch to use nl_langinfo when appropriate.
60765         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
60766         (N_): New macro.
60767         (localized_pattern): New function/macro.
60768         (try): Remove match, nomatch arguments. Copy the pattern into safe
60769         memory before caching it.
60770         (rpmatch): Use localized_pattern. Add translator comments.
60771         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
60772         Suggested by Eric Blake.
60773         * modules/rpmatch (Depends-on): Add stdbool.
60774
60775 2008-04-28  Eric Blake  <ebb9@byu.net>
60776
60777         Add rawmemchr module, matching glibc.
60778         * modules/string (Makefile.am): New indicator.
60779         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
60780         * lib/string.in.h (rawmemchr): Declare when appropriate.
60781         * modules/rawmemchr: New file.
60782         * m4/rawmemchr.m4: Likewise.
60783         * lib/rawmemchr.c: Likewise.
60784         * modules/rawmemchr-tests: Likewise.
60785         * tests/test-rawmemchr.c: Likewise.
60786         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
60787         module.
60788         * modules/strchrnul (Depends-on): Add rawmemchr.
60789         * lib/strchrnul.c (strchrnul): Optimize a corner case.
60790
60791         Whitespace cleanup.
60792         * tests/test-strchrnul.c: Reindent.
60793         * lib/strchrnul.c: Likewise.
60794
60795         Optimize and test strchrnul.
60796         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
60797         * modules/strchrnul-tests: New file.
60798         * tests/test-strchrnul.c: Likewise.
60799
60800         Remove intprops dependency.
60801         * modules/memchr (Depends-on): Remove intprops.
60802         * modules/memrchr (Depends-on): Likewise.
60803         * modules/memchr2 (Depends-on): Likewise.
60804         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
60805         * lib/memrchr.c (__memrchr): Likewise.
60806         * lib/memrchr2.c (memchr2): Likewise.
60807         Reported by Simon Josefsson.
60808
60809 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60810
60811         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
60812         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60813
60814 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60815
60816         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
60817
60818         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
60819
60820         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
60821
60822         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
60823         declarations.
60824         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
60825
60826         * m4/inet_pton.m4: Don't check for header files.
60827
60828         * m4/inet_ntop.m4: Don't check for header files.
60829
60830 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60831
60832         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
60833         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
60834         trigger for cygwin).
60835         Reported by Bruno Haible  <bruno@clisp.org>.
60836
60837 2008-04-28  Bruno Haible  <bruno@clisp.org>
60838
60839         * doc/posix-functions/strdup.texi: Mention mingw problem.
60840
60841 2008-04-27  Bruno Haible  <bruno@clisp.org>
60842
60843         * modules/stat-time-tests (Depends-on): Add sleep.
60844         * tests/test-stat-time.c (force_unlink): New function.
60845         (cleanup): Use it.
60846         (test_mtime): Remove the ctime related tests.
60847         (test_ctime): New function, containing the ctime related tests.
60848         (main): Call test_ctime, except on native Windows platforms.
60849
60850 2008-04-27  Bruno Haible  <bruno@clisp.org>
60851
60852         * lib/rpmatch.c (rpmatch): Add some comments.
60853         Reported by James Youngman <jay@gnu.org>.
60854
60855 2008-04-27  Bruno Haible  <bruno@clisp.org>
60856
60857         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
60858         quiet NaNs.
60859
60860 2008-04-27  Bruno Haible  <bruno@clisp.org>
60861
60862         Make test-yesno.sh work on mingw.
60863         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
60864         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
60865         (main): Set stdin to binary mode.
60866         * modules/yesno-tests (Depends-on): Add binary-io.
60867
60868 2008-04-27  Bruno Haible  <bruno@clisp.org>
60869
60870         Fix 'isfinite' on x86, x86_64, ia64 platforms.
60871         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
60872         argument that lie outside the IEEE 854 domain.
60873         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
60874         (gl_ISFINITE): Use it.
60875         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
60876
60877 2008-04-27  Bruno Haible  <bruno@clisp.org>
60878
60879         Allow local renaming in config.h.
60880         * lib/memrchr.c (memrchr): Don't undefine outside libc.
60881
60882 2008-04-27  Bruno Haible  <bruno@clisp.org>
60883
60884         * lib/memchr.c (__memchr): Change type of 'i'.
60885         * lib/memchr2.c (memchr2): Likewise.
60886
60887 2008-04-26  Eric Blake  <ebb9@byu.net>
60888         and Bruno Haible  <bruno@clisp.org>
60889
60890         Optimize and test memrchr.
60891         * modules/memrchr (Depends-on): Add intprops.
60892         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
60893         * modules/memrchr-tests: New file.
60894         * tests/test-memrchr.c: New file.
60895
60896 2008-04-26  Bruno Haible  <bruno@clisp.org>
60897
60898         Add tentative support for DragonFly BSD.
60899         * lib/stdio-impl.h: Add macros for DragonFly BSD.
60900         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
60901         fp.
60902         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60903         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
60904         * lib/fpurge.c (fpurge): Likewise.
60905         * lib/freadable.c (freaadable): Likewise.
60906         * lib/freadahead.c (freadahead): Likewise.
60907         * lib/freading.c (freading): Likewise.
60908         * lib/freadptr.c (freadptr): Likewise.
60909         * lib/freadseek.c (freadptrinc): Likewise.
60910         * lib/fseeko.c (fseeko): Likewise.
60911         * lib/fseterr.c (fseterr): Likewise.
60912         * lib/fwritable.c (fwritable): Likewise.
60913         * lib/fwriting.c (fwriting): Likewise.
60914
60915 2008-04-26  Bruno Haible  <bruno@clisp.org>
60916
60917         * lib/stdio-impl.h: New file.
60918         * lib/fbufmode.c: Include stdio-impl.h.
60919         (fbufmode): Use fp_, remove redundant #defines.
60920         * lib/fflush.c: Include stdio-impl.h.
60921         (clear_ungetc_buffer): Remove redundant #defines.
60922         * lib/fpurge.c: Include stdio-impl.h.
60923         (fpurge): Remove redundant #defines.
60924         * lib/freadable.c: Include stdio-impl.h.
60925         (freadable): Remove redundant #defines.
60926         * lib/freadahead.c: Include stdio-impl.h.
60927         (freadahead): Remove redundant #defines.
60928         * lib/freading.c: Include stdio-impl.h.
60929         (freading): Remove redundant #defines.
60930         * lib/freadptr.c: Include stdio-impl.h.
60931         (freadptr): Remove redundant #defines.
60932         * lib/freadseek.c: Include stdio-impl.h.
60933         (freadptrinc): Remove redundant #defines.
60934         * lib/fseeko.c: Include stdio-impl.h.
60935         (rpl_fseeko): Remove redundant #defines.
60936         * lib/fseterr.c: Include stdio-impl.h.
60937         (fseterr): Remove redundant #defines.
60938         * lib/fwritable.c: Include stdio-impl.h.
60939         (fwritable: Remove redundant #defines.
60940         * lib/fwriting.c: Include stdio-impl.h.
60941         (fwriting): Remove redundant #defines.
60942         * modules/fbufmode (Files): Add lib/stdio-impl.h.
60943         * modules/fflush (Files): Likewise.
60944         * modules/fpurge (Files): Likewise.
60945         * modules/freadable (Files): Likewise.
60946         * modules/freadahead (Files): Likewise.
60947         * modules/freading (Files): Likewise.
60948         * modules/freadptr (Files): Likewise.
60949         * modules/freadseek (Files): Likewise.
60950         * modules/fseeko (Files): Likewise.
60951         * modules/fseterr (Files): Likewise.
60952         * modules/fwritable (Files): Likewise.
60953         * modules/fwriting (Files): Likewise.
60954
60955 2008-04-26  Bruno Haible  <bruno@clisp.org>
60956
60957         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60958         restore_seek_optimization, update_fpos_cache): New functions, extracted
60959         from rpl_fflush.
60960         (rpl_fflush): Use them.
60961         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
60962         (gl_REPLACE_FFLUSH): Use it.
60963
60964 2008-04-26  Bruno Haible  <bruno@clisp.org>
60965
60966         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
60967         on Solaris.
60968         * tests/test-xstrtoimax.sh: Likewise.
60969         * tests/test-xstrtoumax.sh: Likewise.
60970         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60971
60972 2008-04-26  Bruno Haible  <bruno@clisp.org>
60973
60974         * modules/memchr-tests: New file.
60975         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
60976
60977 2008-04-26  Eric Blake  <ebb9@byu.net>
60978             Bruno Haible  <bruno@clisp.org>
60979
60980         * lib/memchr.c: Include intprops.h.
60981         (__memchr): Optimize parallel detection of matching bytes. Rename local
60982         variables. Add explanatory comments.
60983
60984 2008-04-26  Bruno Haible  <bruno@clisp.org>
60985
60986         Fix module 'memchr', broken since 2000-10-28.
60987         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
60988
60989 2008-04-26  Bruno Haible  <bruno@clisp.org>
60990
60991         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
60992         comments.
60993
60994 2008-04-25  Eric Blake  <ebb9@byu.net>
60995
60996         Use native fstatat on cygwin 1.7.0.
60997         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
60998         first.
60999
61000 2008-04-23  Eric Blake  <ebb9@byu.net>
61001
61002         Improve memchr2 performance.
61003         * lib/memchr2.c (memchr2): Further optimize parallel detection of
61004         NUL bytes.
61005         * modules/memchr2 (Depends-on): Use intprops.h.
61006
61007 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61008
61009         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
61010         an inline function instead of a CPP macro.  Patch by Ben Pfaff
61011         <blp@cs.stanford.edu>.
61012
61013 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61014
61015         * lib/arpa_inet.in.h: New file.
61016
61017         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
61018         (Makefile.am): Sed in substitute header file.
61019
61020         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
61021         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
61022
61023         * modules/inet_ntop (configure.ac): Use
61024         gl_ARPA_INET_MODULE_INDICATOR.
61025
61026         * modules/inet_pton (configure.ac): Use
61027         gl_ARPA_INET_MODULE_INDICATOR.
61028
61029 2008-04-22  Jim Meyering  <meyering@redhat.com>
61030
61031         * modules/verify (License): Re-license as LGPLv2+.
61032
61033 2008-04-22  Simon Josefsson  <simon@josefsson.org>
61034
61035         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
61036         parameter to void* as per POSIX standard (MinGW uses char*).
61037
61038 2008-04-21  Bruno Haible  <bruno@clisp.org>
61039
61040         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61041         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61042         Define to replacements if REPLACE_ISWCNTRL is 1.
61043         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
61044         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
61045         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
61046         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
61047         what it fixes.
61048         * doc/posix-functions/iswalpha.texi: Likewise.
61049         * doc/posix-functions/iswblank.texi: Likewise.
61050         * doc/posix-functions/iswcntrl.texi: Likewise.
61051         * doc/posix-functions/iswdigit.texi: Likewise.
61052         * doc/posix-functions/iswgraph.texi: Likewise.
61053         * doc/posix-functions/iswlower.texi: Likewise.
61054         * doc/posix-functions/iswprint.texi: Likewise.
61055         * doc/posix-functions/iswpunct.texi: Likewise.
61056         * doc/posix-functions/iswspace.texi: Likewise.
61057         * doc/posix-functions/iswupper.texi: Likewise.
61058         * doc/posix-functions/iswxdigit.texi: Likewise.
61059         Reported by Alain Guibert.
61060
61061 2008-04-21  Bruno Haible  <bruno@clisp.org>
61062
61063         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
61064         Patch by Alain Guibert.
61065
61066 2008-04-21  Bruno Haible  <bruno@clisp.org>
61067
61068         Fix test failures on mingw.
61069         * tests/test-xstrtol.c (print_no_progname): New function.
61070         (main): Install it in error_print_progname hook.
61071         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
61072         * tests/test-xstrtoimax.sh: Likewise.
61073         * tests/test-xstrtoumax.sh: Likewise.
61074
61075 2008-04-21  Bruno Haible  <bruno@clisp.org>
61076
61077         Fix test failure on mingw.
61078         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
61079
61080 2008-04-21  Bruno Haible  <bruno@clisp.org>
61081
61082         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
61083         Actually assign a value.
61084
61085 2008-04-20  Bruno Haible  <bruno@clisp.org>
61086
61087         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
61088         take 2.
61089         * lib/canonicalize.c (canonicalize_file_name): Elide if the
61090         'canonicalize-lgpl' module is also used.
61091         * lib/canonicalize-lgpl.c: Undo last change.
61092         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
61093
61094 2008-04-20  Bruno Haible  <bruno@clisp.org>
61095
61096         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
61097         config.h. Provide _mkdir based fallback for mingw.
61098         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
61099         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
61100         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
61101         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
61102         rather than defining mkdir in config.h.
61103         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
61104         (gl_SYS_STAT_H_DEFAULTS): New macro.
61105         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
61106         HAVE_IO_H any more.
61107         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
61108         HAVE_DECL_MKDIR and HAVE_IO_H.
61109
61110 2008-04-20  Bruno Haible  <bruno@clisp.org>
61111
61112         * lib/isapipe.c: Port to native Windows platforms.
61113
61114 2008-04-20  Bruno Haible  <bruno@clisp.org>
61115
61116         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
61117
61118 2008-04-21  Eric Blake  <ebb9@byu.net>
61119
61120         Work around preprocessors that don't handle UINTMAX_MAX.
61121         * lib/memchr2.c (memchr2): Avoid embedded #if.
61122         Reported by Alain Guibert, fix suggested by Bruno Haible.
61123
61124 2008-04-21  Simon Josefsson  <simon@josefsson.org>
61125
61126         * doc/posix-functions/strftime.texi (strftime): Explain better
61127         Windows incompatibility.  Suggested by Micah Cowan
61128         <micah@cowan.name>.
61129
61130 2008-04-20  Bruno Haible  <bruno@clisp.org>
61131
61132         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
61133         unistr/u8-mblen.
61134
61135 2008-04-20  Bruno Haible  <bruno@clisp.org>
61136
61137         Fix test failure on platforms with non-GNU iconv.
61138         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
61139         (U_TO_U8): Use it, rather than u16_to_u8.
61140         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
61141         units at the end of the input string.
61142         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
61143
61144 2008-04-20  Bruno Haible  <bruno@clisp.org>
61145
61146         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
61147         when the resulting length is 0.
61148         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
61149
61150 2008-04-20  Bruno Haible  <bruno@clisp.org>
61151
61152         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
61153         works.
61154         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
61155
61156 2008-04-20  Bruno Haible  <bruno@clisp.org>
61157
61158         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
61159         * modules/tsearch-tests (configure.ac): Test for initstate function.
61160
61161 2008-04-20  Bruno Haible  <bruno@clisp.org>
61162
61163         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
61164         for nlink_t if missing.
61165         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
61166
61167 2008-04-19  Bruno Haible  <bruno@clisp.org>
61168
61169         Work around snprintf bug on Linux libc5.
61170         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
61171         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61172         gl_SNPRINTF_SIZE1.
61173         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61174         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
61175         that test failed.
61176         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
61177         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
61178         * modules/snprintf (Files): Add m4/printf.m4.
61179         * modules/vsnprintf (Files): Likewise.
61180         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
61181         * doc/posix-functions/vsnprintf.texi: Likewise.
61182
61183 2008-04-19  Bruno Haible  <bruno@clisp.org>
61184
61185         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
61186         from 0.0058 to less than 10^-7.
61187
61188 2008-04-19  Bruno Haible  <bruno@clisp.org>
61189
61190         Fix rounding when a precision is given.
61191         * lib/vasnprintf.c (is_borderline): New function.
61192         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
61193         9...9x.
61194         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
61195         %e, %g.
61196         * tests/test-vasprintf-posix.c (test_function): Likewise.
61197         * tests/test-snprintf-posix.h (test_function): Likewise.
61198         * tests/test-sprintf-posix.h (test_function): Likewise.
61199         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
61200         * tests/test-printf-posix.h (test_function): Likewise.
61201         * tests/test-printf-posix.output: Update.
61202         Reported by John Darrington <john@darrington.wattle.id.au> via
61203         Ben Pfaff <blp@cs.stanford.edu>.
61204
61205 2008-04-18  Simon Josefsson  <simon@josefsson.org>
61206
61207         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
61208         Suggested by Bruno Haible <bruno@clisp.org>.
61209
61210 2008-04-17  Bruno Haible  <bruno@clisp.org>
61211
61212         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
61213         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
61214         implementation.
61215         Patch by Bruce Merry <bmerry@gmail.com>.
61216
61217 2008-04-17  Simon Josefsson  <simon@josefsson.org>
61218
61219         * doc/posix-functions/strftime.texi (strftime): Mention that %e
61220         doesn't work under Windows.
61221
61222 2008-04-16  Bruno Haible  <bruno@clisp.org>
61223
61224         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
61225         New macros.
61226         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
61227         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
61228         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
61229         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
61230         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
61231         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
61232         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
61233         macros.
61234         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
61235         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
61236         Northern Sotho, Uighur.
61237
61238 2008-04-16  Bruno Haible  <bruno@clisp.org>
61239
61240         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
61241         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
61242         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
61243         Reported by Daniel Bergström <daniel@octocode.com>.
61244
61245 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
61246             Bruno Haible  <bruno@clisp.org>
61247
61248         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
61249         function.
61250         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
61251         New functions, mostly extracted from gl_locale_name_default.
61252         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
61253
61254 2008-04-16  Eric Blake  <ebb9@byu.net>
61255
61256         Adjust strtod detection to catch glibc 2.7 bug.
61257         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
61258         Reported by John Gatewood Ham.
61259
61260 2008-04-16  Bruno Haible  <bruno@clisp.org>
61261
61262         Add tentative support for Linux libc5.
61263         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
61264         * lib/fpurge.c (fpurge): Likewise.
61265         * lib/freadable.c (freadable): Likewise.
61266         * lib/freadahead.c (freadahead): Likewise.
61267         * lib/freading.c (freading): Likewise.
61268         * lib/freadptr.c (freadptr): Likewise.
61269         * lib/freadseek.c (freadptrinc): Likewise.
61270         * lib/fseeko.c (rpl_fseeko): Likewise.
61271         * lib/fseterr.c (fseterr): Likewise.
61272         * lib/fwritable.c (fwritable): Likewise.
61273         * lib/fwriting.c (fwriting): Likewise.
61274         Reported by Alain Guibert <alguibert+bts@free.fr>.
61275
61276 2008-04-15  Bruno Haible  <bruno@clisp.org>
61277
61278         * modules/mathl (configure.ac): Define module indicator.
61279
61280 2008-04-15  Bruno Haible  <bruno@clisp.org>
61281
61282         * lib/logl.c (logl): Remove unused variables.
61283
61284 2008-04-15  Bruno Haible  <bruno@clisp.org>
61285
61286         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
61287         fails.
61288
61289 2008-04-15  Bruno Haible  <bruno@clisp.org>
61290
61291         * lib/trim.c (trim2): Fix argument of isspace() macro.
61292
61293 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
61294
61295         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
61296         to 0.
61297         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
61298
61299 2008-04-14  Bruno Haible  <bruno@clisp.org>
61300
61301         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
61302         AC_LANG_PROGRAM argument.
61303         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
61304         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
61305         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61306         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61307         * m4/math_h.m4 (gl_MATH_H): Likewise.
61308         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61309         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61310         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
61311         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
61312         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61313         * m4/regex.m4 (gl_REGEX): Likewise.
61314         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
61315         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
61316         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61317         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
61318         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61319         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61320         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61321         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61322
61323 2008-04-14  Jim Meyering  <meyering@redhat.com>
61324
61325         test-strtod: fix typos: s/abs/fabs/
61326         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
61327
61328 2008-04-13  Bruno Haible  <bruno@clisp.org>
61329
61330         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
61331         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
61332         module is also used and while not building the reloc-wrapper.
61333
61334 2008-04-13  Bruno Haible  <bruno@clisp.org>
61335
61336         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
61337
61338 2008-04-13  Bruno Haible  <bruno@clisp.org>
61339
61340         Fix AIX compilation failure introduced on 2008-04-02.
61341         * tests/test-frexp.c (exp): Undefine before redefining.
61342         * tests/test-frexpl.c (exp): Likewise.
61343
61344 2008-04-13  Bruno Haible  <bruno@clisp.org>
61345
61346         Work around a HP-UX stdio bug.
61347         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
61348         * tests/test-ftello.c (main): Likewise.
61349         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
61350         * doc/posix-functions/ftello.texi: Likewise.
61351
61352 2008-04-13  Bruno Haible  <bruno@clisp.org>
61353
61354         Make test-signbit pass on HP-UX/hppa.
61355         * tests/test-signbit.c (minus_zerol): New variable.
61356         (test_signbitl): Use it.
61357
61358 2008-04-13  Bruno Haible  <bruno@clisp.org>
61359
61360         Make truncl work on OSF/1 4.0.
61361         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
61362         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61363         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
61365         HAVE_DECL_TRUNCL.
61366         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
61367         HAVE_DECL_TRUNCL.
61368         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
61369
61370 2008-04-13  Bruno Haible  <bruno@clisp.org>
61371
61372         * lib/unictype.h: Remove trailing comma from enumeration definitions.
61373
61374 2008-04-13  Bruno Haible  <bruno@clisp.org>
61375
61376         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
61377         expression, so as to avoid HP-UX 11 cc compiler bug.
61378
61379 2008-04-13  Bruno Haible  <bruno@clisp.org>
61380
61381         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
61382
61383 2008-04-13  Bruno Haible  <bruno@clisp.org>
61384
61385         * lib/git-merge-changelog.c: Remove empty declaration outside of
61386         functions.
61387
61388 2008-04-13  Bruno Haible  <bruno@clisp.org>
61389
61390         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
61391
61392 2008-04-13  Bruno Haible  <bruno@clisp.org>
61393
61394         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
61395         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
61396         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
61397         also if it exists but lacks definitions of the SHUT_* macros.
61398         * modules/sys_socket (Description): Update.
61399         Reported by Elbert Pol <e.pol@chello.nl>.
61400
61401 2008-04-13  Bruno Haible  <bruno@clisp.org>
61402
61403         * lib/localcharset.c (OS2): Don't redefine if already defined.
61404         Reported by Elbert Pol <e.pol@chello.nl>.
61405
61406 2008-04-13  Bruno Haible  <bruno@clisp.org>
61407
61408         * lib/binary-io.h [__EMX__]: Include <io.h>.
61409         Reported by Elbert Pol <e.pol@chello.nl>.
61410
61411 2008-04-12  Bruno Haible  <bruno@clisp.org>
61412
61413         * lib/fpucw.h: Enable the definitions also for x86_64.
61414         Needed for NetBSD/x86_64.
61415         Reported by Thomas Klausner <tk@giga.or.at>.
61416
61417 2008-04-12  Bruno Haible  <bruno@clisp.org>
61418
61419         * tests/test-strtod.c: Include isnand.h.
61420         (main): Use isnand instead of isnan.
61421         Reported by Jim Meyering.
61422
61423 2008-04-12  Bruno Haible  <bruno@clisp.org>
61424
61425         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
61426         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61427
61428 2008-04-12  Jim Meyering  <meyering@redhat.com>
61429
61430         * m4/math_h.m4 (gl_MATH_H): Fix typos.
61431
61432 2008-04-12  Bruno Haible  <bruno@clisp.org>
61433
61434         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
61435         Reported by Elbert Pol <e.pol@chello.nl>.
61436
61437 2008-04-12  Eric Blake  <ebb9@byu.net>
61438
61439         Work around Solaris 10 math.h bug.
61440         * m4/math_h.m4 (gl_MATH_H): Check for bug.
61441         (gl_MATH_H_DEFAULTS): Set up default.
61442         * modules/math (Makefile.am): Replace new indicators.
61443         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
61444         * tests/test-math.c (main): Test this.
61445         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
61446         * doc/posix-headers/math.texi (math.h): Mention bug.
61447         Reported by Nelson H. F. Beebe and Jim Meyering.
61448
61449 2008-04-11  Bruno Haible  <bruno@clisp.org>
61450
61451         Adapt to future versions of Apple GCC.
61452         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
61453         Reported by Peter O'Gorman <peter@pogma.com>.
61454
61455 2008-04-11  Bruno Haible  <bruno@clisp.org>
61456
61457         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
61458
61459 2008-04-11  Bruno Haible  <bruno@clisp.org>
61460
61461         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
61462
61463         * modules/getaddrinfo-tests (Makefile.am): Define
61464         test_getaddrinfo_LDADD.
61465
61466 2008-04-11  Bruno Haible  <bruno@clisp.org>
61467
61468         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
61469         (init): Fix syntax error.
61470         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
61471         is declared.
61472
61473 2008-04-11  Bruno Haible  <bruno@clisp.org>
61474
61475         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
61476         * modules/glob (Depends-on): Add stdbool.
61477
61478 2008-04-11  Bruno Haible  <bruno@clisp.org>
61479
61480         * lib/trim.c: Include <string.h>.
61481
61482 2008-04-11  Eric Blake  <ebb9@byu.net>
61483
61484         Avoid compile failure on OS/2.
61485         * lib/regex_internal.h (internal_function): Disable optimization
61486         on OS/2 (__EMX__), where it caused compiler error.
61487         Reported by Elbert Pol.
61488
61489 2008-04-11  Bruno Haible  <bruno@clisp.org>
61490
61491         Flush the standard error stream before aborting. Needed on mingw.
61492         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
61493         * tests/test-array_list.c (ASSERT): Likewise.
61494         * tests/test-array_oset.c (ASSERT): Likewise.
61495         * tests/test-avltree_list.c (ASSERT): Likewise.
61496         * tests/test-avltree_oset.c (ASSERT): Likewise.
61497         * tests/test-avltreehash_list.c (ASSERT): Likewise.
61498         * tests/test-binary-io.c (ASSERT): Likewise.
61499         * tests/test-byteswap.c (ASSERT): Likewise.
61500         * tests/test-c-ctype.c (ASSERT): Likewise.
61501         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
61502         * tests/test-c-strcasestr.c (ASSERT): Likewise.
61503         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
61504         * tests/test-c-strstr.c (ASSERT): Likewise.
61505         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
61506         * tests/test-canonicalize.c (ASSERT): Likewise.
61507         * tests/test-carray_list.c (ASSERT): Likewise.
61508         * tests/test-ceilf1.c (ASSERT): Likewise.
61509         * tests/test-ceilf2.c (ASSERT): Likewise.
61510         * tests/test-ceill.c (ASSERT): Likewise.
61511         * tests/test-count-one-bits.c (ASSERT): Likewise.
61512         * tests/test-fbufmode.c (ASSERT): Likewise.
61513         * tests/test-fflush2.c (ASSERT): Likewise.
61514         * tests/test-floorf1.c (ASSERT): Likewise.
61515         * tests/test-floorf2.c (ASSERT): Likewise.
61516         * tests/test-floorl.c (ASSERT): Likewise.
61517         * tests/test-fopen.c (ASSERT): Likewise.
61518         * tests/test-fpending.c (ASSERT): Likewise.
61519         * tests/test-fprintf-posix.c (ASSERT): Likewise.
61520         * tests/test-fpurge.c (ASSERT): Likewise.
61521         * tests/test-freadable.c (ASSERT): Likewise.
61522         * tests/test-freadahead.c (ASSERT): Likewise.
61523         * tests/test-freading.c (ASSERT): Likewise.
61524         * tests/test-freadptr.c (ASSERT): Likewise.
61525         * tests/test-freadptr2.c (ASSERT): Likewise.
61526         * tests/test-freadseek.c (ASSERT): Likewise.
61527         * tests/test-freopen.c (ASSERT): Likewise.
61528         * tests/test-frexp.c (ASSERT): Likewise.
61529         * tests/test-frexpl.c (ASSERT): Likewise.
61530         * tests/test-fseek.c (ASSERT): Likewise.
61531         * tests/test-fseeko.c (ASSERT): Likewise.
61532         * tests/test-fstrcmp.c (ASSERT): Likewise.
61533         * tests/test-ftell.c (ASSERT): Likewise.
61534         * tests/test-ftello.c (ASSERT): Likewise.
61535         * tests/test-func.c (ASSERT): Likewise.
61536         * tests/test-fwritable.c (ASSERT): Likewise.
61537         * tests/test-fwriting.c (ASSERT): Likewise.
61538         * tests/test-getdelim.c (ASSERT): Likewise.
61539         * tests/test-getline.c (ASSERT): Likewise.
61540         * tests/test-i-ring.c (ASSERT): Likewise.
61541         * tests/test-iconv-utf.c (ASSERT): Likewise.
61542         * tests/test-iconv.c (ASSERT): Likewise.
61543         * tests/test-isfinite.c (ASSERT): Likewise.
61544         * tests/test-isnand.c (ASSERT): Likewise.
61545         * tests/test-isnanf.c (ASSERT): Likewise.
61546         * tests/test-isnanl.h (ASSERT): Likewise.
61547         * tests/test-ldexpl.c (ASSERT): Likewise.
61548         * tests/test-linked_list.c (ASSERT): Likewise.
61549         * tests/test-linkedhash_list.c (ASSERT): Likewise.
61550         * tests/test-localename.c (ASSERT): Likewise.
61551         * tests/test-lseek.c (ASSERT): Likewise.
61552         * tests/test-mbscasecmp.c (ASSERT): Likewise.
61553         * tests/test-mbscasestr1.c (ASSERT): Likewise.
61554         * tests/test-mbscasestr2.c (ASSERT): Likewise.
61555         * tests/test-mbscasestr3.c (ASSERT): Likewise.
61556         * tests/test-mbscasestr4.c (ASSERT): Likewise.
61557         * tests/test-mbschr.c (ASSERT): Likewise.
61558         * tests/test-mbscspn.c (ASSERT): Likewise.
61559         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
61560         * tests/test-mbspbrk.c (ASSERT): Likewise.
61561         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
61562         * tests/test-mbsrchr.c (ASSERT): Likewise.
61563         * tests/test-mbsspn.c (ASSERT): Likewise.
61564         * tests/test-mbsstr1.c (ASSERT): Likewise.
61565         * tests/test-mbsstr2.c (ASSERT): Likewise.
61566         * tests/test-mbsstr3.c (ASSERT): Likewise.
61567         * tests/test-memchr2.c (ASSERT): Likewise.
61568         * tests/test-memmem.c (ASSERT): Likewise.
61569         * tests/test-open.c (ASSERT): Likewise.
61570         * tests/test-printf-frexp.c (ASSERT): Likewise.
61571         * tests/test-printf-frexpl.c (ASSERT): Likewise.
61572         * tests/test-printf-posix.c (ASSERT): Likewise.
61573         * tests/test-quotearg.c (ASSERT): Likewise.
61574         * tests/test-rbtree_list.c (ASSERT): Likewise.
61575         * tests/test-rbtree_oset.c (ASSERT): Likewise.
61576         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
61577         * tests/test-round1.c (ASSERT): Likewise.
61578         * tests/test-roundf1.c (ASSERT): Likewise.
61579         * tests/test-roundl.c (ASSERT): Likewise.
61580         * tests/test-signbit.c (ASSERT): Likewise.
61581         * tests/test-sleep.c (ASSERT): Likewise.
61582         * tests/test-snprintf-posix.c (ASSERT): Likewise.
61583         * tests/test-snprintf.c (ASSERT): Likewise.
61584         * tests/test-sprintf-posix.c (ASSERT): Likewise.
61585         * tests/test-stat-time.c (ASSERT): Likewise.
61586         * tests/test-strcasestr.c (ASSERT): Likewise.
61587         * tests/test-strerror.c (ASSERT): Likewise.
61588         * tests/test-striconv.c (ASSERT): Likewise.
61589         * tests/test-striconveh.c (ASSERT): Likewise.
61590         * tests/test-striconveha.c (ASSERT): Likewise.
61591         * tests/test-strsignal.c (ASSERT): Likewise.
61592         * tests/test-strstr.c (ASSERT): Likewise.
61593         * tests/test-strtod.c (ASSERT): Likewise.
61594         * tests/test-trunc1.c (ASSERT): Likewise.
61595         * tests/test-trunc2.c (ASSERT): Likewise.
61596         * tests/test-truncf1.c (ASSERT): Likewise.
61597         * tests/test-truncf2.c (ASSERT): Likewise.
61598         * tests/test-truncl.c (ASSERT): Likewise.
61599         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
61600         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
61601         * tests/test-vasnprintf.c (ASSERT): Likewise.
61602         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
61603         * tests/test-vasprintf.c (ASSERT): Likewise.
61604         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
61605         * tests/test-vprintf-posix.c (ASSERT): Likewise.
61606         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
61607         * tests/test-vsnprintf.c (ASSERT): Likewise.
61608         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
61609         * tests/test-wcwidth.c (ASSERT): Likewise.
61610         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
61611         * tests/test-xprintf-posix.c (ASSERT): Likewise.
61612         * tests/test-xvasprintf.c (ASSERT): Likewise.
61613         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
61614         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
61615         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
61616         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
61617         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
61618         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
61619         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
61620         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
61621         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
61622         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
61623         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
61624         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
61625         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
61626         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
61627         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
61628         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
61629         * tests/unictype/test-block_list.c (ASSERT): Likewise.
61630         * tests/unictype/test-block_of.c (ASSERT): Likewise.
61631         * tests/unictype/test-block_test.c (ASSERT): Likewise.
61632         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
61633         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
61634         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
61635         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
61636         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
61637         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
61638         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
61639         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
61640         * tests/unictype/test-combining.c (ASSERT): Likewise.
61641         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
61642         * tests/unictype/test-digit.c (ASSERT): Likewise.
61643         * tests/unictype/test-mirror.c (ASSERT): Likewise.
61644         * tests/unictype/test-numeric.c (ASSERT): Likewise.
61645         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
61646         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
61647         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
61648         * tests/unictype/test-scripts.c (ASSERT): Likewise.
61649         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
61650         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
61651         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
61652         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
61653         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
61654         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
61655         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
61656         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
61657         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
61658         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
61659         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
61660         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
61661         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
61662         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
61663         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
61664         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
61665         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
61666         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
61667         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
61668         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
61669         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
61670         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
61671         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
61672         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
61673         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
61674         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
61675         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
61676         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
61677         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
61678         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
61679         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
61680         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
61681         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
61682         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
61683         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
61684         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
61685         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
61686         Reported by Eric Blake.
61687
61688 2008-04-11  Bruno Haible  <bruno@clisp.org>
61689
61690         * lib/wchar.in.h: Tweak comment.
61691
61692 2008-04-11  Bruno Haible  <bruno@clisp.org>
61693
61694         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
61695         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
61696         gl_COMMON.
61697         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
61698
61699 2008-04-11  Bruno Haible  <bruno@clisp.org>
61700
61701         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
61702
61703 2008-04-11  Simon Josefsson  <simon@josefsson.org>
61704
61705         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
61706         of attempting to use non-existing /dev/*random.  Based on patch
61707         from Adam Strzelecki <ono@java.pl> in
61708         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
61709
61710 2008-04-08  Bruno Haible  <bruno@clisp.org>
61711
61712         Add tentative support for emx+gcc.
61713         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
61714         * lib/fpurge.c (fpurge): Likewise.
61715         * lib/freadable.c (freadable): Likewise.
61716         * lib/freadahead.c (freadahead): Likewise.
61717         * lib/freading.c (freading): Likewise.
61718         * lib/freadptr.c (freadptr): Likewise.
61719         * lib/freadseek.c (freadptrinc): Likewise.
61720         * lib/fseeko.c (rpl_fseeko): Likewise.
61721         * lib/fseterr.c (fseterr): Likewise.
61722         * lib/fwritable.c (fwritable): Likewise.
61723         * lib/fwriting.c (fwriting): Likewise.
61724         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
61725
61726 2008-04-09  Eric Blake  <ebb9@byu.net>
61727
61728         Avoid some autoconf warnings.
61729         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
61730         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
61731         * m4/afs.m4 (gl_AFS): Likewise.
61732         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
61733         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
61734         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61735         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
61736         (gl_INTEGER_TYPE_SUFFIX): Likewise.
61737         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
61738         (AC_CHECK_DECLS_ONCE): Likewise.
61739         Rename file...
61740         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
61741         gnulib-tool requires autoconf 2.59 or better.
61742         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
61743
61744 2008-04-08  Eric Blake  <ebb9@byu.net>
61745
61746         Use 'git describe --match' if present (added in git 1.5.5).
61747         * build-aux/git-version-gen: Limit result to tags that match 'v*'
61748         if possible.
61749
61750 2008-04-08  Bruno Haible  <bruno@clisp.org>
61751
61752         Add tentative support for OpenServer.
61753         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
61754         _ptr, _cnt.
61755         * lib/fpurge.c (fpurge): Likewise.
61756         * lib/freadable.c (freadable): Likewise.
61757         * lib/freadahead.c (freadahead): Likewise.
61758         * lib/freading.c (freading): Likewise.
61759         * lib/freadptr.c (freadptr): Likewise.
61760         * lib/freadseek.c (freadptrinc): Likewise.
61761         * lib/fseeko.c (rpl_fseeko): Likewise.
61762         * lib/fseterr.c (fseterr): Likewise.
61763         * lib/fwritable.c (fwritable): Likewise.
61764         * lib/fwriting.c (fwriting): Likewise.
61765         Reported by Roger Cornelius <rac@tenzing.org> and
61766         Brian K. White <brian@aljex.com>.
61767
61768 2008-04-06  Jim Meyering  <meyering@redhat.com>
61769
61770         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
61771
61772 2008-04-06  Bruno Haible  <bruno@clisp.org>
61773
61774         Avoid possible error with non-ASCII bytes in UTF-8 locales.
61775         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
61776         * tests/test-printf-posix.sh: Likewise.
61777         * tests/test-vfprintf-posix.sh: Likewise.
61778         * tests/test-vprintf-posix.sh: Likewise.
61779         * tests/test-xprintf-posix.sh: Likewise.
61780
61781 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61782
61783         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
61784         hide error from 'ls', needed on OS/2.
61785         Report by Elbert Pol <elbert.pol@gmail.com>.
61786
61787 2008-04-04  Eric Blake  <ebb9@byu.net>
61788
61789         Make test-fseeko.c failures meaningful.
61790         * tests/test-fseeko.c: Print line number on failure.
61791         * tests/test-fseek.c: Likewise.
61792         Reported by Nelson H. F. Beebe.
61793
61794         Improve strtod bug detection check.
61795         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
61796         required for Solaris 10.
61797         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
61798
61799 2008-04-04  Bruno Haible  <bruno@clisp.org>
61800
61801         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
61802         by m4/setenv.m4.
61803
61804 2008-04-03  Eric Blake  <ebb9@byu.net>
61805
61806         Ensure sane .version contents.
61807         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
61808         version string.
61809         * build-aux/git-version-gen: Improve documentation.
61810
61811         Make GNU make output nicer.
61812         * top/GNUmakefile [!_have-Makefile]: Add dependency on
61813         MAKECMDGOALS to enforce message for all command line targets.  Set
61814         srcdir for use in maint.mk.
61815
61816         Another maintainer tweak.
61817         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
61818         a target that regenerates version.
61819
61820 2008-04-03  Jim Meyering  <meyering@redhat.com>
61821
61822         vc-list-files: don't cause coreutils "make po-check" failure
61823         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
61824
61825 2008-04-03  Eric Blake  <ebb9@byu.net>
61826
61827         Allow VPATH usage of vc-list-files.
61828         * build-aux/vc-list-files (scriptversion): Add timestamp.
61829         (options): Add --help, --version, -C.
61830         (CVS): Support installed cvsu.
61831
61832 2008-04-02  Bruno Haible  <bruno@clisp.org>
61833
61834         Avoid some "statement with no effect" warnings from gcc.
61835         * tests/test-wctype.c (main): Explicitly ignore unused values.
61836         Reported by Jim Meyering.
61837
61838 2008-04-02  Jim Meyering  <meyering@redhat.com>
61839
61840         Avoid some warnings from "gcc -Wshadow".
61841         * tests/test-frexp.c (exp): Define to a different identifier.
61842         * tests/test-frexpl.c (exp): Likewise.
61843
61844 2008-04-03  Jim Meyering  <meyering@redhat.com>
61845
61846         bootstrap: remove dangling *.[ch] symlinks from lib
61847         * build-aux/bootstrap [dangling symlink removal]: Move find's
61848         -depth option to precede all others, to avoid a warning.
61849         Remove *.[ch] files too, and from "$source_base" (usually lib/).
61850
61851 2008-04-02  Bruno Haible  <bruno@clisp.org>
61852
61853         Avoid some warnings from "gcc -Wshadow".
61854         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
61855         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
61856         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
61857         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
61858         Reported by Jim Meyering.
61859
61860 2008-04-01  Bruno Haible  <bruno@clisp.org>
61861
61862         Fix test to work on IRIX 6.5 with cc.
61863         * tests/test-math.c (numeric_equal): New function.
61864         (main): Use it.
61865
61866 2008-04-01  Bruno Haible  <bruno@clisp.org>
61867
61868         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
61869
61870 2008-04-01  Bruno Haible  <bruno@clisp.org>
61871
61872         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
61873         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61874         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
61875         (Depends-on): Remove math.
61876
61877         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
61878         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61879         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
61880         (Depends-on): Remove math.
61881
61882         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
61883         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61884         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
61885         (Depends-on): Remove math.
61886         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
61887         (Depends-on): Remove math.
61888
61889         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
61890         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61891         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
61892         (Depends-on): Remove math.
61893         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
61894         (Depends-on): Remove math.
61895
61896         * tests/test-round1.c: Include nan.h.
61897         (main): Use NaNd instead of NAN.
61898         * modules/round-tests (Files): Add tests/nan.h.
61899
61900         * tests/test-trunc1.c: Include nan.h.
61901         (main): Use NaNd instead of NAN.
61902         * modules/trunc-tests (Files): Add tests/nan.h.
61903
61904         * tests/test-roundf1.c: Include nan.h.
61905         (main): Use NaNf instead of NAN.
61906         * modules/roundf-tests (Files): Add tests/nan.h.
61907
61908         * tests/test-truncf1.c: Include nan.h.
61909         (main): Use NaNf instead of NAN.
61910         * modules/truncf-tests (Files): Add tests/nan.h.
61911
61912         * tests/test-ceilf1.c: Include nan.h.
61913         (main): Use NaNf instead of NAN.
61914         * modules/ceilf-tests (Files): Add tests/nan.h.
61915
61916         * tests/test-floorf1.c: Include nan.h.
61917         (main): Use NaNf instead of NAN.
61918         * modules/floorf-tests (Files): Add tests/nan.h.
61919
61920         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
61921         (main): Use NaNf instead of NAN.
61922         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
61923
61924         * tests/test-isnand.c: Include nan.h instead of <math.h>.
61925         (main): Use NaNd instead of NAN.
61926         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
61927
61928         * tests/test-frexp.c: Include nan.h.
61929         (main): Use NaNd instead of NAN.
61930         * modules/frexp-tests (Files): Add tests/nan.h.
61931
61932         * lib/isnan.c: Don't include <math.h>.
61933         (FUNC): Don't use NAN macro.
61934         * modules/isnand-nolibm (Depends-on): Remove math.
61935         * modules/isnanf-nolibm (Depends-on): Remove math.
61936         * modules/isnanl (Depends-on): Remove math.
61937         * modules/isnanl-nolibm (Depends-on): Remove math.
61938
61939         * tests/nan.h: New file.
61940
61941 2008-04-01  Eric Blake  <ebb9@byu.net>
61942
61943         Fix typos.
61944         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
61945         values to be the right type.
61946
61947         For now, cater to gnulib strtod inaccuracies.
61948         * tests/test-strtod.c (main): Allow 1-ulp error on expected
61949         fractional results.  While not as nice from a QoI perspective, it
61950         is a quicker patch than correctly implementing decimal to binary
61951         rounding.
61952
61953 2008-03-31  Eric Blake  <ebb9@byu.net>
61954
61955         Guarantee a definition of NAN.
61956         * lib/math.in.h (NAN): Define if missing.
61957         * tests/test-math.c (main): Test it.
61958         * doc/posix-headers/math.texi (math.h): Document this.
61959         * lib/isnan.c (rpl_isnand): Use it.
61960         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
61961         * tests/test-floorf1.c (NaN): Likewise.
61962         * tests/test-frexp.c (NaN): Likewise.
61963         * tests/test-isnand.c (NaN): Likewise.
61964         * tests/test-isnanf.c (NaN): Likewise.
61965         * tests/test-round1.c (NaN): Likewise.
61966         * tests/test-roundf1.c (NaN): Likewise.
61967         * tests/test-snprintf-posix.h (NaN): Likewise.
61968         * tests/test-sprintf-posix.h (NaN): Likewise.
61969         * tests/test-trunc1.c (NaN): Likewise.
61970         * tests/test-truncf1.c (NaN): Likewise.
61971         * tests/test-vasnprintf-posix.c (NaN): Likewise.
61972         * tests/test-vasprintf-posix.c (NaN): Likewise.
61973         * modules/isnand-nolibm (Depends-on): Add math.
61974         * modules/isnanf-nolibm (Depends-on): Likewise.
61975         * modules/isnanl (Depends-on): Likewise.
61976         * modules/isnanl-nolibm (Depends-on): Likewise.
61977         * modules/snprintf-posix-tests (Depends-on): Likewise.
61978         * modules/sprintf-posix-tests (Depends-on): Likewise.
61979         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
61980         * modules/vsprintf-posix-tests (Depends-on): Likewise.
61981         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
61982         * modules/vasprintf-posix-tests (Depends-on): Likewise.
61983
61984 2008-03-31  Bruno Haible  <bruno@clisp.org>
61985
61986         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
61987         * doc/posix-functions/strtod.texi: Likewise.
61988
61989 2008-03-31  Bruno Haible  <bruno@clisp.org>
61990
61991         * tests/test-strtod.c (main): Don't use C99 syntax.
61992
61993 2008-03-31  Bruno Haible  <bruno@clisp.org>
61994
61995         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
61996         Reported by Eric Blake.
61997
61998 2008-03-31  Jim Meyering  <meyering@redhat.com>
61999
62000         Don't compare actual signbit return values.
62001         * tests/test-strtod.c (main): Rather, compare only their
62002         zero/non-zero nature.
62003
62004 2008-03-31  Eric Blake  <ebb9@byu.net>
62005
62006         More strtod documentation.
62007         * doc/posix-functions/strtod.texi (strtod): Interpret more test
62008         failures as distinct bugs.
62009
62010 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62011
62012         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
62013         Problem reported by Erik Benada in
62014         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
62015
62016 2008-03-30  Bruno Haible  <bruno@clisp.org>
62017
62018         * tests/test-strtod.c: Add comments about which assertion fails on which
62019         platform.
62020         * doc/posix-functions/strtod.texi: Add info about many more platforms.
62021
62022 2008-03-30  Eric Blake  <ebb9@byu.net>
62023
62024         Test signbit behavior on zeros.
62025         * tests/test-signbit.c (test_signbitf): Add tests for zero.
62026         (test_signbitd, test_signbitl): Likewise.
62027
62028         More strtod touchups.
62029         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
62030         sign of negative underflow, for now.  Use .5, not .1.
62031         * doc/posix-functions/strtod.texi (strtod): Mention these
62032         limitations.
62033         Reported by Jim Meyering.
62034
62035 2008-03-30  Bruno Haible  <bruno@clisp.org>
62036
62037         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
62038         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
62039
62040 2008-03-30  Bruno Haible  <bruno@clisp.org>
62041
62042         Avoid failure when attempting to return empty iconv results on some
62043         platforms.
62044         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
62045         allocation, don't report ENOMEM when the resulting string is empty.
62046
62047 2008-03-30  Bruno Haible  <bruno@clisp.org>
62048
62049         Fix buffer overrun.
62050         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
62051         Don't consider the width for tmp_length. Check count against tmp_length
62052         before doing the padding. Ensure enough allocation during padding.
62053
62054 2008-03-30  Eric Blake  <ebb9@byu.net>
62055
62056         strtod touchups.
62057         * lib/strtod.c (strtod): Avoid compiler warnings.
62058         Reported by Jim Meyering.
62059
62060 2008-03-30  Bruno Haible  <bruno@clisp.org>
62061
62062         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
62063         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
62064         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
62065         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
62066         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
62067         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
62068         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
62069         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
62070
62071         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
62072         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
62073         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
62074         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
62075         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
62076         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
62077         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
62078         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
62079
62080         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
62081         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
62082         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
62083         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
62084         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
62085         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
62086         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
62087         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
62088
62089         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
62090         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
62091
62092         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
62093         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
62094
62095         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
62096         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
62097
62098         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
62099         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
62100         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
62101
62102         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
62103         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
62104         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
62105
62106         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
62107         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
62108         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
62109
62110         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
62111         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
62112         * modules/vasprintf (Depends-on): Add EOVERFLOW.
62113
62114         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
62115         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
62116         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
62117         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
62118         (Depends-on): Add EOVERFLOW.
62119         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
62120         (Depends-on): Add EOVERFLOW.
62121         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62122         (Depends-on): Add EOVERFLOW.
62123         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62124         (Depends-on): Add EOVERFLOW.
62125         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62126         (Depends-on): Add EOVERFLOW.
62127         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62128         (Depends-on): Add EOVERFLOW.
62129         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62130         (Depends-on): Add EOVERFLOW.
62131         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62132         (Depends-on): Add EOVERFLOW.
62133
62134         * lib/sprintf.c (EOVERFLOW): Remove fallback.
62135         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
62136         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
62137
62138         * lib/snprintf.c (EOVERFLOW): Remove fallback.
62139         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
62140         * modules/snprintf (Depends-on): Add EOVERFLOW.
62141
62142         * lib/poll.c (EOVERFLOW): Remove fallback.
62143         * modules/poll (Depends-on): Add EOVERFLOW.
62144
62145         * lib/getugroups.c (EOVERFLOW): Remove fallback.
62146         * modules/getugroups (Depends-on): Add EOVERFLOW.
62147
62148         * lib/getdelim.c (EOVERFLOW): Remove fallback.
62149         * modules/getdelim (Depends-on): Add EOVERFLOW.
62150
62151         * lib/ftell.c (EOVERFLOW): Remove fallback.
62152         * modules/ftell (Depends-on): Add EOVERFLOW.
62153
62154         * lib/fprintf.c (EOVERFLOW): Remove fallback.
62155         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
62156         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
62157
62158         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
62159
62160         * modules/EOVERFLOW-tests: New file.
62161         * tests/test-EOVERFLOW.c: New file.
62162
62163         * modules/EOVERFLOW: New file.
62164         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
62165
62166 2008-03-30  Bruno Haible  <bruno@clisp.org>
62167
62168         Fix bug introduced on 2007-06-10.
62169         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
62170         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
62171
62172 2008-03-30  Bruno Haible  <bruno@clisp.org>
62173
62174         Improve freadseek's efficiency after ungetc.
62175         * lib/freadseek.c: Include freadahead.h.
62176         (freadptrinc): New function, extracted from freadseek.
62177         (freadseek): Use it in a loop. Use freadahead to determine the number
62178         of loop iterations.
62179         * modules/freadseek (Depends-on): Add freadahead.
62180         (configure.ac): Require AC_C_INLINE.
62181
62182 2008-03-30  Bruno Haible  <bruno@clisp.org>
62183
62184         * lib/freadseek.c (freadseek): Don't ignore the return value of
62185         freadptr.
62186
62187 2008-03-29  Eric Blake  <ebb9@byu.net>
62188
62189         Add hex float support.
62190         * modules/strtod (Depends-on): Add c-ctype.
62191         (Link): Mention POW_LIB.
62192         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
62193         whitespace between 'e' and exponent.
62194         * tests/test-strtod.c (main): Enable hex float tests.
62195         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
62196         now provides.
62197
62198         Document various strtod bugs, with some fixes.
62199         * doc/posix-functions/strtod.texi (strtod): Document bugs with
62200         "-0x", "inf", "nan", and hex constants.
62201         * doc/posix-functions/atof.texi (atof): Likewise.
62202         * modules/stdlib (Makefile.am): Support strtod.
62203         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
62204         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
62205         detect additional strtod bugs.
62206         * lib/stdlib.in.h (rpl_strtod): Add declarations.
62207         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
62208         bool where appropriate.  Parse 'inf' and 'nan'.
62209         * tests/test-strtod.c: New file.
62210         * modules/strtod (Depends-on): Add stdbool, stdlib.
62211         (configure.ac): Turn on module indicator.
62212         * modules/strtod-tests: New module.
62213
62214 2008-03-29  Eric Blake  <ebb9@byu.net>
62215
62216         Fix ftell on mingw.
62217         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
62218         * modules/ftell-tests (Depends-on): Add binary-io.
62219         * modules/ftello-tests (Depends-on): Likewise.
62220         * tests/test-ftell.c (main): Enhance test to cover behavior after
62221         ungetc.  Enforce binary mode.
62222         * tests/test-ftello.c (main): Likewise.
62223
62224         Pass test-freadseek on cygwin.
62225         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
62226         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
62227         ungetc buffer.
62228
62229         * tests/test-fflush2.c (main): Fix typo.
62230
62231 2008-03-29  Bruno Haible  <bruno@clisp.org>
62232
62233         * tests/test-fflush2.c (main): Temporarily disable the contents of
62234         this test.
62235         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
62236         Reported by Eric Blake.
62237
62238 2008-03-28  Simon Josefsson  <simon@josefsson.org>
62239
62240         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
62241         (GC_SHA224_DIGEST_SIZE): Add.
62242
62243         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
62244         (gc_hash_digest_length): Likewise.
62245         (gc_hash_buffer): Likewise.
62246
62247 2008-03-25  Bruno Haible  <bruno@clisp.org>
62248
62249         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
62250         detail which gettext release to use.
62251         Reported by Simon Josefsson.
62252
62253 2008-03-26  Jim Meyering  <meyering@redhat.com>
62254
62255         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
62256         * modules/gnumakefile (clean-GNUmakefile): Also, use
62257         test ... && ... || : syntax rather than if-then ... fi.
62258
62259         gnumakefile: Don't double-quote-expand $(VPATH) value.
62260         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
62261
62262 2008-03-24  Eric Blake  <ebb9@byu.net>
62263
62264         Alter GNUmakefile to install into top directory.
62265         * modules/maintainer-makefile: Split, and add dependency...
62266         * modules/gnumakefile: to this new module.
62267         * build-aux/GNUmakefile: Move...
62268         * top/GNUmakefile: ...here.
62269         * build-aux/maint.mk: Move...
62270         * top/maint.mk: ...here.
62271         * MODULES.html.sh (Support for maintaining...): Document new
62272         module.
62273
62274 2008-03-23  Bruno Haible  <bruno@clisp.org>
62275
62276         * gnulib-tool: New options --vc-files, --no-vc-files.
62277         (func_usage): Document them.
62278         (vc_files): New variable.
62279         (func_import): Consider vc_files.
62280         (func_create_testdir): Set vc_files to empty.
62281         Suggested by Jim Meyering and Karl Berry.
62282
62283 2008-03-23  Bruno Haible  <bruno@clisp.org>
62284
62285         Fix regex compilation error on HP-UX 11.
62286         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
62287         * modules/regex (Files): Add m4/mbstate_t.m4.
62288         Reported by Ton Voon <ton.voon@altinity.com>.
62289
62290 2008-03-23  Bruno Haible  <bruno@clisp.org>
62291
62292         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
62293
62294 2008-03-23  Eric Blake  <ebb9@byu.net>
62295             Bruno Haible  <bruno@clisp.org>
62296
62297         Install files from top/ in the destination directory.
62298         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62299         augmentation also for the files from top/.
62300         (func_import, func_create_testdir): Rewrite file names:
62301         top/filename -> filename.
62302
62303 2008-03-23  Bruno Haible  <bruno@clisp.org>
62304
62305         Tweak "gnulib --version" output.
62306         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
62307
62308 2008-03-23  Bruno Haible  <bruno@clisp.org>
62309
62310         Tweak "gnulib --version" output.
62311         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
62312         rather than contents of ChangeLog, when possible.
62313
62314 2008-03-21  Eric Blake  <ebb9@byu.net>
62315
62316         More --version tweaks.
62317         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
62318         date of last ChangeLog entry.
62319
62320 2008-03-21  Jim Meyering  <meyering@redhat.com>
62321
62322         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
62323
62324 2008-03-20  Eric Blake  <ebb9@byu.net>
62325
62326         VPATH fix.
62327         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
62328
62329 2008-03-20  Simon Josefsson  <simon@josefsson.org>
62330
62331         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
62332         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
62333
62334 2008-03-20  Eric Blake  <ebb9@byu.net>
62335
62336         Sync GNUmakefile with coreutils.
62337         * build-aux/GNUmakefile (have-Makefile): Rename...
62338         (_have-Makefile): ...to this, for namespace consideration.
62339         (GNUmakefile.cfg): Include, if present.
62340         (_autoreconf): Define a default.
62341         (_is-dist-target): New rule for rebuilds to pick up intra-release
62342         version.
62343         (maint-cfg.mk): Rename...
62344         (cfg.mk): ...to this.
62345
62346 2008-03-18  Jim Meyering  <meyering@redhat.com>
62347
62348         New script and module: mktempd
62349         * MODULES.html.sh (maint+release support): Add mktempd.
62350         * build-aux/mktempd: New file.
62351         * modules/mktempd: New file.
62352
62353 2008-03-15  Jim Meyering  <meyering@redhat.com>
62354
62355         Undo last change.
62356         * lib/sha1.c, lib/md5.c: 63 != ~63.
62357         Reported by Andreas Schwab.
62358
62359         sha1.c, md5.c: Hoist a redundant expression.
62360         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
62361         "ctx->buflen" only once, before calling *_process_block.
62362         * lib/md5.c (md5_process_bytes): Likewise.
62363
62364 2008-03-14  Eric Blake  <ebb9@byu.net>
62365
62366         Bump copyright year in files generated by gnulib-tool.
62367         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
62368         gnulib-tool, rather than hard-coding it.
62369
62370         Fix 'gnulib-tool --version' output to work with git.
62371         * gnulib-tool (func_gnulib_dir): New function, extracted from...
62372         (startup): ...here.
62373         (func_version): Use it to invoke git-version-gen, rather than
62374         relying on CVS keyword expansion.  Modernize wording.
62375         (cvsdatestamp, last_checkin_date, version): Kill unused
62376         variables.
62377
62378 2008-03-12  Jim Meyering  <meyering@redhat.com>
62379
62380         Recognize optional cast of the argument to free.
62381         * build-aux/useless-if-before-free: Update regexps.
62382
62383         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
62384
62385 2008-03-11  Bruno Haible  <bruno@clisp.org>
62386
62387         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
62388         by a single package.
62389         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
62390         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
62391         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
62392         Reported by Sam Steingold <sds@gnu.org>.
62393
62394 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62395
62396         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
62397         repositories.
62398
62399 2008-03-11  Bruno Haible  <bruno@clisp.org>
62400
62401         Avoid conflicts between local macro definitions.
62402         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62403         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
62404
62405 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
62406             Bruno Haible  <bruno@clisp.org>
62407
62408         Make va_copy work with some version of xlc on AIX 5.1.
62409         * lib/stdarg.in.h: New file.
62410         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
62411         On AIX, use a <stdarg.h> file substitute.
62412         * modules/stdarg (Files): Add lib/stdarg.in.h.
62413         (Depends-on): Add include_next.
62414         (Makefile.am): Build a stdarg.h substitute if requested.
62415         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
62416
62417 2008-03-10  Bruno Haible  <bruno@clisp.org>
62418
62419         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
62420         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
62421         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62422
62423 2008-03-10  Bruno Haible  <bruno@clisp.org>
62424
62425         * modules/stdlib (Depends-on): Add include_next, remove
62426         absolute-header.
62427
62428 2008-03-09  Bruno Haible  <bruno@clisp.org>
62429
62430         * lib/freadahead.h (freadahead): Document more precisely.
62431         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
62432         the sum of both buffer sizes.
62433         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
62434         * NEWS: Document the change.
62435
62436 2008-03-09  Bruno Haible  <bruno@clisp.org>
62437
62438         Extend freadptr to return also the buffer size.
62439         * lib/freadptr.h (freadptr): Add sizep argument.
62440         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
62441         (freadptr): Add sizep argument. Determine buffer size like freadahead
62442         does.
62443         * tests/test-freadptr.c: Don't include freadahead.h.
62444         (main): Adapt for new calling convention of freadptr.
62445         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
62446         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
62447         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
62448         tests/test-freadptr2.sh.
62449         (Depends): Remove freadahead.
62450         (TESTS): Add test-freadptr2.sh.
62451         (check_PROGRAMS): Add test-freadptr2.
62452
62453 2008-03-09  Bruno Haible  <bruno@clisp.org>
62454
62455         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
62456         Report and solution by Simon Josefsson.
62457
62458 2008-03-06  Bruno Haible  <bruno@clisp.org>
62459
62460         Make fflush after ungetc work on BSD platforms.
62461         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
62462         * tests/test-fflush2.c: New file.
62463         * tests/test-fflush2.sh: New file.
62464         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
62465         tests/test-fflush2.c.
62466         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
62467         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
62468
62469 2008-03-06  Eric Blake  <ebb9@byu.net>
62470
62471         Likewise for ftello.
62472         * modules/ftello (Dependencies): Add extensions.
62473         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
62474
62475 2008-03-06  Bruno Haible  <bruno@clisp.org>
62476
62477         * modules/fseeko (Dependencies): Add extensions.
62478         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
62479         Needed on glibc systems.
62480
62481 2008-03-06  Bruno Haible  <bruno@clisp.org>
62482
62483         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
62484         email address.
62485         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62486
62487 2008-03-06  Bruno Haible  <bruno@clisp.org>
62488
62489         * users.txt: Add libgnupdf.
62490
62491 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62492
62493         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
62494         (Header File Substitutes, Function Substitutes,
62495         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
62496         (Build robot for gnulib): Fix typo.
62497
62498 2008-03-06  Bruno Haible  <bruno@clisp.org>
62499
62500         * doc/gnulib-tool.texi (VCS Issues): Small updates.
62501         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62502
62503 2008-03-06  Bruno Haible  <bruno@clisp.org>
62504
62505         * doc/func.texi: New file, extracted from doc/gnulib.texi.
62506         * doc/gnulib.texi: Include it.
62507
62508 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62509
62510         * modules/func (License): Change license to unlimited; there was
62511         no LGPL parts in the module anyway.
62512
62513 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62514
62515         * modules/__func__: Renamed to modules/func.
62516         * modules/__func__-tests: Renamed to modules/func-tests.
62517         * tests/test-__func__.c: Renamed to tests/test-func.c.
62518         * m4/__func__.m4: Renamed to m4/func.m4.
62519         * doc/gnulib.texi (__func__): Section renamed to func.
62520         Suggested by Eric Blake <ebb9@byu.net>.
62521
62522 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62523
62524         * doc/gnulib.texi (__func__): Use C99 terminology when talking
62525         about __func__.  Make example self-contained.  Suggested by Eric
62526         Blake <ebb9@byu.net>.
62527
62528         * tests/test-__func__.c (main): Avoid extraneous () around __func.
62529         Suggested by Eric Blake <ebb9@byu.net>.
62530
62531 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62532
62533         * modules/__func__: New file.
62534         * modules/__func__-tests: New file.
62535         * tests/test-__func__.c: New file.
62536         * m4/__func__.m4: New file.
62537         * doc/gnulib.texi (__func__): Document __func__ module.
62538
62539 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62540
62541         * modules/byteswap (License): Re-license as LGPLv2+.
62542
62543 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62544
62545         * doc/Makefile: Add pdf target.
62546
62547 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62548
62549         * modules/inline (License): Use 'unlimited', since there are only
62550         *.m4 files in this module.
62551
62552 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62553             Bruno Haible  <bruno@clisp.org>
62554
62555         Add support for HP C 7.1 on OpenVMS 8.3.
62556         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
62557
62558 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62559
62560         Update VMS specifics.
62561         * lib/getopt.c [VMS]: Remove include of unixlib.h.
62562
62563 2008-03-02  Jim Meyering  <meyering@redhat.com>
62564
62565         Remove the last dependency on the "free" module.
62566         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
62567         Reported by Bob Proulx.
62568
62569         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
62570
62571         Remove useless "if" tests before free.  Deprecate "free" module.
62572         * doc/posix-functions/free.texi: Mention that this
62573         module is no longer useful.
62574         * modules/free (Notice): Say this module is obsolete.
62575         * modules/readutmp (Depends-on): Remove free.
62576         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
62577         * lib/putenv.c (putenv): Likewise.
62578         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
62579         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
62580         * tests/test-c-strcasestr.c (main): Likewise.
62581         * tests/test-c-strstr.c (main): Likewise.
62582         * tests/test-mbscasestr1.c (main): Likewise.
62583         * tests/test-mbscasestr2.c (main): Likewise.
62584         * tests/test-mbsstr1.c (main): Likewise.
62585         * tests/test-mbsstr2.c (main): Likewise.
62586         * tests/test-memmem.c (main): Likewise.
62587         * tests/test-strcasestr.c (main): Likewise.
62588         * tests/test-striconv.c (main): Likewise.
62589         * tests/test-striconveh.c (main): Likewise.
62590         * tests/test-striconveha.c (main): Likewise.
62591         * tests/test-strstr.c (main): Likewise.
62592
62593         * build-aux/git-version-gen: Adjust a comment and the Usage string.
62594
62595         bootstrap: sync from coreutils again
62596         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
62597
62598 2008-03-01  Jim Meyering  <meyering@redhat.com>
62599
62600         bootstrap: sync from coreutils
62601         * build-aux/bootstrap (update_po_files): Copy a .po file into place
62602         also when the target doesn't exist.
62603
62604 2008-03-01  Eric Blake  <ebb9@byu.net>
62605
62606         Fix bugs in last patch.
62607         * lib/memchr2.c (memchr2): Fix typo.
62608         * tests/test-memchr2.c: Test previous bug, and don't use GNU
62609         extension.
62610         Reported by Bruce Korb.
62611
62612         New module 'memchr2'.
62613         * modules/memchr2: New file.
62614         * modules/memchr2-tests: Likewise.
62615         * lib/memchr2.h: Likewise.
62616         * lib/memchr2.c: Likewise, based on memchr.c.
62617         * tests/test-memchr2.c: New test.
62618         * MODULES.html.sh (String handling): Add memchr2.
62619
62620 2008-02-29  Bruno Haible  <bruno@clisp.org>
62621
62622         * modules/freadseek-tests: New file.
62623         * tests/test-freadseek.sh: New file.
62624         * tests/test-freadseek.c: New file.
62625
62626         New module 'freadseek'.
62627         * modules/freadseek: New file.
62628         * lib/freadseek.h: New file.
62629         * lib/freadseek.c: New file.
62630         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
62631
62632 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62633
62634         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
62635         wydawca.
62636
62637         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
62638         program_invocation_name and program_invocation_short_name are
62639         present.
62640
62641 2008-02-28  Bruno Haible  <bruno@clisp.org>
62642
62643         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
62644         * tests/test-freadptr.sh: Also test non-seekable stdin.
62645
62646 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
62647
62648         * build-aux/bootstrap (source_base, m4_base)
62649         (doc_base, tests_base): New variables.
62650         (gnulib_tool_options): Do not hardcode base directories, use
62651         the above variables instead.
62652
62653 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
62654
62655         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
62656
62657 2008-02-28  Bruno Haible  <bruno@clisp.org>
62658
62659         * modules/freadptr-tests: New file.
62660         * tests/test-freadptr.sh: New file.
62661         * tests/test-freadptr.c: New file.
62662
62663         New module 'freadptr'.
62664         * modules/freadptr: New file.
62665         * lib/freadptr.h: New file.
62666         * lib/freadptr.c: New file.
62667         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
62668
62669 2008-02-26  Karl Berry  <karl@freefriends.org>
62670
62671         Sync from Libtool:
62672         * libltdl/argz.c (argz_add, argz_count): New functions.
62673         * libltdl/argz.in.h: Declare them.
62674         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
62675
62676 2008-02-22  Bruno Haible  <bruno@clisp.org>
62677
62678         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
62679         is a pointer type.  Needed for HP-UX 10.
62680         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
62681         * doc/posix-functions/gmtime_r.texi: Likewise.
62682         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62683
62684 2008-02-24  Bruno Haible  <bruno@clisp.org>
62685
62686         * modules/environ-tests: New file.
62687         * tests/test-environ.c: New file.
62688
62689         New module 'environ'.
62690         * modules/environ: New file.
62691         * lib/unistd.in.h (environ): New declaration.
62692         * m4/environ.m4: New file.
62693         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
62694         after use.
62695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
62696         HAVE_DECL_ENVIRON.
62697         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
62698         HAVE_DECL_ENVIRON.
62699         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
62700         wrong claim that 'environ' is missing on some systems.
62701         * modules/execute (Depends-on): Add environ.
62702         * lib/execute.c (environ): Remove fallback declaration.
62703         * modules/pipe (Depends-on): Add environ.
62704         * lib/pipe.c (environ): Remove fallback declaration.
62705         * modules/setenv (Depends-on): Add environ.
62706         * lib/setenv.c (environ): Remove fallback declaration.
62707         * modules/unsetenv (Depends-on): Add environ.
62708         * lib/unsetenv.c (environ): Remove fallback declaration.
62709         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
62710         m4/environ.m4.
62711         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
62712         (gl_PREREQ_UNSETENV): Likewise.
62713
62714 2008-02-24  Bruno Haible  <bruno@clisp.org>
62715
62716         * doc/posix-functions/environ.texi: Document the MacOS X problem.
62717
62718 2008-02-20  Bob Proulx  <bob@proulx.com>
62719
62720         Enable use of older two part flavor 'git describe'.
62721         * build-aux/git-version-gen: If using the older two part flavor of
62722         git version then recreate the third part now present in the
62723         newer three part flavor of git describe.
62724
62725 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
62726
62727         * lib/fts.c (fts_build): Typo correction to comment.
62728
62729 2008-02-17  Bruno Haible  <bruno@clisp.org>
62730
62731         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
62732         generating no-op conflicts.
62733
62734 2008-02-17  Bruno Haible  <bruno@clisp.org>
62735
62736         Speed up by 10%.
62737         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
62738         result_entries, rather than an index-based loop.
62739
62740 2008-02-17  Bruno Haible  <bruno@clisp.org>
62741
62742         Speed up by 25%.
62743         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
62744         'hashcode_cached'.
62745         (entry_create): New function.
62746         (entry_hashcode): Use the cached hashcode if possible.
62747         (read_changelog_file, try_split_merged_entry): Use entry_create.
62748
62749 2008-02-17  Bruno Haible  <bruno@clisp.org>
62750
62751         Speed up from O(n^2) to O(n) for long ChangeLog files.
62752         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
62753         (read_changelog_file): Change implementation of entries_reversed list
62754         to rbtreehash.
62755         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
62756
62757 2008-02-17  Bruno Haible  <bruno@clisp.org>
62758
62759         New option --split-merged-entry.
62760         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
62761         (find_paragraph_end, try_split_merged_entry): New functions.
62762         (long_options): Add option --split-merged-entry.
62763         (usage): Document option --split-merged-entry.
62764         (main): Implement option --split-merged-entry.
62765         Reported by Eric Blake.
62766
62767 2008-02-17  Bruno Haible  <bruno@clisp.org>
62768
62769         * lib/git-merge-changelog.c: Include c-strstr.h.
62770         (main): Support the "git pull --rebase" situation.
62771         * modules/git-merge-changelog (Depends-on): Add c-strstr.
62772         Reported by Eric Blake.
62773
62774 2008-02-16  Eric Blake  <ebb9@byu.net>
62775
62776         Avoid doubling \ in common case of "c-maybe" quoting style.
62777         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
62778         eliding outer quotes.
62779         * lib/quotearg.h: Document this.
62780         * tests/test-quotearg.c (result_strings, inputs, results_g)
62781         (flag_results, locale_results): Test it by adding a new string to
62782         each test group.
62783         (compare_strings): Test new string.
62784
62785 2008-02-13  Eric Blake  <ebb9@byu.net>
62786
62787         Avoid trigraph quoting in default output.
62788         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
62789         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
62790         unless explicitly requested.
62791         * tests/test-quotearg.c (flag_results, main): Add additional tests.
62792
62793 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
62794
62795         Don't rely on signed integer overflowing to negative value.
62796         * lib/getugroups.c (getugroups): Include <limits.h>.
62797         Instead, compare against INT_MAX, and increment only if the test passes.
62798
62799 2008-02-13  Jim Meyering  <meyering@redhat.com>
62800         and Eric Blake  <ebb9@byu.net>
62801
62802         Avoid shadowing warning and compile errors on Linux.
62803         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
62804         forwarding macros on Linux.
62805         (dcgettext): Define a stub, for Linux.
62806         (results_g, main): Avoid warnings.
62807
62808 2008-02-12  Eric Blake  <ebb9@byu.net>
62809
62810         Silence warning in last patch.
62811         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
62812
62813         Quotearg part 4: add tests, fix c-maybe colon quoting.
62814         * lib/quotearg.h: Improve documentation.
62815         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
62816         escapes when adding outer quotes.  When quoting trigraphs, use
62817         valid C notation.  When quoting NUL, omit extra characters if next
62818         character is not digit.  Alter prototype.
62819         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
62820         callers.
62821         * modules/quotearg-tests: New module.
62822         * tests/test-quotearg.c: New test.
62823
62824 2008-02-07  Eric Blake  <ebb9@byu.net>
62825
62826         Quotearg part 3: add flag to control outer quote elision.
62827         * lib/quotearg.h (c_maybe_quoting_style): New style.
62828         (enum quoting_flags): Better documentation of flags.
62829         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
62830         c-maybe style.
62831         (quotearg_buffer_restyled): Handle new flag to elide outer
62832         quotes.
62833
62834         Quotearg part 2: add flag that can control NUL elision.
62835         * lib/quotearg.h (set_quoting_flags): New prototype.
62836         * lib/quotearg.c (struct quoting_options): Add flag field.
62837         (set_quoting_flags): New function.
62838         (quotearg_buffer_restyled): Add flags parameter.
62839         (quotearg_alloc_mem): Set the flag if length cannot be returned.
62840         (quotearg_n_options): Set the flag, since length cannot be
62841         returned.
62842         (quoting_options_from_style): Default flags correctly.
62843
62844         Quotearg part 1: more wrappers, restore quotearg_char state.
62845         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
62846         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
62847         (quotearg_colon_mem): New wrappers.
62848         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
62849         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
62850         functions.
62851         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
62852         (quotearg_colon_mem): New functions.
62853
62854 2008-02-11  Bruno Haible  <bruno@clisp.org>
62855
62856         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
62857         library in the current directory: it does not work with parallel make.
62858         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62859
62860 2008-02-11  Bruno Haible  <bruno@clisp.org>
62861
62862         * .gitattributes: New file.
62863
62864 2008-02-11  Jim Meyering  <meyering@redhat.com>
62865
62866         useless-if-before-free: Fix reversed exit values.
62867         * build-aux/useless-if-before-free: Use correct values
62868         for EXIT_MATCH and EXIT_NO_MATCH.
62869
62870         * build-aux/useless-if-before-free: Close stdout carefully.
62871
62872 2008-02-10  Bruno Haible  <bruno@clisp.org>
62873
62874         New module 'git-merge-changelog'.
62875         * modules/git-merge-changelog: New file.
62876         * lib/git-merge-changelog.c: New file.
62877
62878 2008-02-10  Jim Meyering  <meyering@redhat.com>
62879
62880         useless-if-before-free: New option: --list (-l).
62881
62882         useless-if-before-free: Don't exit immediately upon open failure.
62883         * build-aux/useless-if-before-free: Exit 2 for errors.
62884         Upon failure to open a file, don't exit immediately.
62885         Rather, just warn and continue with any remaining files.
62886
62887 2008-02-10  Bruno Haible  <bruno@clisp.org>
62888
62889         New abstract list operation 'node_set_value'.
62890         * lib/gl_list.h (gl_list_node_set_value): New function.
62891         (struct gl_list_implementation): New field node_set_value.
62892         * lib/gl_list.c (gl_list_node_set_value): New function.
62893         * lib/gl_array_list.c (gl_array_node_set_value): New function.
62894         (gl_array_list_implementation): Update.
62895         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
62896         (gl_carray_list_implementation): Update.
62897         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
62898         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62899         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62900         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
62901         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62902         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62903         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62904         Update.
62905         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62906         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
62907         (gl_sublist_list_implementation): Update.
62908
62909 2008-02-10  Bruno Haible  <bruno@clisp.org>
62910
62911         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
62912         Needed when ELEMENT is #defined to 'some_type *'.
62913
62914 2008-02-10  Jim Meyering  <meyering@redhat.com>
62915
62916         New script and module: useless-if-before-free
62917         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
62918         * build-aux/useless-if-before-free: New file.
62919         * modules/useless-if-before-free: New file.
62920
62921         * build-aux/gitlog-to-changelog: Use committer date, not author date.
62922
62923         xstrtol_error: Fix typo.
62924         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
62925         s/exit_failure/exit_status/.
62926
62927 2008-02-09  Jim Meyering  <meyering@redhat.com>
62928
62929         New script and module: gitlog-to-changelog
62930         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
62931         * modules/gitlog-to-changelog: New file.
62932         * build-aux/gitlog-to-changelog: New file.
62933
62934 2008-02-08  Jim Meyering  <meyering@redhat.com>
62935
62936         Avoid two "parameter unused" warnings.
62937         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
62938         Mark "st" as used.
62939
62940         Use "git COMMAND", not "git-COMMAND".
62941         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
62942         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
62943         * build-aux/git-version-gen: Use "git status", not "git-status".
62944
62945 2008-02-07  Bruno Haible  <bruno@clisp.org>
62946
62947         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
62948         Avoids a crash on Windows Vista.
62949         Reported by Adam Strzelecki <ono@java.pl> via
62950         Simon Josefsson <simon@josefsson.org>.
62951
62952 2008-02-06  Bruno Haible  <bruno@clisp.org>
62953
62954         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
62955         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
62956         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
62957         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
62958         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62959         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62960         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
62961         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
62962         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62963         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62964         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62965         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62966         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62967         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62968         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62969         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
62970         left-adjust flag.
62971         * tests/test-snprintf-posix.h (test_function): Likewise.
62972         * tests/test-sprintf-posix.h (test_function): Likewise.
62973         * tests/test-vasprintf-posix.c (test_function): Likewise.
62974         * doc/posix-functions/fprintf.texi: Update.
62975         * doc/posix-functions/printf.texi: Update.
62976         * doc/posix-functions/snprintf.texi: Update.
62977         * doc/posix-functions/sprintf.texi: Update.
62978         * doc/posix-functions/vfprintf.texi: Update.
62979         * doc/posix-functions/vprintf.texi: Update.
62980         * doc/posix-functions/vsnprintf.texi: Update.
62981         * doc/posix-functions/vsprintf.texi: Update.
62982         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62983
62984 2008-02-06  Bruno Haible  <bruno@clisp.org>
62985
62986         Fix bug introduced on 2008-01-26.
62987         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
62988
62989 2008-02-06  Bruno Haible  <bruno@clisp.org>
62990
62991         Fix bug introduced on 2007-06-10.
62992         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
62993         !NEED_PRINTF_FLAG_ZERO.
62994
62995 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
62996
62997         getloadavg: use libperfstat on AIX5
62998         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
62999
63000 2008-02-03  Bruno Haible  <bruno@clisp.org>
63001
63002         * lib/diffseq.h: Add comments about required #includes.
63003         Reported by Michael Biggs <gnulib@doubleplum.net>.
63004
63005 2008-02-01  Bruno Haible  <bruno@clisp.org>
63006
63007         * users.txt: Add gnuit.
63008
63009 2008-01-31  Bruno Haible  <bruno@clisp.org>
63010
63011         * lib/md4.c (set_uint32): Mark as inline.
63012         * lib/md5.c (set_uint32): Likewise.
63013         * lib/sha1.c (set_uint32): Likewise.
63014         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
63015         * m4/md5.m4 (gl_MD5): Likewise.
63016         * m4/sha1.m4 (gl_SHA1): Likewise.
63017
63018 2008-01-31  Jim Meyering  <meyering@redhat.com>
63019
63020         Use "sizeof VAR", rather than a literal "4".
63021         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
63022         * lib/md4.c (md4_read_ctx): Likewise.
63023         * lib/sha1.c (sha1_read_ctx): Likewise.
63024
63025 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63026
63027         * tests/test-sha1.c: New file, based on test-md5.c.
63028
63029         * modules/crypto/sha1-tests: New file.
63030
63031 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63032
63033         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
63034
63035 2008-01-31  Jim Meyering  <meyering@redhat.com>
63036
63037         Prefer "sizeof v" over the equivalent "4".
63038         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
63039         * lib/md5.c (set_uint32): Likewise.
63040         * lib/sha1.c (set_uint32): Likewise.
63041
63042 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63043
63044         * lib/sha1.c (set_uint32): Mark function as static.
63045
63046 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63047
63048         md2: clarify comments to say that alignment is not required.
63049         * lib/md2.h: Remove warning about alignment in comment.
63050         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
63051         never been required.
63052
63053 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63054
63055         md4: adapt alignment constraint fix from sha1.
63056         * lib/md4.c (set_uint32): New function, from sha1.c
63057         (md4_read_ctx): Use it.
63058         (md4_finish_ctx): Doc fix.
63059         * lib/md4.h: Doc fix.
63060
63061 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63062
63063         md5: adapt alignment constraint fix from sha1.
63064         * lib/md5.c (set_uint32): New function, from sha1.c
63065         (md5_read_ctx): Use it.
63066         (md5_finish_ctx): Doc fix.
63067         * lib/md5.h: Doc fix.
63068
63069 2008-01-30  Peter Palfrader  <weasel@debian.org>
63070
63071         sha1: remove the result buffer alignment constraint
63072         * lib/sha1.c (set_uint32): New function.
63073         (sha1_read_ctx): Rewrite to remove the result buffer alignment
63074         constraint.
63075         (sha1_finish_ctx): Remove comment warning about alignment constraint.
63076         * lib/sha1.h: Likewise.
63077
63078 2008-01-30  Andreas Schwab  <schwab@suse.de>
63079             Bruno Haible  <bruno@clisp.org>
63080
63081         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
63082         correct definition of LDBL_MIN_EXP.
63083
63084 2008-01-30  Karl Berry  <karl@gnu.org>
63085
63086         * config/srclist-update: try to preserve x bit on updates.
63087         * config/srclistvars.sh: update for karl.
63088
63089 2008-01-29  Jim Meyering  <meyering@redhat.com>
63090
63091         vasnprintf.c: Avoid warning about unused label
63092         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
63093         "overflow" label definition and associated code with the
63094         same cpp condition that guards the sole use of that label.
63095
63096 2008-01-26  Bruno Haible  <bruno@clisp.org>
63097
63098         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
63099         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
63100         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
63101         * lib/isnanl-nolibm.h (isnanl): Likewise.
63102         Reported by Paul Eggert <eggert@cs.ucla.edu>.
63103
63104 2008-01-26  Bruno Haible  <bruno@clisp.org>
63105
63106         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
63107         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
63108
63109 2008-01-26  Bruno Haible  <bruno@clisp.org>
63110
63111         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
63112         GCC >= 4.0 built-in.
63113         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
63114
63115 2008-01-26  Bruno Haible  <bruno@clisp.org>
63116
63117         Rename isnan, applicable to 'double' only, to isnand.
63118         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
63119         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
63120         (configure.ac): Update.
63121         (Include): Replace "isnan.h" with "isnand.h".
63122         * m4/isnand.m4: Renamed from m4/isnan.m4.
63123         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
63124         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
63125         instead of isnan.c.
63126         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
63127         instead of HAVE_ISNAN_IN_LIBC.
63128         (isnand): Renamed from isnan.
63129         * lib/isnand.c: New file.
63130         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
63131         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
63132         (Makefile.am): Update.
63133         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
63134         Include isnand.h instead of isnan.h.
63135         (main): Test isnand instead of isnan.
63136         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
63137         isnan-nolibm.
63138         * modules/frexp (Depends-on): Likewise.
63139         * modules/frexp-tests (Depends-on): Likewise.
63140         * modules/frexp-nolibm (Depends-on): Likewise.
63141         * modules/frexp-nolibm-tests (Depends-on): Likewise.
63142         * modules/isfinite (Depends-on): Likewise.
63143         * modules/round-tests (Depends-on): Likewise.
63144         * modules/signbit (Depends-on): Likewise.
63145         * modules/signbit-tests (Depends-on): Likewise.
63146         * modules/snprintf-posix (Depends-on): Likewise.
63147         * modules/sprintf-posix (Depends-on): Likewise.
63148         * modules/trunc-tests (Depends-on): Likewise.
63149         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63150         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63151         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63152         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63153         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63154         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63155         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63156         * modules/vasnprintf-posix (Depends-on): Likewise.
63157         * modules/vasprintf-posix (Depends-on): Likewise.
63158         * modules/vfprintf-posix (Depends-on): Likewise.
63159         * modules/vsnprintf-posix (Depends-on): Likewise.
63160         * modules/vsprintf-posix (Depends-on): Likewise.
63161         * lib/frexp.c: Include isnand.h instead of isnan.h.
63162         (ISNAN): Set to isnand instead of isnan.
63163         * lib/isfinite.c: Include isnand.h instead of isnan.h.
63164         (gl_isfinited): Use isnand instead of isnan.
63165         * lib/signbitd.c: Include isnand.h instead of isnan.h.
63166         (gl_signbitd): Use isnand instead of isnan.
63167         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
63168         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
63169         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
63170         (main): Use isnand instead of isnan.
63171         * tests/test-round1.c: Include isnand.h.
63172         (main): Use isnand instead of isnan.
63173         * tests/test-round2.c: Include isnand.h instead of isnan.h.
63174         (ISNAN): Set to isnand instead of isnan.
63175         * tests/test-trunc1.c: Include isnand.h.
63176         (main): Use isnand instead of isnan.
63177         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
63178         (equal): Use isnand instead of isnan.
63179         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
63180         isnand-nolibm.
63181         * NEWS: Mention the change.
63182
63183 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63184             Bruno Haible  <bruno@clisp.org>
63185
63186         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
63187         the GCC builtins for signbits are present and set
63188         REPLACE_SIGNBIT_USING_GCC if so.
63189         * lib/math.in.h (signbit): Define using GCC builtins if
63190         REPLACE_SIGNBIT_USING_GCC is set.
63191         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
63192         REPLACE_SIGNBIT_USING_GCC.
63193         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
63194
63195 2008-01-25  Jim Meyering  <meyering@redhat.com>
63196
63197         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
63198         * lib/poll.c: Include <config.h>, not "config.h".
63199         * tests/test-getaddrinfo.c: Likewise.
63200
63201 2008-01-25  Simon Josefsson  <simon@josefsson.org>
63202
63203         * modules/sockets-tests: New file.
63204
63205 2008-01-24  Simon Josefsson  <simon@josefsson.org>
63206
63207         * modules/sockets: New module, can be used to call WSA_Startup and
63208         WSA_Cleanup when needed.
63209
63210         * lib/sockets.h, lib/sockets.c: New files.
63211
63212         * m4/sockets.m4: New file.
63213
63214         * tests/test-sockets.c: New file.
63215
63216 2008-01-19  Bruno Haible  <bruno@clisp.org>
63217
63218         * doc/posix-headers: Renamed from doc/headers.
63219         * doc/posix-functions: Renamed from doc/functions.
63220         * doc/gnulib.texi: Update.
63221
63222 2008-01-19  Bruno Haible  <bruno@clisp.org>
63223
63224         * doc/glibc-functions/strcasestr.texi: Include contents of
63225         doc/functions/strcasestr.texi, fixing the list of platforms.
63226         * doc/functions/strcasestr.texi: Remove file.
63227
63228 2008-01-19  Bruno Haible  <bruno@clisp.org>
63229
63230         * doc/glibc-functions/memmem.texi: Include contents of
63231         doc/functions/memmem.texi.
63232         * doc/functions/memmem.texi: Remove file.
63233
63234 2008-01-18  Bruno Haible  <bruno@clisp.org>
63235
63236         * doc/glibc-functions/*.texi: New files.
63237         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
63238         to use the new files.
63239
63240 2008-01-17  Bruno Haible  <bruno@clisp.org>
63241
63242         * tests/test-gethostname.c (main): Fix printf statement.
63243
63244 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63245
63246         * modules/gethostname-tests: New file.
63247
63248         * tests/test-gethostname.c: New file.
63249
63250 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63251
63252         * lib/gethostname.c: Include string.h unconditionally, strncpy is
63253         used by the UNAME case.  Reported by Bruno Haible
63254         <bruno@clisp.org>.
63255
63256 2008-01-17  Eric Blake  <ebb9@byu.net>
63257
63258         Convert c-strcasestr to be more efficient.
63259         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
63260         (Depends-on): Add c-strcase, remove malloca, strnlen.
63261         * tests/test-c-strcasestr.c (main): Enhance test.
63262         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
63263
63264 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63265
63266         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
63267         Use it in creating po/Makevars.
63268
63269 2008-01-15  Simon Josefsson  <simon@josefsson.org>
63270
63271         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
63272         Applications that requires it should initialize libgcrypt
63273         manually.
63274
63275 2008-01-16  Simon Josefsson  <simon@josefsson.org>
63276
63277         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
63278
63279 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
63280
63281         Fix problem with getdate on mingw32 reported by Simon Josefsson
63282         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
63283         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
63284         tzname", when deciding whether to declare tzname.
63285         * lib/strftime.c (tzname): Likewise.
63286
63287 2008-01-15  Bruno Haible  <bruno@clisp.org>
63288
63289         Work around a MacOS X 10.5 bug in frexpl().
63290         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
63291         * doc/functions/frexpl.texi: Document the bug.
63292         Reported by Elias Pipping <pipping@gentoo.org>.
63293
63294 2008-01-14  Eric Blake  <ebb9@byu.net>
63295
63296         Touch up previous patch.
63297         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
63298         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
63299
63300         Convert strcasestr module to use Two-Way algorithm.
63301         * modules/strcasestr-simple: New module, based on the old
63302         strcasestr, but with Two-Way rather than KMP.
63303         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
63304         * lib/string.in.h (rpl_strcasestr): Declare.
63305         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
63306         performance.
63307         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
63308         * modules/string (Makefile.am): Support strcasestr.
63309         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
63310         * modules/strcasestr-tests (Depends-on): Check for alarm.
63311         * tests/test-strcasestr.c: Augment test.
63312         * lib/str-two-way.h: Clean up stray macro.
63313         * NEWS: Document new module.
63314         * MODULES.html.sh (string handling): Likewise.
63315         * doc/functions/strcasestr.texi: New file.
63316         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
63317         here, since it is not a POSIX function.
63318
63319 2008-01-14  Colin Watson  <cjwatson@debian.org>
63320             Bruno Haible  <bruno@clisp.org>
63321
63322         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
63323         works fine; if not, set REPLACE_STRSIGNAL.
63324         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
63325         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63326         REPLACE_STRSIGNAL.
63327         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
63328         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
63329         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
63330
63331 2008-01-14  Bruno Haible  <bruno@clisp.org>
63332
63333         * modules/strsignal (Include): Change to <string.h>.
63334
63335 2008-01-14  Colin Watson  <cjwatson@debian.org>
63336
63337         * modules/argp (Notice): Add a notice recommending to change
63338         XGETTEXT_OPTIONS.
63339         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
63340
63341 2008-01-13  Colin Watson  <cjwatson@debian.org>
63342
63343         * modules/strsignal-tests: New file.
63344         * tests/test-strsignal.c: New file.
63345
63346         * lib/strsignal.c: New file, from glibc with modifications.
63347         * lib/siglist.h: New file, from glibc with modifications.
63348         * lib/string.in.h (strsignal): New declaration.
63349         * m4/strsignal.m4: New file.
63350         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63351         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
63352         * modules/strsignal: New file.
63353         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
63354         HAVE_DECL_STRSIGNAL.
63355
63356 2008-01-13  Bruno Haible  <bruno@clisp.org>
63357
63358         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
63359         locale encoding is not ASCII. Needed for OpenBSD 4.0.
63360         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63361         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63362
63363 2008-01-13  Bruno Haible  <bruno@clisp.org>
63364
63365         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
63366         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
63367         * lib/argp.h (__attribute__): Likewise.
63368         * lib/c-stack.c (__attribute__): Likewise.
63369         * lib/error.h (__attribute__): Likewise.
63370         * lib/fts.c (__attribute__): Likewise.
63371         * lib/openat.h (__attribute__): Likewise.
63372         * lib/stdio.in.h (__attribute__): Likewise.
63373         * lib/string.in.h (__attribute__): Likewise.
63374         * lib/utimens.c (__attribute__): Likewise.
63375         * lib/vasnprintf.h (__attribute__): Likewise.
63376         * lib/xalloc.h (__attribute__): Likewise.
63377         * lib/xprintf.h (__attribute__): Likewise.
63378         * lib/xstrtol.h (__attribute__): Likewise.
63379         * lib/xvasprintf.h (__attribute__): Likewise.
63380
63381 2008-01-12  Bruno Haible  <bruno@clisp.org>
63382
63383         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
63384         * doc/glibc-headers/a.out.texi: New file.
63385         * doc/glibc-headers/aliases.texi: New file.
63386         * doc/glibc-headers/alloca.texi: New file.
63387         * doc/glibc-headers/ar.texi: New file.
63388         * doc/glibc-headers/argp.texi: New file.
63389         * doc/glibc-headers/argz.texi: New file.
63390         * doc/glibc-headers/byteswap.texi: New file.
63391         * doc/glibc-headers/crypt.texi: New file.
63392         * doc/glibc-headers/endian.texi: New file.
63393         * doc/glibc-headers/envz.texi: New file.
63394         * doc/glibc-headers/err.texi: New file.
63395         * doc/glibc-headers/error.texi: New file.
63396         * doc/glibc-headers/execinfo.texi: New file.
63397         * doc/glibc-headers/fpu_control.texi: New file.
63398         * doc/glibc-headers/fstab.texi: New file.
63399         * doc/glibc-headers/fts.texi: New file.
63400         * doc/glibc-headers/getopt.texi: New file.
63401         * doc/glibc-headers/ieee754.texi: New file.
63402         * doc/glibc-headers/ifaddrs.texi: New file.
63403         * doc/glibc-headers/libintl.texi: New file.
63404         * doc/glibc-headers/mcheck.texi: New file.
63405         * doc/glibc-headers/mntent.texi: New file.
63406         * doc/glibc-headers/obstack.texi: New file.
63407         * doc/glibc-headers/paths.texi: New file.
63408         * doc/glibc-headers/printf.texi: New file.
63409         * doc/glibc-headers/pty.texi: New file.
63410         * doc/glibc-headers/resolv.texi: New file.
63411         * doc/glibc-headers/shadow.texi: New file.
63412         * doc/glibc-headers/sysexits.texi: New file.
63413         * doc/glibc-headers/ttyent.texi: New file.
63414
63415 2008-01-12  Jim Meyering  <meyering@redhat.com>
63416
63417         announce-gen: emit Gnulib's git-based version string.
63418         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
63419         New option --gnulib-version=V, where V is expected to be
63420         the output of running git describe in the gnulib directory.
63421         (get_tool_versions): Request feedback on xdelta.  I suspect it's
63422         not useful, and plan to stop publishing an xdelta file with each
63423         coreutils release.
63424
63425         * build-aux/announce-gen: Also check for lzma-compressed files.
63426
63427 2008-01-11  Bruno Haible  <bruno@clisp.org>
63428
63429         * tests/test-memmem.c (main): Increase maximum allowed time.
63430         * tests/test-strstr.c (main): Likewise.
63431
63432 2008-01-11  Bruno Haible  <bruno@clisp.org>
63433
63434         * doc/functions/memmem.texi: Add more precisions about platforms.
63435         * doc/functions/strstr.texi: Likewise.
63436
63437 2008-01-10  Eric Blake  <ebb9@byu.net>
63438
63439         * m4/strstr.m4: Delete cruft from copy-n-paste.
63440         Reported by Bruno Haible.
63441
63442 2008-01-10  Bruno Haible  <bruno@clisp.org>
63443
63444         Make c-strstr rely on strstr.
63445         * lib/c-strstr.c: Don't include str-kmp.h.
63446         (c_strstr): Define in terms of strstr.
63447         * modules/c-strstr (Files): Remove lib/str-kmp.h.
63448         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
63449
63450 2008-01-10  Bruno Haible  <bruno@clisp.org>
63451
63452         * doc/gnulib.texi (String Functions in C Locale): New section.
63453         * doc/c-ctype.texi: New file.
63454         * doc/c-strcase.texi: New file.
63455         * doc/c-strcaseeq.texi: New file.
63456         * doc/c-strcasestr.texi: New file.
63457         * doc/c-strstr.texi: New file.
63458         * doc/c-strtod.texi: New file.
63459         * doc/c-strtold.texi: New file.
63460
63461 2008-01-10  Eric Blake  <ebb9@byu.net>
63462
63463         * lib/relocatable.h: Fix a comment.
63464
63465 2008-01-10  Eric Blake  <ebb9@byu.net>
63466
63467         Share two-way algorithm.
63468         * lib/str-two-way.h: New file, merged from...
63469         * lib/memmem.c: ...here...
63470         * lib/strstr.c: ...and here.
63471         * modules/memmem (Files): Use it.
63472         * modules/strstr (Files): Likewise.
63473
63474         Avoid quadratic strstr implementations.
63475         * lib/strstr.c: New file.
63476         * m4/strstr.m4: Likewise.
63477         * modules/strstr: Likewise.
63478         * modules/strstr-tests: Likewise.
63479         * tests/test-strstr.c: Likewise.
63480         * lib/string.in.h (rpl_strstr): Declare.
63481         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
63482         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
63483         * modules/string (Makefile.am): Likewise.
63484         * MODULES.html.sh (string handling): Mention new module.
63485         * doc/functions/strstr.texi (strstr): Document the bug.
63486
63487 2008-01-10  Bruno Haible  <bruno@clisp.org>
63488
63489         * lib/relocatable.h (relocate): State whether result is freshly
63490         allocated or not.
63491         * lib/relocatable.c (relocate): Return a freshly allocated string
63492         instead of a pointer to a privately held string.
63493         Reported by Sylvain Beucler <beuc@gnu.org>.
63494
63495 2008-01-10  Colin Watson  <cjwatson@debian.org>
63496
63497         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
63498         s/S_ISNLK/S_ISLNK/.
63499
63500 2008-01-09  Bruno Haible  <bruno@clisp.org>
63501
63502         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
63503         and other files.
63504         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
63505         if it's only a guess.
63506         * modules/memmem: Simplify by depending on memmem-simple.
63507
63508 2008-01-09  Bruno Haible  <bruno@clisp.org>
63509
63510         Work around OpenBSD 4.0 tdelete() bug.
63511         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
63512         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
63513         macros and don't redefine the enum values.
63514         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
63515         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
63516         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
63517
63518 2008-01-09  Bruno Haible  <bruno@clisp.org>
63519
63520         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
63521         (main): Don't perform the tests if setlocale did not install a UTF-8
63522         locale. Needed on OpenBSD 4.0.
63523         * modules/wcwidth-tests (Depends-on): Add localcharset.
63524
63525 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63526
63527         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
63528         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
63529         * NEWS: announce this.
63530         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
63531
63532 2008-01-09  Simon Josefsson  <simon@josefsson.org>
63533         and Eric Blake  <ebb9@byu.net>
63534
63535         Add memmem-simple module.
63536         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
63537         (gl_FUNC_MEMMEM): Separate performance from presence checks.
63538         * modules/memmem-simple: New file.
63539         * modules/memmem (Description): Tweak.
63540         * MODULES.html.sh (string handling): Mention new module.
63541         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
63542         addressed by memmem-simple.
63543         * NEWS: Document the difference.
63544
63545 2008-01-09  Eric Blake  <ebb9@byu.net>
63546
63547         Give gcc some memmem optimization hints.
63548         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
63549         (strcasestr): Declare as pure.
63550         * modules/memmem (Maintainer): Claim my implementation.
63551
63552 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63553
63554         Support AIX 6.1 and higher.
63555         * build-aux/config.libpath: Likewise.
63556         * build-aux/config.rpath: Likewise.
63557
63558 2008-01-08  Jim Meyering  <meyering@redhat.com>
63559             Bruno Haible  <bruno@clisp.org>
63560
63561         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
63562         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
63563         Reported by Peter Fales in
63564         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
63565
63566 2008-01-08  Bruno Haible  <bruno@clisp.org>
63567
63568         * modules/unictype/category-of (Depends-on): Add
63569         unictype/category-none.
63570         * modules/unictype/category-and-tests (Depends-on): Add
63571         unictype/category-{L,N,Lu,Nd}.
63572         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
63573         * modules/unictype/category-or-tests (Depends-on): Add
63574         unictype/category-{L,N}.
63575         * modules/unictype/category-name-tests (Depends-on): Add
63576         unictype/category-{Z,Nl}.
63577         Reported by Simon Josefsson.
63578
63579 2008-01-08  Bruno Haible  <bruno@clisp.org>
63580
63581         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
63582         convention better.
63583         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
63584         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
63585         Reported by Peter Miller <millerp@canb.auug.org.au>.
63586
63587 2008-01-08  Eric Blake  <ebb9@byu.net>
63588
63589         Rewrite memmem to guarantee linear complexity without malloc.
63590         * lib/memmem.c (memmem): Use Two-Way rather than
63591         Knuth-Morris-Pratt, to allow O(1) space usage.
63592         (critical_factorization, two_way_short_needle)
63593         (two_way_long_needle): New functions.
63594         (knuth_morris_pratt): Delete.
63595         * modules/memmem (Depends-on): No longer need malloca or stdbool.
63596         Add stdint.
63597         * tests/test-memmem.c (main): Add tests for periodic needle and
63598         sublinear performance.
63599         * doc/functions/memmem.texi (memmem): Document other deficiencies
63600         in cygwin and older glibc.
63601
63602 2008-01-08  Bruno Haible  <bruno@clisp.org>
63603
63604         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
63605         augmentation.
63606
63607 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
63608
63609         Add a configure time option: --disable-acl.
63610         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
63611         AC_ARG_ENABLE(acl).
63612
63613 2008-01-06  Simon Josefsson  <simon@josefsson.org>
63614
63615         * tests/test-localename.c: Don't include obsolete "setenv.h".
63616
63617         * modules/localename-tests (Depends-on): Need unsetenv.
63618
63619 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63620
63621         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
63622
63623 2008-01-06  Colin Watson  <cjwatson@debian.org>
63624
63625         * users.txt: Add man-db.
63626
63627 2008-01-07  Bruno Haible  <bruno@clisp.org>
63628
63629         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
63630         previous section name.
63631
63632 2008-01-07  Bruno Haible  <bruno@clisp.org>
63633
63634         * lib/progname.c (set_program_name): Don't strip off a leading
63635         "lt-" prefix outside a .libs directory.
63636         Suggested by Paul Eggert.
63637
63638 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
63639             Bruno Haible  <bruno@clisp.org>
63640
63641         Improve memory cleanup in 'relocatable' module.
63642         * lib/relocatable.h (compute_curr_prefix): Change return type to
63643         'char *'.
63644         * lib/relocatable.c (compute_curr_prefix): Change return type to
63645         'char *'. Free curr_installdir after use.
63646         (relocate): Free curr_prefix_better after use.
63647         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
63648
63649 2008-01-01  Bruno Haible  <bruno@clisp.org>
63650
63651         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
63652         failure on older glibc systems.
63653         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63654
63655 2008-01-05  Eric Blake  <ebb9@byu.net>
63656
63657         Avoid quadratic system memmem.
63658         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
63659         Reported by Ralf Wildenhues.
63660
63661         Fix memmem test for mingw.
63662         * modules/memmem-tests (configure.ac): Check for alarm.
63663         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
63664         it.
63665         * doc/functions/memmem.texi: New file.
63666         * doc/gnulib.texi (Function Substitutes): Add memmem.
63667         Reported by Bruno Haible.
63668
63669 2008-01-04  Bruno Haible  <bruno@clisp.org>
63670
63671         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
63672         Require gl_HEADER_STRINGS_H_DEFAULTS, not
63673         gl_HEADER_STRING_H_DEFAULTS.
63674
63675 2008-01-04  Eric Blake  <ebb9@byu.net>
63676
63677         Shorten duration of memmem test.
63678         * tests/test-memmem.c (main): Use alarm to declare failure if test
63679         is taking too long.
63680         Reported by Ralf Wildenhues.
63681
63682 2007-12-21  Simon Josefsson  <simon@josefsson.org>
63683
63684         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
63685         string, needed by strerror.
63686
63687 2008-01-03  Colin Watson  <cjwatson@debian.org>
63688             Bruno Haible  <bruno@clisp.org>
63689
63690         * doc/gnulib-tool.texi (Localization): New section.
63691
63692 2008-01-02  Bruno Haible  <bruno@clisp.org>
63693
63694         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
63695         variables to 'unsigned char *' type.
63696         Reported by Paul Eggert.
63697
63698 2008-01-02  Jim Meyering  <jim@meyering.net>
63699
63700         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
63701
63702 2007-12-31  Jim Meyering  <jim@meyering.net>
63703
63704         Avoid use of private FTS type name.
63705         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
63706
63707 2007-12-30  Karl Berry  <karl@gnu.org>
63708
63709         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
63710         work around defect in Texinfo and/or the standalone Info browser.
63711
63712 2007-12-30  Bruno Haible  <bruno@clisp.org>
63713
63714         Unify 5 copies of the KMP code.
63715         * lib/str-kmp.h: New file.
63716         * lib/c-strcasestr.c: Include str-kmp.h.
63717         (knuth_morris_pratt): Remove function.
63718         (c_strcasestr): Update.
63719         * lib/c-strstr.c: Include str-kmp.h.
63720         (knuth_morris_pratt): Remove function.
63721         (c_strcasestr): Update.
63722         * lib/mbscasestr.c: Include str-kmp.h.
63723         (knuth_morris_pratt_unibyte): Remove function.
63724         * lib/mbsstr.c: Include str-kmp.h.
63725         (knuth_morris_pratt_unibyte): Remove function.
63726         * lib/strcasestr.c: Include str-kmp.h.
63727         (knuth_morris_pratt): Remove function.
63728         (strcasestr): Update.
63729         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
63730         * modules/c-strstr (Files): Likewise.
63731         * modules/mbscasestr (Files): Likewise.
63732         * modules/mbsstr (Files): Likewise.
63733         * modules/strcasestr (Files): Likewise.
63734         Suggested by Paul Eggert.
63735
63736 2007-12-30  Bruno Haible  <bruno@clisp.org>
63737
63738         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
63739         defined.
63740
63741 2007-12-30  Bruno Haible  <bruno@clisp.org>
63742
63743         * lib/xmalloca.h: Include xalloc.h.
63744         (xnmalloca): New macro.
63745
63746 2007-12-30  Bruno Haible  <bruno@clisp.org>
63747
63748         * lib/malloca.h (nmalloca): New macro.
63749         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
63750         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
63751         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
63752         knuth_morris_pratt_multibyte): Likewise.
63753         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
63754         knuth_morris_pratt_multibyte): Likewise.
63755         * lib/memmem.c (knuth_morris_pratt): Likewise.
63756         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
63757
63758 2007-12-25  Bruno Haible  <bruno@clisp.org>
63759
63760         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
63761         * lib/glob.c: Don't include openat.h.
63762         (link_exists2_p): Add back the code that deals with the
63763         !GLOB_ALTDIRFUNC case.
63764         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
63765         let it do the filename concatenation.
63766         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
63767         * modules/glob (Depends-on): Remove openat.
63768
63769 2007-12-31  Bruno Haible  <bruno@clisp.org>
63770
63771         * modules/dirfd (License): Change to LGPLv2+.
63772         Approved by Jim Meyering.
63773
63774 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63775
63776         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
63777         when multiplying M by sizeof (size_t).
63778
63779 2007-12-10  Martin Lambers  <marlam@marlam.de>
63780
63781         Override getpagesize on mingw.
63782         * lib/getpagesize.c: New file.
63783         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
63784         * modules/getpagesize (Files): Add lib/getpagesize.c.
63785         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
63786         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63787         REPLACE_GETPAGESIZE.
63788         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
63789
63790 2007-12-25  Bruno Haible  <bruno@clisp.org>
63791
63792         * modules/localcharset (Notice): New field.
63793         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
63794         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
63795
63796 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
63797             Bruno Haible  <bruno@clisp.org>
63798
63799         Avoid using the syntax symbol() in formatted documentation.
63800         * MODULES.html.sh (func_module): When replacing symbol() with a
63801         hyperlink, remove the parentheses. Show an error if some remain.
63802         Recognize and render the '...' syntax.
63803         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
63804         Rework. Add paragraph about GCC's inlining.
63805         * doc/alloca.texi: Likewise.
63806         * doc/error.texi: Remove parentheses from symbol reference.
63807         * doc/gnulib-intro.texi: Likewise.
63808         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
63809         * modules/fnmatch (Description): Reword to say "the ... function".
63810         * modules/full-read (Description): Likewise.
63811         * modules/full-write (Description): Likewise.
63812         * modules/safe-read (Description): Likewise.
63813         * modules/safe-write (Description): Likewise.
63814         * modules/strchrnul (Description): Likewise.
63815         * modules/trim (Description): Likewise.
63816         * modules/error (Description): Remove parentheses from symbol
63817         references.
63818         * modules/verror (Description): Likewise.
63819         Reported by Karl Berry.
63820
63821 2007-12-25  Bruno Haible  <bruno@clisp.org>
63822
63823         Fixup after 2007-10-16 commit.
63824         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
63825
63826 2007-12-24  Bruno Haible  <bruno@clisp.org>
63827
63828         Make --enable-relocatable work with DESTDIR.
63829         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
63830         to compute installdir from destprog.
63831         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
63832         also set the RELOC_DESTDIR variable.
63833         Reported by Левашев Иван <octagram@bluebottle.com>.
63834
63835 2007-12-24  Bruno Haible  <bruno@clisp.org>
63836
63837         Fix link error due to xalloc_die().
63838         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
63839         of xreadlink.
63840         * lib/relocwrapper.c: Update comments.
63841         * build-aux/install-reloc: Remove xreadlink.c from file list.
63842         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
63843         xreadlink.c.
63844         Reported by Левашев Иван <octagram@bluebottle.com>.
63845
63846 2007-12-24  Bruno Haible  <bruno@clisp.org>
63847
63848         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
63849         * lib/setenv.h: Remove file.
63850         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
63851         lib/setenv.h.
63852         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
63853         (Depends-on): Add stdlib.
63854         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
63855         gl_FUNC_UNSETENV.
63856         (Include): Replace setenv.h with <stdlib.h>.
63857         * modules/unsetenv: New file.
63858         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
63859         * lib/unsetenv.c: Include <stdlib.h> first.
63860         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
63861         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
63862         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
63863         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
63864         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
63865         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63866         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
63867         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63868         * doc/functions/unsetenv.texi: Update.
63869         * modules/xsetenv (Depends-on): Add unsetenv.
63870         * modules/getdate (Depends-on): Likewise.
63871         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
63872         * lib/xsetenv.c: Don't include setenv.h.
63873         * lib/getdate.y: Likewise.
63874         * lib/relocwrapper.c: Likewise.
63875         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
63876         (Depends-on): Add stdlib.
63877         * NEWS: Mention the changes.
63878         Reported by Левашев Иван <octagram@bluebottle.com>.
63879
63880 2007-12-23  Bruno Haible  <bruno@clisp.org>
63881
63882         * lib/memmem.c (memmem): Use lowercase variable names. Tab
63883         indentation.
63884
63885 2007-12-23  Bruno Haible  <bruno@clisp.org>
63886
63887         * lib/c-strcasestr.c: Add more comments.
63888         * lib/c-strstr.c: Likewise.
63889         * lib/mbscasestr.c: Likewise.
63890         * lib/mbsstr.c: Likewise.
63891         * lib/strcasestr.c: Likewise.
63892         * lib/memmem.c: Likewise.
63893
63894 2007-12-23  Bruno Haible  <bruno@clisp.org>
63895
63896         * tests/test-memmem.c: Include <string.h> first.
63897
63898 2007-12-22  Bruno Haible  <bruno@clisp.org>
63899
63900         * gnulib-tool (func_create_testdir): Change $auxdir while generating
63901         the contents of $testsbase.
63902         Reported by Ralf Wildenhues.
63903
63904 2007-12-22  Bruno Haible  <bruno@clisp.org>
63905
63906         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
63907         two variables local_ldadd_before, local_ldadd_last.
63908
63909 2007-12-20  Eric Blake  <ebb9@byu.net>
63910
63911         Work around circular library issue when cross-compiling.
63912         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
63913         that progname.o does not need to pull in rpl_memcmp.
63914
63915 2007-12-19  Eric Blake  <ebb9@byu.net>
63916
63917         Fix memmem to avoid O(n^2) worst-case complexity.
63918         * lib/memmem.c (knuth_morris_pratt): New function.
63919         (memmem): Use it if first few naive iterations fail.
63920         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
63921         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
63922         * modules/memchr (License): Likewise.
63923         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
63924         malloca.
63925         * tests/test-memmem.c: Rewrite, borrowing ideas from
63926         test-mbsstr1.c; the old version wouldn't even compile!
63927         * modules/memmem-tests: New file.
63928         * lib/string.in.h (rpl_memmem): Add declaration.
63929         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
63930         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
63931         REPLACE_MEMMEM.
63932
63933 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63934
63935         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
63936         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
63937         before any system include files, and undef after them all.  This
63938         should fix a problem on VMS reported by John E. Malmberg in
63939         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
63940
63941 2007-12-17  Eric Blake  <ebb9@byu.net>
63942
63943         Revert addition of verify, for BSD/OS.
63944         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
63945         can't handle large files, for the sake of obsolete platforms.
63946         * modules/fseeko (Depends-on): Remove verify.
63947         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
63948         * doc/functions/ftello.texi (ftello): Likewise.
63949         * doc/functions/fgetpos.texi (fgetpos): Likewise.
63950         Reported by Larry Jones.
63951
63952 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
63953
63954         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
63955         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
63956
63957 2007-12-17  Jim Meyering  <meyering@redhat.com>
63958
63959         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
63960         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
63961         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
63962         * modules/getcwd (Depends-on): Add openat.
63963         Reported by Petr Salinger.
63964
63965 2007-12-17  Bruno Haible  <bruno@clisp.org>
63966
63967         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
63968         avoid a segmentation fault of the configure test on x86_64 systems.
63969
63970 2007-12-15  Jim Meyering  <meyering@redhat.com>
63971
63972         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
63973
63974 2007-12-13  Eric Blake  <ebb9@byu.net>
63975
63976         Another fseek test.
63977         * tests/test-fseek.c (main): Also test ungetc handling.
63978         * tests/test-fseeko.c (main): Likewise.
63979         * modules/fseeko (Depends-on): Add verify.
63980         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
63981         large.
63982         Reported by Larry Jones.
63983
63984         Fix fseeko on mingw.
63985         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
63986         seek.
63987
63988         Beef up fseek tests.
63989         * tests/test-fseek.c (main): Also test eof handling.
63990         * tests/test-fseeko.c (main): Likewise.
63991         Reported by Larry Jones.
63992
63993 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
63994
63995         Fix fseeko on BSD-based platforms.
63996         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
63997         successful seek.
63998
63999 2007-12-12  Eric Blake  <ebb9@byu.net>
64000
64001         Allow circular dependency of separate libtests.a
64002         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
64003         when use_libtests.
64004
64005 2007-12-11  Eric Blake  <ebb9@byu.net>
64006
64007         Fix bug with -0.0L in previous patch.
64008         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
64009         * tests/test-isnan.c (main): Also test on zeroes.
64010         * tests/test-isnanf.c (main): Likewise.
64011         * tests/test-isnanl.h (main): Likewise.
64012
64013         Detect pseudo-denormals on x86 even when cross-compiling.
64014         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
64015         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
64016         invalid bit patterns that happen to satisfy ==.
64017
64018         Avoid link failures with separate libtests.a.
64019         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
64020         last, to satisfy circular dependencies.
64021
64022 2007-12-11  Eric Blake  <ebb9@byu.net>
64023         and Bruno Haible  <bruno@clisp.org>
64024
64025         Fix OpenBSD 4.0 <float.h> handling of long double.
64026         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
64027         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
64028         * doc/headers/float.texi (float.h): Document OpenBSD bug.
64029
64030 2007-12-11  Jim Meyering  <meyering@redhat.com>
64031
64032         * users.txt: Add libvirt.
64033
64034         Support versions of autoconf prior to 2.59c.
64035         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
64036         if it is not already defined.
64037
64038 2007-12-09  Bruno Haible  <bruno@clisp.org>
64039
64040         Let 'gnulib-tool --import' collect sources needed for the tests in
64041         tests/ rather than in lib/.
64042         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
64043         argument. If true, add rules to generate libtests.a, and put libtests.a
64044         into $(LDADD). Consider source files in subdirectories and set
64045         uses_subdirs.
64046         (func_emit_initmacro_start, func_emit_initmacro_end,
64047         func_emit_initmacro_done): Pass all arguments explicitly.
64048         (func_import): Determine two module lists main_modules,
64049         testsrelated_modules. Determine use_libtests. Determine two variables
64050         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
64051         instead of just sed_transform_lib_file. Determine two variables
64052         main_files and testsrelated_files. Compute 'files' as the union of
64053         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
64054         func_add_or_update. In the generated gnulib-comp.m4, collect the
64055         object files for tests/ in different variables than those for lib/.
64056         Substitute LIBTESTS_LIBDEPS.
64057         (func_create_testdir): Combine the uses_subdirs results from
64058         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
64059
64060 2007-12-09  Bruno Haible  <bruno@clisp.org>
64061
64062         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
64063         the build-aux directory.
64064
64065 2007-12-09  Bruno Haible  <bruno@clisp.org>
64066
64067         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
64068         introduced on 2006-09-09.
64069
64070 2007-12-07  Jim Meyering  <meyering@redhat.com>
64071
64072         Let these macros work also with autoconf-2.59.
64073         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
64074         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
64075         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64076
64077 2007-12-06  Jim Meyering  <meyering@redhat.com>
64078
64079         Avoid a configure-time syntax error in gl_FUNC_ACL.
64080         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
64081         function in each branch, before testing the cache variable.
64082
64083 2007-12-04  Eric Blake  <ebb9@byu.net>
64084
64085         Make scripts executable.
64086         * build-aux/config.guess: Add execute permissions.
64087         * build-aux/config.sub: Likewise.
64088         * build-aux/gendocs.sh: Likewise.
64089
64090         Fix frexp on mingw.
64091         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
64092         cross-compiling.
64093         * doc/functions/frexp.texi (frexp): Document the bug.
64094
64095         Make cygwin fseeko check more reliable.
64096         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
64097         version numbers, rather than unrelated feature check.
64098         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
64099         * doc/functions/ftello.texi (ftello): Likewise.
64100         Reported by Bruno Haible.
64101
64102         * m4/strerror.m4: Bump version number.
64103
64104 2007-12-03  Bruno Haible  <bruno@clisp.org>
64105
64106         * doc/functions/mprotect.texi: Mention the mingw problem.
64107
64108 2007-12-03  Eric Blake  <ebb9@byu.net>
64109
64110         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
64111         REPLACE_STRERROR is initialized before this macro.
64112
64113 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64114
64115         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
64116         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
64117         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
64118         put -lsec in even for programs other than 'ls'.  This fixes a problem
64119         for gettext reported by Bruno Haible in
64120         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
64121         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
64122         Add support for Solaris 10.  This isn't efficient, but should get the
64123         job done for now.
64124
64125 2007-12-03  James Youngman  <jay@gnu.org>
64126
64127         * doc/regexprops-generic.texi: change "an close-group" to "a
64128         close-group" and "illegal" to "not allowed".
64129
64130 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64131
64132         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
64133         pr_byname.h. Needed for the rare case when the maintainer has done
64134         "make maintainer-clean" in the source directory and then attempts a
64135         build outside the source directory.
64136         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
64137         scripts_byname.h.
64138
64139 2007-12-02  Martin Lambers <marlam@marlam.de>
64140             Bruno Haible  <bruno@clisp.org>
64141
64142         * lib/getpagesize.h: Remove file.
64143         * lib/unistd.in.h: Include declaration of getpagesize here.
64144         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
64145         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
64146         HAVE_SYS_PARAM_H.
64147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
64148         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64149         * modules/getpagesize (Files): Remove lib/getpagesize.h.
64150         (Depends-on): Add unistd.
64151         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64152         (Include): Use <unistd.h> instead of getpagesize.h.
64153         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
64154         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64155         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
64156         gl_GETPAGESIZE invocation, already handled by module dependency.
64157         * lib/pagealign_alloc.c: Don't include getpagesize.h.
64158
64159 2007-12-02  Bruno Haible  <bruno@clisp.org>
64160
64161         * modules/strings-tests: New file.
64162         * tests/test-strings.c: New file.
64163
64164         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
64165         * lib/strings.in.h: New file.
64166         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
64167         * m4/strings_h.m4: New file.
64168         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
64169         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
64170         * modules/strings: New file.
64171         * modules/string (Makefile.am): Update.
64172         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
64173         Reported by Karl Berry.
64174
64175 2007-12-01  Eric Blake  <ebb9@byu.net>
64176
64177         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
64178         accommodate fix in cygwin 1.5.25.
64179
64180 2007-12-01  Jim Meyering  <meyering@redhat.com>
64181
64182         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
64183         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
64184         that would inhibit utf8-optimization of a regexp containing line-
64185         or buffer-anchors, e.g., `^', `$'.
64186
64187 2007-11-30  Bruno Haible  <bruno@clisp.org>
64188
64189         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
64190         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
64191         glthread_recursive_lock_init.
64192         * lib/lock.c (glthread_recursive_lock_init)
64193         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
64194         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64195
64196 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
64197
64198         New function qset_acl, like set_acl but with syscall semantics.
64199         * lib/acl.h (qset_acl): New decl.
64200         * lib/acl.c (qset_acl): New function.
64201         (set_acl): Use new function.  Use more-consistent diagnostics.
64202
64203 2007-11-28  Jim Meyering  <meyering@redhat.com>
64204
64205         * modules/physmem (License): Change from GPL to LGPLv2+.
64206
64207 2007-11-26  Bruno Haible  <bruno@clisp.org>
64208
64209         * lib/vasnprintf.c (decode_long_double): Don't abort if the
64210         'long double' type has excess precision.
64211         Reported by Jim Meyering in
64212         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
64213
64214 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64215
64216         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
64217         Sync from <http://gnu.org/licenses>.
64218         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
64219         with license text from same location.
64220         * doc/maintain.texi, doc/standards.texi:  Sync from
64221         <http://savannah.gnu.org/projects/gnustandards>.
64222
64223 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
64224         and Jim Meyering  <meyering@redhat.com>
64225
64226         Adjust getdate' grammar to accept a slightly more regular language.
64227         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
64228         Before, the former was rejected.
64229         * lib/getdate.y (digits_to_date_time): New function, factored
64230         out of ...
64231         (number): ...here.  Just call digits_to_date_time.
64232         (hybrid): New non-terminal to handle an <unsigned number,
64233         signed relative offset> sequence consistently.
64234
64235 2007-11-18  Jim Meyering  <meyering@redhat.com>
64236
64237         Pull my changes from coreutils:
64238         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
64239         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
64240         use of $gnulib_tool_option_extras, so that it's separated from the
64241         preceding argument.
64242
64243         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
64244         * build-aux/bootstrap (cp_mark_as_generated): Create any required
64245         parent destination directories before copying a file into place.
64246
64247 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
64248
64249         bootstrap: work also with 4-argument variant of AC_INIT
64250         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
64251
64252 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64253
64254         Port test-getaddrinfo to Solaris.
64255         Problem reported by Bruno Haible in
64256         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
64257         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
64258         explanation of setting 'hints'.
64259         Don't reject an implementation merely because it returns EAI_SERVICE.
64260         (EAI_SERVICE): Define to 0 if not defined.
64261
64262 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64263
64264         The license of gnu-make and posix-shell is now "GPLed build tool".
64265         * modules/gnu-make (License): Likewise.
64266         * modules/posix-shell (License): Likewise.
64267
64268         New module posix-shell, for determining a POSIX shell
64269         or perhaps something that is close enough to a POSIX shell.
64270         * m4/posix-shell.m4: New file.
64271         * modules/posix-shell: New file.
64272
64273         * MODULES.html.sh: Mention new module.
64274
64275         New module gnu-make, for determining whether we're using GNU Make.
64276         * m4/gnu-make.m4: New file.
64277         * modules/gnu-make: New file.
64278         * MODULES.html.sh: Mention new module.
64279
64280 2007-11-14  Jim Meyering  <meyering@redhat.com>
64281
64282         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
64283         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
64284         use this macro to create a function _definition_.
64285         Remove useless "#undef ARGMATCH_DIE".
64286
64287 2007-11-14  Bruno Haible  <bruno@clisp.org>
64288
64289         * lib/config.charset: Update for OpenBSD 4.1.
64290         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
64291
64292 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
64293
64294         Document 64-bit #if problems in stdint.texi.
64295         * doc/headers/stdint.texi (stdint.h): Mention problems with
64296         64-bit-#if, and how to work around them.
64297
64298         Don't insist on 'long long int' support in the preprocessor.  It
64299         breaks too many things.  For example, PRIdMAX still uses a 'long
64300         long int' format with the latest Sun compiler, even though
64301         HAVE_LONG_LONG_INT isn't defined due to that compiler's
64302         preprocessor problem.  This causes the latest coreutils to dump
64303         core on Solaris 10 sparc with the Sun C compiler.
64304         Instead, fix the 2007-10-16 problem in a different way, by evaluating
64305         the troublesome expressions at configure-time, not at #if-time.
64306         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
64307         preprocessor.
64308         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
64309         compile-time C checks, done at 'configure'-time.
64310         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
64311         * modules/inttypes (Makefile): Substitute the new symbols that
64312         gl_INTTYPES_H now generates.
64313         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
64314
64315 2007-11-12  Bruno Haible  <bruno@clisp.org>
64316
64317         Tests for Unicode character classification functions.
64318
64319         * modules/unictype/bidicategory-byname-tests: New file.
64320         * modules/unictype/bidicategory-name-tests: New file.
64321         * modules/unictype/bidicategory-of-tests: New file.
64322         * modules/unictype/bidicategory-test-tests: New file.
64323         * modules/unictype/block-list-tests: New file.
64324         * modules/unictype/block-of-tests: New file.
64325         * modules/unictype/block-test-tests: New file.
64326         * modules/unictype/category-C-tests: New file.
64327         * modules/unictype/category-Cc-tests: New file.
64328         * modules/unictype/category-Cf-tests: New file.
64329         * modules/unictype/category-Cn-tests: New file.
64330         * modules/unictype/category-Co-tests: New file.
64331         * modules/unictype/category-Cs-tests: New file.
64332         * modules/unictype/category-L-tests: New file.
64333         * modules/unictype/category-Ll-tests: New file.
64334         * modules/unictype/category-Lm-tests: New file.
64335         * modules/unictype/category-Lo-tests: New file.
64336         * modules/unictype/category-Lt-tests: New file.
64337         * modules/unictype/category-Lu-tests: New file.
64338         * modules/unictype/category-M-tests: New file.
64339         * modules/unictype/category-Mc-tests: New file.
64340         * modules/unictype/category-Me-tests: New file.
64341         * modules/unictype/category-Mn-tests: New file.
64342         * modules/unictype/category-N-tests: New file.
64343         * modules/unictype/category-Nd-tests: New file.
64344         * modules/unictype/category-Nl-tests: New file.
64345         * modules/unictype/category-No-tests: New file.
64346         * modules/unictype/category-P-tests: New file.
64347         * modules/unictype/category-Pc-tests: New file.
64348         * modules/unictype/category-Pd-tests: New file.
64349         * modules/unictype/category-Pe-tests: New file.
64350         * modules/unictype/category-Pf-tests: New file.
64351         * modules/unictype/category-Pi-tests: New file.
64352         * modules/unictype/category-Po-tests: New file.
64353         * modules/unictype/category-Ps-tests: New file.
64354         * modules/unictype/category-S-tests: New file.
64355         * modules/unictype/category-Sc-tests: New file.
64356         * modules/unictype/category-Sk-tests: New file.
64357         * modules/unictype/category-Sm-tests: New file.
64358         * modules/unictype/category-So-tests: New file.
64359         * modules/unictype/category-Z-tests: New file.
64360         * modules/unictype/category-Zl-tests: New file.
64361         * modules/unictype/category-Zp-tests: New file.
64362         * modules/unictype/category-Zs-tests: New file.
64363         * modules/unictype/category-and-not-tests: New file.
64364         * modules/unictype/category-and-tests: New file.
64365         * modules/unictype/category-byname-tests: New file.
64366         * modules/unictype/category-name-tests: New file.
64367         * modules/unictype/category-none-tests: New file.
64368         * modules/unictype/category-of-tests: New file.
64369         * modules/unictype/category-or-tests: New file.
64370         * modules/unictype/category-test-withtable-tests: New file.
64371         * modules/unictype/combining-class-tests: New file.
64372         * modules/unictype/ctype-alnum-tests: New file.
64373         * modules/unictype/ctype-alpha-tests: New file.
64374         * modules/unictype/ctype-blank-tests: New file.
64375         * modules/unictype/ctype-cntrl-tests: New file.
64376         * modules/unictype/ctype-digit-tests: New file.
64377         * modules/unictype/ctype-graph-tests: New file.
64378         * modules/unictype/ctype-lower-tests: New file.
64379         * modules/unictype/ctype-print-tests: New file.
64380         * modules/unictype/ctype-punct-tests: New file.
64381         * modules/unictype/ctype-space-tests: New file.
64382         * modules/unictype/ctype-upper-tests: New file.
64383         * modules/unictype/ctype-xdigit-tests: New file.
64384         * modules/unictype/decimal-digit-tests: New file.
64385         * modules/unictype/digit-tests: New file.
64386         * modules/unictype/mirror-tests: New file.
64387         * modules/unictype/numeric-tests: New file.
64388         * modules/unictype/property-alphabetic-tests: New file.
64389         * modules/unictype/property-ascii-hex-digit-tests: New file.
64390         * modules/unictype/property-bidi-arabic-digit-tests: New file.
64391         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
64392         * modules/unictype/property-bidi-block-separator-tests: New file.
64393         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
64394         * modules/unictype/property-bidi-common-separator-tests: New file.
64395         * modules/unictype/property-bidi-control-tests: New file.
64396         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
64397         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
64398         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
64399         * modules/unictype/property-bidi-european-digit-tests: New file.
64400         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
64401         * modules/unictype/property-bidi-left-to-right-tests: New file.
64402         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
64403         * modules/unictype/property-bidi-other-neutral-tests: New file.
64404         * modules/unictype/property-bidi-pdf-tests: New file.
64405         * modules/unictype/property-bidi-segment-separator-tests: New file.
64406         * modules/unictype/property-bidi-whitespace-tests: New file.
64407         * modules/unictype/property-byname-tests: New file.
64408         * modules/unictype/property-combining-tests: New file.
64409         * modules/unictype/property-composite-tests: New file.
64410         * modules/unictype/property-currency-symbol-tests: New file.
64411         * modules/unictype/property-dash-tests: New file.
64412         * modules/unictype/property-decimal-digit-tests: New file.
64413         * modules/unictype/property-default-ignorable-code-point-tests: New file.
64414         * modules/unictype/property-deprecated-tests: New file.
64415         * modules/unictype/property-diacritic-tests: New file.
64416         * modules/unictype/property-extender-tests: New file.
64417         * modules/unictype/property-format-control-tests: New file.
64418         * modules/unictype/property-grapheme-base-tests: New file.
64419         * modules/unictype/property-grapheme-extend-tests: New file.
64420         * modules/unictype/property-grapheme-link-tests: New file.
64421         * modules/unictype/property-hex-digit-tests: New file.
64422         * modules/unictype/property-hyphen-tests: New file.
64423         * modules/unictype/property-id-continue-tests: New file.
64424         * modules/unictype/property-id-start-tests: New file.
64425         * modules/unictype/property-ideographic-tests: New file.
64426         * modules/unictype/property-ids-binary-operator-tests: New file.
64427         * modules/unictype/property-ids-trinary-operator-tests: New file.
64428         * modules/unictype/property-ignorable-control-tests: New file.
64429         * modules/unictype/property-iso-control-tests: New file.
64430         * modules/unictype/property-join-control-tests: New file.
64431         * modules/unictype/property-left-of-pair-tests: New file.
64432         * modules/unictype/property-line-separator-tests: New file.
64433         * modules/unictype/property-logical-order-exception-tests: New file.
64434         * modules/unictype/property-lowercase-tests: New file.
64435         * modules/unictype/property-math-tests: New file.
64436         * modules/unictype/property-non-break-tests: New file.
64437         * modules/unictype/property-not-a-character-tests: New file.
64438         * modules/unictype/property-numeric-tests: New file.
64439         * modules/unictype/property-other-alphabetic-tests: New file.
64440         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
64441         * modules/unictype/property-other-grapheme-extend-tests: New file.
64442         * modules/unictype/property-other-id-continue-tests: New file.
64443         * modules/unictype/property-other-id-start-tests: New file.
64444         * modules/unictype/property-other-lowercase-tests: New file.
64445         * modules/unictype/property-other-math-tests: New file.
64446         * modules/unictype/property-other-uppercase-tests: New file.
64447         * modules/unictype/property-paired-punctuation-tests: New file.
64448         * modules/unictype/property-paragraph-separator-tests: New file.
64449         * modules/unictype/property-pattern-syntax-tests: New file.
64450         * modules/unictype/property-pattern-white-space-tests: New file.
64451         * modules/unictype/property-private-use-tests: New file.
64452         * modules/unictype/property-punctuation-tests: New file.
64453         * modules/unictype/property-quotation-mark-tests: New file.
64454         * modules/unictype/property-radical-tests: New file.
64455         * modules/unictype/property-sentence-terminal-tests: New file.
64456         * modules/unictype/property-soft-dotted-tests: New file.
64457         * modules/unictype/property-space-tests: New file.
64458         * modules/unictype/property-terminal-punctuation-tests: New file.
64459         * modules/unictype/property-test-tests: New file.
64460         * modules/unictype/property-titlecase-tests: New file.
64461         * modules/unictype/property-unassigned-code-value-tests: New file.
64462         * modules/unictype/property-unified-ideograph-tests: New file.
64463         * modules/unictype/property-uppercase-tests: New file.
64464         * modules/unictype/property-variation-selector-tests: New file.
64465         * modules/unictype/property-white-space-tests: New file.
64466         * modules/unictype/property-xid-continue-tests: New file.
64467         * modules/unictype/property-xid-start-tests: New file.
64468         * modules/unictype/property-zero-width-tests: New file.
64469         * modules/unictype/scripts-tests: New file.
64470         * modules/unictype/syntax-c-ident-tests: New file.
64471         * modules/unictype/syntax-c-whitespace-tests: New file.
64472         * modules/unictype/syntax-java-ident-tests: New file.
64473         * modules/unictype/syntax-java-whitespace-tests: New file.
64474         * tests/unictype/test-bidi_byname.c: New file.
64475         * tests/unictype/test-bidi_name.c: New file.
64476         * tests/unictype/test-bidi_of.c: New file.
64477         * tests/unictype/test-bidi_test.c: New file.
64478         * tests/unictype/test-block_list.c: New file.
64479         * tests/unictype/test-block_of.c: New file.
64480         * tests/unictype/test-block_test.c: New file.
64481         * tests/unictype/test-categ_and.c: New file.
64482         * tests/unictype/test-categ_and_not.c: New file.
64483         * tests/unictype/test-categ_byname.c: New file.
64484         * tests/unictype/test-categ_name.c: New file.
64485         * tests/unictype/test-categ_none.c: New file.
64486         * tests/unictype/test-categ_of.c: New file.
64487         * tests/unictype/test-categ_or.c: New file.
64488         * tests/unictype/test-categ_test_withtable.c: New file.
64489         * tests/unictype/test-combining.c: New file.
64490         * tests/unictype/test-decdigit.c: New file.
64491         * tests/unictype/test-digit.c: New file.
64492         * tests/unictype/test-mirror.c: New file.
64493         * tests/unictype/test-numeric.c: New file.
64494         * tests/unictype/test-pr_byname.c: New file.
64495         * tests/unictype/test-pr_test.c: New file.
64496         * tests/unictype/test-predicate-part1.h: New file.
64497         * tests/unictype/test-predicate-part2.h: New file.
64498         * tests/unictype/test-scripts.c: New file.
64499         * tests/unictype/test-sy_c_ident.c: New file.
64500         * tests/unictype/test-sy_java_ident.c: New file.
64501
64502         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
64503         for Unicode 5.0.0.
64504         * tests/unictype/test-categ_Cc.c: Likewise.
64505         * tests/unictype/test-categ_Cf.c: Likewise.
64506         * tests/unictype/test-categ_Cn.c: Likewise.
64507         * tests/unictype/test-categ_Co.c: Likewise.
64508         * tests/unictype/test-categ_Cs.c: Likewise.
64509         * tests/unictype/test-categ_L.c: Likewise.
64510         * tests/unictype/test-categ_Ll.c: Likewise.
64511         * tests/unictype/test-categ_Lm.c: Likewise.
64512         * tests/unictype/test-categ_Lo.c: Likewise.
64513         * tests/unictype/test-categ_Lt.c: Likewise.
64514         * tests/unictype/test-categ_Lu.c: Likewise.
64515         * tests/unictype/test-categ_M.c: Likewise.
64516         * tests/unictype/test-categ_Mc.c: Likewise.
64517         * tests/unictype/test-categ_Me.c: Likewise.
64518         * tests/unictype/test-categ_Mn.c: Likewise.
64519         * tests/unictype/test-categ_N.c: Likewise.
64520         * tests/unictype/test-categ_Nd.c: Likewise.
64521         * tests/unictype/test-categ_Nl.c: Likewise.
64522         * tests/unictype/test-categ_No.c: Likewise.
64523         * tests/unictype/test-categ_P.c: Likewise.
64524         * tests/unictype/test-categ_Pc.c: Likewise.
64525         * tests/unictype/test-categ_Pd.c: Likewise.
64526         * tests/unictype/test-categ_Pe.c: Likewise.
64527         * tests/unictype/test-categ_Pf.c: Likewise.
64528         * tests/unictype/test-categ_Pi.c: Likewise.
64529         * tests/unictype/test-categ_Po.c: Likewise.
64530         * tests/unictype/test-categ_Ps.c: Likewise.
64531         * tests/unictype/test-categ_S.c: Likewise.
64532         * tests/unictype/test-categ_Sc.c: Likewise.
64533         * tests/unictype/test-categ_Sk.c: Likewise.
64534         * tests/unictype/test-categ_Sm.c: Likewise.
64535         * tests/unictype/test-categ_So.c: Likewise.
64536         * tests/unictype/test-categ_Z.c: Likewise.
64537         * tests/unictype/test-categ_Zl.c: Likewise.
64538         * tests/unictype/test-categ_Zp.c: Likewise.
64539         * tests/unictype/test-categ_Zs.c: Likewise.
64540         * tests/unictype/test-ctype_alnum.c: Likewise.
64541         * tests/unictype/test-ctype_alpha.c: Likewise.
64542         * tests/unictype/test-ctype_blank.c: Likewise.
64543         * tests/unictype/test-ctype_cntrl.c: Likewise.
64544         * tests/unictype/test-ctype_digit.c: Likewise.
64545         * tests/unictype/test-ctype_graph.c: Likewise.
64546         * tests/unictype/test-ctype_lower.c: Likewise.
64547         * tests/unictype/test-ctype_print.c: Likewise.
64548         * tests/unictype/test-ctype_punct.c: Likewise.
64549         * tests/unictype/test-ctype_space.c: Likewise.
64550         * tests/unictype/test-ctype_upper.c: Likewise.
64551         * tests/unictype/test-ctype_xdigit.c: Likewise.
64552         * tests/unictype/test-decdigit.h: Likewise.
64553         * tests/unictype/test-digit.h: Likewise.
64554         * tests/unictype/test-numeric.h: Likewise.
64555         * tests/unictype/test-pr_alphabetic.c: Likewise.
64556         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
64557         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
64558         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
64559         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
64560         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
64561         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
64562         * tests/unictype/test-pr_bidi_control.c: Likewise.
64563         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
64564         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
64565         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
64566         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
64567         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
64568         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
64569         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
64570         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
64571         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
64572         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
64573         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
64574         * tests/unictype/test-pr_combining.c: Likewise.
64575         * tests/unictype/test-pr_composite.c: Likewise.
64576         * tests/unictype/test-pr_currency_symbol.c: Likewise.
64577         * tests/unictype/test-pr_dash.c: Likewise.
64578         * tests/unictype/test-pr_decimal_digit.c: Likewise.
64579         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
64580         * tests/unictype/test-pr_deprecated.c: Likewise.
64581         * tests/unictype/test-pr_diacritic.c: Likewise.
64582         * tests/unictype/test-pr_extender.c: Likewise.
64583         * tests/unictype/test-pr_format_control.c: Likewise.
64584         * tests/unictype/test-pr_grapheme_base.c: Likewise.
64585         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
64586         * tests/unictype/test-pr_grapheme_link.c: Likewise.
64587         * tests/unictype/test-pr_hex_digit.c: Likewise.
64588         * tests/unictype/test-pr_hyphen.c: Likewise.
64589         * tests/unictype/test-pr_id_continue.c: Likewise.
64590         * tests/unictype/test-pr_id_start.c: Likewise.
64591         * tests/unictype/test-pr_ideographic.c: Likewise.
64592         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
64593         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
64594         * tests/unictype/test-pr_ignorable_control.c: Likewise.
64595         * tests/unictype/test-pr_iso_control.c: Likewise.
64596         * tests/unictype/test-pr_join_control.c: Likewise.
64597         * tests/unictype/test-pr_left_of_pair.c: Likewise.
64598         * tests/unictype/test-pr_line_separator.c: Likewise.
64599         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
64600         * tests/unictype/test-pr_lowercase.c: Likewise.
64601         * tests/unictype/test-pr_math.c: Likewise.
64602         * tests/unictype/test-pr_non_break.c: Likewise.
64603         * tests/unictype/test-pr_not_a_character.c: Likewise.
64604         * tests/unictype/test-pr_numeric.c: Likewise.
64605         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
64606         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
64607         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
64608         * tests/unictype/test-pr_other_id_continue.c: Likewise.
64609         * tests/unictype/test-pr_other_id_start.c: Likewise.
64610         * tests/unictype/test-pr_other_lowercase.c: Likewise.
64611         * tests/unictype/test-pr_other_math.c: Likewise.
64612         * tests/unictype/test-pr_other_uppercase.c: Likewise.
64613         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
64614         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
64615         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
64616         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
64617         * tests/unictype/test-pr_private_use.c: Likewise.
64618         * tests/unictype/test-pr_punctuation.c: Likewise.
64619         * tests/unictype/test-pr_quotation_mark.c: Likewise.
64620         * tests/unictype/test-pr_radical.c: Likewise.
64621         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
64622         * tests/unictype/test-pr_soft_dotted.c: Likewise.
64623         * tests/unictype/test-pr_space.c: Likewise.
64624         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
64625         * tests/unictype/test-pr_titlecase.c: Likewise.
64626         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
64627         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
64628         * tests/unictype/test-pr_uppercase.c: Likewise.
64629         * tests/unictype/test-pr_variation_selector.c: Likewise.
64630         * tests/unictype/test-pr_white_space.c: Likewise.
64631         * tests/unictype/test-pr_xid_continue.c: Likewise.
64632         * tests/unictype/test-pr_xid_start.c: Likewise.
64633         * tests/unictype/test-pr_zero_width.c: Likewise.
64634         * tests/unictype/test-sy_c_whitespace.c: Likewise.
64635         * tests/unictype/test-sy_java_whitespace.c: Likewise.
64636
64637 2007-11-12  Bruno Haible  <bruno@clisp.org>
64638
64639         Unicode character classification functions.
64640         * lib/unictype.h: New file.
64641         * modules/unictype/base: New file.
64642         * modules/unictype/category-L: New file.
64643         * modules/unictype/category-Lu: New file.
64644         * modules/unictype/category-Ll: New file.
64645         * modules/unictype/category-Lt: New file.
64646         * modules/unictype/category-Lm: New file.
64647         * modules/unictype/category-Lo: New file.
64648         * modules/unictype/category-M: New file.
64649         * modules/unictype/category-Mn: New file.
64650         * modules/unictype/category-Mc: New file.
64651         * modules/unictype/category-Me: New file.
64652         * modules/unictype/category-N: New file.
64653         * modules/unictype/category-Nd: New file.
64654         * modules/unictype/category-Nl: New file.
64655         * modules/unictype/category-No: New file.
64656         * modules/unictype/category-P: New file.
64657         * modules/unictype/category-Pc: New file.
64658         * modules/unictype/category-Pd: New file.
64659         * modules/unictype/category-Ps: New file.
64660         * modules/unictype/category-Pe: New file.
64661         * modules/unictype/category-Pi: New file.
64662         * modules/unictype/category-Pf: New file.
64663         * modules/unictype/category-Po: New file.
64664         * modules/unictype/category-S: New file.
64665         * modules/unictype/category-Sm: New file.
64666         * modules/unictype/category-Sc: New file.
64667         * modules/unictype/category-Sk: New file.
64668         * modules/unictype/category-So: New file.
64669         * modules/unictype/category-Z: New file.
64670         * modules/unictype/category-Zs: New file.
64671         * modules/unictype/category-Zl: New file.
64672         * modules/unictype/category-Zp: New file.
64673         * modules/unictype/category-C: New file.
64674         * modules/unictype/category-Cc: New file.
64675         * modules/unictype/category-Cf: New file.
64676         * modules/unictype/category-Cs: New file.
64677         * modules/unictype/category-Co: New file.
64678         * modules/unictype/category-Cn: New file.
64679         * modules/unictype/category-or: New file.
64680         * modules/unictype/category-of: New file.
64681         * modules/unictype/category-test: New file.
64682         * modules/unictype/category-test-withtable: New file.
64683         * modules/unictype/category-byname: New file.
64684         * modules/unictype/category-none: New file.
64685         * modules/unictype/category-and: New file.
64686         * modules/unictype/category-and-not: New file.
64687         * modules/unictype/category-name: New file.
64688         * modules/unictype/combining-class: New file.
64689         * modules/unictype/category-all: New file.
64690         * modules/unictype/bidicategory-all: New file.
64691         * modules/unictype/bidicategory-byname: New file.
64692         * modules/unictype/bidicategory-name: New file.
64693         * modules/unictype/bidicategory-of: New file.
64694         * modules/unictype/bidicategory-test: New file.
64695         * modules/unictype/decimal-digit: New file.
64696         * modules/unictype/digit: New file.
64697         * modules/unictype/numeric: New file.
64698         * modules/unictype/mirror: New file.
64699         * modules/unictype/property-white-space: New file.
64700         * modules/unictype/property-alphabetic: New file.
64701         * modules/unictype/property-other-alphabetic: New file.
64702         * modules/unictype/property-not-a-character: New file.
64703         * modules/unictype/property-default-ignorable-code-point: New file.
64704         * modules/unictype/property-other-default-ignorable-code-point: New
64705         file.
64706         * modules/unictype/property-deprecated: New file.
64707         * modules/unictype/property-logical-order-exception: New file.
64708         * modules/unictype/property-variation-selector: New file.
64709         * modules/unictype/property-private-use: New file.
64710         * modules/unictype/property-unassigned-code-value: New file.
64711         * modules/unictype/property-uppercase: New file.
64712         * modules/unictype/property-other-uppercase: New file.
64713         * modules/unictype/property-lowercase: New file.
64714         * modules/unictype/property-other-lowercase: New file.
64715         * modules/unictype/property-titlecase: New file.
64716         * modules/unictype/property-soft-dotted: New file.
64717         * modules/unictype/property-id-start: New file.
64718         * modules/unictype/property-other-id-start: New file.
64719         * modules/unictype/property-id-continue: New file.
64720         * modules/unictype/property-other-id-continue: New file.
64721         * modules/unictype/property-xid-start: New file.
64722         * modules/unictype/property-xid-continue: New file.
64723         * modules/unictype/property-pattern-white-space: New file.
64724         * modules/unictype/property-pattern-syntax: New file.
64725         * modules/unictype/property-join-control: New file.
64726         * modules/unictype/property-grapheme-base: New file.
64727         * modules/unictype/property-grapheme-extend: New file.
64728         * modules/unictype/property-other-grapheme-extend: New file.
64729         * modules/unictype/property-grapheme-link: New file.
64730         * modules/unictype/property-bidi-control: New file.
64731         * modules/unictype/property-bidi-left-to-right: New file.
64732         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
64733         * modules/unictype/property-bidi-arabic-right-to-left: New file.
64734         * modules/unictype/property-bidi-european-digit: New file.
64735         * modules/unictype/property-bidi-eur-num-separator: New file.
64736         * modules/unictype/property-bidi-eur-num-terminator: New file.
64737         * modules/unictype/property-bidi-arabic-digit: New file.
64738         * modules/unictype/property-bidi-common-separator: New file.
64739         * modules/unictype/property-bidi-block-separator: New file.
64740         * modules/unictype/property-bidi-segment-separator: New file.
64741         * modules/unictype/property-bidi-whitespace: New file.
64742         * modules/unictype/property-bidi-non-spacing-mark: New file.
64743         * modules/unictype/property-bidi-boundary-neutral: New file.
64744         * modules/unictype/property-bidi-pdf: New file.
64745         * modules/unictype/property-bidi-embedding-or-override: New file.
64746         * modules/unictype/property-bidi-other-neutral: New file.
64747         * modules/unictype/property-hex-digit: New file.
64748         * modules/unictype/property-ascii-hex-digit: New file.
64749         * modules/unictype/property-ideographic: New file.
64750         * modules/unictype/property-unified-ideograph: New file.
64751         * modules/unictype/property-radical: New file.
64752         * modules/unictype/property-ids-binary-operator: New file.
64753         * modules/unictype/property-ids-trinary-operator: New file.
64754         * modules/unictype/property-zero-width: New file.
64755         * modules/unictype/property-space: New file.
64756         * modules/unictype/property-non-break: New file.
64757         * modules/unictype/property-iso-control: New file.
64758         * modules/unictype/property-format-control: New file.
64759         * modules/unictype/property-dash: New file.
64760         * modules/unictype/property-hyphen: New file.
64761         * modules/unictype/property-punctuation: New file.
64762         * modules/unictype/property-line-separator: New file.
64763         * modules/unictype/property-paragraph-separator: New file.
64764         * modules/unictype/property-quotation-mark: New file.
64765         * modules/unictype/property-sentence-terminal: New file.
64766         * modules/unictype/property-terminal-punctuation: New file.
64767         * modules/unictype/property-currency-symbol: New file.
64768         * modules/unictype/property-math: New file.
64769         * modules/unictype/property-other-math: New file.
64770         * modules/unictype/property-paired-punctuation: New file.
64771         * modules/unictype/property-left-of-pair: New file.
64772         * modules/unictype/property-combining: New file.
64773         * modules/unictype/property-composite: New file.
64774         * modules/unictype/property-decimal-digit: New file.
64775         * modules/unictype/property-numeric: New file.
64776         * modules/unictype/property-diacritic: New file.
64777         * modules/unictype/property-extender: New file.
64778         * modules/unictype/property-ignorable-control: New file.
64779         * modules/unictype/property-test: New file.
64780         * modules/unictype/property-byname: New file.
64781         * modules/unictype/property-all: New file.
64782         * modules/unictype/scripts: New file.
64783         * modules/unictype/scripts-all: New file.
64784         * modules/unictype/block-of: New file.
64785         * modules/unictype/block-test: New file.
64786         * modules/unictype/block-list: New file.
64787         * modules/unictype/block-all: New file.
64788         * modules/unictype/syntax-c-whitespace: New file.
64789         * modules/unictype/syntax-java-whitespace: New file.
64790         * modules/unictype/syntax-c-ident: New file.
64791         * modules/unictype/syntax-java-ident: New file.
64792         * modules/unictype/ctype-alnum: New file.
64793         * modules/unictype/ctype-alpha: New file.
64794         * modules/unictype/ctype-cntrl: New file.
64795         * modules/unictype/ctype-digit: New file.
64796         * modules/unictype/ctype-graph: New file.
64797         * modules/unictype/ctype-lower: New file.
64798         * modules/unictype/ctype-print: New file.
64799         * modules/unictype/ctype-punct: New file.
64800         * modules/unictype/ctype-space: New file.
64801         * modules/unictype/ctype-upper: New file.
64802         * modules/unictype/ctype-xdigit: New file.
64803         * modules/unictype/ctype-blank: New file.
64804         * lib/unictype/bidi_byname.c: New file.
64805         * lib/unictype/bidi_name.c: New file.
64806         * lib/unictype/bidi_of.c: New file.
64807         * lib/unictype/bidi_test.c: New file.
64808         * lib/unictype/bitmap.h: New file.
64809         * lib/unictype/block_test.c: New file.
64810         * lib/unictype/blocks.c: New file.
64811         * lib/unictype/categ_C.c: New file.
64812         * lib/unictype/categ_Cc.c: New file.
64813         * lib/unictype/categ_Cf.c: New file.
64814         * lib/unictype/categ_Cn.c: New file.
64815         * lib/unictype/categ_Co.c: New file.
64816         * lib/unictype/categ_Cs.c: New file.
64817         * lib/unictype/categ_L.c: New file.
64818         * lib/unictype/categ_Ll.c: New file.
64819         * lib/unictype/categ_Lm.c: New file.
64820         * lib/unictype/categ_Lo.c: New file.
64821         * lib/unictype/categ_Lt.c: New file.
64822         * lib/unictype/categ_Lu.c: New file.
64823         * lib/unictype/categ_M.c: New file.
64824         * lib/unictype/categ_Mc.c: New file.
64825         * lib/unictype/categ_Me.c: New file.
64826         * lib/unictype/categ_Mn.c: New file.
64827         * lib/unictype/categ_N.c: New file.
64828         * lib/unictype/categ_Nd.c: New file.
64829         * lib/unictype/categ_Nl.c: New file.
64830         * lib/unictype/categ_No.c: New file.
64831         * lib/unictype/categ_P.c: New file.
64832         * lib/unictype/categ_Pc.c: New file.
64833         * lib/unictype/categ_Pd.c: New file.
64834         * lib/unictype/categ_Pe.c: New file.
64835         * lib/unictype/categ_Pf.c: New file.
64836         * lib/unictype/categ_Pi.c: New file.
64837         * lib/unictype/categ_Po.c: New file.
64838         * lib/unictype/categ_Ps.c: New file.
64839         * lib/unictype/categ_S.c: New file.
64840         * lib/unictype/categ_Sc.c: New file.
64841         * lib/unictype/categ_Sk.c: New file.
64842         * lib/unictype/categ_Sm.c: New file.
64843         * lib/unictype/categ_So.c: New file.
64844         * lib/unictype/categ_Z.c: New file.
64845         * lib/unictype/categ_Zl.c: New file.
64846         * lib/unictype/categ_Zp.c: New file.
64847         * lib/unictype/categ_Zs.c: New file.
64848         * lib/unictype/categ_and.c: New file.
64849         * lib/unictype/categ_and_not.c: New file.
64850         * lib/unictype/categ_byname.c: New file.
64851         * lib/unictype/categ_name.c: New file.
64852         * lib/unictype/categ_none.c: New file.
64853         * lib/unictype/categ_of.c: New file.
64854         * lib/unictype/categ_or.c: New file.
64855         * lib/unictype/categ_test.c: New file.
64856         * lib/unictype/combining.c: New file.
64857         * lib/unictype/ctype_alnum.c: New file.
64858         * lib/unictype/ctype_alpha.c: New file.
64859         * lib/unictype/ctype_blank.c: New file.
64860         * lib/unictype/ctype_cntrl.c: New file.
64861         * lib/unictype/ctype_digit.c: New file.
64862         * lib/unictype/ctype_graph.c: New file.
64863         * lib/unictype/ctype_lower.c: New file.
64864         * lib/unictype/ctype_print.c: New file.
64865         * lib/unictype/ctype_punct.c: New file.
64866         * lib/unictype/ctype_space.c: New file.
64867         * lib/unictype/ctype_upper.c: New file.
64868         * lib/unictype/ctype_xdigit.c: New file.
64869         * lib/unictype/decdigit.c: New file.
64870         * lib/unictype/digit.c: New file.
64871         * lib/unictype/identsyntaxmap.h: New file.
64872         * lib/unictype/mirror.c: New file.
64873         * lib/unictype/numeric.c: New file.
64874         * lib/unictype/pr_alphabetic.c: New file.
64875         * lib/unictype/pr_ascii_hex_digit.c: New file.
64876         * lib/unictype/pr_bidi_arabic_digit.c: New file.
64877         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
64878         * lib/unictype/pr_bidi_block_separator.c: New file.
64879         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
64880         * lib/unictype/pr_bidi_common_separator.c: New file.
64881         * lib/unictype/pr_bidi_control.c: New file.
64882         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
64883         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
64884         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
64885         * lib/unictype/pr_bidi_european_digit.c: New file.
64886         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
64887         * lib/unictype/pr_bidi_left_to_right.c: New file.
64888         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
64889         * lib/unictype/pr_bidi_other_neutral.c: New file.
64890         * lib/unictype/pr_bidi_pdf.c: New file.
64891         * lib/unictype/pr_bidi_segment_separator.c: New file.
64892         * lib/unictype/pr_bidi_whitespace.c: New file.
64893         * lib/unictype/pr_byname.c: New file.
64894         * lib/unictype/pr_byname.gperf: New file.
64895         * lib/unictype/pr_combining.c: New file.
64896         * lib/unictype/pr_composite.c: New file.
64897         * lib/unictype/pr_currency_symbol.c: New file.
64898         * lib/unictype/pr_dash.c: New file.
64899         * lib/unictype/pr_decimal_digit.c: New file.
64900         * lib/unictype/pr_default_ignorable_code_point.c: New file.
64901         * lib/unictype/pr_deprecated.c: New file.
64902         * lib/unictype/pr_diacritic.c: New file.
64903         * lib/unictype/pr_extender.c: New file.
64904         * lib/unictype/pr_format_control.c: New file.
64905         * lib/unictype/pr_grapheme_base.c: New file.
64906         * lib/unictype/pr_grapheme_extend.c: New file.
64907         * lib/unictype/pr_grapheme_link.c: New file.
64908         * lib/unictype/pr_hex_digit.c: New file.
64909         * lib/unictype/pr_hyphen.c: New file.
64910         * lib/unictype/pr_id_continue.c: New file.
64911         * lib/unictype/pr_id_start.c: New file.
64912         * lib/unictype/pr_ideographic.c: New file.
64913         * lib/unictype/pr_ids_binary_operator.c: New file.
64914         * lib/unictype/pr_ids_trinary_operator.c: New file.
64915         * lib/unictype/pr_ignorable_control.c: New file.
64916         * lib/unictype/pr_iso_control.c: New file.
64917         * lib/unictype/pr_join_control.c: New file.
64918         * lib/unictype/pr_left_of_pair.c: New file.
64919         * lib/unictype/pr_line_separator.c: New file.
64920         * lib/unictype/pr_logical_order_exception.c: New file.
64921         * lib/unictype/pr_lowercase.c: New file.
64922         * lib/unictype/pr_math.c: New file.
64923         * lib/unictype/pr_non_break.c: New file.
64924         * lib/unictype/pr_not_a_character.c: New file.
64925         * lib/unictype/pr_numeric.c: New file.
64926         * lib/unictype/pr_other_alphabetic.c: New file.
64927         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
64928         * lib/unictype/pr_other_grapheme_extend.c: New file.
64929         * lib/unictype/pr_other_id_continue.c: New file.
64930         * lib/unictype/pr_other_id_start.c: New file.
64931         * lib/unictype/pr_other_lowercase.c: New file.
64932         * lib/unictype/pr_other_math.c: New file.
64933         * lib/unictype/pr_other_uppercase.c: New file.
64934         * lib/unictype/pr_paired_punctuation.c: New file.
64935         * lib/unictype/pr_paragraph_separator.c: New file.
64936         * lib/unictype/pr_pattern_syntax.c: New file.
64937         * lib/unictype/pr_pattern_white_space.c: New file.
64938         * lib/unictype/pr_private_use.c: New file.
64939         * lib/unictype/pr_punctuation.c: New file.
64940         * lib/unictype/pr_quotation_mark.c: New file.
64941         * lib/unictype/pr_radical.c: New file.
64942         * lib/unictype/pr_sentence_terminal.c: New file.
64943         * lib/unictype/pr_soft_dotted.c: New file.
64944         * lib/unictype/pr_space.c: New file.
64945         * lib/unictype/pr_terminal_punctuation.c: New file.
64946         * lib/unictype/pr_test.c: New file.
64947         * lib/unictype/pr_titlecase.c: New file.
64948         * lib/unictype/pr_unassigned_code_value.c: New file.
64949         * lib/unictype/pr_unified_ideograph.c: New file.
64950         * lib/unictype/pr_uppercase.c: New file.
64951         * lib/unictype/pr_variation_selector.c: New file.
64952         * lib/unictype/pr_white_space.c: New file.
64953         * lib/unictype/pr_xid_continue.c: New file.
64954         * lib/unictype/pr_xid_start.c: New file.
64955         * lib/unictype/pr_zero_width.c: New file.
64956         * lib/unictype/scripts.c: New file.
64957         * lib/unictype/sy_c_ident.c: New file.
64958         * lib/unictype/sy_c_whitespace.c: New file.
64959         * lib/unictype/sy_java_ident.c: New file.
64960         * lib/unictype/sy_java_whitespace.c: New file.
64961
64962         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
64963         Unicode 5.0.0.
64964         * lib/unictype/blocks.h: Likewise.
64965         * lib/unictype/categ_C.h: Likewise.
64966         * lib/unictype/categ_Cc.h: Likewise.
64967         * lib/unictype/categ_Cf.h: Likewise.
64968         * lib/unictype/categ_Cn.h: Likewise.
64969         * lib/unictype/categ_Co.h: Likewise.
64970         * lib/unictype/categ_Cs.h: Likewise.
64971         * lib/unictype/categ_L.h: Likewise.
64972         * lib/unictype/categ_Ll.h: Likewise.
64973         * lib/unictype/categ_Lm.h: Likewise.
64974         * lib/unictype/categ_Lo.h: Likewise.
64975         * lib/unictype/categ_Lt.h: Likewise.
64976         * lib/unictype/categ_Lu.h: Likewise.
64977         * lib/unictype/categ_M.h: Likewise.
64978         * lib/unictype/categ_Mc.h: Likewise.
64979         * lib/unictype/categ_Me.h: Likewise.
64980         * lib/unictype/categ_Mn.h: Likewise.
64981         * lib/unictype/categ_N.h: Likewise.
64982         * lib/unictype/categ_Nd.h: Likewise.
64983         * lib/unictype/categ_Nl.h: Likewise.
64984         * lib/unictype/categ_No.h: Likewise.
64985         * lib/unictype/categ_P.h: Likewise.
64986         * lib/unictype/categ_Pc.h: Likewise.
64987         * lib/unictype/categ_Pd.h: Likewise.
64988         * lib/unictype/categ_Pe.h: Likewise.
64989         * lib/unictype/categ_Pf.h: Likewise.
64990         * lib/unictype/categ_Pi.h: Likewise.
64991         * lib/unictype/categ_Po.h: Likewise.
64992         * lib/unictype/categ_Ps.h: Likewise.
64993         * lib/unictype/categ_S.h: Likewise.
64994         * lib/unictype/categ_Sc.h: Likewise.
64995         * lib/unictype/categ_Sk.h: Likewise.
64996         * lib/unictype/categ_Sm.h: Likewise.
64997         * lib/unictype/categ_So.h: Likewise.
64998         * lib/unictype/categ_Z.h: Likewise.
64999         * lib/unictype/categ_Zl.h: Likewise.
65000         * lib/unictype/categ_Zp.h: Likewise.
65001         * lib/unictype/categ_Zs.h: Likewise.
65002         * lib/unictype/categ_of.h: Likewise.
65003         * lib/unictype/combining.h: Likewise.
65004         * lib/unictype/ctype_alnum.h: Likewise.
65005         * lib/unictype/ctype_alpha.h: Likewise.
65006         * lib/unictype/ctype_blank.h: Likewise.
65007         * lib/unictype/ctype_cntrl.h: Likewise.
65008         * lib/unictype/ctype_digit.h: Likewise.
65009         * lib/unictype/ctype_graph.h: Likewise.
65010         * lib/unictype/ctype_lower.h: Likewise.
65011         * lib/unictype/ctype_print.h: Likewise.
65012         * lib/unictype/ctype_punct.h: Likewise.
65013         * lib/unictype/ctype_space.h: Likewise.
65014         * lib/unictype/ctype_upper.h: Likewise.
65015         * lib/unictype/ctype_xdigit.h: Likewise.
65016         * lib/unictype/decdigit.h: Likewise.
65017         * lib/unictype/digit.h: Likewise.
65018         * lib/unictype/mirror.h: Likewise.
65019         * lib/unictype/numeric.h: Likewise.
65020         * lib/unictype/pr_alphabetic.h: Likewise.
65021         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
65022         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
65023         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
65024         * lib/unictype/pr_bidi_block_separator.h: Likewise.
65025         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
65026         * lib/unictype/pr_bidi_common_separator.h: Likewise.
65027         * lib/unictype/pr_bidi_control.h: Likewise.
65028         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
65029         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
65030         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
65031         * lib/unictype/pr_bidi_european_digit.h: Likewise.
65032         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
65033         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
65034         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
65035         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
65036         * lib/unictype/pr_bidi_pdf.h: Likewise.
65037         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
65038         * lib/unictype/pr_bidi_whitespace.h: Likewise.
65039         * lib/unictype/pr_combining.h: Likewise.
65040         * lib/unictype/pr_composite.h: Likewise.
65041         * lib/unictype/pr_currency_symbol.h: Likewise.
65042         * lib/unictype/pr_dash.h: Likewise.
65043         * lib/unictype/pr_decimal_digit.h: Likewise.
65044         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
65045         * lib/unictype/pr_deprecated.h: Likewise.
65046         * lib/unictype/pr_diacritic.h: Likewise.
65047         * lib/unictype/pr_extender.h: Likewise.
65048         * lib/unictype/pr_format_control.h: Likewise.
65049         * lib/unictype/pr_grapheme_base.h: Likewise.
65050         * lib/unictype/pr_grapheme_extend.h: Likewise.
65051         * lib/unictype/pr_grapheme_link.h: Likewise.
65052         * lib/unictype/pr_hex_digit.h: Likewise.
65053         * lib/unictype/pr_hyphen.h: Likewise.
65054         * lib/unictype/pr_id_continue.h: Likewise.
65055         * lib/unictype/pr_id_start.h: Likewise.
65056         * lib/unictype/pr_ideographic.h: Likewise.
65057         * lib/unictype/pr_ids_binary_operator.h: Likewise.
65058         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
65059         * lib/unictype/pr_ignorable_control.h: Likewise.
65060         * lib/unictype/pr_iso_control.h: Likewise.
65061         * lib/unictype/pr_join_control.h: Likewise.
65062         * lib/unictype/pr_left_of_pair.h: Likewise.
65063         * lib/unictype/pr_line_separator.h: Likewise.
65064         * lib/unictype/pr_logical_order_exception.h: Likewise.
65065         * lib/unictype/pr_lowercase.h: Likewise.
65066         * lib/unictype/pr_math.h: Likewise.
65067         * lib/unictype/pr_non_break.h: Likewise.
65068         * lib/unictype/pr_not_a_character.h: Likewise.
65069         * lib/unictype/pr_numeric.h: Likewise.
65070         * lib/unictype/pr_other_alphabetic.h: Likewise.
65071         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
65072         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
65073         * lib/unictype/pr_other_id_continue.h: Likewise.
65074         * lib/unictype/pr_other_id_start.h: Likewise.
65075         * lib/unictype/pr_other_lowercase.h: Likewise.
65076         * lib/unictype/pr_other_math.h: Likewise.
65077         * lib/unictype/pr_other_uppercase.h: Likewise.
65078         * lib/unictype/pr_paired_punctuation.h: Likewise.
65079         * lib/unictype/pr_paragraph_separator.h: Likewise.
65080         * lib/unictype/pr_pattern_syntax.h: Likewise.
65081         * lib/unictype/pr_pattern_white_space.h: Likewise.
65082         * lib/unictype/pr_private_use.h: Likewise.
65083         * lib/unictype/pr_punctuation.h: Likewise.
65084         * lib/unictype/pr_quotation_mark.h: Likewise.
65085         * lib/unictype/pr_radical.h: Likewise.
65086         * lib/unictype/pr_sentence_terminal.h: Likewise.
65087         * lib/unictype/pr_soft_dotted.h: Likewise.
65088         * lib/unictype/pr_space.h: Likewise.
65089         * lib/unictype/pr_terminal_punctuation.h: Likewise.
65090         * lib/unictype/pr_titlecase.h: Likewise.
65091         * lib/unictype/pr_unassigned_code_value.h: Likewise.
65092         * lib/unictype/pr_unified_ideograph.h: Likewise.
65093         * lib/unictype/pr_uppercase.h: Likewise.
65094         * lib/unictype/pr_variation_selector.h: Likewise.
65095         * lib/unictype/pr_white_space.h: Likewise.
65096         * lib/unictype/pr_xid_continue.h: Likewise.
65097         * lib/unictype/pr_xid_start.h: Likewise.
65098         * lib/unictype/pr_zero_width.h: Likewise.
65099         * lib/unictype/scripts.h: Likewise.
65100         * lib/unictype/scripts_byname.gperf: Likewise.
65101         * lib/unictype/sy_c_ident.h: Likewise.
65102         * lib/unictype/sy_c_whitespace.h: Likewise.
65103         * lib/unictype/sy_java_ident.h: Likewise.
65104         * lib/unictype/sy_java_whitespace.h: Likewise.
65105
65106         * lib/unictype/Makefile: New file.
65107         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
65108         glibc.
65109         * lib/unictype/3level.h: New file, copied from glibc.
65110         * lib/unictype/3levelbit.h: New file.
65111
65112 2007-11-11  Bruno Haible  <bruno@clisp.org>
65113
65114         * modules/gperf: New file.
65115         * modules/iconv_open (Depends-on): Add it.
65116         (Makefile.am): Remove the GPERF definition.
65117
65118 2007-11-11  Bruno Haible  <bruno@clisp.org>
65119
65120         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
65121         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
65122
65123 2007-11-11  Bruno Haible  <bruno@clisp.org>
65124
65125         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
65126         (usage): Remove function.
65127
65128 2007-11-11  Bruno Haible  <bruno@clisp.org>
65129
65130         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
65131         gl_FUNC_CEILF_LIBS.
65132         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
65133         gl_FUNC_CEIL_LIBS.
65134         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
65135         gl_FUNC_CEILL_LIBS.
65136         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
65137         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
65138         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
65139
65140 2007-11-11  Bruno Haible  <bruno@clisp.org>
65141
65142         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
65143         roundf were declared but do not exist on functions.
65144         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
65145         roundl were declared but do not exist on functions.
65146         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
65147         HAVE_FLOORL_AND_CEILL, respectively.
65148         Needed for Sun C on Solaris 10.
65149
65150 2007-11-11  Bruno Haible  <bruno@clisp.org>
65151
65152         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
65153         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
65154         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
65155         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
65156         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
65157         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
65158         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
65159         HAVE_DECL_ROUNDF.
65160         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
65161         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
65162         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
65163         of HAVE_DECL_ROUND*.
65164         * modules/math (Makefile.am): Update.
65165
65166 2007-11-10  Bruno Haible  <bruno@clisp.org>
65167
65168         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
65169         ptrdiff_t as m4/intl.m4.
65170
65171 2007-11-10  Jim Meyering  <meyering@redhat.com>
65172
65173         Avoid link failure for the argmatch test.
65174         * tests/test-argmatch.c (usage): Define function to avoid a link
65175         failure: argmatch_die requires a usage function.
65176
65177 2007-11-09  Bruno Haible  <bruno@clisp.org>
65178
65179         * doc/functions/snprintf.texi: Mention BeOS deficiency.
65180         * doc/functions/vsnprintf.texi: Likewise.
65181         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
65182         with a size argument < 2.
65183
65184 2007-11-09  Bruno Haible  <bruno@clisp.org>
65185
65186         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
65187         buffer. Fixes an inefficiency introduced on 2007-11-03.
65188
65189 2007-11-09  Bruno Haible  <bruno@clisp.org>
65190
65191         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
65192         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
65193
65194 2007-11-08  Jim Meyering  <meyering@redhat.com>
65195
65196         Change cache variable name prefix "jm_" to "gl_" everywhere.
65197         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
65198         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
65199         * m4/uptime.m4: s/gl_/jm_/
65200
65201 2007-11-07  Bruno Haible  <bruno@clisp.org>
65202
65203         Update to GNU gettext 0.17.
65204         * m4/intl.m4: Update to GNU gettext 0.17.
65205         * m4/po.m4: Likewise.
65206         * modules/gettext (Files): Remove m4/ulonglong.m4.
65207         (configure.ac): Require gettext infrastructure from version 0.17.
65208
65209 2007-11-06  Bruno Haible  <bruno@clisp.org>
65210
65211         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
65212         symbolic values are not defined in a public header.
65213         * lib/freadable.c (freadable) [QNX]: Likewise.
65214         * lib/freadahead.c (freadahead) [QNX]: Likewise.
65215         * lib/freading.c (freading) [QNX]: Likewise.
65216         * lib/fseterr.c (fseterr) [QNX]: Likewise.
65217         * lib/fwritable.c (fwritable) [QNX]: Likewise.
65218         * lib/fwriting.c (fwriting) [QNX]: Likewise.
65219         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
65220         Reported by Alain Magloire.
65221
65222         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
65223
65224 2007-11-05  Bruno Haible  <bruno@clisp.org>
65225
65226         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
65227         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
65228         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
65229         Reported by Eric Blake.
65230
65231 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65232             Bruno Haible  <bruno@clisp.org>
65233
65234         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
65235         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
65236         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
65237         (malloc): Undefine also before including <stdlib.h>.
65238         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
65239         Needed on OSF/1 4.0.
65240
65241 2007-11-05  Jim Meyering  <meyering@redhat.com>
65242
65243         git-version-gen: sync from coreutils.
65244         * build-aux/git-version-gen: Add comments.
65245         Change the first '-' to '.' in the snapshot version string,
65246         e.g., 6.9-377-08144 -> 6.9.377-08144
65247         Remove first parameter.
65248         Don't declare a version "-dirty" merely because a time
65249         stamp has changed.
65250
65251 2007-11-04  Bruno Haible  <bruno@clisp.org>
65252
65253         * lib/lock.h: Protect all macro definitions containing an 'if'
65254         statement through a "do { ... } while (0)".
65255         * lib/tls.h: Likewise.
65256
65257 2007-11-04  Bruno Haible  <bruno@clisp.org>
65258
65259         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
65260
65261 2007-11-04  Bruno Haible  <bruno@clisp.org>
65262
65263         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
65264         * modules/fprintf-posix (Depends-on): Add nocrash.
65265         * modules/snprintf-posix (Depends-on): Likewise.
65266         * modules/sprintf-posix (Depends-on): Likewise.
65267         * modules/vasnprintf-posix (Depends-on): Likewise.
65268         * modules/vasprintf-posix (Depends-on): Likewise.
65269         * modules/vfprintf-posix (Depends-on): Likewise.
65270         * modules/vsnprintf-posix (Depends-on): Likewise.
65271         * modules/vsprintf-posix (Depends-on): Likewise.
65272         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
65273         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
65274         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
65275         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
65276         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
65277         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
65278         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
65279
65280 2007-11-04  Bruno Haible  <bruno@clisp.org>
65281
65282         * modules/nocrash: New file.
65283         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
65284         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
65285
65286 2007-11-04  Bruno Haible  <bruno@clisp.org>
65287
65288         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
65289         precision handling.
65290         * tests/test-vasprintf-posix.c (test_function): Likewise.
65291         * tests/test-snprintf-posix.h (test_function): Likewise.
65292         * tests/test-sprintf-posix.h (test_function): Likewise.
65293
65294         Fix *printf behaviour for large precisions on mingw and BeOS.
65295         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
65296         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
65297         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
65298         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65299         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65300         gl_PRINTF_PRECISION and test its result. Invoke
65301         gl_PREREQ_VASNPRINTF_PRECISION.
65302         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65303         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65304         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65305         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65306         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65307         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65308         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65309         * doc/functions/fprintf.texi: Update.
65310         * doc/functions/printf.texi: Update.
65311         * doc/functions/snprintf.texi: Update.
65312         * doc/functions/sprintf.texi: Update.
65313         * doc/functions/vfprintf.texi: Update.
65314         * doc/functions/vprintf.texi: Update.
65315         * doc/functions/vsnprintf.texi: Update.
65316         * doc/functions/vsprintf.texi: Update.
65317
65318 2007-11-04  Bruno Haible  <bruno@clisp.org>
65319
65320         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
65321
65322 2007-11-04  Bruno Haible  <bruno@clisp.org>
65323
65324         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
65325         Reported by Sylvain Beucler <beuc@gnu.org>.
65326
65327 2007-11-03  Bruno Haible  <bruno@clisp.org>
65328
65329         * tests/test-fprintf-posix2.sh: New file.
65330         * tests/test-fprintf-posix2.c: New file.
65331         * modules/fprintf-posix-tests (Files): Add them.
65332         (TESTS): Add test-fprintf-posix2.sh.
65333         (configure.ac): Check for getrlimit and setrlimit.
65334         (check_PROGRAMS): Add test-fprintf-posix2.
65335
65336         * tests/test-printf-posix2.sh: New file.
65337         * tests/test-printf-posix2.c: New file.
65338         * modules/printf-posix-tests (Files): Add them.
65339         (TESTS): Add test-printf-posix2.sh.
65340         (configure.ac): Check for getrlimit and setrlimit.
65341         (check_PROGRAMS): Add test-printf-posix2.
65342
65343         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
65344         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
65345         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
65346         (decode_double): New function, copied from decode_long_double.
65347         (scale10_round_decimal_decoded): New function, extracted from
65348         scale10_round_decimal_long_double.
65349         (scale10_round_decimal_long_double): Use it.
65350         (scale10_round_decimal_double): New function.
65351         (floorlog10): New function.
65352         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
65353         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
65354         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65355         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65356         gl_PRINTF_ENOMEM and test its result. Invoke
65357         gl_PREREQ_VASNPRINTF_ENOMEM.
65358         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65359         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65360         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65361         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65362         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65363         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65364         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65365         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
65366         * modules/snprintf-posix (Depends-on): Likewise.
65367         * modules/sprintf-posix (Depends-on): Likewise.
65368         * modules/vasnprintf-posix (Depends-on): Likewise.
65369         * modules/vasprintf-posix (Depends-on): Likewise.
65370         * modules/vfprintf-posix (Depends-on): Likewise.
65371         * modules/vsnprintf-posix (Depends-on): Likewise.
65372         * modules/vsprintf-posix (Depends-on): Likewise.
65373         * doc/functions/fprintf.texi: Update.
65374         * doc/functions/printf.texi: Update.
65375         * doc/functions/snprintf.texi: Update.
65376         * doc/functions/sprintf.texi: Update.
65377         * doc/functions/vfprintf.texi: Update.
65378         * doc/functions/vprintf.texi: Update.
65379         * doc/functions/vsnprintf.texi: Update.
65380         * doc/functions/vsprintf.texi: Update.
65381
65382 2007-11-03  Bruno Haible  <bruno@clisp.org>
65383
65384         * modules/frexp-nolibm-tests: New file.
65385
65386         * modules/frexp-nolibm: New file.
65387         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
65388
65389 2007-11-03  Bruno Haible  <bruno@clisp.org>
65390
65391         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
65392         value is C99 compliant.
65393         Needed for OSF/1 5.1.
65394
65395 2007-11-03  Bruno Haible  <bruno@clisp.org>
65396
65397         Fix out-of-memory handling of vasnprintf.
65398         * lib/printf-parse.c: Include <errno.h>.
65399         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
65400         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
65401         is already set.
65402
65403 2007-11-02  Eric Blake  <ebb9@byu.net>
65404
65405         Fix tests on cygwin.
65406         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
65407
65408 2007-11-01  Bruno Haible  <bruno@clisp.org>
65409
65410         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
65411         warning.
65412         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
65413         needed for POSIX compatibility.
65414
65415 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65416
65417         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
65418         for compatibility with GNU.
65419
65420 2007-11-01  Bruno Haible  <bruno@clisp.org>
65421
65422         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
65423         (putenv): Renamed from rpl_putenv. Change argument type from
65424         'const char *' to 'char *'.
65425         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
65426         of defining putenv in config.h, just set REPLACE_PUTENV.
65427         * modules/putenv (Depends-on): Add stdlib.
65428         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65429         (Include): Use <stdlib.h>.
65430         * lib/stdlib.in.h (putenv): New declaration.
65431         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
65432         REPLACE_PUTENV.
65433         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
65434         REPLACE_PUTENV.
65435         Needed for MacOS X 10.5.0.
65436         Reported by Peter O'Gorman <peter@pogma.com>.
65437
65438 2007-11-01  Jim Meyering  <meyering@redhat.com>
65439
65440         Treat an empty date string exactly like "0".
65441         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
65442         if the remaining date string (to be parsed) is empty, use "0".
65443         Reported by Mischa Molhoek and discussed in this thread:
65444         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
65445
65446 2007-10-31  Bruno Haible  <bruno@clisp.org>
65447
65448         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
65449         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
65450         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
65451         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
65452         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
65453         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
65454
65455 2007-10-31  Bruno Haible  <bruno@clisp.org>
65456
65457         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
65458         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
65459         (AC_TYPE_LONG_LONG_INT): Use it.
65460         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
65461         it as well.
65462         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
65463         to m4/longlong.m4.
65464         * modules/stdint (Files): Remove m4/ulonglong.m4.
65465         * modules/strtoull (Files): Use m4/longlong.m4 instead of
65466         m4/ulonglong.m4.
65467         * modules/strtoumax (Files): Likewise.
65468
65469 2007-10-30  Bruno Haible  <bruno@clisp.org>
65470
65471         * modules/xvasprintf-posix: New file.
65472         Suggested by Eric Blake.
65473
65474 2007-10-30  Bruno Haible  <bruno@clisp.org>
65475
65476         * modules/xprintf-posix-tests: New file.
65477         * tests/test-xprintf-posix.sh: New file.
65478         * tests/test-xprintf-posix.c: New file.
65479         * tests/test-xfprintf-posix.c: New file.
65480
65481         * modules/xprintf-posix: New file.
65482
65483 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65484
65485         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
65486         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
65487         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
65488
65489 2007-10-29  Bruno Haible  <bruno@clisp.org>
65490
65491         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
65492         contain the special marker '_cv_'.
65493         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65494         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65495         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65496         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65497         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65498         Reported by Ralf Wildenhues.
65499
65500 2007-10-29  Bruno Haible  <bruno@clisp.org>
65501
65502         * gnulib-tool (func_import): When --lgpl is not specified, set
65503         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
65504         GPLv3.
65505         Reported by Simon Josefsson.
65506
65507 2007-10-28  Bruno Haible  <bruno@clisp.org>
65508
65509         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
65510         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
65511         HAVE_DECL_ISFINITE.
65512         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65513         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
65514         HAVE_DECL_ISFINITE.
65515
65516 2007-10-28  Bruno Haible  <bruno@clisp.org>
65517
65518         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
65519         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
65520
65521 2007-10-28  Bruno Haible  <bruno@clisp.org>
65522
65523         Fix link errors with Sun C 5.0 on Solaris 10.
65524         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
65525         function is declared but not present in the compiler's libm.
65526         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65527         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
65528         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
65529         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
65530         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
65531         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
65532         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
65533         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65534         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
65535         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
65536         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
65537         HAVE_DECL_FLOORL.
65538
65539 2007-10-28  Bruno Haible  <bruno@clisp.org>
65540
65541         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
65542         gl_FUNC_FLOORL. Cache the result.
65543         (gl_FUNC_FLOORL): Use it.
65544         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
65545         gl_FUNC_CEILL. Cache the result.
65546         (gl_FUNC_CEILL): Use it.
65547
65548         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
65549         gl_FUNC_FLOOR. Cache the result.
65550         (gl_FUNC_FLOOR): Use it.
65551         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
65552         gl_FUNC_CEIL. Cache the result.
65553         (gl_FUNC_CEIL): Use it.
65554
65555         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
65556         gl_FUNC_FLOORF. Cache the result.
65557         (gl_FUNC_FLOORF): Use it.
65558         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
65559         gl_FUNC_CEILF. Cache the result.
65560         (gl_FUNC_CEILF): Use it.
65561
65562 2007-10-28  Bruno Haible  <bruno@clisp.org>
65563
65564         * gnulib-tool: Allow specifying the LGPL version number through
65565         --lgpl=2 or --lgpl=3.
65566         (func_usage): Document --lgpl with argument.
65567         Handle --lgpl=... arguments.
65568         (func_import): Recognize also gl_LGPL calls with an argument. When
65569         --lgpl=2 is used and the module's license is just LGPL, report an
65570         error. Set sed_transform_lib_file according to the lgpl variable. In
65571         the generated files, use --lgpl or gl_LGPL invocations with argument,
65572         if necessary.
65573         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
65574         an LGPv2+ license.
65575         * doc/gnulib-tool.texi (Modified imports): Update explanation of
65576         gl_LGPL macro.
65577
65578 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65579             Bruno Haible  <bruno@clisp.org>
65580
65581         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
65582         (u16_uctomb_aux): Likewise.
65583         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
65584         !HAVE_INLINE.
65585         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
65586
65587 2007-10-28  Bruno Haible  <bruno@clisp.org>
65588
65589         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
65590         Invoke AM_GETTEXT_OPTION if it exists.
65591         * modules/vasprintf: Likewise.
65592         * modules/verror: Likewise.
65593         * modules/xprintf: Likewise.
65594         * modules/xvasprintf: Likewise.
65595
65596 2007-10-27  Ben Pfaff  <blp@gnu.org>
65597
65598         * lib/math.in.h: Define isfinite macro and prototypes for
65599         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
65600         implementations.
65601         * m4/math_h.m4: New substitutions for isfinite module.
65602         * lib/isfinite.c: New file.
65603         * m4/isfinite.m4: New file.
65604         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
65605         * modules/isfinite: New file.
65606         * modules/isfinite-tests: New file.
65607         * tests/tests-isfinite.c: New file.
65608         * doc/functions/isfinite.texi: Mention isfinite module.
65609         * MODULES.html.sh: Mention new module.
65610
65611 2007-10-27  Ben Pfaff  <blp@gnu.org>
65612
65613         Ralf Wildenhues reported that Tru64 4.0D declares the round
65614         functions but does not have definitions.
65615         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
65616         cannot be found in any library, set the output variable to
65617         "missing" instead of "".
65618         * m4/round.m4: Also use our substitute if we cannot find round in
65619         any library, even if it is declared.
65620         * m4/roundf.m4: Likewise for roundf.
65621         * m4/roundl.m4: Likewise for roundl.
65622         * lib/math.in.h: Undefine roundf, round, roundl before defining
65623         their replacements, to allow for hypothetical systems where these
65624         may be defined as macros but not available in libraries.
65625
65626 2007-10-27  Bruno Haible  <bruno@clisp.org>
65627
65628         * doc/gnulib.texi: Invoke @firstparagraphindent.
65629         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
65630         changes in gnulib.
65631         (Source changes): New section.
65632
65633 2007-10-26  Bruno Haible  <bruno@clisp.org>
65634
65635         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
65636         borrowed from autoconf.
65637
65638 2007-10-26  Bruno Haible  <bruno@clisp.org>
65639
65640         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
65641         strerror returned the empty string. Needed on HP-UX 11.00.
65642
65643 2007-10-24  Micah Cowan  <micah@cowan.name>
65644
65645         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
65646         * build-aux/bootstrap: Remove support for now-unnecessary option,
65647         --cvs-user, and envvars CVS_USER, CVS_RSH.
65648
65649 2007-10-24  Jim Meyering  <meyering@redhat.com>
65650
65651         Avoid diagnostics from sha1sum when there is no cached checksum.
65652         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
65653         if the po.s1 file hasn't been created yet.
65654
65655         * build-aux/bootstrap: Sync from coreutils:
65656         2007-10-24  Jim Meyering  <meyering@redhat.com>
65657         Get gnulib from the git repository, not from an obsolete cvs one.
65658         * build-aux/bootstrap: Suggestion from Micah Cowan.
65659         2007-10-04  Jim Meyering  <jim@meyering.net>
65660         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
65661         (update_po_files): Work also when there are no .po files in po/.
65662
65663 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65664
65665         * README: Append ".git" to git and cg examples.
65666         Problem reported by Benoit Sigoure.
65667
65668 2007-10-23  Micah Cowan  <micah@cowan.name>
65669
65670         * users.txt: Add wget.
65671
65672 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65673
65674         Fix linking of some unistdio tests on FreeBSD.
65675         * modules/unistdio/u16-vsnprintf-tests
65676         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
65677         * modules/unistdio/u16-vsprintf-tests
65678         (test_u16_vsnprintf1_LDADD): Likewise.
65679         * modules/unistdio/u32-vsnprintf-tests
65680         (test_u32_vsnprintf1_LDADD): Likewise.
65681         * modules/unistdio/u32-vsprintf-tests
65682         (test_u32_vsprintf1_LDADD): Likewise.
65683         * modules/unistdio/u8-vsnprintf-tests
65684         (test_u8_vsnprintf1_LDADD): Likewise.
65685         * modules/unistdio/u8-vsprintf-tests
65686         (test_u8_vsprintf1_LDADD): Likewise.
65687         * modules/unistdio/ulc-vsnprintf-tests
65688         (test_ulc_vsnprintf1_LDADD): Likewise.
65689         * modules/unistdio/ulc-vsprintf-tests
65690         (test_ulc_vsprintf1_LDADD): Likewise.
65691
65692         Fix linking of some uniconv tests on FreeBSD.
65693         * modules/uniconv/u16-conv-from-enc-tests
65694         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
65695         * modules/uniconv/u16-conv-to-enc-tests
65696         (test_u16_conv_to_enc_LDADD): Likewise.
65697         * modules/uniconv/u16-strconv-from-enc-tests
65698         (test_u16_strconv_from_enc_LDADD): Likewise.
65699         * modules/uniconv/u16-strconv-to-enc-tests
65700         (test_u16_strconv_to_enc_LDADD): Likewise.
65701         * modules/uniconv/u32-conv-from-enc-tests
65702         (test_u32_conv_from_enc_LDADD): Likewise.
65703         * modules/uniconv/u32-conv-to-enc-tests
65704         (test_u32_conv_to_enc_LDADD): Likewise.
65705         * modules/uniconv/u32-strconv-from-enc-tests
65706         (test_u32_strconv_from_enc_LDADD): Likewise.
65707         * modules/uniconv/u32-strconv-to-enc-tests
65708         (test_u32_strconv_to_enc_LDADD): Likewise.
65709         * modules/uniconv/u8-conv-from-enc-tests
65710         (test_u8_conv_from_enc_LDADD): Likewise.
65711         * modules/uniconv/u8-conv-to-enc-tests
65712         (test_u8_conv_to_enc_LDADD): Likewise.
65713         * modules/uniconv/u8-strconv-from-enc-tests
65714         (test_u8_strconv_from_enc_LDADD): Likewise.
65715         * modules/uniconv/u8-strconv-to-enc-tests
65716         (test_u8_strconv_to_enc_LDADD): Likewise.
65717
65718 2007-10-22  Bruno Haible  <bruno@clisp.org>
65719
65720         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
65721         size.
65722
65723 2007-10-22  Eric Blake  <ebb9@byu.net>
65724
65725         Tweak x*printf documentation.
65726         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
65727         variable name and comments.
65728         Suggested by Bruno Haible.
65729
65730 2007-10-22  Bruno Haible  <bruno@clisp.org>
65731
65732         * lib/acl.c (copy_acl): Fix file name in comment.
65733
65734 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65735
65736         Fix Tru64 problem with stdbool.h.
65737         * lib/stdbool.in.h (false, true):
65738         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
65739         Don't declare as an enum in this situation; it runs afoul of Tru64.
65740         Problem reported by Steven M. Schweda in
65741         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
65742
65743 2007-10-22  Eric Blake  <ebb9@byu.net>
65744
65745         Also wrap vf?printf.
65746         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
65747         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
65748         (xvprintf, xvfprintf): New functions.
65749
65750 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65751
65752         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
65753         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
65754
65755         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
65756         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
65757
65758 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65759
65760         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
65761         by Bruno Haible.
65762
65763 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65764
65765         * lib/getloadavg.c
65766         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
65767         Undef `sys' after including sys/table.h, for Tru64 4.0D.
65768
65769         * tests/test-i-ring.c: Work for C89.
65770
65771 2007-10-22  Bruno Haible  <bruno@clisp.org>
65772
65773         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
65774         -1u, in preprocessor expression, so that we don't test for the bug
65775         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
65776         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
65777
65778 2007-10-22  Eric Blake  <ebb9@byu.net>
65779
65780         * tests/test-yesno.sh: Silence stderr during test.
65781
65782 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65783
65784         * modules/crypto/gc-camellia: New file.
65785
65786         * m4/gc-camellia.m4: New file.
65787
65788         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
65789
65790         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
65791
65792 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65793
65794         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
65795         --help to stdout.  Reported by sms@antinode.org (Steven
65796         M. Schweda).
65797
65798 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65799
65800         * users.txt: Fix link to libksba.
65801
65802 2007-10-21  Ben Pfaff  <blp@gnu.org>
65803
65804         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
65805         round.c roundf implementation that depends on floorf and ceilf to
65806         be tested unconditionally.
65807
65808 2007-10-21  Ben Pfaff  <blp@gnu.org>
65809
65810         * m4/check-libm-func.m4: Removed.
65811         * m4/check-math-lib.m4: New file.
65812         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
65813         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
65814         definition and lack of AC_LIBOBJ([roundf]).
65815         * m4/roundl.m4: Ditto, and similarly for roundl.
65816         * modules/round: Reference new m4 file.
65817         * modules/roundf: Ditto.
65818         * modules/roundl: Ditto.
65819         * tests/test-round2.c (main): Use ROUND instead of round.
65820         Bug report from Bruno Haible.
65821
65822 2007-10-21  Bruno Haible  <bruno@clisp.org>
65823
65824         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
65825         context.
65826
65827 2007-10-21  Bruno Haible  <bruno@clisp.org>
65828
65829         * tests/test-wcwidth.c (main): Allow negative result for some control
65830         characters.
65831
65832         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
65833         Needed on OSF/1 5.1.
65834
65835 2007-10-21  Bruno Haible  <bruno@clisp.org>
65836
65837         * tests/test-floorf1.c: Include isnanf.h.
65838         (main): Use isnanf() instead of isnan().
65839         * tests/test-ceilf1.c: Include isnanf.h.
65840         (main): Use isnanf() instead of isnan().
65841         * tests/test-truncf1.c: Include isnanf.h.
65842         (main): Use isnanf() instead of isnan().
65843         * tests/test-roundf1.c: Include isnanf.h.
65844         (main): Use isnanf() instead of isnan().
65845
65846 2007-10-21  Eric Blake  <ebb9@byu.net>
65847
65848         * users.txt: Update URL for m4.
65849
65850 2007-10-21  Bruno Haible  <bruno@clisp.org>
65851
65852         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
65853
65854 2007-10-21  Bruno Haible  <bruno@clisp.org>
65855
65856         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
65857         Git's management files if the CVS files are not present.
65858
65859 2007-10-20  Bruno Haible  <bruno@clisp.org>
65860
65861         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
65862         gcc-3.4.x.
65863
65864 2007-10-20  Ben Pfaff  <blp@gnu.org>
65865
65866         * lib/math.in.h: Declare round, roundf, roundl if we are providing
65867         implementations.
65868         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
65869         * lib/round.c: New file.
65870         * lib/roundf.c: New file.
65871         * lib/roundl.c: New file.
65872         * m4/round.m4: New file.
65873         * m4/roundf.m4: New file.
65874         * m4/roundl.m4: New file.
65875         * m4/check-libm-func-m4: New file.
65876         * modules/math: Replace round, roundf, roundl related @VARS@ in
65877         math.in.h.
65878         * modules/round: New file.
65879         * modules/round-tests: New file.
65880         * modules/roundf: New file.
65881         * modules/roundf-tests: New file.
65882         * modules/roundl: New file.
65883         * modules/roundl-tests: New file.
65884         * tests/test-round1.c: New file.
65885         * tests/test-round2.c: New file.
65886         * tests/test-roundf1.c: New file.
65887         * tests/test-roundf2.c: New file.
65888         * tests/test-roundl.c: New file.
65889         * doc/functions/round.texi: Mention round module.
65890         * doc/functions/roundf.texi: Mention roundf module.
65891         * doc/functions/roundl.texi: Mention roundl module.
65892         * MODULES.html.sh: Mention new modules.
65893         Thanks to Bruno Haible for suggestions.
65894
65895 2007-10-20  Jim Meyering  <meyering@redhat.com>
65896
65897         * lib/xprintf.c: Include <config.h> unconditionally.
65898
65899         Change xprintf's license to GPL.
65900         * modules/xprintf (License): s/LGPL/GPL/, since this module
65901         depends on modules (exit and exitfail) which are GPL.
65902         Suggestion from Bruno Haible.
65903
65904         xprintf fixes.
65905         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
65906         Use a clearer diagnostic.
65907         Patch from Bruno Haible.
65908
65909 2007-10-20  Bruno Haible  <bruno@clisp.org>
65910
65911         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
65912         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
65913         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65914
65915 2007-10-20  Bruno Haible  <bruno@clisp.org>
65916
65917         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
65918         precision in the comparison result > x - 1 or similar.
65919         * tests/test-ceilf2.c (correct_result_p): Likewise.
65920         * tests/test-truncf2.c (correct_result_p): Likewise.
65921         * tests/test-trunc2.c (correct_result_p): Likewise.
65922         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65923
65924 2007-10-20  Bruno Haible  <bruno@clisp.org>
65925
65926         * modules/ceil: New file.
65927         * m4/ceil.m4: New file.
65928         * doc/functions/ceil.texi: Mention the 'ceil' module.
65929
65930 2007-10-20  Bruno Haible  <bruno@clisp.org>
65931
65932         * modules/floor: New file.
65933         * m4/floor.m4: New file.
65934         * doc/functions/floor.texi: Mention the 'floor' module.
65935
65936 2007-10-20  Bruno Haible  <bruno@clisp.org>
65937
65938         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
65939         of %a.
65940         * modules/floorf-tests (Depends-on): Likewise.
65941         * modules/truncf-tests (Depends-on): Likewise.
65942         * modules/trunc-tests (Depends-on): Likewise.
65943         Reported by Ben Pfaff.
65944
65945 2007-10-19  Jim Meyering  <meyering@redhat.com>
65946
65947         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
65948         Don't bother testing specific errno values.  Just test ferror.
65949
65950         New module: xprintf
65951         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
65952
65953 2007-10-19  Bruno Haible  <bruno@clisp.org>
65954
65955         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
65956         syntax.
65957         * modules/javaexec (Makefile.am): Likewise.
65958         * modules/relocatable-prog (Makefile.am): Likewise.
65959         Suggested by Jim Meyering.
65960
65961 2007-10-18  Bruno Haible  <bruno@clisp.org>
65962
65963         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
65964         Reported by Jim Meyering.
65965
65966 2007-10-18  Eric Blake  <ebb9@byu.net>
65967
65968         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
65969
65970 2007-10-18  Bruno Haible  <bruno@clisp.org>
65971
65972         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
65973         the format string into writable memory. Needed in Fortify conditions.
65974
65975 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
65976             Bruno Haible  <bruno@clisp.org>
65977
65978         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
65979         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
65980         * modules/trim (Depends-on): Add mbchar.
65981         (configure.ac): Add gl_FUNC_MBRTOWC.
65982         (Makefile.am): Augment lib_SOURCES.
65983
65984 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65985
65986         Modify glob.c to use fstatat and dirfd, to simplify it.
65987         Suggested by Eric Blake.
65988         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
65989         Don't include <stdbool.h>; not used.
65990         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
65991         (link_exists_p): Simplify implementation, since we can now assume
65992         dirfd and fstatat.
65993         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
65994
65995 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65996
65997         * gnulib-tool (func_get_dependencies): Fix sed script to
65998         match only tests.
65999
66000 2007-10-17  Bruno Haible  <bruno@clisp.org>
66001
66002         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
66003         allow locale names without encoding suffix.
66004         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
66005         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
66006
66007 2007-10-16  Bruno Haible  <bruno@clisp.org>
66008
66009         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
66010         * lib/getgroups.c (getgroups): Likewise.
66011         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
66012
66013 2007-10-16  Bruno Haible  <bruno@clisp.org>
66014
66015         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
66016         * modules/malloc-posix (License): Likewise.
66017         * modules/realloc-posix (License): Likewise.
66018         * modules/calloc-posix (License): Likewise.
66019         * modules/intprops (License): Change from GPL to LGPL, with
66020         Paul Eggert's approval.
66021
66022 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66023
66024         Merge glibc changes into lib/glob.c.
66025
66026         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
66027         2007-10-15 04:59:03 UTC.  Here are the changes:
66028
66029         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
66030
66031         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
66032
66033         * lib/glob.c: Add some branch prediction throughout.
66034
66035         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
66036
66037         [BZ #5103]
66038         * lib/glob.c (glob): Recognize patterns starting \/.
66039
66040         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
66041
66042         [BZ #3996]
66043         * lib/glob.c (attribute_hidden): Define if not defined.
66044         (glob): Unescape dirname, filename or username when needed and not
66045         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
66046         is NULL.  Handle unescaped [ in pattern without closing ].
66047         Don't pass GLOB_CHECK down to recursive glob for directories.
66048         (__glob_pattern_type): New function.
66049         (__glob_pattern_p): Implement using __glob_pattern_type.
66050         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
66051         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
66052         Remove unreachable code.
66053
66054         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
66055
66056         * lib/glob.c (glob_in_dir): Add some comments and asserts to
66057         explain why there are no leaks.
66058
66059         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
66060
66061         [BZ #3253]
66062         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
66063         time, rather allocate increasingly bigger arrays of pointers, if
66064         possible with alloca, if too large with malloc.
66065
66066 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66067
66068         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
66069         Problem reported by H.Merijn Brand in
66070         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
66071         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
66072         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
66073
66074 2007-10-15  Bruno Haible  <bruno@clisp.org>
66075
66076         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
66077         with explicit rpl_ prefix.
66078         * lib/fopen.c (fopen): Likewise.
66079         * lib/freopen.c (freopen): Likewise.
66080         * lib/iconv.c (iconv): Likewise.
66081         * lib/iconv_close.c (iconv_close): Likewise.
66082
66083 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66084
66085         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
66086
66087 2007-10-15  Bruno Haible  <bruno@clisp.org>
66088
66089         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
66090         <stddef.h> instead of <stdlib.h> since we only need NULL.
66091         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66092
66093 2007-10-15  Bruno Haible  <bruno@clisp.org>
66094
66095         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
66096         Replace paragraph talking about LIBOBJS.
66097         Reported by Colin Watson <cjwatson@debian.org>.
66098
66099 2007-10-15  Bruno Haible  <bruno@clisp.org>
66100
66101         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
66102         <stdlib.h> before using NULL.
66103
66104 2007-10-15  Simon Josefsson  <simon@josefsson.org>
66105
66106         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
66107         Reported by Albert Chin <china@thewrittenword.com>.
66108
66109 2007-10-14  Bruno Haible  <bruno@clisp.org>
66110
66111         * modules/iconv_open-utf-tests: New file.
66112         * tests/test-iconv-utf.c: New file.
66113
66114         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
66115         * modules/iconv_open-utf: New file.
66116         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
66117         (iconv, iconv_close): New declarations.
66118         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
66119         be defined.
66120         (iconv_open): Add special handling of conversion between UTF-8 and
66121         UTF-{16,32}{BE,LE}.
66122         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
66123         * lib/iconv_close.c: New file.
66124         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
66125         gl_FUNC_ICONV_OPEN.
66126         (gl_FUNC_ICONV_OPEN): Use it.
66127         (gl_FUNC_ICONV_OPEN_UTF): New macro.
66128         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
66129         and REPLACE_ICONV_UTF.
66130         * modules/iconv_open (Depends-on): Add c-strcase.
66131         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
66132         ICONV_CONST.
66133         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
66134
66135 2007-10-13  Albert Chin  <china@thewrittenword.com>
66136             Bruno Haible  <bruno@clisp.org>
66137
66138         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
66139         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
66140
66141 2007-10-13  Bruno Haible  <bruno@clisp.org>
66142
66143         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
66144         defined, use the ISO C99 inline semantics.
66145         * lib/argp.h (ARGP_EI): Likewise.
66146
66147 2007-10-13  Bruno Haible  <bruno@clisp.org>
66148
66149         Handle 'inline' change in gcc 4.3.0.
66150         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
66151         argp_fmtstream_write, argp_fmtstream_set_lmargin,
66152         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
66153         argp_fmtstream_point): Disable 'extern' declaration if the function
66154         definition is going to be provided inline.
66155         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
66156         semantics, not the ISO C99 inline semantics.
66157         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
66158         'extern' declaration if the function definition is going to be provided
66159         inline.
66160         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
66161         the GNU C inline semantics, not the ISO C99 inline semantics. With
66162         GCC 4.2, avoid a warning.
66163
66164 2007-10-13  Bruno Haible  <bruno@clisp.org>
66165
66166         * lib/freading.h (freading): Enable the use of __freading for
66167         glibc >= 2.7.
66168         * lib/freading.c (freading): Likewise.
66169
66170 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66171
66172         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
66173         "warning: C99 inline functions are not supported; using GNU89".
66174
66175 2007-10-12  Bruno Haible  <bruno@clisp.org>
66176
66177         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
66178         of 2.
66179         * tests/test-ceilf2.c: New file.
66180         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
66181
66182         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
66183         * modules/ceilf-tests: Update.
66184
66185 2007-10-12  Bruno Haible  <bruno@clisp.org>
66186
66187         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
66188         of 2.
66189         * tests/test-floorf2.c: New file.
66190         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
66191
66192         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
66193         * modules/floorf-tests: Update.
66194
66195 2007-10-12  Bruno Haible  <bruno@clisp.org>
66196
66197         * tests/test-trunc2.c: New file.
66198         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
66199
66200         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
66201         * modules/trunc-tests: Update.
66202
66203 2007-10-12  Bruno Haible  <bruno@clisp.org>
66204
66205         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
66206         of 2.
66207         * tests/test-truncf2.c: New file.
66208         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
66209
66210         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
66211         * modules/truncf-tests: Update.
66212
66213 2007-10-11  Eric Blake  <ebb9@byu.net>
66214
66215         Don't claim strerror is broken on Interix.
66216         * doc/functions/strerror.texi (strerror): Known broken systems are
66217         now Solaris 8, and not Interix.
66218         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
66219         Interix on cross-compile.
66220         Reported by Martin Koeppe in
66221         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
66222
66223 2007-10-11  Bruno Haible  <bruno@clisp.org>
66224
66225         * modules/i-ring-tests: New file.
66226         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
66227         instead of assert.
66228
66229 2007-10-11  Bruno Haible  <bruno@clisp.org>
66230
66231         * modules/filenamecat-tests: New file.
66232         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
66233         * lib/filenamecat.c: Remove test code.
66234
66235 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66236
66237         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
66238
66239         * lib/strerror.c: Include <string.h> always, to test interface,
66240         and to remove the need for the dummy.
66241         Include intprops.h to compute width instead of doing it ourselves
66242         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
66243         (strerror): Define it to return NULL if there's no system strerror.
66244         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
66245         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
66246         ancient pre-strerror Unix systems well any more.  Saying "unknown
66247         system error" is enough.
66248         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
66249         simpler strerror.c implementation.
66250         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
66251         Simplify the tests to reflect the simpler strerror implementation.
66252         * modules/strerror (Depends-on): Add intprops.
66253
66254 2007-10-09  Eric Blake  <ebb9@byu.net>
66255
66256         Silence test-fpending.
66257         * modules/fpending-tests (Files): Add wrapper script.
66258         * tests/test-fpending.sh: New file.
66259
66260 2007-10-09  Bruno Haible  <bruno@clisp.org>
66261
66262         * MODULES.html.sh (func_module): Don't create a hyperlink for
66263         function names like 'printf_frexp'.
66264         (Misc): Add crc, memxor.
66265         (Characteristics of floating types): New section.
66266         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
66267         isnanf-nolibm, signbit, trunc, truncf, truncl.
66268         (Enhancements for ISO C 99 functions): New subsection Input/output.
66269         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
66270         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
66271         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
66272         (Compatibility checks for POSIX:2001 functions): Add clock-time.
66273         (Enhancements for POSIX:2001 functions): Add chdir-long.
66274         (File system functions): Add areadlink, chdir-safer, read-file.
66275         Remove cycle-check.
66276         (File system as inode set): New section.
66277         (Date and time): Add gethrxtime.
66278         (Multithreading): Add openmp.
66279         (Internationalization functions): Add localename.
66280         (Unicode string functions): Add unistr/u*-mbsnlen.
66281         (Support for maintaining and releasing projects): Add git-version-gen.
66282         (Lone files): Remove directories.
66283
66284 2007-10-08  Ben Pfaff  <blp@gnu.org>
66285
66286         * lib/xmalloca.h: Fix typo in comment.
66287
66288 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66289
66290         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
66291         when avoiding problems with integer overflow.  Use a portable test
66292         instead.
66293
66294 2007-10-08  Simon Josefsson  <simon@josefsson.org>
66295
66296         * modules/dummy (License): Change to LGPLv2+.
66297         * modules/float (License): Likewise
66298         * modules/realloc (License): Likewise
66299         * modules/stdlib (License): Likewise
66300
66301 2007-10-07  Bruno Haible  <bruno@clisp.org>
66302
66303         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
66304         * floor.c (TWO_MANT_DIG): Likewise.
66305         * ceil.c (TWO_MANT_DIG): Likewise.
66306         Reported by Ben Pfaff.
66307
66308 2007-10-07  Bruno Haible  <bruno@clisp.org>
66309
66310         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
66311         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
66312         * lib/frexp.c (FUNC): Likewise.
66313         * lib/printf-frexp.h (printf_frexp): Likewise.
66314         * lib/printf-frexpl.h (printf_frexpl): Likewise.
66315         * lib/printf-frexp.c (FUNC): Likewise.
66316         Suggested by Jim Meyering.
66317
66318 2007-10-07  Jim Meyering  <meyering@redhat.com>
66319
66320         Make xnanosleep's integer overflow test more robust.
66321         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
66322         so that gcc-4.3.0 doesn't optimize away this test for overflow.
66323
66324 2007-10-07  Bruno Haible  <bruno@clisp.org>
66325
66326         * NEWS: Mention the license change.
66327
66328         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
66329         abbreviations in the modules files.
66330
66331         Change copyright notice from GPLv2+ to GPLv3+.
66332         * README: Change copyright notice.
66333         * MODULES.html.sh: Likewise.
66334         * build-aux/bootstrap.conf: Likewise.
66335         * build-aux/config.libpath: Likewise.
66336         * build-aux/csharpcomp.sh.in: Likewise.
66337         * build-aux/csharpexec.sh.in: Likewise.
66338         * build-aux/install-reloc: Likewise.
66339         * build-aux/javacomp.sh.in: Likewise.
66340         * build-aux/javaexec.sh.in: Likewise.
66341         * build-aux/ldd.sh.in: Likewise.
66342         * build-aux/reloc-ldflags: Likewise.
66343         * build-aux/relocatable.sh.in: Likewise.
66344         * build-aux/x-to-1.in: Likewise.
66345         * check-module: Likewise.
66346         * config/srclistvars.sh: Likewise.
66347         * gnulib-tool: Likewise.
66348         * lib/acl-internal.h: Likewise.
66349         * lib/acl.c: Likewise.
66350         * lib/acl.h: Likewise.
66351         * lib/acl_entries.c: Likewise.
66352         * lib/areadlink-with-size.c: Likewise.
66353         * lib/areadlink.c: Likewise.
66354         * lib/areadlink.h: Likewise.
66355         * lib/argmatch.c: Likewise.
66356         * lib/argmatch.h: Likewise.
66357         * lib/argp-ba.c: Likewise.
66358         * lib/argp-eexst.c: Likewise.
66359         * lib/argp-fmtstream.c: Likewise.
66360         * lib/argp-fmtstream.h: Likewise.
66361         * lib/argp-fs-xinl.c: Likewise.
66362         * lib/argp-help.c: Likewise.
66363         * lib/argp-namefrob.h: Likewise.
66364         * lib/argp-parse.c: Likewise.
66365         * lib/argp-pin.c: Likewise.
66366         * lib/argp-pv.c: Likewise.
66367         * lib/argp-pvh.c: Likewise.
66368         * lib/argp-xinl.c: Likewise.
66369         * lib/argp.h: Likewise.
66370         * lib/at-func.c: Likewise.
66371         * lib/atanl.c: Likewise.
66372         * lib/backupfile.c: Likewise.
66373         * lib/backupfile.h: Likewise.
66374         * lib/basename.c: Likewise.
66375         * lib/binary-io.h: Likewise.
66376         * lib/byteswap.in.h: Likewise.
66377         * lib/c-stack.c: Likewise.
66378         * lib/c-stack.h: Likewise.
66379         * lib/c-strcasestr.c: Likewise.
66380         * lib/c-strcasestr.h: Likewise.
66381         * lib/c-strstr.c: Likewise.
66382         * lib/c-strstr.h: Likewise.
66383         * lib/c-strtod.c: Likewise.
66384         * lib/calloc.c: Likewise.
66385         * lib/canon-host.c: Likewise.
66386         * lib/canon-host.h: Likewise.
66387         * lib/canonicalize-lgpl.c: Likewise.
66388         * lib/canonicalize.c: Likewise.
66389         * lib/canonicalize.h: Likewise.
66390         * lib/ceil.c: Likewise.
66391         * lib/ceilf.c: Likewise.
66392         * lib/ceill.c: Likewise.
66393         * lib/chdir-long.c: Likewise.
66394         * lib/chdir-long.h: Likewise.
66395         * lib/chdir-safer.c: Likewise.
66396         * lib/chdir-safer.h: Likewise.
66397         * lib/chown.c: Likewise.
66398         * lib/classpath.c: Likewise.
66399         * lib/classpath.h: Likewise.
66400         * lib/clean-temp.c: Likewise.
66401         * lib/clean-temp.h: Likewise.
66402         * lib/cloexec.c: Likewise.
66403         * lib/close-stream.c: Likewise.
66404         * lib/closein.c: Likewise.
66405         * lib/closein.h: Likewise.
66406         * lib/closeout.c: Likewise.
66407         * lib/closeout.h: Likewise.
66408         * lib/concat-filename.c: Likewise.
66409         * lib/copy-file.c: Likewise.
66410         * lib/copy-file.h: Likewise.
66411         * lib/count-one-bits.h: Likewise.
66412         * lib/crc.c: Likewise.
66413         * lib/crc.h: Likewise.
66414         * lib/creat-safer.c: Likewise.
66415         * lib/csharpcomp.c: Likewise.
66416         * lib/csharpcomp.h: Likewise.
66417         * lib/csharpexec.c: Likewise.
66418         * lib/csharpexec.h: Likewise.
66419         * lib/cycle-check.c: Likewise.
66420         * lib/cycle-check.h: Likewise.
66421         * lib/diacrit.c: Likewise.
66422         * lib/diacrit.h: Likewise.
66423         * lib/diffseq.h: Likewise.
66424         * lib/dirchownmod.c: Likewise.
66425         * lib/dirent.in.h: Likewise.
66426         * lib/dirfd.c: Likewise.
66427         * lib/dirfd.h: Likewise.
66428         * lib/dirname.c: Likewise.
66429         * lib/dirname.h: Likewise.
66430         * lib/dummy.c: Likewise.
66431         * lib/dup-safer.c: Likewise.
66432         * lib/dup2.c: Likewise.
66433         * lib/eealloc.h: Likewise.
66434         * lib/error.c: Likewise.
66435         * lib/error.h: Likewise.
66436         * lib/euidaccess.c: Likewise.
66437         * lib/exclude.c: Likewise.
66438         * lib/exclude.h: Likewise.
66439         * lib/execute.c: Likewise.
66440         * lib/execute.h: Likewise.
66441         * lib/exitfail.c: Likewise.
66442         * lib/exitfail.h: Likewise.
66443         * lib/expl.c: Likewise.
66444         * lib/fatal-signal.c: Likewise.
66445         * lib/fatal-signal.h: Likewise.
66446         * lib/fbufmode.c: Likewise.
66447         * lib/fbufmode.h: Likewise.
66448         * lib/fchdir.c: Likewise.
66449         * lib/fchmodat.c: Likewise.
66450         * lib/fchownat.c: Likewise.
66451         * lib/fcntl--.h: Likewise.
66452         * lib/fcntl-safer.h: Likewise.
66453         * lib/fcntl.in.h: Likewise.
66454         * lib/fd-safer.c: Likewise.
66455         * lib/fflush.c: Likewise.
66456         * lib/file-has-acl.c: Likewise.
66457         * lib/file-set.c: Likewise.
66458         * lib/file-type.c: Likewise.
66459         * lib/file-type.h: Likewise.
66460         * lib/fileblocks.c: Likewise.
66461         * lib/filemode.c: Likewise.
66462         * lib/filemode.h: Likewise.
66463         * lib/filename.h: Likewise.
66464         * lib/filenamecat.c: Likewise.
66465         * lib/filenamecat.h: Likewise.
66466         * lib/findprog.c: Likewise.
66467         * lib/findprog.h: Likewise.
66468         * lib/float.in.h: Likewise.
66469         * lib/floor.c: Likewise.
66470         * lib/floorf.c: Likewise.
66471         * lib/floorl.c: Likewise.
66472         * lib/fopen-safer.c: Likewise.
66473         * lib/fopen.c: Likewise.
66474         * lib/fpending.c: Likewise.
66475         * lib/fpending.h: Likewise.
66476         * lib/fprintf.c: Likewise.
66477         * lib/fprintftime.h: Likewise.
66478         * lib/fpucw.h: Likewise.
66479         * lib/fpurge.c: Likewise.
66480         * lib/fpurge.h: Likewise.
66481         * lib/freadable.c: Likewise.
66482         * lib/freadable.h: Likewise.
66483         * lib/freadahead.c: Likewise.
66484         * lib/freadahead.h: Likewise.
66485         * lib/freading.c: Likewise.
66486         * lib/freading.h: Likewise.
66487         * lib/free.c: Likewise.
66488         * lib/freopen.c: Likewise.
66489         * lib/frexp.c: Likewise.
66490         * lib/frexpl.c: Likewise.
66491         * lib/fseek.c: Likewise.
66492         * lib/fseterr.c: Likewise.
66493         * lib/fseterr.h: Likewise.
66494         * lib/fstatat.c: Likewise.
66495         * lib/fstrcmp.c: Likewise.
66496         * lib/fstrcmp.h: Likewise.
66497         * lib/fsusage.c: Likewise.
66498         * lib/fsusage.h: Likewise.
66499         * lib/ftell.c: Likewise.
66500         * lib/ftello.c: Likewise.
66501         * lib/fts-cycle.c: Likewise.
66502         * lib/fts.c: Likewise.
66503         * lib/fts_.h: Likewise.
66504         * lib/full-read.c: Likewise.
66505         * lib/full-read.h: Likewise.
66506         * lib/full-write.c: Likewise.
66507         * lib/full-write.h: Likewise.
66508         * lib/fwritable.c: Likewise.
66509         * lib/fwritable.h: Likewise.
66510         * lib/fwriteerror.c: Likewise.
66511         * lib/fwriteerror.h: Likewise.
66512         * lib/fwriting.c: Likewise.
66513         * lib/fwriting.h: Likewise.
66514         * lib/gcd.c: Likewise.
66515         * lib/gcd.h: Likewise.
66516         * lib/getcwd.c: Likewise.
66517         * lib/getdate.h: Likewise.
66518         * lib/getdate.y: Likewise.
66519         * lib/getdomainname.c: Likewise.
66520         * lib/getdomainname.h: Likewise.
66521         * lib/getgroups.c: Likewise.
66522         * lib/gethostname.c: Likewise.
66523         * lib/gethrxtime.c: Likewise.
66524         * lib/gethrxtime.h: Likewise.
66525         * lib/getloadavg.c: Likewise.
66526         * lib/getndelim2.c: Likewise.
66527         * lib/getndelim2.h: Likewise.
66528         * lib/getnline.c: Likewise.
66529         * lib/getnline.h: Likewise.
66530         * lib/getopt.c: Likewise.
66531         * lib/getopt.in.h: Likewise.
66532         * lib/getopt1.c: Likewise.
66533         * lib/getopt_int.h: Likewise.
66534         * lib/getpagesize.h: Likewise.
66535         * lib/getsubopt.c: Likewise.
66536         * lib/gettime.c: Likewise.
66537         * lib/getugroups.c: Likewise.
66538         * lib/getugroups.h: Likewise.
66539         * lib/getusershell.c: Likewise.
66540         * lib/gl_anyavltree_list1.h: Likewise.
66541         * lib/gl_anyavltree_list2.h: Likewise.
66542         * lib/gl_anyhash_list1.h: Likewise.
66543         * lib/gl_anyhash_list2.h: Likewise.
66544         * lib/gl_anylinked_list1.h: Likewise.
66545         * lib/gl_anylinked_list2.h: Likewise.
66546         * lib/gl_anyrbtree_list1.h: Likewise.
66547         * lib/gl_anyrbtree_list2.h: Likewise.
66548         * lib/gl_anytree_list1.h: Likewise.
66549         * lib/gl_anytree_list2.h: Likewise.
66550         * lib/gl_anytree_oset.h: Likewise.
66551         * lib/gl_anytreehash_list1.h: Likewise.
66552         * lib/gl_anytreehash_list2.h: Likewise.
66553         * lib/gl_array_list.c: Likewise.
66554         * lib/gl_array_list.h: Likewise.
66555         * lib/gl_array_oset.c: Likewise.
66556         * lib/gl_array_oset.h: Likewise.
66557         * lib/gl_avltree_list.c: Likewise.
66558         * lib/gl_avltree_list.h: Likewise.
66559         * lib/gl_avltree_oset.c: Likewise.
66560         * lib/gl_avltree_oset.h: Likewise.
66561         * lib/gl_avltreehash_list.c: Likewise.
66562         * lib/gl_avltreehash_list.h: Likewise.
66563         * lib/gl_carray_list.c: Likewise.
66564         * lib/gl_carray_list.h: Likewise.
66565         * lib/gl_linked_list.c: Likewise.
66566         * lib/gl_linked_list.h: Likewise.
66567         * lib/gl_linkedhash_list.c: Likewise.
66568         * lib/gl_linkedhash_list.h: Likewise.
66569         * lib/gl_list.c: Likewise.
66570         * lib/gl_list.h: Likewise.
66571         * lib/gl_oset.c: Likewise.
66572         * lib/gl_oset.h: Likewise.
66573         * lib/gl_rbtree_list.c: Likewise.
66574         * lib/gl_rbtree_list.h: Likewise.
66575         * lib/gl_rbtree_oset.c: Likewise.
66576         * lib/gl_rbtree_oset.h: Likewise.
66577         * lib/gl_rbtreehash_list.c: Likewise.
66578         * lib/gl_rbtreehash_list.h: Likewise.
66579         * lib/gl_sublist.c: Likewise.
66580         * lib/gl_sublist.h: Likewise.
66581         * lib/group-member.c: Likewise.
66582         * lib/group-member.h: Likewise.
66583         * lib/hard-locale.c: Likewise.
66584         * lib/hard-locale.h: Likewise.
66585         * lib/hash-pjw.c: Likewise.
66586         * lib/hash-pjw.h: Likewise.
66587         * lib/hash-triple.c: Likewise.
66588         * lib/hash.c: Likewise.
66589         * lib/hash.h: Likewise.
66590         * lib/human.c: Likewise.
66591         * lib/human.h: Likewise.
66592         * lib/i-ring.c: Likewise.
66593         * lib/i-ring.h: Likewise.
66594         * lib/idcache.c: Likewise.
66595         * lib/imaxabs.c: Likewise.
66596         * lib/imaxdiv.c: Likewise.
66597         * lib/inet_pton.c: Likewise.
66598         * lib/inet_pton.h: Likewise.
66599         * lib/intprops.h: Likewise.
66600         * lib/inttostr.c: Likewise.
66601         * lib/inttostr.h: Likewise.
66602         * lib/inttypes.in.h: Likewise.
66603         * lib/isapipe.c: Likewise.
66604         * lib/isdir.c: Likewise.
66605         * lib/isnan.c: Likewise.
66606         * lib/isnan.h: Likewise.
66607         * lib/isnanf.c: Likewise.
66608         * lib/isnanf.h: Likewise.
66609         * lib/isnanl-nolibm.h: Likewise.
66610         * lib/isnanl.c: Likewise.
66611         * lib/isnanl.h: Likewise.
66612         * lib/javacomp.c: Likewise.
66613         * lib/javacomp.h: Likewise.
66614         * lib/javaexec.c: Likewise.
66615         * lib/javaexec.h: Likewise.
66616         * lib/javaversion.c: Likewise.
66617         * lib/javaversion.h: Likewise.
66618         * lib/javaversion.java: Likewise.
66619         * lib/lbrkprop.h: Likewise.
66620         * lib/lchmod.h: Likewise.
66621         * lib/lchown.c: Likewise.
66622         * lib/ldexpl.c: Likewise.
66623         * lib/linebreak.c: Likewise.
66624         * lib/linebreak.h: Likewise.
66625         * lib/linebuffer.c: Likewise.
66626         * lib/linebuffer.h: Likewise.
66627         * lib/locale.in.h: Likewise.
66628         * lib/logl.c: Likewise.
66629         * lib/long-options.c: Likewise.
66630         * lib/long-options.h: Likewise.
66631         * lib/lstat.c: Likewise.
66632         * lib/lstat.h: Likewise.
66633         * lib/math.in.h: Likewise.
66634         * lib/mbchar.c: Likewise.
66635         * lib/mbchar.h: Likewise.
66636         * lib/mbfile.h: Likewise.
66637         * lib/mbiter.h: Likewise.
66638         * lib/mbscasecmp.c: Likewise.
66639         * lib/mbscasestr.c: Likewise.
66640         * lib/mbschr.c: Likewise.
66641         * lib/mbscspn.c: Likewise.
66642         * lib/mbslen.c: Likewise.
66643         * lib/mbsncasecmp.c: Likewise.
66644         * lib/mbsnlen.c: Likewise.
66645         * lib/mbspbrk.c: Likewise.
66646         * lib/mbspcasecmp.c: Likewise.
66647         * lib/mbsrchr.c: Likewise.
66648         * lib/mbssep.c: Likewise.
66649         * lib/mbsspn.c: Likewise.
66650         * lib/mbsstr.c: Likewise.
66651         * lib/mbstok_r.c: Likewise.
66652         * lib/mbswidth.c: Likewise.
66653         * lib/mbswidth.h: Likewise.
66654         * lib/mbuiter.h: Likewise.
66655         * lib/memcasecmp.c: Likewise.
66656         * lib/memcasecmp.h: Likewise.
66657         * lib/memchr.c: Likewise.
66658         * lib/memcmp.c: Likewise.
66659         * lib/memcoll.c: Likewise.
66660         * lib/memcoll.h: Likewise.
66661         * lib/memcpy.c: Likewise.
66662         * lib/memrchr.c: Likewise.
66663         * lib/mkancesdirs.c: Likewise.
66664         * lib/mkdir-p.c: Likewise.
66665         * lib/mkdir-p.h: Likewise.
66666         * lib/mkdir.c: Likewise.
66667         * lib/mkdirat.c: Likewise.
66668         * lib/mkdtemp.c: Likewise.
66669         * lib/mkstemp-safer.c: Likewise.
66670         * lib/mkstemp.c: Likewise.
66671         * lib/modechange.c: Likewise.
66672         * lib/modechange.h: Likewise.
66673         * lib/mountlist.c: Likewise.
66674         * lib/mountlist.h: Likewise.
66675         * lib/mpsort.c: Likewise.
66676         * lib/nanosleep.c: Likewise.
66677         * lib/obstack.c: Likewise.
66678         * lib/obstack.h: Likewise.
66679         * lib/open-safer.c: Likewise.
66680         * lib/open.c: Likewise.
66681         * lib/openat-die.c: Likewise.
66682         * lib/openat-priv.h: Likewise.
66683         * lib/openat-proc.c: Likewise.
66684         * lib/openat.c: Likewise.
66685         * lib/openat.h: Likewise.
66686         * lib/pagealign_alloc.c: Likewise.
66687         * lib/pagealign_alloc.h: Likewise.
66688         * lib/physmem.c: Likewise.
66689         * lib/physmem.h: Likewise.
66690         * lib/pipe-safer.c: Likewise.
66691         * lib/pipe.c: Likewise.
66692         * lib/pipe.h: Likewise.
66693         * lib/posixtm.c: Likewise.
66694         * lib/posixtm.h: Likewise.
66695         * lib/posixver.c: Likewise.
66696         * lib/printf-frexp.c: Likewise.
66697         * lib/printf-frexp.h: Likewise.
66698         * lib/printf-frexpl.c: Likewise.
66699         * lib/printf-frexpl.h: Likewise.
66700         * lib/printf.c: Likewise.
66701         * lib/progname.c: Likewise.
66702         * lib/progname.h: Likewise.
66703         * lib/progreloc.c: Likewise.
66704         * lib/putenv.c: Likewise.
66705         * lib/quote.c: Likewise.
66706         * lib/quote.h: Likewise.
66707         * lib/quotearg.c: Likewise.
66708         * lib/quotearg.h: Likewise.
66709         * lib/raise.c: Likewise.
66710         * lib/readline.c: Likewise.
66711         * lib/readline.h: Likewise.
66712         * lib/readlink.c: Likewise.
66713         * lib/readtokens.c: Likewise.
66714         * lib/readtokens.h: Likewise.
66715         * lib/readtokens0.c: Likewise.
66716         * lib/readtokens0.h: Likewise.
66717         * lib/readutmp.c: Likewise.
66718         * lib/readutmp.h: Likewise.
66719         * lib/realloc.c: Likewise.
66720         * lib/relocwrapper.c: Likewise.
66721         * lib/rename-dest-slash.c: Likewise.
66722         * lib/rename.c: Likewise.
66723         * lib/rmdir.c: Likewise.
66724         * lib/rpmatch.c: Likewise.
66725         * lib/safe-read.c: Likewise.
66726         * lib/safe-read.h: Likewise.
66727         * lib/safe-write.c: Likewise.
66728         * lib/safe-write.h: Likewise.
66729         * lib/same-inode.h: Likewise.
66730         * lib/same.c: Likewise.
66731         * lib/same.h: Likewise.
66732         * lib/save-cwd.c: Likewise.
66733         * lib/save-cwd.h: Likewise.
66734         * lib/savedir.c: Likewise.
66735         * lib/savedir.h: Likewise.
66736         * lib/savewd.c: Likewise.
66737         * lib/savewd.h: Likewise.
66738         * lib/search.in.h: Likewise.
66739         * lib/setenv.c: Likewise.
66740         * lib/setenv.h: Likewise.
66741         * lib/settime.c: Likewise.
66742         * lib/sh-quote.c: Likewise.
66743         * lib/sh-quote.h: Likewise.
66744         * lib/sig2str.c: Likewise.
66745         * lib/sig2str.h: Likewise.
66746         * lib/signal.in.h: Likewise.
66747         * lib/signbitd.c: Likewise.
66748         * lib/signbitf.c: Likewise.
66749         * lib/signbitl.c: Likewise.
66750         * lib/sigprocmask.c: Likewise.
66751         * lib/sincosl.c: Likewise.
66752         * lib/sleep.c: Likewise.
66753         * lib/sprintf.c: Likewise.
66754         * lib/sqrtl.c: Likewise.
66755         * lib/stat-time.h: Likewise.
66756         * lib/stdio--.h: Likewise.
66757         * lib/stdio-safer.h: Likewise.
66758         * lib/stdlib--.h: Likewise.
66759         * lib/stdlib-safer.h: Likewise.
66760         * lib/stdlib.in.h: Likewise.
66761         * lib/stpcpy.c: Likewise.
66762         * lib/stpncpy.c: Likewise.
66763         * lib/strchrnul.c: Likewise.
66764         * lib/strcspn.c: Likewise.
66765         * lib/strerror.c: Likewise.
66766         * lib/strftime.c: Likewise.
66767         * lib/strftime.h: Likewise.
66768         * lib/striconveh.c: Likewise.
66769         * lib/striconveh.h: Likewise.
66770         * lib/striconveha.c: Likewise.
66771         * lib/striconveha.h: Likewise.
66772         * lib/stripslash.c: Likewise.
66773         * lib/strnlen1.c: Likewise.
66774         * lib/strnlen1.h: Likewise.
66775         * lib/strtod.c: Likewise.
66776         * lib/strtoimax.c: Likewise.
66777         * lib/strtok_r.c: Likewise.
66778         * lib/strtol.c: Likewise.
66779         * lib/strtoll.c: Likewise.
66780         * lib/strtoul.c: Likewise.
66781         * lib/strtoull.c: Likewise.
66782         * lib/sysexits.in.h: Likewise.
66783         * lib/tempname.c: Likewise.
66784         * lib/tempname.h: Likewise.
66785         * lib/timespec.h: Likewise.
66786         * lib/tls.c: Likewise.
66787         * lib/tls.h: Likewise.
66788         * lib/tmpdir.c: Likewise.
66789         * lib/tmpdir.h: Likewise.
66790         * lib/tmpfile-safer.c: Likewise.
66791         * lib/tmpfile.c: Likewise.
66792         * lib/trigl.c: Likewise.
66793         * lib/trigl.h: Likewise.
66794         * lib/trim.c: Likewise.
66795         * lib/trim.h: Likewise.
66796         * lib/trunc.c: Likewise.
66797         * lib/truncf.c: Likewise.
66798         * lib/truncl.c: Likewise.
66799         * lib/tsearch.c: Likewise.
66800         * lib/unicodeio.c: Likewise.
66801         * lib/unicodeio.h: Likewise.
66802         * lib/unistd--.h: Likewise.
66803         * lib/unistd-safer.h: Likewise.
66804         * lib/unistdio/ulc-fprintf.c: Likewise.
66805         * lib/unistdio/ulc-vfprintf.c: Likewise.
66806         * lib/unlinkdir.c: Likewise.
66807         * lib/unlinkdir.h: Likewise.
66808         * lib/unlocked-io.h: Likewise.
66809         * lib/unsetenv.c: Likewise.
66810         * lib/userspec.c: Likewise.
66811         * lib/utime.c: Likewise.
66812         * lib/utimecmp.c: Likewise.
66813         * lib/utimecmp.h: Likewise.
66814         * lib/utimens.c: Likewise.
66815         * lib/verify.h: Likewise.
66816         * lib/verror.c: Likewise.
66817         * lib/verror.h: Likewise.
66818         * lib/version-etc-fsf.c: Likewise.
66819         * lib/version-etc.c: Likewise.
66820         * lib/version-etc.h: Likewise.
66821         * lib/vfprintf.c: Likewise.
66822         * lib/vprintf.c: Likewise.
66823         * lib/vsprintf.c: Likewise.
66824         * lib/w32spawn.h: Likewise.
66825         * lib/wait-process.c: Likewise.
66826         * lib/wait-process.h: Likewise.
66827         * lib/wcwidth.c: Likewise.
66828         * lib/write-any-file.c: Likewise.
66829         * lib/xalloc-die.c: Likewise.
66830         * lib/xalloc.h: Likewise.
66831         * lib/xasprintf.c: Likewise.
66832         * lib/xgetcwd.c: Likewise.
66833         * lib/xgetcwd.h: Likewise.
66834         * lib/xgetdomainname.c: Likewise.
66835         * lib/xgetdomainname.h: Likewise.
66836         * lib/xgethostname.c: Likewise.
66837         * lib/xmalloc.c: Likewise.
66838         * lib/xmalloca.c: Likewise.
66839         * lib/xmalloca.h: Likewise.
66840         * lib/xmemcoll.c: Likewise.
66841         * lib/xnanosleep.c: Likewise.
66842         * lib/xreadlink.c: Likewise.
66843         * lib/xreadlink.h: Likewise.
66844         * lib/xsetenv.c: Likewise.
66845         * lib/xsetenv.h: Likewise.
66846         * lib/xstriconv.c: Likewise.
66847         * lib/xstriconv.h: Likewise.
66848         * lib/xstrndup.c: Likewise.
66849         * lib/xstrndup.h: Likewise.
66850         * lib/xstrtod.c: Likewise.
66851         * lib/xstrtod.h: Likewise.
66852         * lib/xstrtol-error.c: Likewise.
66853         * lib/xstrtol.c: Likewise.
66854         * lib/xstrtol.h: Likewise.
66855         * lib/xtime.h: Likewise.
66856         * lib/xvasprintf.c: Likewise.
66857         * lib/xvasprintf.h: Likewise.
66858         * lib/yesno.c: Likewise.
66859         * lib/yesno.h: Likewise.
66860         * posix-modules: Likewise.
66861         * tests/test-alloca-opt.c: Likewise.
66862         * tests/test-arcfour.c: Likewise.
66863         * tests/test-arctwo.c: Likewise.
66864         * tests/test-argmatch.c: Likewise.
66865         * tests/test-argp-2.sh: Likewise.
66866         * tests/test-argp.c: Likewise.
66867         * tests/test-arpa_inet.c: Likewise.
66868         * tests/test-array_list.c: Likewise.
66869         * tests/test-array_oset.c: Likewise.
66870         * tests/test-atexit.c: Likewise.
66871         * tests/test-avltree_list.c: Likewise.
66872         * tests/test-avltree_oset.c: Likewise.
66873         * tests/test-avltreehash_list.c: Likewise.
66874         * tests/test-base64.c: Likewise.
66875         * tests/test-binary-io.c: Likewise.
66876         * tests/test-byteswap.c: Likewise.
66877         * tests/test-c-ctype.c: Likewise.
66878         * tests/test-c-strcasecmp.c: Likewise.
66879         * tests/test-c-strcasestr.c: Likewise.
66880         * tests/test-c-strncasecmp.c: Likewise.
66881         * tests/test-c-strstr.c: Likewise.
66882         * tests/test-canonicalize-lgpl.c: Likewise.
66883         * tests/test-canonicalize.c: Likewise.
66884         * tests/test-carray_list.c: Likewise.
66885         * tests/test-ceilf.c: Likewise.
66886         * tests/test-ceill.c: Likewise.
66887         * tests/test-count-one-bits.c: Likewise.
66888         * tests/test-crc.c: Likewise.
66889         * tests/test-dirname.c: Likewise.
66890         * tests/test-fbufmode.c: Likewise.
66891         * tests/test-fcntl.c: Likewise.
66892         * tests/test-fflush.c: Likewise.
66893         * tests/test-floorf.c: Likewise.
66894         * tests/test-floorl.c: Likewise.
66895         * tests/test-fopen.c: Likewise.
66896         * tests/test-fprintf-posix.c: Likewise.
66897         * tests/test-fprintf-posix.h: Likewise.
66898         * tests/test-fpurge.c: Likewise.
66899         * tests/test-freadable.c: Likewise.
66900         * tests/test-freadahead.c: Likewise.
66901         * tests/test-freading.c: Likewise.
66902         * tests/test-freopen.c: Likewise.
66903         * tests/test-frexp.c: Likewise.
66904         * tests/test-frexpl.c: Likewise.
66905         * tests/test-fseek.c: Likewise.
66906         * tests/test-fseeko.c: Likewise.
66907         * tests/test-fseterr.c: Likewise.
66908         * tests/test-fstrcmp.c: Likewise.
66909         * tests/test-ftell.c: Likewise.
66910         * tests/test-ftello.c: Likewise.
66911         * tests/test-fwritable.c: Likewise.
66912         * tests/test-fwriting.c: Likewise.
66913         * tests/test-getaddrinfo.c: Likewise.
66914         * tests/test-getpass.c: Likewise.
66915         * tests/test-gettimeofday.c: Likewise.
66916         * tests/test-hmac-md5.c: Likewise.
66917         * tests/test-hmac-sha1.c: Likewise.
66918         * tests/test-iconv.c: Likewise.
66919         * tests/test-iconvme.c: Likewise.
66920         * tests/test-inttypes.c: Likewise.
66921         * tests/test-isnan.c: Likewise.
66922         * tests/test-isnanf.c: Likewise.
66923         * tests/test-isnanl-nolibm.c: Likewise.
66924         * tests/test-isnanl.c: Likewise.
66925         * tests/test-isnanl.h: Likewise.
66926         * tests/test-ldexpl.c: Likewise.
66927         * tests/test-linked_list.c: Likewise.
66928         * tests/test-linkedhash_list.c: Likewise.
66929         * tests/test-locale.c: Likewise.
66930         * tests/test-localename.c: Likewise.
66931         * tests/test-lock.c: Likewise.
66932         * tests/test-lseek.c: Likewise.
66933         * tests/test-malloca.c: Likewise.
66934         * tests/test-math.c: Likewise.
66935         * tests/test-mbscasecmp.c: Likewise.
66936         * tests/test-mbscasestr1.c: Likewise.
66937         * tests/test-mbscasestr2.c: Likewise.
66938         * tests/test-mbscasestr3.c: Likewise.
66939         * tests/test-mbscasestr4.c: Likewise.
66940         * tests/test-mbschr.c: Likewise.
66941         * tests/test-mbscspn.c: Likewise.
66942         * tests/test-mbsncasecmp.c: Likewise.
66943         * tests/test-mbspbrk.c: Likewise.
66944         * tests/test-mbspcasecmp.c: Likewise.
66945         * tests/test-mbsrchr.c: Likewise.
66946         * tests/test-mbsspn.c: Likewise.
66947         * tests/test-mbsstr1.c: Likewise.
66948         * tests/test-mbsstr2.c: Likewise.
66949         * tests/test-mbsstr3.c: Likewise.
66950         * tests/test-md5.c: Likewise.
66951         * tests/test-memmem.c: Likewise.
66952         * tests/test-netinet_in.c: Likewise.
66953         * tests/test-open.c: Likewise.
66954         * tests/test-printf-frexp.c: Likewise.
66955         * tests/test-printf-frexpl.c: Likewise.
66956         * tests/test-printf-posix.c: Likewise.
66957         * tests/test-printf-posix.h: Likewise.
66958         * tests/test-rbtree_list.c: Likewise.
66959         * tests/test-rbtree_oset.c: Likewise.
66960         * tests/test-rbtreehash_list.c: Likewise.
66961         * tests/test-read-file.c: Likewise.
66962         * tests/test-rijndael.c: Likewise.
66963         * tests/test-search.c: Likewise.
66964         * tests/test-signbit.c: Likewise.
66965         * tests/test-sleep.c: Likewise.
66966         * tests/test-snprintf-posix.c: Likewise.
66967         * tests/test-snprintf-posix.h: Likewise.
66968         * tests/test-snprintf.c: Likewise.
66969         * tests/test-sprintf-posix.c: Likewise.
66970         * tests/test-sprintf-posix.h: Likewise.
66971         * tests/test-stat-time.c: Likewise.
66972         * tests/test-stdbool.c: Likewise.
66973         * tests/test-stdint.c: Likewise.
66974         * tests/test-stdio.c: Likewise.
66975         * tests/test-stdlib.c: Likewise.
66976         * tests/test-stpncpy.c: Likewise.
66977         * tests/test-strcasestr.c: Likewise.
66978         * tests/test-striconv.c: Likewise.
66979         * tests/test-striconveh.c: Likewise.
66980         * tests/test-striconveha.c: Likewise.
66981         * tests/test-string.c: Likewise.
66982         * tests/test-sys_select.c: Likewise.
66983         * tests/test-sys_socket.c: Likewise.
66984         * tests/test-sys_stat.c: Likewise.
66985         * tests/test-sys_time.c: Likewise.
66986         * tests/test-sysexits.c: Likewise.
66987         * tests/test-time.c: Likewise.
66988         * tests/test-tls.c: Likewise.
66989         * tests/test-trunc.c: Likewise.
66990         * tests/test-truncf.c: Likewise.
66991         * tests/test-truncl.c: Likewise.
66992         * tests/test-unistd.c: Likewise.
66993         * tests/test-vasnprintf-posix.c: Likewise.
66994         * tests/test-vasnprintf-posix2.c: Likewise.
66995         * tests/test-vasnprintf.c: Likewise.
66996         * tests/test-vasprintf-posix.c: Likewise.
66997         * tests/test-vasprintf.c: Likewise.
66998         * tests/test-verify.c: Likewise.
66999         * tests/test-vfprintf-posix.c: Likewise.
67000         * tests/test-vprintf-posix.c: Likewise.
67001         * tests/test-vsnprintf-posix.c: Likewise.
67002         * tests/test-vsnprintf.c: Likewise.
67003         * tests/test-vsprintf-posix.c: Likewise.
67004         * tests/test-wchar.c: Likewise.
67005         * tests/test-wctype.c: Likewise.
67006         * tests/test-wcwidth.c: Likewise.
67007         * tests/test-xstrtol.c: Likewise.
67008         * tests/test-xvasprintf.c: Likewise.
67009         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
67010         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
67011         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67012         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67013         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67014         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
67015         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67016         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67017         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67018         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
67019         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67020         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67021         * tests/uniname/test-uninames.c: Likewise.
67022         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
67023         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
67024         * tests/unistdio/test-u16-printf1.h: Likewise.
67025         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
67026         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
67027         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
67028         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
67029         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
67030         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
67031         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
67032         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
67033         * tests/unistdio/test-u32-printf1.h: Likewise.
67034         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
67035         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
67036         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
67037         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
67038         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
67039         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
67040         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
67041         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
67042         * tests/unistdio/test-u8-printf1.h: Likewise.
67043         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
67044         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
67045         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
67046         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
67047         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
67048         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
67049         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
67050         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
67051         * tests/unistdio/test-ulc-printf1.h: Likewise.
67052         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
67053         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
67054         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
67055         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
67056         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
67057         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
67058         * tests/uniwidth/test-u16-strwidth.c: Likewise.
67059         * tests/uniwidth/test-u16-width.c: Likewise.
67060         * tests/uniwidth/test-u32-strwidth.c: Likewise.
67061         * tests/uniwidth/test-u32-width.c: Likewise.
67062         * tests/uniwidth/test-u8-strwidth.c: Likewise.
67063         * tests/uniwidth/test-u8-width.c: Likewise.
67064         * tests/uniwidth/test-uc_width.c: Likewise.
67065         * config/srclist-update: Likewise.
67066         (fixlicense): Update to GPLv3+.
67067
67068         Change copyright notice from LGPLv2.1+ to LGPLv3+.
67069         * tests/test-tsearch.c: Change copyright notice.
67070
67071         Change copyright notice from LGPLv2.0+ to LGPLv3+.
67072         * lib/c-strcaseeq.h: Change copyright notice.
67073         * lib/streq.h: Likewise.
67074         * lib/uniconv.h: Likewise.
67075         * lib/uniconv/u-conv-from-enc.h: Likewise.
67076         * lib/uniconv/u-conv-to-enc.h: Likewise.
67077         * lib/uniconv/u-strconv-from-enc.h: Likewise.
67078         * lib/uniconv/u-strconv-to-enc.h: Likewise.
67079         * lib/uniconv/u16-conv-from-enc.c: Likewise.
67080         * lib/uniconv/u16-conv-to-enc.c: Likewise.
67081         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
67082         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
67083         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
67084         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
67085         * lib/uniconv/u32-conv-from-enc.c: Likewise.
67086         * lib/uniconv/u32-conv-to-enc.c: Likewise.
67087         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
67088         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
67089         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
67090         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
67091         * lib/uniconv/u8-conv-from-enc.c: Likewise.
67092         * lib/uniconv/u8-conv-to-enc.c: Likewise.
67093         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
67094         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
67095         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
67096         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
67097         * lib/uniname.h: Likewise.
67098         * lib/uniname/uniname.c: Likewise.
67099         * lib/unistdio.h: Likewise.
67100         * lib/unistdio/u-asnprintf.h: Likewise.
67101         * lib/unistdio/u-asprintf.h: Likewise.
67102         * lib/unistdio/u-printf-args.c: Likewise.
67103         * lib/unistdio/u-printf-args.h: Likewise.
67104         * lib/unistdio/u-printf-parse.h: Likewise.
67105         * lib/unistdio/u-snprintf.h: Likewise.
67106         * lib/unistdio/u-sprintf.h: Likewise.
67107         * lib/unistdio/u-vasprintf.h: Likewise.
67108         * lib/unistdio/u-vsnprintf.h: Likewise.
67109         * lib/unistdio/u-vsprintf.h: Likewise.
67110         * lib/unistdio/u16-asnprintf.c: Likewise.
67111         * lib/unistdio/u16-asprintf.c: Likewise.
67112         * lib/unistdio/u16-printf-parse.c: Likewise.
67113         * lib/unistdio/u16-snprintf.c: Likewise.
67114         * lib/unistdio/u16-sprintf.c: Likewise.
67115         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
67116         * lib/unistdio/u16-u16-asprintf.c: Likewise.
67117         * lib/unistdio/u16-u16-snprintf.c: Likewise.
67118         * lib/unistdio/u16-u16-sprintf.c: Likewise.
67119         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
67120         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
67121         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
67122         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
67123         * lib/unistdio/u16-vasnprintf.c: Likewise.
67124         * lib/unistdio/u16-vasprintf.c: Likewise.
67125         * lib/unistdio/u16-vsnprintf.c: Likewise.
67126         * lib/unistdio/u16-vsprintf.c: Likewise.
67127         * lib/unistdio/u32-asnprintf.c: Likewise.
67128         * lib/unistdio/u32-asprintf.c: Likewise.
67129         * lib/unistdio/u32-printf-parse.c: Likewise.
67130         * lib/unistdio/u32-snprintf.c: Likewise.
67131         * lib/unistdio/u32-sprintf.c: Likewise.
67132         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
67133         * lib/unistdio/u32-u32-asprintf.c: Likewise.
67134         * lib/unistdio/u32-u32-snprintf.c: Likewise.
67135         * lib/unistdio/u32-u32-sprintf.c: Likewise.
67136         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
67137         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
67138         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
67139         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
67140         * lib/unistdio/u32-vasnprintf.c: Likewise.
67141         * lib/unistdio/u32-vasprintf.c: Likewise.
67142         * lib/unistdio/u32-vsnprintf.c: Likewise.
67143         * lib/unistdio/u32-vsprintf.c: Likewise.
67144         * lib/unistdio/u8-asnprintf.c: Likewise.
67145         * lib/unistdio/u8-asprintf.c: Likewise.
67146         * lib/unistdio/u8-printf-parse.c: Likewise.
67147         * lib/unistdio/u8-snprintf.c: Likewise.
67148         * lib/unistdio/u8-sprintf.c: Likewise.
67149         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
67150         * lib/unistdio/u8-u8-asprintf.c: Likewise.
67151         * lib/unistdio/u8-u8-snprintf.c: Likewise.
67152         * lib/unistdio/u8-u8-sprintf.c: Likewise.
67153         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
67154         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
67155         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
67156         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
67157         * lib/unistdio/u8-vasnprintf.c: Likewise.
67158         * lib/unistdio/u8-vasprintf.c: Likewise.
67159         * lib/unistdio/u8-vsnprintf.c: Likewise.
67160         * lib/unistdio/u8-vsprintf.c: Likewise.
67161         * lib/unistdio/ulc-asnprintf.c: Likewise.
67162         * lib/unistdio/ulc-asprintf.c: Likewise.
67163         * lib/unistdio/ulc-printf-parse.c: Likewise.
67164         * lib/unistdio/ulc-snprintf.c: Likewise.
67165         * lib/unistdio/ulc-sprintf.c: Likewise.
67166         * lib/unistdio/ulc-vasnprintf.c: Likewise.
67167         * lib/unistdio/ulc-vasprintf.c: Likewise.
67168         * lib/unistdio/ulc-vsnprintf.c: Likewise.
67169         * lib/unistdio/ulc-vsprintf.c: Likewise.
67170         * lib/unistr.h: Likewise.
67171         * lib/unistr/u-cpy-alloc.h: Likewise.
67172         * lib/unistr/u-cpy.h: Likewise.
67173         * lib/unistr/u-endswith.h: Likewise.
67174         * lib/unistr/u-move.h: Likewise.
67175         * lib/unistr/u-set.h: Likewise.
67176         * lib/unistr/u-startswith.h: Likewise.
67177         * lib/unistr/u-stpcpy.h: Likewise.
67178         * lib/unistr/u-stpncpy.h: Likewise.
67179         * lib/unistr/u-strcat.h: Likewise.
67180         * lib/unistr/u-strcpy.h: Likewise.
67181         * lib/unistr/u-strcspn.h: Likewise.
67182         * lib/unistr/u-strdup.h: Likewise.
67183         * lib/unistr/u-strlen.h: Likewise.
67184         * lib/unistr/u-strncat.h: Likewise.
67185         * lib/unistr/u-strncpy.h: Likewise.
67186         * lib/unistr/u-strnlen.h: Likewise.
67187         * lib/unistr/u-strpbrk.h: Likewise.
67188         * lib/unistr/u-strspn.h: Likewise.
67189         * lib/unistr/u-strstr.h: Likewise.
67190         * lib/unistr/u-strtok.h: Likewise.
67191         * lib/unistr/u16-check.c: Likewise.
67192         * lib/unistr/u16-chr.c: Likewise.
67193         * lib/unistr/u16-cmp.c: Likewise.
67194         * lib/unistr/u16-cpy-alloc.c: Likewise.
67195         * lib/unistr/u16-cpy.c: Likewise.
67196         * lib/unistr/u16-endswith.c: Likewise.
67197         * lib/unistr/u16-mblen.c: Likewise.
67198         * lib/unistr/u16-mbsnlen.c: Likewise.
67199         * lib/unistr/u16-mbtouc-aux.c: Likewise.
67200         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
67201         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
67202         * lib/unistr/u16-mbtouc.c: Likewise.
67203         * lib/unistr/u16-mbtoucr.c: Likewise.
67204         * lib/unistr/u16-move.c: Likewise.
67205         * lib/unistr/u16-next.c: Likewise.
67206         * lib/unistr/u16-prev.c: Likewise.
67207         * lib/unistr/u16-set.c: Likewise.
67208         * lib/unistr/u16-startswith.c: Likewise.
67209         * lib/unistr/u16-stpcpy.c: Likewise.
67210         * lib/unistr/u16-stpncpy.c: Likewise.
67211         * lib/unistr/u16-strcat.c: Likewise.
67212         * lib/unistr/u16-strchr.c: Likewise.
67213         * lib/unistr/u16-strcmp.c: Likewise.
67214         * lib/unistr/u16-strcpy.c: Likewise.
67215         * lib/unistr/u16-strcspn.c: Likewise.
67216         * lib/unistr/u16-strdup.c: Likewise.
67217         * lib/unistr/u16-strlen.c: Likewise.
67218         * lib/unistr/u16-strmblen.c: Likewise.
67219         * lib/unistr/u16-strmbtouc.c: Likewise.
67220         * lib/unistr/u16-strncat.c: Likewise.
67221         * lib/unistr/u16-strncmp.c: Likewise.
67222         * lib/unistr/u16-strncpy.c: Likewise.
67223         * lib/unistr/u16-strnlen.c: Likewise.
67224         * lib/unistr/u16-strpbrk.c: Likewise.
67225         * lib/unistr/u16-strrchr.c: Likewise.
67226         * lib/unistr/u16-strspn.c: Likewise.
67227         * lib/unistr/u16-strstr.c: Likewise.
67228         * lib/unistr/u16-strtok.c: Likewise.
67229         * lib/unistr/u16-to-u32.c: Likewise.
67230         * lib/unistr/u16-to-u8.c: Likewise.
67231         * lib/unistr/u16-uctomb-aux.c: Likewise.
67232         * lib/unistr/u16-uctomb.c: Likewise.
67233         * lib/unistr/u32-check.c: Likewise.
67234         * lib/unistr/u32-chr.c: Likewise.
67235         * lib/unistr/u32-cmp.c: Likewise.
67236         * lib/unistr/u32-cpy-alloc.c: Likewise.
67237         * lib/unistr/u32-cpy.c: Likewise.
67238         * lib/unistr/u32-endswith.c: Likewise.
67239         * lib/unistr/u32-mblen.c: Likewise.
67240         * lib/unistr/u32-mbsnlen.c: Likewise.
67241         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
67242         * lib/unistr/u32-mbtouc.c: Likewise.
67243         * lib/unistr/u32-mbtoucr.c: Likewise.
67244         * lib/unistr/u32-move.c: Likewise.
67245         * lib/unistr/u32-next.c: Likewise.
67246         * lib/unistr/u32-prev.c: Likewise.
67247         * lib/unistr/u32-set.c: Likewise.
67248         * lib/unistr/u32-startswith.c: Likewise.
67249         * lib/unistr/u32-stpcpy.c: Likewise.
67250         * lib/unistr/u32-stpncpy.c: Likewise.
67251         * lib/unistr/u32-strcat.c: Likewise.
67252         * lib/unistr/u32-strchr.c: Likewise.
67253         * lib/unistr/u32-strcmp.c: Likewise.
67254         * lib/unistr/u32-strcpy.c: Likewise.
67255         * lib/unistr/u32-strcspn.c: Likewise.
67256         * lib/unistr/u32-strdup.c: Likewise.
67257         * lib/unistr/u32-strlen.c: Likewise.
67258         * lib/unistr/u32-strmblen.c: Likewise.
67259         * lib/unistr/u32-strmbtouc.c: Likewise.
67260         * lib/unistr/u32-strncat.c: Likewise.
67261         * lib/unistr/u32-strncmp.c: Likewise.
67262         * lib/unistr/u32-strncpy.c: Likewise.
67263         * lib/unistr/u32-strnlen.c: Likewise.
67264         * lib/unistr/u32-strpbrk.c: Likewise.
67265         * lib/unistr/u32-strrchr.c: Likewise.
67266         * lib/unistr/u32-strspn.c: Likewise.
67267         * lib/unistr/u32-strstr.c: Likewise.
67268         * lib/unistr/u32-strtok.c: Likewise.
67269         * lib/unistr/u32-to-u16.c: Likewise.
67270         * lib/unistr/u32-to-u8.c: Likewise.
67271         * lib/unistr/u32-uctomb.c: Likewise.
67272         * lib/unistr/u8-check.c: Likewise.
67273         * lib/unistr/u8-chr.c: Likewise.
67274         * lib/unistr/u8-cmp.c: Likewise.
67275         * lib/unistr/u8-cpy-alloc.c: Likewise.
67276         * lib/unistr/u8-cpy.c: Likewise.
67277         * lib/unistr/u8-endswith.c: Likewise.
67278         * lib/unistr/u8-mblen.c: Likewise.
67279         * lib/unistr/u8-mbsnlen.c: Likewise.
67280         * lib/unistr/u8-mbtouc-aux.c: Likewise.
67281         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
67282         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
67283         * lib/unistr/u8-mbtouc.c: Likewise.
67284         * lib/unistr/u8-mbtoucr.c: Likewise.
67285         * lib/unistr/u8-move.c: Likewise.
67286         * lib/unistr/u8-next.c: Likewise.
67287         * lib/unistr/u8-prev.c: Likewise.
67288         * lib/unistr/u8-set.c: Likewise.
67289         * lib/unistr/u8-startswith.c: Likewise.
67290         * lib/unistr/u8-stpcpy.c: Likewise.
67291         * lib/unistr/u8-stpncpy.c: Likewise.
67292         * lib/unistr/u8-strcat.c: Likewise.
67293         * lib/unistr/u8-strchr.c: Likewise.
67294         * lib/unistr/u8-strcmp.c: Likewise.
67295         * lib/unistr/u8-strcpy.c: Likewise.
67296         * lib/unistr/u8-strcspn.c: Likewise.
67297         * lib/unistr/u8-strdup.c: Likewise.
67298         * lib/unistr/u8-strlen.c: Likewise.
67299         * lib/unistr/u8-strmblen.c: Likewise.
67300         * lib/unistr/u8-strmbtouc.c: Likewise.
67301         * lib/unistr/u8-strncat.c: Likewise.
67302         * lib/unistr/u8-strncmp.c: Likewise.
67303         * lib/unistr/u8-strncpy.c: Likewise.
67304         * lib/unistr/u8-strnlen.c: Likewise.
67305         * lib/unistr/u8-strpbrk.c: Likewise.
67306         * lib/unistr/u8-strrchr.c: Likewise.
67307         * lib/unistr/u8-strspn.c: Likewise.
67308         * lib/unistr/u8-strstr.c: Likewise.
67309         * lib/unistr/u8-strtok.c: Likewise.
67310         * lib/unistr/u8-to-u16.c: Likewise.
67311         * lib/unistr/u8-to-u32.c: Likewise.
67312         * lib/unistr/u8-uctomb-aux.c: Likewise.
67313         * lib/unistr/u8-uctomb.c: Likewise.
67314         * lib/unitypes.h: Likewise.
67315         * lib/uniwidth.h: Likewise.
67316         * lib/uniwidth/cjk.h: Likewise.
67317         * lib/uniwidth/u16-strwidth.c: Likewise.
67318         * lib/uniwidth/u16-width.c: Likewise.
67319         * lib/uniwidth/u32-strwidth.c: Likewise.
67320         * lib/uniwidth/u32-width.c: Likewise.
67321         * lib/uniwidth/u8-strwidth.c: Likewise.
67322         * lib/uniwidth/u8-width.c: Likewise.
67323         * lib/uniwidth/width.c: Likewise.
67324
67325 2007-10-07  Bruno Haible  <bruno@clisp.org>
67326
67327         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
67328         The file is still under LGPL (see modules/inttypes).
67329
67330 2007-10-06  Bruno Haible  <bruno@clisp.org>
67331
67332         * modules/trunc (Dependencies): Add 'extensions'.
67333         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
67334         Reported by Ben Pfaff <blp@gnu.org>.
67335
67336 2007-10-06  Bruno Haible  <bruno@clisp.org>
67337
67338         * modules/freopen-tests: New file.
67339         * tests/test-freopen.c: New file.
67340
67341         * modules/fopen-tests: New file.
67342         * tests/test-fopen.c: New file.
67343
67344         * modules/fopen: New file.
67345         * lib/fopen.c: New file.
67346         * m4/fopen.m4: New file.
67347         * modules/freopen: New file.
67348         * lib/freopen.c: New file.
67349         * m4/freopen.m4: New file.
67350         * lib/stdio.in.h (fopen, freopen): New declarations.
67351         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
67352         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67353         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
67354         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67355         * doc/functions/fopen.texi: Mention the 'fopen' module.
67356         * doc/functions/freopen.texi: Mention the 'freopen' module.
67357
67358 2007-10-06  Bruno Haible  <bruno@clisp.org>
67359
67360         * modules/open-tests: New file.
67361         * tests/test-open.c: New file.
67362
67363         * modules/open: New file.
67364         * lib/open.c: New file.
67365         * m4/open.m4: New file.
67366         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
67367         lib/open.c does.
67368         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
67369         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
67370         macros.
67371         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
67372         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
67373         REPLACE_OPEN.
67374         * doc/functions/open.texi: Mention the 'open' module.
67375
67376 2007-10-04  Bruno Haible  <bruno@clisp.org>
67377
67378         * modules/ceill-tests: New file.
67379         * tests/test-ceill.c: New file.
67380
67381         * modules/ceill: New file.
67382         * lib/ceill.c: Replace entire file.
67383         * m4/ceill.m4: New file.
67384         * lib/math.in.h (ceill): Replace declaration.
67385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
67386         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
67387         * doc/functions/ceill.texi: Mention the 'ceill' module.
67388         * modules/mathl (Files): Remove lib/ceill.c.
67389         (Depends-on): Add ceill.
67390
67391 2007-10-04  Bruno Haible  <bruno@clisp.org>
67392
67393         * modules/ceilf-tests: New file.
67394         * tests/test-ceilf.c: New file.
67395
67396         * modules/ceilf: New file.
67397         * lib/ceil.c: New file.
67398         * lib/ceilf.c: New file.
67399         * m4/ceilf.m4: New file.
67400         * lib/math.in.h (ceilf): New declaration.
67401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
67402         HAVE_DECL_CEILF.
67403         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
67404         HAVE_DECL_CEILF.
67405         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
67406
67407 2007-10-04  Bruno Haible  <bruno@clisp.org>
67408
67409         * modules/floorl-tests: New file.
67410         * tests/test-floorl.c: New file.
67411
67412         * modules/floorl: New file.
67413         * lib/floorl.c: Replace entire file.
67414         * m4/floorl.m4: New file.
67415         * lib/math.in.h (floorl): Replace declaration.
67416         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
67417         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
67418         * doc/functions/floorl.texi: Mention the 'floorl' module.
67419         * modules/mathl (Files): Remove lib/floorl.c.
67420         (Depends-on): Add floorl.
67421
67422 2007-10-04  Bruno Haible  <bruno@clisp.org>
67423
67424         * modules/floorf-tests: New file.
67425         * tests/test-floorf.c: New file.
67426
67427         * modules/floorf: New file.
67428         * lib/floor.c: New file.
67429         * lib/floorf.c: New file.
67430         * m4/floorf.m4: New file.
67431         * lib/math.in.h (floorf): New declaration.
67432         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
67433         HAVE_DECL_FLOORF.
67434         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
67435         HAVE_DECL_FLOORF.
67436         * doc/functions/floorf.texi: Mention the 'floorf' module.
67437
67438 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
67439             Bruno Haible  <bruno@clisp.org>
67440
67441         Advertise for the Git server instead of the CVS server.
67442         * doc/gnulib-intro.texi (Steady Development): Mention the Git
67443         repository instead of the CVS one.
67444         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
67445         about all VCS systems generically.
67446         * doc/gnulib.texi (Introduction): Capitalize `Git'.
67447
67448 2007-10-04  Bruno Haible  <bruno@clisp.org>
67449
67450         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
67451         means.
67452         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
67453
67454 2007-10-04  Bruno Haible  <bruno@clisp.org>
67455
67456         * modules/truncl-tests: New file.
67457         * tests/test-truncl.c: New file.
67458
67459         * modules/truncl: New file.
67460         * lib/truncl.c: New file.
67461         * m4/truncl.m4: New file.
67462         * lib/math.in.h (truncl): New declaration.
67463         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
67464         HAVE_DECL_TRUNCL.
67465         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
67466         HAVE_DECL_TRUNCL.
67467         * doc/functions/truncl.texi: Mention the 'truncl' module.
67468
67469 2007-10-04  Bruno Haible  <bruno@clisp.org>
67470
67471         * modules/truncf-tests: New file.
67472         * tests/test-truncf.c: New file.
67473
67474         * modules/truncf: New file.
67475         * lib/trunc.c: Make paramerizable through USE_* macros.
67476         * lib/truncf.c: New file.
67477         * m4/truncf.m4: New file.
67478         * lib/math.in.h (truncf): New declaration.
67479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
67480         HAVE_DECL_TRUNCF.
67481         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
67482         HAVE_DECL_TRUNCF.
67483         * doc/functions/truncf.texi: Mention the 'truncf' module.
67484
67485 2007-10-03  Bruno Haible  <bruno@clisp.org>
67486
67487         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
67488         augmentation also for tests modules.
67489         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
67490         * modules/atexit-tests (Makefile.am): Likewise.
67491         * modules/binary-io-tests (Makefile.am): Likewise.
67492         * modules/c-strcase-tests (Makefile.am): Likewise.
67493         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
67494         * modules/canonicalize-tests (Makefile.am): Likewise.
67495         * modules/closein-tests (Makefile.am): Likewise.
67496         * modules/fprintf-posix-tests (Makefile.am): Likewise.
67497         * modules/freadahead-tests (Makefile.am): Likewise.
67498         * modules/fseek-tests (Makefile.am): Likewise.
67499         * modules/fseeko-tests (Makefile.am): Likewise.
67500         * modules/ftell-tests (Makefile.am): Likewise.
67501         * modules/ftello-tests (Makefile.am): Likewise.
67502         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
67503         * modules/isnanl-tests (Makefile.am): Likewise.
67504         * modules/lseek-tests (Makefile.am): Likewise.
67505         * modules/mbscasecmp-tests (Makefile.am): Likewise.
67506         * modules/mbscasestr-tests (Makefile.am): Likewise.
67507         * modules/mbschr-tests (Makefile.am): Likewise.
67508         * modules/mbscspn-tests (Makefile.am): Likewise.
67509         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
67510         * modules/mbspbrk-tests (Makefile.am): Likewise.
67511         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
67512         * modules/mbsrchr-tests (Makefile.am): Likewise.
67513         * modules/mbsspn-tests (Makefile.am): Likewise.
67514         * modules/mbsstr-tests (Makefile.am): Likewise.
67515         * modules/printf-posix-tests (Makefile.am): Likewise.
67516         * modules/snprintf-posix-tests (Makefile.am): Likewise.
67517         * modules/sprintf-posix-tests (Makefile.am): Likewise.
67518         * modules/tsearch-tests (Makefile.am): Likewise.
67519         * modules/uniname/uniname-tests (Makefile.am): Likewise.
67520         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
67521         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
67522         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
67523         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
67524         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
67525         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
67526         * modules/vprintf-posix-tests (Makefile.am): Likewise.
67527         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
67528         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
67529         * modules/xstrtoimax-tests (Makefile.am): Likewise.
67530         * modules/xstrtol-tests (Makefile.am): Likewise.
67531         * modules/xstrtoumax-tests (Makefile.am): Likewise.
67532         * modules/yesno-tests (Makefile.am): Likewise.
67533
67534 2007-10-03  Bruno Haible  <bruno@clisp.org>
67535
67536         * modules/trunc-tests: New file.
67537         * tests/test-trunc.c: New file.
67538
67539         * modules/trunc: New file.
67540         * lib/trunc.c: New file.
67541         * m4/trunc.m4: New file.
67542         * lib/math.in.h (trunc): New declaration.
67543         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
67544         HAVE_DECL_TRUNC.
67545         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
67546         HAVE_DECL_TRUNC.
67547         * doc/functions/trunc.texi: Mention the 'trunc' module.
67548
67549 2007-10-03  Bruno Haible  <bruno@clisp.org>
67550
67551         * tests/test-fpending.c: New file, mostly copied
67552         from coreutils/lib/t-fpending.c.
67553         * modules/fpending-tests: New file.
67554
67555 2007-10-03  Bruno Haible  <bruno@clisp.org>
67556
67557         Port the stdio extensions to QNX (untested).
67558         * lib/fseterr.c (fseterr): Add support for QNX.
67559         * lib/fbufmode.c (fbufmode): Likewise.
67560         * lib/freadable.c (freadable): Likewise.
67561         * lib/fwritable.c (fwritable): Likewise.
67562         * lib/freading.c (freading): Likewise.
67563         * lib/fwriting.c (fwriting): Likewise.
67564         * lib/freadahead.c (freadahed): Likewise.
67565         * lib/fpurge.c (fpurge): Likewise.
67566         * lib/fseeko.c (rpl_fseeko): Likewise.
67567
67568 2007-10-03  Bruno Haible  <bruno@clisp.org>
67569             Jim Meyering  <jim@meyering.net>
67570             Eric Blake  <ebb9@byu.net>
67571
67572         * doc/relocatable.texi: Use @command instead of @program.
67573
67574 2007-10-02  Jim Meyering  <jim@meyering.net>
67575
67576         Perform one more "_.h" -> ".in.h" substitution.
67577         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
67578         instead of unistd_.h here, too.
67579
67580 2007-10-01  Bruno Haible  <bruno@clisp.org>
67581
67582         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
67583         Needed for the alloca-opt module.
67584
67585 2007-09-30  Bruno Haible  <bruno@clisp.org>
67586
67587         * lib/alloca.in.h: Renamed from lib/alloca_.h.
67588         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
67589         alloca_.h.
67590         * lib/argz.in.h: Renamed from lib/argz_.h.
67591         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
67592         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
67593         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
67594         byteswap_.h.
67595         * lib/dirent.in.h: Renamed from lib/dirent_.h.
67596         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
67597         dirent_.h.
67598         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
67599         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
67600         fcntl_.h.
67601         * lib/float.in.h: Renamed from lib/float_.h.
67602         * modules/float (Files, Makefile.am): Use float.in.h instead of
67603         float_.h.
67604         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
67605         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
67606         fnmatch_.h.
67607         * lib/getopt.in.h: Renamed from lib/getopt_.h.
67608         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
67609         getopt_.h.
67610         * lib/glob.in.h: Renamed from lib/glob_.h.
67611         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
67612         * lib/iconv.in.h: Renamed from lib/iconv_.h.
67613         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
67614         iconv_.h.
67615         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
67616         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
67617         inttypes_.h.
67618         * lib/locale.in.h: Renamed from lib/locale_.h.
67619         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
67620         locale_.h.
67621         * lib/math.in.h: Renamed from lib/math_.h.
67622         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
67623         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
67624         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
67625         of netinet_in_.h. Add dependency.
67626         * lib/poll.in.h: Renamed from lib/poll_.h.
67627         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
67628         * lib/search.in.h: Renamed from lib/search_.h.
67629         * modules/search (Files, Makefile.am): Use search.in.h instead of
67630         search_.h.
67631         * lib/signal.in.h: Renamed from lib/signal_.h.
67632         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
67633         _signal.h.
67634         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
67635         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
67636         stdbool_.h.
67637         * lib/stdint.in.h: Renamed from lib/stdint_.h.
67638         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
67639         stdint_.h.
67640         * lib/stdio.in.h: Renamed from lib/stdio_.h.
67641         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
67642         stdio_.h.
67643         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
67644         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
67645         stdlib_.h.
67646         * lib/string.in.h: Renamed from lib/string_.h.
67647         * modules/string (Files, Makefile.am): Use string.in.h instead of
67648         string_.h.
67649         * doc/gnulib-tool.texi (Initial import): Update.
67650         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
67651         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
67652         of sys_select_.h. Add dependency.
67653         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
67654         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
67655         of sys_socket_.h.
67656         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
67657         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
67658         sys_stat_.h.
67659         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
67660         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
67661         sys_time_.h.
67662         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
67663         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
67664         sysexits_.h.
67665         * lib/time.in.h: Renamed from lib/time_.h.
67666         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
67667         * lib/unistd.in.h: Renamed from lib/unistd_.h.
67668         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
67669         unistd_.h.
67670         * lib/wchar.in.h: Renamed from lib/wchar_.h.
67671         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
67672         wchar_.h.
67673         * lib/wctype.in.h: Renamed from lib/wctype_.h.
67674         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
67675         wctype_.h.
67676         * build-aux/bootstrap (slurp): Update.
67677         * lib/.cppi-disable: Update.
67678
67679 2007-09-30  Bruno Haible  <bruno@clisp.org>
67680
67681         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
67682         Needed on BeOS.
67683
67684 2007-09-30  Bruno Haible  <bruno@clisp.org>
67685
67686         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
67687
67688 2007-09-29  Bruno Haible  <bruno@clisp.org>
67689
67690         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
67691
67692 2007-09-29  Bruno Haible  <bruno@clisp.org>
67693
67694         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
67695         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
67696         * build-aux/install-reloc: Compile also areadlink.c.
67697         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
67698
67699 2007-09-29  Bruno Haible  <bruno@clisp.org>
67700
67701         * gnulib-tool (func_emit_initmacro_done): Indentation.
67702
67703 2007-09-29  Bruno Haible  <bruno@clisp.org>
67704
67705         * README: Add CVS checkout update instructions.
67706         Info from Bob Proulx <bob@proulx.com>.
67707
67708 2007-09-28  Eric Blake  <ebb9@byu.net>
67709
67710         Provide move-if-change.
67711         * build-aux/move-if-change: New file, based on best practice
67712         rather than any canonical upstream location.
67713
67714 2007-09-28  Jim Meyering  <jim@meyering.net>
67715
67716         Fix canonicalize loop-detection corner case.
67717         Do not attempt to stat the symlink values stored via seen_triple.
67718         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
67719         on linux-2.6.18, (but not 2.6.22).
67720         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
67721         triple_compare.  The former compares dev,ino,filename, while the latter
67722         would actually stat dirname(filename) when dev and ino were equal.
67723         * lib/hash-triple.c: Install <string.h>.
67724         (STREQ): Define.
67725         (triple_compare_ino_str): New function.
67726         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
67727
67728 2007-09-28  Eric Blake  <ebb9@byu.net>
67729
67730         Enforce that AC_REPLACE_FUNCS files exist.
67731         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
67732         override check for typos.
67733
67734         Fix test-closein on Solaris 10.
67735         * tests/test-closein.c (main): Don't assume stdin can be inherited
67736         closed on all systems.
67737         * tests/test-closein.sh: Likewise.
67738         Reported by Piotr Tarnowski.
67739
67740 2007-09-28  Jim Meyering  <jim@meyering.net>
67741
67742         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
67743
67744 2007-09-27  Jim Meyering  <jim@meyering.net>
67745
67746         canonicalize: Avoid a false-positive cycle failure.
67747         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
67748         Sort.  Remove cycle-check.
67749         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
67750         not cycle-check.h.
67751         (seen_triple): New function.
67752         (canonicalize_filename_mode): Use it instead of cycle-check.
67753         * tests/test-canonicalize.c: Add a test for this bug.
67754         * tests/test-canonicalize.sh: Set up and run the test.
67755
67756         New module, file-set, from coreutils.
67757         * modules/file-set: Define it.
67758         * lib/file-set.c, lib/file-set.h: Implement.
67759
67760         New module, hash-triple, from coreutils.
67761         * modules/hash-triple: Define it.
67762         * lib/hash-triple.c, lib/hash-triple.h: Implement.
67763
67764 2007-09-25  Eric Blake  <ebb9@byu.net>
67765
67766         Fix strerror on Interix.
67767         * lib/string_.h (strerror): Declare replacement.
67768         * doc/functions/strerror.texi (strerror): Document the Interix
67769         shortcoming.
67770         * modules/string (Makefile.am): Support new hooks.
67771         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
67772         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
67773         gl_FUNC_STRERROR_SEPARATE.
67774         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
67775         * lib/strerror.c (rpl_strerror): Provide replacement.
67776         * modules/strerror (Depends-on): Add string.
67777         (configure.ac): Detect use of module.
67778         * tests/test-strerror.c: New file.
67779         * modules/strerror-tests: New test module.
67780         * modules/argp (Depends-on): Add strerror.
67781         * modules/error (Depends-on): Likewise.
67782         Reported by Martin Koeppe.
67783
67784 2007-09-24  Bruno Haible  <bruno@clisp.org>
67785
67786         * README: Update git instructions.
67787
67788 2007-09-24  Eric Blake  <ebb9@byu.net>
67789
67790         Revert fpending breakage from 2007-09-08.
67791         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
67792         __fpending.c.
67793
67794 2007-09-24  Jim Meyering  <jim@meyering.net>
67795
67796         filenamecat.c: Add a test.
67797         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
67798         showing how the function works when DIR is the empty string.
67799
67800 2007-09-21  Simon Josefsson  <simon@josefsson.org>
67801
67802         * tests/test-canonicalize.sh: Turn on executable bit.
67803
67804 2007-09-19  Eric Blake  <ebb9@byu.net>
67805
67806         * README: Update CVS instructions.
67807
67808 2007-09-18  Bruno Haible  <bruno@clisp.org>
67809
67810         * modules/areadlink: New file.
67811         * lib/areadlink.h (areadlink): New declaration.
67812         * lib/areadlink.c: New file, based on lib/xreadlink.c.
67813
67814 2007-09-17  Jim Meyering  <jim@meyering.net>
67815
67816         * lib/savewd.c (ESTALE) [!defined]: Define.
67817         Reported to be required on Interix by Martin Koeppe.
67818
67819 2007-09-17  Bruno Haible  <bruno@clisp.org>
67820
67821         * gnulib-tool (func_version): Use $version.
67822
67823 2007-09-16  Bruno Haible  <bruno@clisp.org>
67824
67825         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
67826         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
67827         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
67828         Reported by Greg Schafer <gschafer@zip.com.au>.
67829
67830 2007-09-15  Bruno Haible  <bruno@clisp.org>
67831
67832         * gnulib-tool (sed): Try a little harder to make bash understand the
67833         alias.
67834         Reported by Bruce Korb <bruce.korb@gmail.com>.
67835
67836 2007-09-13  Eric Blake  <ebb9@byu.net>
67837
67838         * ChangeLog: Remove conflict markers.
67839
67840 2007-09-13  Simon Josefsson  <simon@josefsson.org>
67841
67842         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
67843         Reported by Bruno Haible <bruno@clisp.org>.
67844
67845 2007-09-12  Bruno Haible  <bruno@clisp.org>
67846
67847         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
67848         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
67849         is not defined.
67850
67851 2007-09-12  Eric Blake  <ebb9@byu.net>
67852
67853         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
67854         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
67855         Autoconf definition.
67856         * modules/euidaccess (Depends-on): Add extensions, for
67857         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
67858         * modules/fnmatch (Depends-on): Likewise.
67859         * modules/getaddrinfo (Depends-on): Likewise.
67860         * modules/getdelim (Depends-on): Likewise.
67861         * modules/getline (Depends-on): Likewise.
67862         * modules/getsubopt (Depends-on): Likewise.
67863         * modules/gettext (Depends-on): Likewise.
67864         * modules/group-member (Depends-on): Likewise.
67865         * modules/mbchar (Depends-on): Likewise.
67866         * modules/memmem (Depends-on): Likewise.
67867         * modules/mempcpy (Depends-on): Likewise.
67868         * modules/memrchr (Depends-on): Likewise.
67869         * modules/pagealign_alloc (Depends-on): Likewise.
67870         * modules/readutmp (Depends-on): Likewise.
67871         * modules/stpcpy (Depends-on): Likewise.
67872         * modules/stpncpy (Depends-on): Likewise.
67873         * modules/strchrnul (Depends-on): Likewise.
67874         * modules/strndup (Depends-on): Likewise.
67875         * modules/strsep (Depends-on): Likewise.
67876         * modules/strverscmp (Depends-on): Likewise.
67877         * modules/vasprintf (Depends-on): Likewise.
67878         * modules/wcwidth (Depends-on): Likewise.
67879         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
67880         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
67881         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
67882         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
67883         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
67884         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67885         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
67886         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67887         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
67888         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
67889         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
67890         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
67891         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
67892         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
67893         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
67894         * m4/readutmp.m4 (gl_READUTMP): Likewise.
67895         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67896         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
67897         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67898         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
67899         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
67900         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
67901         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
67902         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
67903         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
67904         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67905         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
67906         so that lock.m4 can be used in gettext without extensions module.
67907
67908 2007-09-11  Bruno Haible  <bruno@clisp.org>
67909
67910         * m4/isc-posix.m4: Remove file.
67911         Suggested by Eric Blake.
67912
67913 2007-09-11  Eric Blake  <ebb9@byu.net>
67914
67915         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
67916
67917 2007-09-10  Bruno Haible  <bruno@clisp.org>
67918
67919         * posix-modules: Fix typo in error message.
67920         Reported by Matt <mkraai@beckman.com>.
67921
67922 2007-09-09  Bruno Haible  <bruno@clisp.org>
67923
67924         * doc/functions/getdelim.texi: Update list of platforms lacking the
67925         function.
67926         * doc/functions/getline.texi: Likewise.
67927
67928 2007-09-09  Jim Meyering  <jim@meyering.net>
67929
67930         * lib/hash.c (hash_initialize): Detect calloc failure.
67931         Reported by Bruno Haible.
67932
67933 2007-09-09  Bruno Haible  <bruno@clisp.org>
67934
67935         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
67936         malloc or realloc fails.
67937
67938 2007-09-09  Bruno Haible  <bruno@clisp.org>
67939
67940         * modules/getcwd (Depends-on): Add malloc-posix.
67941         * modules/glob (Depends-on): Likewise.
67942         * modules/putenv (Depends-on): Likewise.
67943         * modules/strdup (Depends-on): Likewise.
67944         * modules/getdelim (Depends-on): Add realloc-posix.
67945         * modules/read-file (Depends-on): Likewise.
67946
67947 2007-09-09  Bruno Haible  <bruno@clisp.org>
67948
67949         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
67950         (gl_FUNC_MALLOC_POSIX): Require it.
67951         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
67952         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
67953         * modules/realloc (Files): Add m4/malloc.m4.
67954         * modules/calloc (Files): Likewise.
67955
67956 2007-09-09  Bruno Haible  <bruno@clisp.org>
67957
67958         * modules/malloc-posix: New file.
67959         * modules/malloc (Depends-on): Add malloc-posix.
67960         * lib/malloc.c: Include errno.h.
67961         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
67962         and a POSIX-compatible malloc into a single function. Set ENOMEM
67963         when returning NULL.
67964         * m4/malloc.m4: New file.
67965         * doc/functions/malloc.texi: Mention the malloc-posix module.
67966         * lib/stdlib_.h (malloc): New declaration.
67967         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67968         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
67969         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
67970         and HAVE_MALLOC_POSIX.
67971
67972 2007-09-09  Bruno Haible  <bruno@clisp.org>
67973
67974         * modules/realloc-posix: New file.
67975         * modules/realloc (Depends-on): Add realloc-posix.
67976         * lib/realloc.c: Include errno.h.
67977         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
67978         and a POSIX-compatible realloc into a single function. Set ENOMEM
67979         when returning NULL.
67980         * m4/realloc.m4: New file.
67981         * doc/functions/realloc.texi: Mention the realloc-posix module.
67982         * lib/stdlib_.h (realloc): New declaration.
67983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67984         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
67985         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
67986         and HAVE_REALLOC_POSIX.
67987
67988 2007-09-09  Bruno Haible  <bruno@clisp.org>
67989
67990         * modules/calloc-posix: New file.
67991         * modules/calloc (Depends-on): Add calloc-posix.
67992         * lib/calloc.c: Include errno.h.
67993         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
67994         and a POSIX-compatible calloc into a single function. Set ENOMEM
67995         when returning NULL.
67996         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
67997         * doc/functions/calloc.texi: Mention the calloc-posix module.
67998         * lib/stdlib_.h (calloc): New declaration.
67999         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68000         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
68001         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
68002         and HAVE_CALLOC_POSIX.
68003
68004 2007-09-09  Bruno Haible  <bruno@clisp.org>
68005
68006         Allow for modules to show an arbitrary notice.
68007         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
68008         * gnulib-tool: New option --extract-notice.
68009         (func_usage): Document it.
68010         (sed_extract_prog): Update.
68011         (func_get_notice): New function.
68012         (func_modules_notice): New function.
68013         (func_import, func_create_testdir): Invoke it.
68014         Suggested by Jim Meyering.
68015
68016 2007-09-09  Bruno Haible  <bruno@clisp.org>
68017
68018         * gnulib-tool: New options --verbose, --quiet.
68019         (func_usage): Document them.
68020         (verbose): New variable.
68021         (func_execute_command): New function.
68022         (func_import): Don't show the module list and the file list if
68023         $verbose < 0.
68024         (func_create_testdir): Likewise. Use func_execute_command.
68025         (func_create_megatestdir): Use func_execute_command.
68026
68027 2007-09-08  Bruno Haible  <bruno@clisp.org>
68028
68029         * gnulib-tool (func_import): Prefer rsync over wget when available,
68030         for fetching the PO files.
68031
68032 2007-09-08  Bruno Haible  <bruno@clisp.org>
68033
68034         * posix-modules: New file. Portions copied from gnulib-tool.
68035         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
68036
68037 2007-09-08  Jim Meyering  <jim@meyering.net>
68038
68039         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
68040         * lib/fpending.h: Rename from __fpending.h.
68041         * lib/fpending.c: Rename from __fpending.c.
68042         Include "fpending.h", not "__fpending.h".
68043         * lib/__fpending.h, lib/__fpending.c: Remove files.
68044         * modules/fpending (Files): Reflect new file names.
68045         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
68046
68047 2007-09-08  Bruno Haible  <bruno@clisp.org>
68048
68049         * m4/inttypes-h.m4: Remove stub file.
68050
68051 2007-09-07  Simon Josefsson  <simon@josefsson.org>
68052
68053         * doc/headers/stdint.texi: Discuss #include_next issue.
68054
68055 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68056
68057         * build-aux/bootstrap: Remove obsolete comment about wget --help.
68058
68059 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68060
68061         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
68062         in variable name.
68063
68064 2007-09-03  Jim Meyering  <jim@meyering.net>
68065
68066         New module: git-version-gen.
68067         * modules/git-version-gen: New file.
68068
68069         Import changes from coreutils for bootstrap script.
68070
68071         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
68072
68073         bootstrap: uses rsync to download the .po files
68074         * build-aux/bootstrap (po_download_command_format): New global.
68075         (download_po_files): Use rsync.
68076         (update_po_files): Don't remove .po files after download,
68077         so future rsync runs can take advantage of the copies.
68078
68079         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
68080
68081         Solve the unnecessary-.po-file-regeneration problem once and for all.
68082         * build-aux/bootstrap (download_po_files): New function, renamed from
68083         get_translations.  Now, downloads, but doesn't update LINGUAS.
68084         (update_po_files): New function.
68085
68086         bootstrap: Ignore more.
68087         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
68088         uniwidth to e.g., lib/.gitignore.
68089         (slurp): Handle the sys_stat_.h -> sys mapping, too.
68090
68091         * build-aux/bootstrap: New setting: vc_ignore.
68092         (insert_sorted_if_absent): Create $file if absent.
68093         Adapt to new, possibly empty, list: $vc_ignore.
68094
68095         bootstrap: generate more ignorable names
68096         * build-aux/bootstrap (slurp): When generating ignorable names,
68097         also map .sin to .sed, .gperf to .c, and .y to .c.
68098
68099 2007-09-03  Jim Meyering  <jim@meyering.net>
68100
68101         * build-aux/git-version-gen: New file, from coreutils.  For details, see
68102         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
68103
68104 2007-09-02  Bruno Haible  <bruno@clisp.org>
68105
68106         Fix mis-recognition of 'mcs' on QNX 6.
68107         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
68108         output contains the string "Mono".
68109         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
68110         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
68111
68112 2007-09-01  Bruno Haible  <bruno@clisp.org>
68113
68114         Fix collision between uniwidth/* and linebreak modules.
68115         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
68116         u32_width): Remove declarations.
68117         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
68118         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
68119         streq3, streq2, streq1, streq0): Remove functions.
68120         (STREQ): Remove macro.
68121         (is_cjk_encoding): Remove function.
68122         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
68123         (uc_width, u8_width, u16_width, u32_width): Remove functions.
68124         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
68125         * NEWS: Document the change.
68126
68127 2007-09-01  Bruno Haible  <bruno@clisp.org>
68128
68129         * lib/streq.h: Add double-inclusion guard.
68130
68131 2007-09-01  Karl Berry  <karl@gnu.org>
68132
68133         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
68134
68135 2007-08-28  Jim Meyering  <jim@meyering.net>
68136
68137         Rename mreadlink_with_size to areadlink_with_size.
68138         * NEWS: Document the change.
68139         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
68140         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
68141         * lib/mreadlink.h: Rename this to...
68142         * lib/areadlink.h: ...this.
68143         * modules/mreadlink-with-size: Rename this to...
68144         * modules/areadlink-with-size: ...this.
68145         * lib/canonicalize.c: Reflect the renaming.
68146         * modules/canonicalize: Likewise.
68147
68148 2007-08-26  Bruno Haible  <bruno@clisp.org>
68149
68150         * gnulib-tool (func_import): When deciding which files to remove,
68151         consider also dangling symbolic links.
68152         Reported by Eric Blake.
68153
68154 2007-08-26  Bruno Haible  <bruno@clisp.org>
68155
68156         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
68157
68158 2007-08-23  Simon Josefsson  <simon@josefsson.org>
68159
68160         * lib/readline.c: Don't include getline.h, the prototype is now
68161         found in stdio.h.
68162
68163 2007-08-23  Jim Meyering  <jim@meyering.net>
68164
68165         Getdelim touchup.
68166         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
68167         around the funlockfile call, since funlockfile never sets errno.
68168         Don't set errno upon failed realloc.
68169
68170 2007-08-22  Eric Blake  <ebb9@byu.net>
68171
68172         Getline touchups.
68173         * lib/getdelim.c (getdelim): Revert regression that required *n to
68174         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
68175         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
68176         getdelim, rather than whether implementation is missing.
68177         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
68178         * lib/stdio_.h (getline): Also declare if replacement is
68179         required.
68180         * doc/functions/getdelim.texi: New file.
68181         * doc/functions/getline.texi: Likewise.
68182         * doc/gnulib.texi (Function Substitutes): Add new files.
68183         Reported by Bruno Haible.
68184
68185 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
68186
68187         * users.txt: Add Guile.
68188
68189 2007-08-22  Eric Blake  <ebb9@byu.net>
68190
68191         * tests/test-getdelim.c (main): Use remove, not unlink.
68192         * tests/test-getline.c (main): Likewise.
68193
68194         Move getline and getdelim into stdio.h, per POSIX 200x.
68195         * modules/getline (Files): Remove getline.h.
68196         (Depends-on): Add stdio.
68197         (configure.ac): Add module indicator.
68198         * modules/getdelim (Files): Remove getdelim.h.
68199         (Depends-on): Add stdio.
68200         (configure.ac): Add module indicator.
68201         * modules/stdio (Makefile.am): Work with new indicators.
68202         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
68203         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
68204         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
68205         * lib/getdelim.h: Delete.
68206         * lib/getline.h: Delete.
68207         * lib/stdio_.h (getdelim, getline): Declare.
68208         * modules/getdelim-tests: New module.
68209         * modules/getline-tests: Likewise.
68210         * tests/test-getdelim.c: New file.
68211         * tests/test-getline.c: Likewise.
68212         * NEWS: Document the change.
68213         * lib/getline.c: Update choice of header.
68214         * lib/csharpcomp.c: Likewise.
68215         * lib/getpass.c: Likewise.
68216         * lib/javacomp.c: Likewise.
68217         * lib/javaversion.c: Likewise.
68218         * lib/yesno.c: Likewise.
68219         * lib/getdelim.c: Likewise.
68220         (getdelim): Set errno on failure, and avoid memory leak.
68221
68222 2007-08-19  Bruno Haible  <bruno@clisp.org>
68223
68224         * modules/closein (Depends-on): Add freadahead.
68225         * lib/closein.c: Include freadahead.h.
68226         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
68227         is zero.
68228
68229 2007-08-19  Bruno Haible  <bruno@clisp.org>
68230
68231         * modules/freadahead-tests: New file.
68232         * tests/test-freadahead.sh: New file.
68233         * tests/test-freadahead.c: New file.
68234
68235         * modules/freadahead: New file.
68236         * lib/freadahead.h: New file.
68237         * lib/freadahead.c: New file.
68238         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
68239         fbufmode, fpurge, freadable, fwritable.
68240
68241 2007-08-19  Eric Blake  <ebb9@byu.net>
68242
68243         Test yesno in combination with closein.
68244         * lib/yesno.c (yesno): Document use of stdin.
68245         * modules/yesno-tests (Files): New module.
68246         * tests/test-yesno.c (main): New file.
68247         * tests/test-yesno.sh: Likewise.
68248
68249 2007-08-19  Bruno Haible  <bruno@clisp.org>
68250
68251         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
68252         * lib/fseeko.c (rpl_fseeko): Likewise.
68253         * lib/fseterr.c (fseterr): Likewise.
68254
68255 2007-08-19  Bruno Haible  <bruno@clisp.org>
68256
68257         * tests/test-lseek.c (main): Disable a test for BeOS.
68258         * doc/functions/lseek.texi: Document the BeOS bug.
68259
68260 2007-08-19  Bruno Haible  <bruno@clisp.org>
68261             Eric Blake  <ebb9@byu.net>
68262
68263         * lib/lseek.c: Include <sys/stat.h>.
68264         (rpl_lseek): Add workaround code also for Unix platforms.
68265         Needed for BeOS.
68266         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
68267         * doc/functions/lseek.texi: Document BeOS definiency.
68268
68269 2007-08-18  Bruno Haible  <bruno@clisp.org>
68270
68271         * modules/fstrcmp-tests: New file.
68272         * tests/test-fstrcmp.c: New file.
68273
68274 2007-08-18  Bruno Haible  <bruno@clisp.org>
68275
68276         * modules/fstrcmp: New file, from GNU gettext with modifications.
68277         * lib/fstrcmp.h: New file, from GNU gettext.
68278         * lib/fstrcmp.c: New file, from GNU gettext.
68279         * MODULES.html.sh (String handling): Add fstrcmp.
68280
68281 2007-08-18  Bruno Haible  <bruno@clisp.org>
68282
68283         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
68284         'bool'.
68285         (diag, compareseq): Remove const from the ctxt argument.
68286         (USE_HEURISTIC): Undefine at the end.
68287
68288 2007-08-18  Jim Meyering  <jim@meyering.net>
68289
68290         New file: lib/idcache.h
68291         * NEWS: Mention the addition.
68292         * modules/idcache (Files): Add lib/idcache.h
68293         * lib/idcache.c: Include "idcache.h".
68294         Don't include <sys/types.h>.
68295         Add a FIXME comment.
68296         Move file-scoped "static" declarations to the top.
68297         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
68298
68299 2007-08-17  Bruno Haible  <bruno@clisp.org>
68300         and Paul Eggert  <eggert@cs.ucla.edu>
68301
68302         * MODULES.html.sh: Add diffseq.
68303         * modules/diffseq: New file.
68304         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
68305         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
68306
68307 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68308
68309         Import changes from coreutils for bootstrap script.
68310
68311         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
68312
68313         * build-aux/bootstrap (slurp): Work even in environments where
68314         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
68315         current code does not slurp files whose names start with ".", and
68316         this looks like it might be a troublesome area.
68317
68318         2007-07-11  Jim Meyering  <jim@meyering.net>
68319
68320         If there's a GPL vN copyright comment, require that N == 3.
68321
68322         2007-07-08  Jim Meyering  <jim@meyering.net>
68323
68324         Run the coreutils-specific code only if tests/Makefile.am.in exists.
68325         * build-aux/bootstrap (mam_template): Move definition out of loop.
68326
68327         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
68328
68329         * build-aux/bootstrap (symlink_to_dir): Rename function from
68330         symlink_to_gnulib.  Add a directory parameter.  Update all
68331         callers.
68332         (cp_mark_as_generated): Also check for -- and link to -- files in
68333         gl/.
68334
68335         2007-07-08  Jim Meyering  <jim@meyering.net>
68336
68337         Adapt to deeper hierarchy in gnulib.
68338         * build-aux/bootstrap (symlink_to_dir): If the destination
68339         directory doesn't exist, create it. This is required at least for
68340         "lib/uniwidth/cjk.h".
68341
68342         2007-05-15  Jim Meyering  <jim@meyering.net>
68343
68344         * build-aux/bootstrap: Now that generated Makefile.am files
68345         are no longer under version control, they must be created at
68346         bootstrap time.
68347
68348 2007-08-14  Ben Pfaff  <blp@gnu.org>
68349
68350         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
68351
68352 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68353
68354         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
68355         given the changes below.
68356         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
68357         even on hosts that have padding bits beyond the supported 64.
68358
68359 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68360
68361         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
68362         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
68363         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
68364         depends on it.
68365         (xstrtol_error): Remove.
68366         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
68367         but with a different signature.
68368         (ATTRIBUTE_NORETURN, __attribute__): New macros.
68369         * lib/xstrtol-error.c: Include exitfail.h.
68370         (xstrtol_fatal): New function, with a different signature from the
68371         old xstrtol_error, so that the caller need not worry about passing
68372         in an exit status, or about storage management of the option argument.
68373         (xstrtol_error): Now a static function.  Redo signature to
68374         implement xstrtol_fatal.  Output the correct number of hyphens in
68375         front of the option so that the caller need not worry about
68376         storage management.
68377         (N_): New macro.
68378         (_): Remove; not used now.
68379         * modules/xstrtol: Depend on getopt.
68380         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
68381         of old STRTOL_FATAL_ERROR macro.
68382         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
68383         of test program.
68384         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
68385         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
68386
68387 2007-08-08  Eric Blake  <ebb9@byu.net>
68388
68389         * lib/xstrtol-error.c: Add missing include.
68390
68391         Move xstrtol messages into gnulib domain, when --pobase is used.
68392         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
68393         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
68394         * modules/xstrtol (Files): Distribute new file.
68395         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
68396         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
68397         * tests/test-xstrtol.c: ...into new file.
68398         * tests/test-xstrtoul.c: Also test xstrtoul.
68399         * tests/test-xstrtoimax.c: Also test xstrtoimax.
68400         * tests/test-xstrtoumax.c: Also test xstrtoumax.
68401         * tests/test-xstrtol.sh: Drive the tests.
68402         * tests/test-xstrtoimax.sh: Likewise.
68403         * tests/test-xstrtoumax.sh: Likewise.
68404         * modules/xstrtol-tests: New module.
68405         * modules/xstrtoimax-tests: Likewise.
68406         * modules/xstrtoumax-tests: Likewise.
68407
68408 2007-08-08  Jim Meyering  <jim@meyering.net>
68409
68410         New function: mfile_name_concat.
68411         * lib/filenamecat.c (mfile_name_concat): New function, just like
68412         file_name_concat, but return NULL upon failure rather than exiting
68413         with a diagnostic.
68414         * lib/filenamecat.h: Declare it.
68415
68416 2007-08-07  Bruno Haible  <bruno@clisp.org>
68417
68418         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
68419         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
68420         warning from gcc.
68421         Reported by Eric Blake.
68422
68423 2007-08-07  Simon Josefsson  <simon@josefsson.org>
68424
68425         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
68426         * modules/crypto/arcfour (License): Likewise.
68427         * modules/crypto/des-tests (License): Likewise.
68428         * modules/crypto/gc-arctwo-tests (License): Likewise.
68429         * modules/crypto/gc-des-tests (License): Likewise.
68430         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
68431         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
68432         * modules/crypto/gc-md2-tests (License): Likewise.
68433         * modules/crypto/gc-md4-tests (License): Likewise.
68434         * modules/crypto/gc-md5-tests (License): Likewise.
68435         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
68436         * modules/crypto/gc-rijndael-tests (License): Likewise.
68437         * modules/crypto/gc-sha1-tests (License): Likewise.
68438         * modules/crypto/gc-tests (License): Likewise.
68439         * modules/crypto/hmac-md5 (License): Likewise.
68440         * modules/crypto/hmac-sha1 (License): Likewise.
68441         * modules/crypto/md2-tests (License): Likewise.
68442         * modules/crypto/md4-tests (License): Likewise.
68443         * modules/crypto/md5 (License): Likewise.
68444         * modules/crypto/rijndael (License): Likewise.
68445         * modules/crypto/sha1 (License): Likewise.
68446         * modules/memxor (License): Likewise.
68447
68448 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68449         and Bruno Haible  <bruno@clisp.org>
68450
68451         * NEWS: Describe interface changes to human, xstrtol.
68452         * lib/human.h: Include <xstrtol.h>.
68453         (human_options): Return enum strtol_error, not int.  Remove
68454         bool arg; take int * instead.
68455         * lib/human.c: Don't include "gettext.h".
68456         (_): Remove; no longer used.
68457         Don't include <xstrtol.h>, since human.h does it.
68458         (human_options): Adjust to abovementioned interface changes.
68459         Do not report error to stderr; that's now the caller's
68460         responsibility.
68461         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
68462         interface change.
68463         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
68464         Str, Argument_type_string.  All uses changed.  Put " argument"
68465         in diagnostics to make them clearer.  Change wording of suffix
68466         message for clarity.
68467         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
68468         Argument_type_string.
68469         (STRTOL_FATAL_WARN): Remove; no longer used.
68470         * modules/human (Depends-on): Remove gettext-h.
68471
68472 2007-08-06  Simon Josefsson  <simon@josefsson.org>
68473
68474         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
68475
68476 2007-07-31  Bruno Haible  <bruno@clisp.org>
68477
68478         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
68479         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
68480         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
68481
68482 2007-07-31  Bruno Haible  <bruno@clisp.org>
68483
68484         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
68485         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
68486
68487 2007-07-30  Bruno Haible  <bruno@clisp.org>
68488
68489         * modules/base64 (License): Use the synonymous term "LGPLv2+".
68490         * modules/c-ctype (License): Likewise.
68491         * modules/c-strcase (License): Likewise.
68492         * modules/check-version (License): Likewise.
68493         * modules/iconv (License): Likewise.
68494         * modules/iconv_open (License): Likewise.
68495         * modules/read-file (License): Likewise.
68496         * modules/striconv (License): Likewise.
68497         * modules/strverscmp (License): Likewise.
68498         * modules/vasprintf (License): Likewise.
68499         * modules/crypto/des (License): Likewise.
68500         * modules/crypto/gc (License): Likewise.
68501         * modules/crypto/gc-arcfour (License): Likewise.
68502         * modules/crypto/gc-arctwo (License): Likewise.
68503         * modules/crypto/gc-des (License): Likewise.
68504         * modules/crypto/gc-hmac-md5 (License): Likewise.
68505         * modules/crypto/gc-hmac-sha1 (License): Likewise.
68506         * modules/crypto/gc-md2 (License): Likewise.
68507         * modules/crypto/gc-md4 (License): Likewise.
68508         * modules/crypto/gc-md5 (License): Likewise.
68509         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
68510         * modules/crypto/gc-random (License): Likewise.
68511         * modules/crypto/gc-rijndael (License): Likewise.
68512         * modules/crypto/gc-sha1 (License): Likewise.
68513         * modules/crypto/md2 (License): Likewise.
68514         * modules/crypto/md4 (License): Likewise.
68515
68516 2007-07-30  Jim Meyering  <jim@meyering.net>
68517
68518         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
68519         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
68520         it has valid stat data.  This bug would cause du not to count the
68521         sizes of inaccessible directories.
68522         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
68523         in <http://bugzilla.redhat.com/250077>.
68524
68525 2007-07-25  Peter O'Gorman  <peter@pogma.com>
68526             Bruno Haible  <bruno@clisp.org>
68527
68528         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
68529         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
68530         #include_next, gives a diagnostic about it, but reports no error in
68531         the exit code.
68532         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
68533
68534 2007-07-24  Ben Pfaff  <blp@gnu.org>
68535
68536         Improve name: "count-one-bits" is better than "popcount".
68537         * MODULES.html.sh: Update name.
68538         * lib/popcount.h: Renamed lib/count-one-bits.h.
68539         (popcount): Renamed count_one_bits.
68540         (popcountl): Renamed count_one_bits_l.
68541         (popcountll): Renamed count_one_bits_ll.
68542         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
68543         * modules/popcount: Renamed module/count-one-bits.
68544         * modules/popcount-tests: Renamed module/count-one-bits-tests.
68545         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
68546
68547 2007-07-23  Ben Pfaff  <blp@gnu.org>
68548
68549         * lib/popcount.h (popcount32): Reduce size of constants, to allow
68550         better code generation, and add U to large constants to avoid
68551         warnings, in non-GCC case.
68552         Suggested by Bruno Haible.
68553
68554 2007-07-23  Ben Pfaff  <blp@gnu.org>
68555
68556         * lib/popcount.h: Use verify_true instead of if...abort.
68557         * modules/popcount: Depend on verify module.
68558         Suggested by Jim Meyering.
68559
68560 2007-07-23  Bruno Haible  <bruno@clisp.org>
68561
68562         * gnulib-tool (func_import): Create a .cvsignore file also when the
68563         directory is not yet in CVS but the toplevel directory is. When
68564         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
68565         Reported by Karl Berry.
68566
68567 2007-07-22  Ben Pfaff  <blp@gnu.org>
68568
68569         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
68570         case.
68571         Suggested by Eric Blake.
68572
68573 2007-07-22  Ben Pfaff  <blp@gnu.org>
68574
68575         New module: popcount.
68576         * MODULES.html.sh: Add popcount.
68577         * modules/popcount: New file.
68578         * modules/popcount-tests: New file.
68579         * tests/test-popcount.c: New file.
68580         * lib/popcount.h: New file.
68581         * m4/popcount.m4: New file.
68582
68583 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68584
68585         * build-aux/announce-gen: Update to GPLv3.
68586
68587         * build-aux/config.guess: Update from config.
68588
68589 2007-07-21  Bruno Haible  <bruno@clisp.org>
68590
68591         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
68592         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
68593
68594 2007-07-20  Jim Meyering  <jim@meyering.net>
68595
68596         * check-module: Diagnose a self-dependency.
68597
68598 2007-07-19  Bruno Haible  <bruno@clisp.org>
68599
68600         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
68601         empty.
68602         Reported by Eric Blake.
68603
68604 2007-07-18  Bruno Haible  <bruno@clisp.org>
68605
68606         * gnulib-tool: New options --po-base, --po-domain.
68607         (func_usage): Document them.
68608         (pobase, po_domain): New variables.
68609         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
68610         DEFAULT_TEXT_DOMAIN.
68611         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
68612         (func_import): Consider pobase and po_domain. Create a po/ directory.
68613         (func_create_testdir): Set pobase and po_domain to empty.
68614         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
68615         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
68616
68617 2007-07-18  Bruno Haible  <bruno@clisp.org>
68618
68619         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68620         EXTRA_DIST augmentation for files in build-aux/.
68621
68622 2007-07-16  Bruno Haible  <bruno@clisp.org>
68623
68624         * modules/lseek (License): Use the synonymous term "LGPLv2+".
68625         * modules/getdelim (License): Likewise.
68626
68627 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68628
68629         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
68630         * modules/d-type (License): Likewise.
68631         * modules/extensions (License): Likewise.
68632         * modules/fnmatch (License): Likewise.
68633         * modules/fseeko (License): Likewise.
68634         * modules/getaddrinfo (License): Likewise.
68635         * modules/getline (License): Likewise.
68636         * modules/getlogin_r (License): Likewise.
68637         * modules/getpass (License): Likewise.
68638         * modules/gettimeofday (License): Likewise.
68639         * modules/glob (License): Likewise.
68640         * modules/inet_ntop (License): Likewise.
68641         * modules/malloc (License): Likewise.
68642         * modules/malloca (License): Likewise.
68643         * modules/memmem (License): Likewise.
68644         * modules/mempcpy (License): Likewise.
68645         * modules/memset (License): Likewise.
68646         * modules/minmax (License): Likewise.
68647         * modules/mktime (License): Likewise.
68648         * modules/netinet_in (License): Likewise.
68649         * modules/pathmax (License): Likewise.
68650         * modules/poll (License): Likewise.
68651         * modules/regex (License): Likewise.
68652         * modules/snprintf (License): Likewise.
68653         * modules/stdbool (License): Likewise.
68654         * modules/stdint (License): Likewise.
68655         * modules/stdio (License): Likewise.
68656         * modules/strcase (License): Likewise.
68657         * modules/strcasestr (License): Likewise.
68658         * modules/strdup (License): Likewise.
68659         * modules/string (License): Likewise.
68660         * modules/strndup (License): Likewise.
68661         * modules/strnlen (License): Likewise.
68662         * modules/strpbrk (License): Likewise.
68663         * modules/strptime (License): Likewise.
68664         * modules/strsep (License): Likewise.
68665         * modules/sys_select (License): Likewise.
68666         * modules/sys_socket (License): Likewise.
68667         * modules/sys_stat (License): Likewise.
68668         * modules/sys_time (License): Likewise.
68669         * modules/time (License): Likewise.
68670         * modules/time_r (License): Likewise.
68671         * modules/timegm (License): Likewise.
68672         * modules/unistd (License): Likewise.
68673         * modules/vsnprintf (License): Likewise.
68674         * modules/wctype (License): Likewise.
68675
68676 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68677
68678         * modules/argz (License): LGPLv2+.
68679
68680 2007-07-15  Karl Berry  <karl@gnu.org>
68681
68682         * doc/gnulib.texi: revise node structure per new fdl.texi.
68683
68684 2007-07-14  Bruno Haible  <bruno@clisp.org>
68685
68686         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
68687         the output file.
68688         * lib/uniname/uninames.h: Regenerated.
68689
68690 2007-07-14  Karl Berry  <karl@gnu.org>
68691
68692         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
68693         omitting sectioning and index commands.
68694
68695 2007-07-13  Bruno Haible  <bruno@clisp.org>
68696
68697         New gnulib-tool option --more-symlinks.
68698         * gnulib-tool (func_usage): Document --more-symlinks.
68699         (do_copyrights): New variable.
68700         Recognize option --more-symlinks.
68701         (func_import): Don't add a copyright notice transform to
68702         sed_transform_lib_file if do_copyrights is empty.
68703
68704 2007-07-13  Bruno Haible  <bruno@clisp.org>
68705
68706         * lib/vasnprintf.c (decimal_point_char): Define also if
68707         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
68708         && !NEED_PRINTF_DIRECTIVE_A.
68709         Reported by Clemens Koller <clemens.koller@anagramm.de> via
68710         Gary V. Vaughan <gary@gnu.org>.
68711
68712 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
68713
68714         * lib/inttypes_.h: Undo previous change, since it was fixed
68715         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
68716
68717 2007-07-13  Bruno Haible  <bruno@clisp.org>
68718
68719         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
68720         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
68721
68722 2007-07-13  Jim Meyering  <jim@meyering.net>
68723
68724         df: Don't fail for Tru64's "file-on-file mount".
68725         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
68726         so we fall through and use statfs instead.  Details here:
68727         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
68728         Reported by Albert Chin.
68729
68730 2007-07-13  Bruno Haible  <bruno@clisp.org>
68731
68732         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
68733         * modules/configmake (License): Likewise.
68734         * modules/gettext (License): Likewise.
68735         * modules/gettext-h (License): Likewise.
68736         * modules/include_next (License): Likewise.
68737         * modules/link-warning (License): Likewise.
68738         * modules/localcharset (License): Likewise.
68739         * modules/localename (License): Likewise.
68740         * modules/lock (License): Likewise.
68741         * modules/relocatable-lib-lgpl (License): Likewise.
68742         * modules/size_max (License): Likewise.
68743         * modules/vasnprintf (License): Likewise.
68744         * modules/wchar (License): Likewise.
68745         * modules/xsize (License): Likewise.
68746
68747 2007-07-13  Bruno Haible  <bruno@clisp.org>
68748
68749         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
68750         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
68751
68752 2007-07-12  Bruno Haible  <bruno@clisp.org>
68753
68754         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
68755         in the modules files.
68756
68757 2007-07-11  Karl Berry  <karl@gnu.org>
68758
68759         * MODULES.html.sh (func_module): use
68760          sed -e '\|^'"${includefile}"'$|d'
68761          instead of /.../d, to avoid errors on $includefile's containing /.
68762
68763 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68764
68765         * gnulib-tool (func_import): Avoid duplication of --avoid
68766         statements
68767         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
68768         names to `_' in variable names.
68769
68770 2007-07-10  Eric Blake  <ebb9@byu.net>
68771
68772         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
68773         * NEWS: Document this change.
68774
68775 2007-07-08  Bruno Haible  <bruno@clisp.org>
68776
68777         Update to Unicode 5.0.
68778         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
68779         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
68780         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
68781         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
68782         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
68783         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
68784         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
68785         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
68786         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
68787         U+10A3F, U+1D242..U+1D244.
68788         (nonspacing_table_ind): Update.
68789         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
68790         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
68791
68792 2007-07-08  Bruno Haible  <bruno@clisp.org>
68793
68794         Update to Unicode 5.0.
68795         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
68796         code transform. Extend the name index field of unicode_name_to_code and
68797         unicode_code_to_name from 16 to 24 bits.
68798         * lib/uniname/uniname.c (unicode_character_name,
68799         unicode_name_character): Add the range 0x12xxx to the code transform.
68800         * lib/uniname/uninames.h: Regenerated.
68801         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
68802
68803 2007-07-07  Bruno Haible  <bruno@clisp.org>
68804
68805         * modules/wcwidth-tests: New file.
68806         * tests/test-wcwidth.c: New file.
68807
68808         Work around MacOS X wcwidth() bug.
68809         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
68810         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
68811         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
68812         original wcwidth in non-UTF-8 locales.
68813         * modules/wcwidth (Depends-on): Add localcharset, streq,
68814         uniwidth/width.
68815         * doc/functions/wcwidth.texi: Update.
68816
68817 2007-07-07  Bruno Haible  <bruno@clisp.org>
68818
68819         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
68820         (wcwidth): New declaration.
68821         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
68822         macros.
68823         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
68824         here. Prepare for creating <wchar.h> unconditionally.
68825         * modules/wchar (Depends-on): Add link-warning.
68826         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
68827         REPLACE_WCWIDTH, and GL_LINK_WARNING.
68828         * lib/wcwidth.h: Remove file.
68829         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
68830         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
68831         * modules/wcwidth (Files): Remove lib/wcwidth.h.
68832         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
68833         (Include): Replace wcwidth.h with <wchar.h>.
68834         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
68835         * lib/mbchar.h: Don't include wcwidth.h.
68836         * lib/mbswidth.c: Likewise.
68837         * NEWS: Mention the change.
68838
68839 2007-07-07  Bruno Haible  <bruno@clisp.org>
68840
68841         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
68842         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
68843         definition with an external declaration.
68844         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
68845         defined as a function. Remove AC_C_INLINE requirement.
68846         * modules/wcwidth (Files): Add lib/wcwidth.c.
68847         (Makefile.am): Remove redundant statement.
68848
68849 2007-07-07  Bruno Haible  <bruno@clisp.org>
68850
68851         * MODULES.html.sh (Unicode string functions): Add the new modules.
68852
68853         * tests/uniwidth/test-u32-strwidth.c: New file.
68854         * modules/uniwidth/u32-strwidth-tests: New file.
68855
68856         * lib/uniwidth/u32-strwidth.c: New file.
68857         * modules/uniwidth/u32-strwidth: New file.
68858
68859         * tests/uniwidth/test-u16-strwidth.c: New file.
68860         * modules/uniwidth/u16-strwidth-tests: New file.
68861
68862         * lib/uniwidth/u16-strwidth.c: New file.
68863         * modules/uniwidth/u16-strwidth: New file.
68864
68865         * tests/uniwidth/test-u8-strwidth.c: New file.
68866         * modules/uniwidth/u8-strwidth-tests: New file.
68867
68868         * lib/uniwidth/u8-strwidth.c: New file.
68869         * modules/uniwidth/u8-strwidth: New file.
68870
68871         * tests/uniwidth/test-u32-width.c: New file.
68872         * modules/uniwidth/u32-width-tests: New file.
68873
68874         * lib/uniwidth/u32-width.c: New file.
68875         * modules/uniwidth/u32-width: New file.
68876
68877         * tests/uniwidth/test-u16-width.c: New file.
68878         * modules/uniwidth/u16-width-tests: New file.
68879
68880         * lib/uniwidth/u16-width.c: New file.
68881         * modules/uniwidth/u16-width: New file.
68882
68883         * tests/uniwidth/test-u8-width.c: New file.
68884         * modules/uniwidth/u8-width-tests: New file.
68885
68886         * lib/uniwidth/u8-width.c: New file.
68887         * modules/uniwidth/u8-width: New file.
68888
68889         * tests/uniwidth/test-uc_width.c: New file.
68890         * modules/uniwidth/width-tests: New file.
68891
68892         * lib/uniwidth/width.c: New file, from GNU libiconv.
68893         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
68894         * modules/uniwidth/width: New file.
68895
68896         * lib/uniwidth.h: New file, from GNU libiconv.
68897         * modules/uniwidth/base: New file.
68898
68899 2007-07-07  Bruno Haible  <bruno@clisp.org>
68900
68901         * lib/uniname.h: New file, from GNU gettext.
68902         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
68903         * lib/uniname/uninames.h: New file, from GNU gettext.
68904         * lib/uniname/uniname.c: New file, from GNU gettext.
68905         * tests/uniname/test-uninames.sh: New file.
68906         * tests/uniname/test-uninames.c: New file, from GNU gettext.
68907         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
68908         * modules/uniname/base: New file.
68909         * modules/uniname/uniname: New file.
68910         * modules/uniname/uniname-tests: New file.
68911         * MODULES.html.sh (Unicode string functions): Add the new modules.
68912
68913 2007-07-06  Bruno Haible  <bruno@clisp.org>
68914
68915         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
68916
68917 2007-07-06  Bruno Haible  <bruno@clisp.org>
68918
68919         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
68920         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
68921         includes <cygwin/sys_time.h> which includes <sys/select.h> which
68922         include <sys/time.h>.
68923         Reported by Eric Blake.
68924
68925 2007-07-06  Eric Blake  <ebb9@byu.net>
68926
68927         Fix testing canonicalize on cygwin.
68928         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68929         Revert patch from 2007-06-19.
68930         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
68931         canonicalize module is also in use.
68932         * tests/test-canonicalize.c: New file.
68933         * tests/test-canonicalize.sh: Likewise.
68934         * modules/canonicalize-tests: Likewise.
68935
68936 2007-07-06  Jim Meyering  <jim@meyering.net>
68937
68938         * lib/getugroups.c (getugroups): Detect getgrent failure.
68939         Adjust comment to reflect reality: this function may return -1.
68940
68941 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68942
68943         * build-aux/bootstrap (TP_URL,get_translations): Update to use
68944         the new TP address.
68945         (usage): Fix typo
68946         (gnulib_mk): New variable.
68947
68948 2007-07-05  Jim Meyering  <jim@meyering.net>
68949
68950         Don't let endgrent clobber errno, no matter how improbable.
68951         * lib/getugroups.c (getugroups): Save and restore errno around
68952         endgrent call.
68953
68954         Close the group DB even when failing with 2^31 or more members.
68955         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
68956
68957 2007-07-04  Jim Meyering  <jim@meyering.net>
68958
68959         * lib/getugroups.h: New file.
68960         * lib/getugroups.c: Include "getugroups.h".
68961         Remove uses of "register" keyword.
68962         Move local variable, "cp", down into scope where used.
68963         Give "username" parameter the "const" attribute.
68964         * modules/getugroups (Files): Add lib/getugroups.h
68965
68966 2007-07-04  Karl Berry  <karl@gnu.org>
68967
68968         * MODULES.html.sh (func_all_modules): Complete rename of
68969         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
68970
68971 2007-07-02  Bruno Haible  <bruno@clisp.org>
68972
68973         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
68974         mode, when inttypes.h comes from gnulib.
68975         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68976
68977 2007-07-02  Simon Josefsson  <simon@josefsson.org>
68978
68979         * NEWS: Mention lgpl module name change.
68980
68981         * modules/lgpl-2.1: Renamed from lgpl.
68982
68983         * NEWS: Mention gpl module name change.
68984
68985         * modules/gpl-3.0: New file, based on gpl-2.0.
68986
68987         * modules/gpl-2.0: Renamed from gpl.
68988
68989         * modules/gpl: Fix filename, doc/gpl.texi is now found at
68990         doc/gpl-2.0.texi.
68991
68992 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68993
68994         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
68995         #define __STDC_LIMIT_MACROS temporarily while including
68996         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
68997         Problem reported by Joel E. Denny in
68998         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
68999
69000 2007-07-01  Bruno Haible  <bruno@clisp.org>
69001
69002         * lib/unistdio.h: New file.
69003         * lib/unistdio/u-asnprintf.h: New file.
69004         * lib/unistdio/u-asprintf.h: New file.
69005         * lib/unistdio/u-printf-args.c: New file.
69006         * lib/unistdio/u-printf-args.h: New file.
69007         * lib/unistdio/u-printf-parse.h: New file.
69008         * lib/unistdio/u-snprintf.h: New file.
69009         * lib/unistdio/u-sprintf.h: New file.
69010         * lib/unistdio/u-vasprintf.h: New file.
69011         * lib/unistdio/u-vsnprintf.h: New file.
69012         * lib/unistdio/u-vsprintf.h: New file.
69013         * lib/unistdio/ulc-asnprintf.c: New file.
69014         * lib/unistdio/ulc-asprintf.c: New file.
69015         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
69016         * lib/unistdio/ulc-printf-parse.c: New file.
69017         * lib/unistdio/ulc-snprintf.c: New file.
69018         * lib/unistdio/ulc-sprintf.c: New file.
69019         * lib/unistdio/ulc-vasnprintf.c: New file.
69020         * lib/unistdio/ulc-vasprintf.c: New file.
69021         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
69022         * lib/unistdio/ulc-vsnprintf.c: New file.
69023         * lib/unistdio/ulc-vsprintf.c: New file.
69024         * lib/unistdio/u8-asnprintf.c: New file.
69025         * lib/unistdio/u8-asprintf.c: New file.
69026         * lib/unistdio/u8-printf-parse.c: New file.
69027         * lib/unistdio/u8-snprintf.c: New file.
69028         * lib/unistdio/u8-sprintf.c: New file.
69029         * lib/unistdio/u8-vasnprintf.c: New file.
69030         * lib/unistdio/u8-vasprintf.c: New file.
69031         * lib/unistdio/u8-vsnprintf.c: New file.
69032         * lib/unistdio/u8-vsprintf.c: New file.
69033         * lib/unistdio/u8-u8-asnprintf.c: New file.
69034         * lib/unistdio/u8-u8-asprintf.c: New file.
69035         * lib/unistdio/u8-u8-snprintf.c: New file.
69036         * lib/unistdio/u8-u8-sprintf.c: New file.
69037         * lib/unistdio/u8-u8-vasnprintf.c: New file.
69038         * lib/unistdio/u8-u8-vasprintf.c: New file.
69039         * lib/unistdio/u8-u8-vsnprintf.c: New file.
69040         * lib/unistdio/u8-u8-vsprintf.c: New file.
69041         * lib/unistdio/u16-asnprintf.c: New file.
69042         * lib/unistdio/u16-asprintf.c: New file.
69043         * lib/unistdio/u16-printf-parse.c: New file.
69044         * lib/unistdio/u16-snprintf.c: New file.
69045         * lib/unistdio/u16-sprintf.c: New file.
69046         * lib/unistdio/u16-vasnprintf.c: New file.
69047         * lib/unistdio/u16-vasprintf.c: New file.
69048         * lib/unistdio/u16-vsnprintf.c: New file.
69049         * lib/unistdio/u16-vsprintf.c: New file.
69050         * lib/unistdio/u16-u16-asnprintf.c: New file.
69051         * lib/unistdio/u16-u16-asprintf.c: New file.
69052         * lib/unistdio/u16-u16-snprintf.c: New file.
69053         * lib/unistdio/u16-u16-sprintf.c: New file.
69054         * lib/unistdio/u16-u16-vasnprintf.c: New file.
69055         * lib/unistdio/u16-u16-vasprintf.c: New file.
69056         * lib/unistdio/u16-u16-vsnprintf.c: New file.
69057         * lib/unistdio/u16-u16-vsprintf.c: New file.
69058         * lib/unistdio/u32-asnprintf.c: New file.
69059         * lib/unistdio/u32-asprintf.c: New file.
69060         * lib/unistdio/u32-printf-parse.c: New file.
69061         * lib/unistdio/u32-snprintf.c: New file.
69062         * lib/unistdio/u32-sprintf.c: New file.
69063         * lib/unistdio/u32-vasnprintf.c: New file.
69064         * lib/unistdio/u32-vasprintf.c: New file.
69065         * lib/unistdio/u32-vsnprintf.c: New file.
69066         * lib/unistdio/u32-vsprintf.c: New file.
69067         * lib/unistdio/u32-u32-asnprintf.c: New file.
69068         * lib/unistdio/u32-u32-asprintf.c: New file.
69069         * lib/unistdio/u32-u32-snprintf.c: New file.
69070         * lib/unistdio/u32-u32-sprintf.c: New file.
69071         * lib/unistdio/u32-u32-vasnprintf.c: New file.
69072         * lib/unistdio/u32-u32-vasprintf.c: New file.
69073         * lib/unistdio/u32-u32-vsnprintf.c: New file.
69074         * lib/unistdio/u32-u32-vsprintf.c: New file.
69075         * tests/unistdio/test-ulc-asnprintf1.c: New file.
69076         * tests/unistdio/test-ulc-asnprintf1.h: New file.
69077         * tests/unistdio/test-ulc-printf1.h: New file.
69078         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
69079         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
69080         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
69081         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
69082         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
69083         * tests/unistdio/test-ulc-vasprintf1.c: New file.
69084         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
69085         * tests/unistdio/test-ulc-vsprintf1.c: New file.
69086         * tests/unistdio/test-u8-asnprintf1.c: New file.
69087         * tests/unistdio/test-u8-asnprintf1.h: New file.
69088         * tests/unistdio/test-u8-printf1.h: New file.
69089         * tests/unistdio/test-u8-vasnprintf1.c: New file.
69090         * tests/unistdio/test-u8-vasnprintf2.c: New file.
69091         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
69092         * tests/unistdio/test-u8-vasnprintf3.c: New file.
69093         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
69094         * tests/unistdio/test-u8-vasprintf1.c: New file.
69095         * tests/unistdio/test-u8-vsnprintf1.c: New file.
69096         * tests/unistdio/test-u8-vsprintf1.c: New file.
69097         * tests/unistdio/test-u16-asnprintf1.c: New file.
69098         * tests/unistdio/test-u16-asnprintf1.h: New file.
69099         * tests/unistdio/test-u16-printf1.h: New file.
69100         * tests/unistdio/test-u16-vasnprintf1.c: New file.
69101         * tests/unistdio/test-u16-vasnprintf2.c: New file.
69102         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
69103         * tests/unistdio/test-u16-vasnprintf3.c: New file.
69104         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
69105         * tests/unistdio/test-u16-vasprintf1.c: New file.
69106         * tests/unistdio/test-u16-vsnprintf1.c: New file.
69107         * tests/unistdio/test-u16-vsprintf1.c: New file.
69108         * tests/unistdio/test-u32-asnprintf1.c: New file.
69109         * tests/unistdio/test-u32-asnprintf1.h: New file.
69110         * tests/unistdio/test-u32-printf1.h: New file.
69111         * tests/unistdio/test-u32-vasnprintf1.c: New file.
69112         * tests/unistdio/test-u32-vasnprintf2.c: New file.
69113         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
69114         * tests/unistdio/test-u32-vasnprintf3.c: New file.
69115         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
69116         * tests/unistdio/test-u32-vasprintf1.c: New file.
69117         * tests/unistdio/test-u32-vsnprintf1.c: New file.
69118         * tests/unistdio/test-u32-vsprintf1.c: New file.
69119         * modules/unistdio/base: New file.
69120         * modules/unistdio/u-printf-args: New file.
69121         * modules/unistdio/ulc-asnprintf: New file.
69122         * modules/unistdio/ulc-asprintf: New file.
69123         * modules/unistdio/ulc-fprintf: New file.
69124         * modules/unistdio/ulc-printf-parse: New file.
69125         * modules/unistdio/ulc-snprintf: New file.
69126         * modules/unistdio/ulc-sprintf: New file.
69127         * modules/unistdio/ulc-vasnprintf: New file.
69128         * modules/unistdio/ulc-vasprintf: New file.
69129         * modules/unistdio/ulc-vfprintf: New file.
69130         * modules/unistdio/ulc-vsnprintf: New file.
69131         * modules/unistdio/ulc-vsprintf: New file.
69132         * modules/unistdio/u8-asnprintf: New file.
69133         * modules/unistdio/u8-asprintf: New file.
69134         * modules/unistdio/u8-printf-parse: New file.
69135         * modules/unistdio/u8-snprintf: New file.
69136         * modules/unistdio/u8-sprintf: New file.
69137         * modules/unistdio/u8-vasnprintf: New file.
69138         * modules/unistdio/u8-vasprintf: New file.
69139         * modules/unistdio/u8-vsnprintf: New file.
69140         * modules/unistdio/u8-vsprintf: New file.
69141         * modules/unistdio/u8-u8-asnprintf: New file.
69142         * modules/unistdio/u8-u8-asprintf: New file.
69143         * modules/unistdio/u8-u8-snprintf: New file.
69144         * modules/unistdio/u8-u8-sprintf: New file.
69145         * modules/unistdio/u8-u8-vasnprintf: New file.
69146         * modules/unistdio/u8-u8-vasprintf: New file.
69147         * modules/unistdio/u8-u8-vsnprintf: New file.
69148         * modules/unistdio/u8-u8-vsprintf: New file.
69149         * modules/unistdio/u16-asnprintf: New file.
69150         * modules/unistdio/u16-asprintf: New file.
69151         * modules/unistdio/u16-printf-parse: New file.
69152         * modules/unistdio/u16-snprintf: New file.
69153         * modules/unistdio/u16-sprintf: New file.
69154         * modules/unistdio/u16-vasnprintf: New file.
69155         * modules/unistdio/u16-vasprintf: New file.
69156         * modules/unistdio/u16-vsnprintf: New file.
69157         * modules/unistdio/u16-vsprintf: New file.
69158         * modules/unistdio/u16-u16-asnprintf: New file.
69159         * modules/unistdio/u16-u16-asprintf: New file.
69160         * modules/unistdio/u16-u16-snprintf: New file.
69161         * modules/unistdio/u16-u16-sprintf: New file.
69162         * modules/unistdio/u16-u16-vasnprintf: New file.
69163         * modules/unistdio/u16-u16-vasprintf: New file.
69164         * modules/unistdio/u16-u16-vsnprintf: New file.
69165         * modules/unistdio/u16-u16-vsprintf: New file.
69166         * modules/unistdio/u32-asnprintf: New file.
69167         * modules/unistdio/u32-asprintf: New file.
69168         * modules/unistdio/u32-printf-parse: New file.
69169         * modules/unistdio/u32-snprintf: New file.
69170         * modules/unistdio/u32-sprintf: New file.
69171         * modules/unistdio/u32-vasnprintf: New file.
69172         * modules/unistdio/u32-vasprintf: New file.
69173         * modules/unistdio/u32-vsnprintf: New file.
69174         * modules/unistdio/u32-vsprintf: New file.
69175         * modules/unistdio/u32-u32-asnprintf: New file.
69176         * modules/unistdio/u32-u32-asprintf: New file.
69177         * modules/unistdio/u32-u32-snprintf: New file.
69178         * modules/unistdio/u32-u32-sprintf: New file.
69179         * modules/unistdio/u32-u32-vasnprintf: New file.
69180         * modules/unistdio/u32-u32-vasprintf: New file.
69181         * modules/unistdio/u32-u32-vsnprintf: New file.
69182         * modules/unistdio/u32-u32-vsprintf: New file.
69183         * modules/unistdio/ulc-asnprintf-tests: New file.
69184         * modules/unistdio/ulc-vasnprintf-tests: New file.
69185         * modules/unistdio/ulc-vasprintf-tests: New file.
69186         * modules/unistdio/ulc-vsnprintf-tests: New file.
69187         * modules/unistdio/ulc-vsprintf-tests: New file.
69188         * modules/unistdio/u8-asnprintf-tests: New file.
69189         * modules/unistdio/u8-vasnprintf-tests: New file.
69190         * modules/unistdio/u8-vasprintf-tests: New file.
69191         * modules/unistdio/u8-vsnprintf-tests: New file.
69192         * modules/unistdio/u8-vsprintf-tests: New file.
69193         * modules/unistdio/u16-asnprintf-tests: New file.
69194         * modules/unistdio/u16-vasnprintf-tests: New file.
69195         * modules/unistdio/u16-vasprintf-tests: New file.
69196         * modules/unistdio/u16-vsnprintf-tests: New file.
69197         * modules/unistdio/u16-vsprintf-tests: New file.
69198         * modules/unistdio/u32-asnprintf-tests: New file.
69199         * modules/unistdio/u32-vasnprintf-tests: New file.
69200         * modules/unistdio/u32-vasprintf-tests: New file.
69201         * modules/unistdio/u32-vsnprintf-tests: New file.
69202         * modules/unistdio/u32-vsprintf-tests: New file.
69203         * MODULES.html.sh (Unicode string functions): Add the new modules.
69204
69205 2007-07-01  Bruno Haible  <bruno@clisp.org>
69206
69207         * lib/sprintf.c (sprintf): Limit the available length estimation,
69208         to avoid address wraparound.
69209         * lib/vsprintf.c (vsprintf): Likewise.
69210         * modules/sprintf-posix (Dependencies): Add stdint.
69211         * modules/vsprintf-posix (Dependencies): Likewise.
69212
69213 2007-07-01  Bruno Haible  <bruno@clisp.org>
69214
69215         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
69216         Windows PATH as well. Conservative double-quoting. Comments.
69217
69218 2007-07-01  Bruno Haible  <bruno@clisp.org>
69219             Eric Blake  <ebb9@byu.net>
69220             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69221
69222         * gnulib-tool (self_abspathname): Fix algorithm to cope with
69223         empty components in $PATH, denoting '.'.
69224
69225 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69226
69227         * gnulib-tool: Fix indentation.
69228         (func_create_megatestdir): Likewise.
69229         Report by Bruno Haible.
69230
69231 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69232
69233         Sync from Automake.
69234         * build-aux/gnupload: Fix shell portability issues with for loops.
69235         Report by Karl Berry.
69236
69237 2007-06-29  Simon Josefsson  <simon@josefsson.org>
69238
69239         * build-aux/maint.mk (POURL): Use translationproject.org.
69240
69241 2007-06-27  Simon Josefsson  <simon@josefsson.org>
69242             Bruno Haible  <bruno@clisp.org>
69243
69244         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
69245         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
69246         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
69247         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
69248         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
69249
69250 2007-06-27  Bruno Haible  <bruno@clisp.org>
69251
69252         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
69253         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
69254
69255 2007-06-26  Karl Berry  <karl@gnu.org>
69256
69257         * MODULES.html.sh: remove xreadlink-with-size.
69258
69259 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69260
69261         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
69262         method that I hope also handles the double-include problem noted
69263         by Bruno Haible in
69264         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
69265
69266 2007-06-23  Bruno Haible  <bruno@clisp.org>
69267
69268         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69269         Don't let the 'mostlyclean' target fail if the last subdirectory could
69270         not be removed.
69271         Reported by Karl Berry.
69272
69273 2007-06-23  Bruno Haible  <bruno@clisp.org>
69274
69275         * gnulib-tool (echo): Add a speedier workaround for ksh.
69276         * tests/test-echo.sh: Likewise.
69277
69278 2007-06-23  Bruno Haible  <bruno@clisp.org>
69279
69280         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
69281         * tests/test-echo.sh: Likewise.
69282
69283 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69284
69285         * gnulib-tool (IFS): Initialize early, so we don't set it to
69286         empty later.
69287         (self_abspathname): Rewrite algorithm to set it, reindent.
69288         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
69289         (func_create_megatestdir): Merge some sed scripts.
69290
69291 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69292
69293         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
69294         exposed by Sun Studio 11 cc on Solaris 8.
69295
69296 2007-06-22  Bruno Haible  <bruno@clisp.org>
69297
69298         * gnulib-tool (echo): Ensure the echo primitive does not interpret
69299         backslashes.
69300         * tests/test-echo.sh: New file.
69301
69302 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69303
69304         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
69305         simplify `sed_replace_build_aux' scripts, they are portable but
69306         echoing them with `echo' is not.
69307         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
69308
69309 2007-06-21  Karl Berry  <karl@gnu.org>
69310
69311         * config/srclist.txt: guess we can't handle the licenses via
69312         srclist at the moment.
69313
69314 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
69315
69316         * MODULES.html.sh: Add include_next.
69317         * modules/include_next: New file.
69318
69319 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
69320
69321         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
69322         INCLUDE_NEXT.
69323         (gl_CHECK_NEXT_HEADERS): New macro.
69324         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
69325         the obsolescent gl_ABSOLUTE_HEADER.
69326         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
69327         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
69328         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
69329         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69330         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
69331         * m4/math_h.m4 (gl_MATH_H): Likewise.
69332         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
69333         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69334         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
69335         * m4/stdint.m4 (gl_STDINT_H): Likewise.
69336         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
69337         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
69338         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
69339         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69340         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
69341         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
69342         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
69343         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
69344         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
69345         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
69346         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69347         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69348         * m4/inttypes.m4 (gl_INTTYPES_H): Define
69349         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
69350         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
69351         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
69352         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
69353         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
69354         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
69355         * lib/float_.h: Likewise.
69356         * lib/inttypes_.h: Likewise.
69357         * lib/math_.h: Likewise.
69358         * lib/search_.h: Likewise.
69359         * lib/signal_.h: Likewise.
69360         * lib/stdint_.h: Likewise.
69361         * lib/stdio_.h: Likewise.
69362         * lib/stdlib_.h: Likewise.
69363         * lib/string_.h: Likewise.
69364         * lib/sys_stat_.h: Likewise.
69365         * lib/sys_time_.h: Likewise.
69366         * lib/time_.h: Likewise.
69367         * lib/unistd_.h: Likewise.
69368         * lib/wchar_.h: Likewise.
69369         * lib/wctype_.h: Likewise.
69370         * lib/dirent_.h: Likewise.
69371         * lib/iconv_.h: Likewise.
69372         * lib/locale_.h: Likewise.
69373         * lib/netinet_in_.h: Likewise.
69374         * lib/sys_select_.h: Likewise.
69375         * lib/sys_socket_.h: Likewise.
69376         * lib/sysexits_.h: Likewise.
69377         * modules/fcntl (Depends-on): Depend on include_next, not
69378         absolute_header.
69379         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
69380         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
69381         * modules/fchdir: Likewise.
69382         * modules/float: Likewise.
69383         * modules/iconv_open: Likewise.
69384         * modules/inttypes: Likewise.
69385         * modules/locale: Likewise.
69386         * modules/math: Likewise.
69387         * modules/netinet_in: Likewise.
69388         * modules/search: Likewise.
69389         * modules/signal: Likewise.
69390         * modules/stdint: Likewise.
69391         * modules/stdio: Likewise.
69392         * modules/stdlib: Likewise.
69393         * modules/string: Likewise.
69394         * modules/sys_select: Likewise.
69395         * modules/sys_socket: Likewise.
69396         * modules/sys_stat: Likewise.
69397         * modules/sys_time: Likewise.
69398         * modules/sysexits: Likewise.
69399         * modules/time: Likewise.
69400         * modules/unistd: Likewise.
69401         * modules/wchar: Likewise.
69402         * modules/wctype: Likewise.
69403         * modules/sys_stat: Change maintainer to "all".
69404         * modules/unistd: Likewise.
69405
69406 2007-06-20  Karl Berry  <karl@gnu.org>
69407
69408         * config/srclist.txt: track www changes in license files.
69409
69410 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
69411
69412         * build-aux/bootstrap: Remove stray dot.
69413         Make sure build_aux settings are honored when linking
69414         gnulib_extra_files.
69415
69416 2007-06-19  Eric Blake  <ebb9@byu.net>
69417
69418         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69419         Allow compilation on cygwin.
69420
69421 2007-06-19  Jim Meyering  <jim@meyering.net>
69422
69423         xreadlink-with-size: Remove module.  No longer used.
69424         Ex-callers now use xreadlink or mreadlink-with-size.
69425         * modules/xreadlink-with-size: Remove module.
69426         * lib/xreadlink-with-size.c: Remove file.
69427         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
69428         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
69429         just before the function definition *is* accurate.
69430
69431         Eliminate one way canonicalize_filename_mode could exit.
69432         * lib/canonicalize.c (canonicalize_filename_mode):
69433         Use mreadlink_with_size, not xreadlink_with_size.
69434
69435 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
69436
69437         Detect porting problems to FreeBSD/arm, which has time_t wider than
69438         long int.  Original problem reported for GNU diff by Xin Li in
69439         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
69440         * modules/getdate (Depends-on): Add intprops, verify.
69441         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
69442         is an integer type no wider than long int.
69443
69444 2007-06-18  Jim Meyering  <jim@meyering.net>
69445
69446         New module: mreadlink-with-size.
69447         * MODULES.html.sh: Add mreadlink-with-size.
69448         * modules/mreadlink-with-size: New module
69449         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
69450         not xreadlink-with-size.
69451         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
69452
69453 2007-06-16  Bruno Haible  <bruno@clisp.org>
69454
69455         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
69456         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
69457         Reported by Gary V. Vaughan <gary@gnu.org>.
69458
69459 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
69460
69461         Revamp lchown so that it lives in unistd.h where it belongs.
69462         * lib/lchown.h: Remove.
69463         * lib/dirchownmod.c: Don't include lib/lchown.h.
69464         * lib/fchownat.c: Likewise.
69465         * lib/openat.c: Likewise.
69466         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
69467         does not follow symlinks.
69468         (EOPNOTSUPP): Define if not defined.
69469         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
69470         is defined to 0.
69471         (lchown): New decl.
69472         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
69473         Do not check for lchown decl.
69474         Set REPLACE_LCHOWN.
69475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
69476         REPLACE_LCHOWN.
69477         * modules/chown: Make it clear it follows symlinks.
69478         * modules/lchown: Make it clear it doesn't follow symlinks.
69479         (Files): Remove lib/lchown.h
69480         (Depends-on): Add unistd.
69481         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
69482         (Include): Include <unistd.h>, not "lchown.h".
69483         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
69484         REPLACE_LCHOWN.
69485
69486 2007-06-15  Jim Meyering  <jim@meyering.net>
69487
69488         Change license (GPL to LGPL) of fsusage and dependents.
69489         * modules/fsusage (License): Change to LGPL.
69490         * modules/full-read (License): Likewise.
69491         * modules/full-write (License): Likewise.
69492         * modules/safe-read (License): Likewise.
69493         * modules/safe-write (License): Likewise.
69494
69495 2007-06-14  Ben Pfaff  <blp@gnu.org>
69496
69497         Missing part of allocsa -> malloca transition.
69498         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
69499         gl_MALLOCA.
69500
69501 2007-06-12  Bruno Haible  <bruno@clisp.org>
69502
69503         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
69504         to ia64, x86_64, i386.
69505         Reported by Eric Blake.
69506
69507 2007-06-12  Bruno Haible  <bruno@clisp.org>
69508
69509         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
69510         cross-compiling to x86_64.
69511
69512 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
69513
69514         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
69515         glitch reported by Ralf Wildenhues in
69516         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
69517
69518         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
69519         Vin Shelton.
69520
69521 2007-06-11  Bruno Haible  <bruno@clisp.org>
69522
69523         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
69524         replacement string.
69525         Reported by Eric Blake.
69526
69527 2007-06-10  Bruno Haible  <bruno@clisp.org>
69528
69529         Prepare vasnprintf code for use with Unicode strings.
69530         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
69531         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
69532         TYPE_U32_STRING.
69533         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
69534         a_u32_string variants.
69535         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69536         * lib/printf-args.c: Don't include config.h and the specification
69537         header if PRINTF_FETCHARGS is already defined.
69538         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69539         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
69540         TYPE_U16_STRING, TYPE_U32_STRING.
69541         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
69542         u16_directive, u16_directives, u32_directive, u32_directives): New
69543         types.
69544         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
69545         New declarations.
69546         * lib/printf-parse.c: Don't include config.h and the specification
69547         header if PRINTF_PARSE is already defined. Eliminate the set of
69548         parameters for WIDE_CHAR_VERSION; the user of this file must provide
69549         them now. Include c-ctype.h.
69550         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
69551         directive and CHAR_T_ONLY_ASCII.
69552         * lib/vasnprintf.c: Don't include config.h and the specification header
69553         if VASNPRINTF is already defined.
69554         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
69555         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
69556         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
69557         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
69558         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
69559         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
69560         code accordingly.
69561         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
69562         pad_ourselves also in this case, with the 'c' and 's' directives, and
69563         with a different notion of "width".
69564         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
69565
69566 2007-06-10  Bruno Haible  <bruno@clisp.org>
69567
69568         * modules/unistr/u32-mbsnlen: New file.
69569         * lib/unistr/u32-mbsnlen.c: New file.
69570
69571         * modules/unistr/u16-mbsnlen: New file.
69572         * lib/unistr/u16-mbsnlen.c: New file.
69573
69574         * modules/unistr/u8-mbsnlen: New file.
69575         * lib/unistr/u8-mbsnlen.c: New file.
69576
69577         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
69578         declarations.
69579
69580 2007-06-10  Bruno Haible  <bruno@clisp.org>
69581
69582         * lib/string_.h (mbsnlen): New declaration.
69583         * lib/mbsnlen.c: New file.
69584         * m4/mbsnlen.m4: New file.
69585         * modules/mbsnlen: New file.
69586         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
69587         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
69588         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
69589
69590 2007-06-10  Bruno Haible  <bruno@clisp.org>
69591
69592         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
69593
69594 2007-06-10  Bruno Haible  <bruno@clisp.org>
69595
69596         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
69597         * lib/mbuiter.h: Likewise.
69598
69599 2007-06-10  Bruno Haible  <bruno@clisp.org>
69600
69601         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
69602         declaration.
69603
69604 2007-06-10  Karl Berry  <karl@gnu.org>
69605
69606         * config/srclist.txt: remove gettext entries, Bruno prefers
69607         to update individually.
69608
69609 2007-06-10  Bruno Haible  <bruno@clisp.org>
69610
69611         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
69612         'maxlen'. Ensure only length + width bytes are allocated, not
69613         length + 1 + width.
69614
69615 2007-06-09  Bruno Haible  <bruno@clisp.org>
69616
69617         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
69618         (CHAR_T): Remove macro.
69619         (VASNPRINTF): Update.
69620
69621 2007-06-09  Bruno Haible  <bruno@clisp.org>
69622
69623         * MODULES.html.sh (Unicode string functions): Add the new modules.
69624
69625         * modules/uniconv/u32-conv-to-enc: New file.
69626         * lib/uniconv/u32-conv-to-enc.c: New file.
69627         * modules/uniconv/u32-conv-to-enc-tests: New file.
69628         * tests/uniconv/test-u32-conv-to-enc.c: New file.
69629
69630         * modules/uniconv/u16-conv-to-enc: New file.
69631         * lib/uniconv/u16-conv-to-enc.c: New file.
69632         * lib/uniconv/u-conv-to-enc.h: New file.
69633         * modules/uniconv/u16-conv-to-enc-tests: New file.
69634         * tests/uniconv/test-u16-conv-to-enc.c: New file.
69635
69636         * modules/uniconv/u8-conv-to-enc: New file.
69637         * lib/uniconv/u8-conv-to-enc.c: New file.
69638         * modules/uniconv/u8-conv-to-enc-tests: New file.
69639         * tests/uniconv/test-u8-conv-to-enc.c: New file.
69640
69641         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
69642         u32_conv_to_encoding): New declarations.
69643
69644 2007-06-09  Bruno Haible  <bruno@clisp.org>
69645
69646         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
69647
69648 2007-06-09  Bruno Haible  <bruno@clisp.org>
69649
69650         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
69651         * modules/malloca: Renamed from modules/allocsa, updated.
69652         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
69653         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
69654         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
69655         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
69656         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
69657         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
69658         * modules/xmalloca: Renamed from modules/xallocsa, updated.
69659         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
69660         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
69661         * modules/c-strcasestr (Depends-on): Update.
69662         * lib/c-strcasestr.c: Update.
69663         * modules/c-strstr (Depends-on): Update.
69664         * lib/c-strstr.c: Update.
69665         * modules/canonicalize-lgpl (Depends-on): Update.
69666         * lib/canonicalize-lgpl.c: Update.
69667         * modules/clean-temp (Depends-on): Update.
69668         * lib/clean-temp.c: Update.
69669         * modules/csharpcomp (Depends-on): Update.
69670         * lib/csharpcomp.c: Update.
69671         * modules/csharpexec (Depends-on): Update.
69672         * lib/csharpexec.c: Update.
69673         * modules/javacomp (Depends-on): Update.
69674         * lib/javacomp.c: Update.
69675         * modules/javaexec (Depends-on): Update.
69676         * lib/javaexec.c: Update.
69677         * modules/mbscasestr (Depends-on): Update.
69678         * lib/mbscasestr.c: Update.
69679         * modules/mbsstr (Depends-on): Update.
69680         * lib/mbsstr.c: Update.
69681         * modules/setenv (Depends-on): Update.
69682         * lib/setenv.c: Update.
69683         * modules/strcasestr (Depends-on): Update.
69684         * lib/strcasestr.c: Update.
69685         * modules/striconveha (Depends-on): Update.
69686         * lib/striconveha.c: Update.
69687         * modules/relocatable-prog-wrapper (Files): Update.
69688         * lib/relocwrapper.c: Update.
69689         * build-aux/install-reloc: Update.
69690         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
69691
69692 2007-06-08  Bruno Haible  <bruno@clisp.org>
69693
69694         Port to uClibc.
69695         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
69696         * lib/fpurge.c (fpurge): Likewise.
69697         * lib/freading.c (freading): Likewise.
69698         * lib/fseeko.c (rpl_fseeko): Likewise.
69699         * lib/fseterr.c (fseterr): Likewise.
69700         * lib/fwriting.c (fwriting): Likewise.
69701         * tests/test-fflush.c (main): Avoid a failure on uClibc.
69702
69703 2007-06-08  Bruno Haible  <bruno@clisp.org>
69704
69705         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
69706         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
69707         * modules/gettext (Files): Add m4/intlmacosx.m4.
69708
69709 2007-06-07  Bruno Haible  <bruno@clisp.org>
69710
69711         * modules/localename-tests: New file.
69712         * tests/test-localename.c: New file.
69713
69714         New module 'localename'.
69715         * lib/localename.h: New file.
69716         * lib/localename.c: New file, from GNU gettext.
69717         * m4/localename.m4: New file.
69718         * modules/localename: New file.
69719
69720 2007-06-07  Bruno Haible  <bruno@clisp.org>
69721
69722         Work around the lack of <wchar.h> on some builds of uClibc.
69723         * doc/headers/wchar.texi: Update.
69724         * lib/wchar_.h: Include <wchar.h> only if it exists.
69725         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
69726         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
69727         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
69728         doesn't exist.
69729         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
69730         * modules/mbfile (Depends-on): Add wchar.
69731         * modules/mbiter (Depends-on): Likewise.
69732         * modules/mbuiter (Depends-on): Likewise.
69733         Reported by Simon Josefsson.
69734
69735 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69736
69737         Work around problem reported by Steven M. Schweda in
69738         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
69739         Tru64 5.1B with the Compaq compiler environment installed declares
69740         an 'isblank' function but does not define it in the C library.
69741         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
69742         * lib/regex_internal.h (isblank): Likewise.
69743         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
69744         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69745
69746 2007-06-05  Bruno Haible  <bruno@clisp.org>
69747
69748         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
69749         ia64.
69750         * modules/printf-safe: New file.
69751         * modules/fprintf-posix (Depends-on): Add printf-safe.
69752         * modules/printf-posix (Depends-on): Likewise.
69753         * modules/snprintf-posix (Depends-on): Likewise.
69754         * modules/sprintf-posix (Depends-on): Likewise.
69755         * modules/vasnprintf-posix (Depends-on): Likewise.
69756         * modules/vasprintf-posix (Depends-on): Likewise.
69757         * modules/vfprintf-posix (Depends-on): Likewise.
69758         * modules/vprintf-posix (Depends-on): Likewise.
69759         * modules/vsnprintf-posix (Depends-on): Likewise.
69760         * modules/vsprintf-posix (Depends-on): Likewise.
69761         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
69762         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
69763         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
69764         "no" on i386, x86_64, ia64.
69765         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
69766         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69767         on i386, x86_64, ia64.
69768         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
69769         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69770         on i386, x86_64, ia64.
69771         * tests/test-vasnprintf-posix.c: Include float.h.
69772         (LDBL80_WORDS): New macro.
69773         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69774         on i386, x86_64, ia64.
69775         * tests/test-vasprintf-posix.c: Include float.h.
69776         (LDBL80_WORDS): New macro.
69777         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69778         on i386, x86_64, ia64.
69779         * tests/test-snprintf-posix.c: Include float.h.
69780         * tests/test-sprintf-posix.c: Likewise.
69781         * tests/test-vsnprintf-posix.c: Likewise.
69782         * tests/test-vsprintf-posix.c: Likewise.
69783
69784 2007-06-05  Bruno Haible  <bruno@clisp.org>
69785
69786         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
69787         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
69788         non-IEEE numbers on i386, x86_64, ia64.
69789         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
69790         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
69791         * tests/test-isnanl.h: Include float.h.
69792         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
69793
69794 2007-06-05  Bruno Haible  <bruno@clisp.org>
69795
69796         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
69797         also the %a / %A. Handle the %a / %A code before this extra handling.
69798
69799 2007-06-05  Bruno Haible  <bruno@clisp.org>
69800
69801         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
69802         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
69803
69804 2007-06-05  Bruno Haible  <bruno@clisp.org>
69805
69806         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
69807         typo in variable name.
69808
69809 2007-06-05  Eric Blake  <ebb9@byu.net>
69810
69811         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
69812         Reported by Simon Josefsson.
69813
69814 2007-06-04  Bruno Haible  <bruno@clisp.org>
69815
69816         Avoid test failures on some PowerPC platforms.
69817         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
69818         Define differently for PowerPC.
69819         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
69820         Reported by Gary V. Vaughan <gary@gnu.org>.
69821
69822 2007-06-02  Bruno Haible  <bruno@clisp.org>
69823
69824         Fix test-stdint failure on FreeBSD/ia64.
69825         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
69826         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
69827         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
69828         * doc/headers/stdint.texi: Update.
69829
69830 2007-06-01  Bruno Haible  <bruno@clisp.org>
69831
69832         * tests/test-binary-io.c (main): Pass a third argument to open().
69833         Reported by Gary V. Vaughan <gary@gnu.org>.
69834
69835 2007-06-01  Bruno Haible  <bruno@clisp.org>
69836
69837         * doc/functions/frexpl.texi: Update for mingw.
69838
69839 2007-06-01  Bruno Haible  <bruno@clisp.org>
69840
69841         * tests/test-lseek.c (main): Disable test of errno for invalid third
69842         argument.
69843         * doc/functions/lseek.texi: Update.
69844         Reported by Gary V. Vaughan <gary@gnu.org>.
69845
69846 2007-05-28  Bruno Haible  <bruno@clisp.org>
69847
69848         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
69849
69850 2007-05-31  Eric Blake  <ebb9@byu.net>
69851
69852         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
69853         cross compiling.
69854
69855 2007-05-30  Eric Blake  <ebb9@byu.net>
69856         and Bruno Haible  <bruno@clisp.org>
69857
69858         Work around mingw test failures exposed by m4-1.4.9b.
69859         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
69860         * tests/test-unistd.c: Disable uid_t and git_t tests for the
69861         moment.
69862
69863 2007-05-30  Bruno Haible  <bruno@clisp.org>
69864
69865         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
69866         assuming that they are closed. Needed on HP-UX 11.
69867
69868 2007-05-29  Bruno Haible  <bruno@clisp.org>
69869
69870         Fix a problem with #include_next.
69871         * lib/dirent_.h: Split the double-inclusion guard.
69872         * lib/fcntl_.h: Likewise.
69873         * lib/float_.h: Likewise.
69874         * lib/iconv_.h: Likewise.
69875         * lib/inttypes_.h: Likewise.
69876         * lib/locale_.h: Likewise.
69877         * lib/math_.h: Likewise.
69878         * lib/netinet_in_.h: Likewise.
69879         * lib/search_.h: Likewise.
69880         * lib/signal_.h: Likewise.
69881         * lib/stdint_.h: Likewise.
69882         * lib/stdio_.h: Likewise.
69883         * lib/stdlib_.h: Likewise.
69884         * lib/string_.h: Likewise.
69885         * lib/sys_select_.h: Likewise.
69886         * lib/sys_socket_.h: Likewise.
69887         * lib/sys_stat_.h: Likewise.
69888         * lib/sys_time_.h: Likewise.
69889         * lib/sysexits_.h: Likewise.
69890         * lib/time_.h: Likewise.
69891         * lib/unistd_.h: Likewise.
69892         * lib/wchar_.h: Likewise.
69893         * lib/wctype_.h: Likewise.
69894
69895 2007-05-29  Bruno Haible  <bruno@clisp.org>
69896
69897         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
69898         for the moment.
69899
69900 2007-05-29  Bruno Haible  <bruno@clisp.org>
69901
69902         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
69903         invocation.
69904         Reported by Eric Blake.
69905
69906 2007-05-29  Bruno Haible  <bruno@clisp.org>
69907
69908         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
69909         compiling case.
69910
69911 2007-05-29  Eric Blake  <ebb9@byu.net>
69912             Bruno Haible  <bruno@clisp.org>
69913
69914         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
69915         cross compiles.
69916
69917 2007-05-28  Eric Blake  <ebb9@byu.net>
69918
69919         * modules/closein-tests (test_closein_LDADD): Support test on
69920         cygwin with libtool.
69921
69922 2007-05-28  Bruno Haible  <bruno@clisp.org>
69923
69924         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
69925         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
69926         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
69927         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
69928         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
69929         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
69930         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
69931         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
69932         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
69933
69934 2007-05-28  Eric Blake  <ebb9@byu.net>
69935
69936         Unconditionally include <config.h> in unit tests.
69937         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
69938         * tests/test-allocsa.c, tests/test-arcfour.c,
69939         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
69940         tests/test-array_list.c, tests/test-array_oset.c,
69941         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
69942         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
69943         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
69944         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
69945         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
69946         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
69947         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
69948         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
69949         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
69950         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
69951         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
69952         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
69953         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
69954         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
69955         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
69956         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
69957         test-md5.c, test-memmem.c, test-printf-posix.c,
69958         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
69959         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
69960         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
69961         test-strcasestr.c, test-striconv.c, test-striconveh.c,
69962         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
69963         test-vasnprintf-posix2.c, test-vasnprintf.c,
69964         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
69965         test-vfprintf-posix.c, test-vprintf-posix.c,
69966         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
69967         test-xvasprintf.c: Likewise.
69968
69969 2007-05-28  Bruno Haible  <bruno@clisp.org>
69970
69971         * gnulib-tool (func_import): Remember the --with-tests command-line
69972         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
69973         Reported by Eric Blake.
69974
69975 2007-05-28  Bruno Haible  <bruno@clisp.org>
69976
69977         * modules/ftell-tests: New file.
69978         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
69979         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
69980
69981         * lib/ftell.c: New file.
69982         * modules/ftell: New file.
69983         * m4/ftell.m4: New file.
69984         * doc/functions/ftell.texi: Update.
69985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
69986         REPLACE_FTELL.
69987         * lib/stdio_.h (rpl_ftell): New declaration.
69988         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
69989         REPLACE_FTELL.
69990
69991 2007-05-28  Eric Blake  <ebb9@byu.net>
69992
69993         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
69994
69995 2007-05-28  Bruno Haible  <bruno@clisp.org>
69996
69997         * modules/fseek-tests: New file.
69998         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
69999         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
70000
70001         * lib/fseek.c: New file.
70002         * modules/fseek: New file.
70003         * m4/fseek.m4: New file.
70004         * doc/functions/fseek.texi: Update.
70005         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
70006         REPLACE_FSEEK.
70007         * lib/stdio_.h (rpl_fseek): New declaration.
70008         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
70009         REPLACE_FSEEK.
70010
70011 2007-05-28  Bruno Haible  <bruno@clisp.org>
70012
70013         * lib/stdio_.h (fflush): More comments.
70014
70015 2007-05-28  Bruno Haible  <bruno@clisp.org>
70016
70017         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
70018         runtime test.
70019
70020 2007-05-28  Eric Blake  <ebb9@byu.net>
70021
70022         Improve lseek module.
70023         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
70024         * lib/unistd_.h (lseek): Scale back link warning message.
70025         * tests/test-lseek.c: Beef up test.
70026         * tests/test-lseek.sh: Exercise more facets of lseek.
70027         Reported by Bruno Haible.
70028
70029 2007-05-28  Bruno Haible  <bruno@clisp.org>
70030
70031         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
70032         to define.
70033
70034 2007-05-27  Bruno Haible  <bruno@clisp.org>
70035
70036         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
70037
70038 2007-05-27  Bruno Haible  <bruno@clisp.org>
70039
70040         * modules/openmp: New file.
70041         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
70042         Noah Misch.
70043
70044 2007-05-26  Bruno Haible  <bruno@clisp.org>
70045
70046         * modules/chdir-long (Depends-on): Add fchdir.
70047         * modules/chdir-safer (Depends-on): Likewise.
70048         * modules/fts (Depends-on): Likewise.
70049         * modules/fts-lgpl (Depends-on): Likewise.
70050         * modules/openat (Depends-on): Likewise.
70051         * modules/savewd (Depends-on): Likewise.
70052
70053 2007-05-24  Eric Blake  <ebb9@byu.net>
70054
70055         Fix lseek on mingw.
70056         * modules/lseek: New module.
70057         * m4/lseek.m4: New file.
70058         * lib/lseek.c: New file.
70059         * modules/lseek-tests: New file.
70060         * tests/test-lseek.c: New file.
70061         * tests/test-lseek.sh: New file.
70062         * MODULES.html.sh: Document lseek module.
70063         * modules/fflush (Depends-on): Add lseek, fseeko.
70064         * modules/fseeko (Depends-on): Likewise.
70065         * modules/ftello (Depends-on): Likewise.
70066         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
70067         broken.
70068         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
70069         broken.
70070         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
70071         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
70072         * lib/ftello.c (rpl_ftello): Likewise.
70073         * tests/test-fseeko.c (main): Test this.
70074         * tests/test-fseeko.sh: Likewise.
70075         * tests/test-ftello.c (main): Likewise.
70076         * tests/test-ftello.sh: Likewise.
70077         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
70078         implies replacing fseek.
70079         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
70080         HAVE_FTELLO.
70081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
70082         * modules/unistd (Makefile.am): Likewise.
70083         * lib/unistd_.h (lseek): Declare a replacement.
70084         * doc/functions/lseek.texi (lseek): Document this fix.
70085         * doc/functions/fseek.texi (fseek): Likewise.
70086         * doc/functions/ftell.texi (ftell): Likewise.
70087
70088 2007-05-24  Bruno Haible  <bruno@clisp.org>
70089
70090         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
70091         in the printed representation of a NaN.
70092         * tests/test-vasprintf-posix.c (test_function): Likewise.
70093         * tests/test-snprintf-posix.h (test_function): Likewise.
70094         * tests/test-sprintf-posix.h (test_function): Likewise.
70095         Reported by Eric Blake.
70096
70097 2007-05-23  Eric Blake  <ebb9@byu.net>
70098
70099         Fix fseeko/ftello on cygwin 1.5.24.
70100         * doc/functions/fseeko.texi (fseeko): Document the fix.
70101         * doc/functions/ftello.texi (ftello): Document the fix.
70102         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
70103         * doc/functions/stdout.text (stdout): New file.
70104         * doc/functions/stderr.text (stderr): New file.
70105         * doc/gnulib.texi (Function Substitutes): Use new files.
70106         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
70107         prior to 1.7.0.
70108         * tests/test-ftello.c (main): Likewise for ftello.
70109         * tests/test-fseeko.sh: New file.
70110         * tests/test-ftello.sh: New file.
70111         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
70112         with seekable stdin.
70113         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
70114         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
70115         (gl_REPLACE_FSEEKO): New macro.
70116         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
70117         * modules/fseeko (Files): Distribute fseeko.c.
70118         * modules/ftello (Files): Distribute ftello.c.
70119         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
70120         mode.
70121         * lib/ftello.c (rpl_ftello): New file.
70122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
70123         fseeko, ftello.
70124         (gl_STDIN_LARGE_OFFSET): New macro.
70125         * modules/stdio (Makefile.am): Perform the replacement.
70126         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
70127
70128 2007-05-23  Bruno Haible  <bruno@clisp.org>
70129
70130         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
70131         GNULIB_POSIXCHECK is defined.
70132
70133 2007-05-21  Bruno Haible  <bruno@clisp.org>
70134
70135         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
70136         Check also the output for NaN arguments. When cross-compiling, guess
70137         no on IRIX.
70138         * lib/vasnprintf.c: Update comments.
70139         * tests/test-vasnprintf-posix.c (strisnan): New function.
70140         (test_function): Use it.
70141         * tests/test-vasprintf-posix.c (strisnan): New function.
70142         (test_function): Use it.
70143         * tests/test-snprintf-posix.h (strisnan): New function.
70144         (test_function): Use it.
70145         * tests/test-sprintf-posix.h (strisnan): New function.
70146         (test_function): Use it.
70147         Reported by Eric Blake.
70148
70149 2007-05-20  Bruno Haible  <bruno@clisp.org>
70150
70151         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
70152         numbers that fails on BeOS.
70153         * doc/functions/frexpl.texi: Update.
70154
70155 2007-05-20  Jim Meyering  <jim@meyering.net>
70156
70157         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
70158         forced upon us by glibc-2.6.
70159
70160 2007-05-20  Bruno Haible  <bruno@clisp.org>
70161
70162         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
70163         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
70164         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
70165         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
70166         NEED_PRINTF_INFINITE.
70167         (is_infinitel): New function.
70168         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
70169         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
70170         gl_PREREQ_VASNPRINTF_INFINITE.
70171         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
70172         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70173         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
70174         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
70175         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
70176         gl_PREREQ_VASNPRINTF_INFINITE.
70177         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70178         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70179         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70180         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70181         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70182         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70183         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70184         * doc/functions/fprintf.texi: Update.
70185         * doc/functions/printf.texi: Update.
70186         * doc/functions/snprintf.texi: Update.
70187         * doc/functions/sprintf.texi: Update.
70188         * doc/functions/vfprintf.texi: Update.
70189         * doc/functions/vprintf.texi: Update.
70190         * doc/functions/vsnprintf.texi: Update.
70191         * doc/functions/vsprintf.texi: Update.
70192
70193 2007-05-20  Bruno Haible  <bruno@clisp.org>
70194
70195         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
70196         was not found in libc.
70197         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
70198
70199 2007-05-20  Bruno Haible  <bruno@clisp.org>
70200
70201         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70202         printed as "-nan" instead of "nan".
70203         * tests/test-vasprintf-posix.c (test_function): Likewise.
70204         * tests/test-snprintf-posix.h (test_function): Likewise.
70205         * tests/test-sprintf-posix.h (test_function): Likewise.
70206         Needed for HP-UX 11.
70207
70208 2007-05-20  Jim Meyering  <jim@meyering.net>
70209
70210         Fix buggy test for the fchownat-deref bug.
70211         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
70212         symlink required for the run-test.  Without it, this test would
70213         always declare that fchownat doesn't work, and client code would
70214         unnecessarily use the replacement function with fixed libc.
70215         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
70216         Reported by Greg Schafer.
70217
70218 2007-05-19  Bruno Haible  <bruno@clisp.org>
70219
70220         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
70221         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
70222         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
70223         Needed for IRIX 6.5 and Solaris 2.5.1.
70224
70225 2007-05-19  Bruno Haible  <bruno@clisp.org>
70226
70227         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
70228         (test_function): Skip tests involving -0.0 on platforms where
70229         -0.0 = 0.0.
70230         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
70231         (test_function): Skip tests involving -0.0 on platforms where
70232         -0.0 = 0.0.
70233         * tests/test-snprintf-posix.h (have_minus_zero): New function.
70234         (test_function): Skip tests involving -0.0 on platforms where
70235         -0.0 = 0.0.
70236         * tests/test-sprintf-posix.h (have_minus_zero): New function.
70237         (test_function): Skip tests involving -0.0 on platforms where
70238         -0.0 = 0.0.
70239         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
70240         tests.
70241         * tests/test-printf-posix.h (test_function): Likewise.
70242         * tests/test-printf-posix.output: Remove all -0.0 related results.
70243         Needed for IRIX 6.5.
70244
70245 2007-05-19  Bruno Haible  <bruno@clisp.org>
70246
70247         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70248         printed as "nan0x7fffffff" instead of "nan".
70249         * tests/test-vasprintf-posix.c (test_function): Likewise.
70250         * tests/test-snprintf-posix.h (test_function): Likewise.
70251         * tests/test-sprintf-posix.h (test_function): Likewise.
70252         * tests/test-fprintf-posix.h (NaN): Remove macro.
70253         (test_function): Remove all NaN related tests.
70254         * tests/test-printf-posix.h (NaN): Remove macro.
70255         (test_function): Remove all NaN related tests.
70256         * tests/test-printf-posix.output: Remove all NaN related results.
70257         Needed for IRIX 6.5.
70258
70259 2007-05-19  Bruno Haible  <bruno@clisp.org>
70260
70261         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
70262         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
70263
70264 2007-05-19  Bruno Haible  <bruno@clisp.org>
70265
70266         * lib/float_.h: New file.
70267         * m4/float_h.m4: New file.
70268         * modules/float: New file.
70269         * modules/isnanl (Dependencies): Add float.
70270         * modules/isnanl-nolibm (Dependencies): Likewise.
70271         * modules/mathl (Dependencies): Likewise.
70272         * modules/printf-frexpl (Dependencies): Likewise.
70273         * modules/signbit (Dependencies): Likewise.
70274         * modules/vasnprintf (Dependencies): Likewise.
70275         * doc/headers/float.texi: Update.
70276
70277 2007-05-19  Jim Meyering  <jim@meyering.net>
70278
70279         * lib/utimens.c (gl_futimens): Rename from futimens,
70280         now that glibc-2.6 declares futimens.
70281         * lib/utimens.h: Likewise.
70282
70283 2007-05-19  Bruno Haible  <bruno@clisp.org>
70284
70285         Avoid test failures on mingw.
70286         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
70287         * tests/test-printf-posix.sh: Likewise.
70288         * tests/test-vfprintf-posix.sh: Likewise.
70289         * tests/test-vprintf-posix.sh: Likewise.
70290
70291 2007-05-19  Bruno Haible  <bruno@clisp.org>
70292
70293         Fix *printf result for NaN, Inf, -0.0 on mingw.
70294         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
70295         * lib/vasnprintf.c: Include math.h and isnan.h.
70296         (is_infinite_or_zero): New function.
70297         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
70298         values in the %f, %F, %e, %E, %g, %G directives.
70299         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
70300         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70301         gl_PRINTF_INFINITE and test its result. Invoke
70302         gl_PREREQ_VASNPRINTF_INFINITE.
70303         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70304         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70305         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70306         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70307         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70308         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70309         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70310         * doc/functions/fprintf.texi: Update.
70311         * doc/functions/printf.texi: Update.
70312         * doc/functions/snprintf.texi: Update.
70313         * doc/functions/sprintf.texi: Update.
70314         * doc/functions/vfprintf.texi: Update.
70315         * doc/functions/vprintf.texi: Update.
70316         * doc/functions/vsnprintf.texi: Update.
70317         * doc/functions/vsprintf.texi: Update.
70318
70319 2007-05-19  Bruno Haible  <bruno@clisp.org>
70320
70321         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
70322         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
70323         Instead of multiplying with 10^k, set extra_zeroes to k.
70324         (scale10_round_long_double): Remove function.
70325
70326 2007-05-18  Bruno Haible  <bruno@clisp.org>
70327
70328         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
70329         introduced on 2007-05-06.
70330
70331 2007-05-18  Bruno Haible  <bruno@clisp.org>
70332
70333         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
70334         %g directives.
70335         * tests/test-vasprintf-posix.c (test_function): Likewise.
70336         * tests/test-snprintf-posix.h (test_function): Likewise.
70337         * tests/test-sprintf-posix.h (test_function): Likewise.
70338
70339 2007-05-18  Bruno Haible  <bruno@clisp.org>
70340
70341         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
70342         (strmatch): New function.
70343         (test_function): Test the %f directive on numbers of various exponents.
70344         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
70345         (strmatch): New function.
70346         (test_function): Test the %f directive on numbers of various exponents.
70347         * tests/test-snprintf-posix.h (strmatch): New function.
70348         (test_function): Test the %f directive on numbers of various exponents.
70349         * tests/test-sprintf-posix.h (strmatch): New function.
70350         (test_function): Test the %f directive on numbers of various exponents.
70351         * tests/test-snprintf-posix.c (SIZEOF): New macro.
70352         * tests/test-sprintf-posix.c (SIZEOF): New macro.
70353         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
70354         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
70355
70356 2007-05-18  Bruno Haible  <bruno@clisp.org>
70357
70358         Add support for 'long double' number output.
70359         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
70360         * lib/vasnprintf.c: Include math.h and float+.h.
70361         (mp_limb_t): New type.
70362         (GMP_LIMB_BITS): New macro.
70363         (mp_twolimb_t): New type.
70364         (GMP_TWOLIMB_BITS): New macro.
70365         (mpn_t): New type.
70366         (multiply, divide, convert_to_decimal, decode_long_double,
70367         scale10_round_long_double, scale10_round_decimal_long_double,
70368         floorlog10l): New functions.
70369         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
70370         for the %f, %F, %e, %E, %g, %G directives.
70371         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
70372         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70373         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
70374         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
70375         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70376         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70377         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70378         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70379         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70380         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70381         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70382         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
70383         * modules/snprintf-posix (Depends-on): Likewise.
70384         * modules/sprintf-posix (Depends-on): Likewise.
70385         * modules/vasnprintf-posix (Depends-on): Likewise.
70386         * modules/vasprintf-posix (Depends-on): Likewise.
70387         * modules/vfprintf-posix (Depends-on): Likewise.
70388         * modules/vsnprintf-posix (Depends-on): Likewise.
70389         * modules/vsprintf-posix (Depends-on): Likewise.
70390         * modules/vasnprintf (Files): Add lib/float+.h.
70391         * doc/functions/fprintf.texi: Update.
70392         * doc/functions/printf.texi: Update.
70393         * doc/functions/snprintf.texi: Update.
70394         * doc/functions/sprintf.texi: Update.
70395         * doc/functions/vfprintf.texi: Update.
70396         * doc/functions/vprintf.texi: Update.
70397         * doc/functions/vsnprintf.texi: Update.
70398         * doc/functions/vsprintf.texi: Update.
70399
70400 2007-05-18  Bruno Haible  <bruno@clisp.org>
70401
70402         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
70403
70404 2007-05-18  Bruno Haible  <bruno@clisp.org>
70405
70406         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
70407         for printing 64-bit integers. Needed for mingw.
70408
70409 2007-05-18  Bruno Haible  <bruno@clisp.org>
70410
70411         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70412         gl_FUNC_FREXPL_WORKS.
70413         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
70414
70415 2007-05-18  Bruno Haible  <bruno@clisp.org>
70416
70417         * modules/frexpl-nolibm-tests: New file.
70418
70419         * modules/frexpl-nolibm: New file.
70420         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
70421
70422 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70423
70424         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
70425         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70426         GCC 4.2, which otherwise issues a lot of warnings.
70427         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
70428         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
70429         Likewise.
70430         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
70431         * modules/iconv_open (iconv.h): Likewise.
70432         * modules/locale (locale.h): Likewise.
70433         * modules/netinet_in (netinet/in.h): Likewise.
70434         * modules/sys_select (sys_select.h): Likewise.
70435         * modules/sys_socket (sys/socket.h): Likewise.
70436         * modules/sys_stat (sys/stat.h): Likewise.
70437         * modules/sysexits (sysexits.h): Likewise.
70438         * modules/unistd (unistd.h): Likewise.
70439
70440 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70441
70442         * modules/closein-tests (Makefile.am): Distribute
70443         `test-closein.sh'.
70444
70445 2007-05-17  Bruno Haible  <bruno@clisp.org>
70446
70447         * tests/test-printf-posix.output: Renamed from
70448         tests/test-fprintf-posix.out.
70449         * modules/fprintf-posix-tests: Update.
70450         * modules/printf-posix-tests: Update.
70451         * modules/vfprintf-posix-tests: Update.
70452         * modules/vprintf-posix-tests: Update.
70453         * tests/test-fprintf-posix.sh: Update.
70454         * tests/test-printf-posix.sh: Update.
70455         * tests/test-vfprintf-posix.sh: Update.
70456         * tests/test-vprintf-posix.sh: Update.
70457         Reported by Ralf Wildenhues.
70458
70459 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70460
70461         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
70462         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70463         GCC 4.2, which otherwise issues a lot of warnings.
70464         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
70465         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
70466         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
70467         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
70468         it should no longer be needed.
70469         * lib/string_.h: Likewise.
70470         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
70471         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
70472         * modules/inttypes (inttypes.h): Likewise.
70473         * modules/math (math.h): Likewise.
70474         * modules/search (search.h): Likewise.
70475         * modules/signal (signal.h): Likewise.
70476         * modules/stdint (stdint.h): Likewise.
70477         * modules/stdio (stdio.h): Likewise.
70478         * modules/stdlib (stdlib.h): Likewise.
70479         * modules/string (string.h): Likewise.
70480         * modules/sys_time (sys/time.h): Likewise.
70481         * modules/time (time.h): Likewise.
70482         * modules/wchar (wchar.h): Likewise.
70483         * modules/wctype (wtype.h): Likewise.
70484
70485 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
70486
70487         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
70488
70489 2007-05-13  Bruno Haible  <bruno@clisp.org>
70490
70491         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
70492         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70493         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
70494         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70495         (gl_PREREQ_STRTOK_R): Don't require it here.
70496
70497 2007-05-13  Bruno Haible  <bruno@clisp.org>
70498
70499         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
70500         when used in C++ mode.
70501
70502 2007-05-12  Bruno Haible  <bruno@clisp.org>
70503
70504         * lib/linebuffer.h: Tweak doc.
70505         * lib/linebuffer.c: Likewise.
70506
70507 2007-05-12  James Youngman  <jay@gnu.org>
70508
70509         * lib/linebuffer.c (readlinebuffer_delim): New function,
70510         like readlinebuffer, but use a caller-specified delimiter.
70511         (readlinebuffer): Just call readlinebuffer_delim with '\n'
70512         as the delimiter.
70513         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
70514
70515 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70516
70517         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
70518         * modules/openat (Files): Remove openat-die.c.
70519         (Depends-on): Add openat-die.
70520         * modules/openat-die: New module.
70521
70522 2007-05-06  Bruno Haible  <bruno@clisp.org>
70523
70524         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
70525         Update with info about Cygwin.
70526         * doc/functions/fprintf.texi: Update.
70527         * doc/functions/printf.texi: Update.
70528         * doc/functions/snprintf.texi: Update.
70529         * doc/functions/sprintf.texi: Update.
70530         * doc/functions/vfprintf.texi: Update.
70531         * doc/functions/vprintf.texi: Update.
70532         * doc/functions/vsnprintf.texi: Update.
70533         * doc/functions/vsprintf.texi: Update.
70534         Reported by Eric Blake.
70535
70536 2007-05-06  Bruno Haible  <bruno@clisp.org>
70537
70538         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
70539         padding ourselves for the floating-point directives.
70540         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
70541         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
70542         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70543         gl_PRINTF_FLAG_ZERO and test its result. Invoke
70544         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
70545         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70546         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70547         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70548         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70549         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70550         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70551         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70552         * tests/test-snprintf-posix.h (test_function): Also check the width
70553         and some flags in the %f directive.
70554         * tests/test-sprintf-posix.h (test_function): Likewise.
70555         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70556         * tests/test-vasprintf-posix.c (test_function): Likewise.
70557         * doc/functions/fprintf.texi: Update.
70558         * doc/functions/printf.texi: Update.
70559         * doc/functions/snprintf.texi: Update.
70560         * doc/functions/sprintf.texi: Update.
70561         * doc/functions/vfprintf.texi: Update.
70562         * doc/functions/vprintf.texi: Update.
70563         * doc/functions/vsnprintf.texi: Update.
70564         * doc/functions/vsprintf.texi: Update.
70565
70566 2007-05-06  Bruno Haible  <bruno@clisp.org>
70567
70568         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
70569         pass the ' flag character to sprintf or snprintf.
70570         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
70571         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
70572         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70573         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
70574         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
70575         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70576         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70577         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70578         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70579         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70580         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70581         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70582         * tests/test-snprintf-posix.h (test_function): Also check the grouping
70583         flag.
70584         * tests/test-sprintf-posix.h (test_function): Likewise.
70585         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70586         * tests/test-vasprintf-posix.c (test_function): Likewise.
70587         * doc/functions/fprintf.texi: Update.
70588         * doc/functions/printf.texi: Update.
70589         * doc/functions/snprintf.texi: Update.
70590         * doc/functions/sprintf.texi: Update.
70591         * doc/functions/vfprintf.texi: Update.
70592         * doc/functions/vprintf.texi: Update.
70593         * doc/functions/vsnprintf.texi: Update.
70594         * doc/functions/vsprintf.texi: Update.
70595
70596 2007-05-01  Bruno Haible  <bruno@clisp.org>
70597
70598         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
70599
70600 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
70601
70602         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
70603         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
70604
70605 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70606
70607         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
70608         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
70609         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
70610
70611 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
70612
70613         * lib/argp-help.c (struct hol_entry): New member `ord'.
70614         (HOL_ENTRY_PTRCMP): Use ord for comparison
70615         (hol_sort): Initialize ord.
70616
70617 2007-05-01  Bruno Haible  <bruno@clisp.org>
70618
70619         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
70620         Reported by Eric Blake.
70621         * doc/gnulib.texi (Function Substitutes): Update.
70622
70623 2007-05-01  Bruno Haible  <bruno@clisp.org>
70624
70625         * doc/functions.texi: Remove file, now redundant through
70626         doc/functions/*.texi.
70627
70628 2007-05-01  Bruno Haible  <bruno@clisp.org>
70629
70630         * modules/argp (Depends-on): Add sleep.
70631
70632 2007-05-01  Bruno Haible  <bruno@clisp.org>
70633
70634         * modules/sleep-tests: New file.
70635         * tests/test-sleep.c: New file.
70636
70637         * modules/sleep: New file.
70638         * lib/sleep.c: New file.
70639         * m4/sleep.m4: New file.
70640         * lib/unistd_.h (sleep): New declaration.
70641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
70642         HAVE_SLEEP.
70643         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
70644         * doc/functions/sleep.texi: Document the sleep module.
70645
70646 2007-05-01  Bruno Haible  <bruno@clisp.org>
70647
70648         * lib/sigprocmask.h: Remove file.
70649         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
70650         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
70651         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
70652         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
70653         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
70654         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
70655         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
70656         HAVE_SIGSET_T as a shell variable.
70657         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
70658         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
70659         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
70660         (Depends-on): Add signal. Remove verify.
70661         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
70662         (Include): Mention <signal.h> instead of sigprocmask.h.
70663         * NEWS: Mention the change.
70664         * lib/fatal-signal.c: Don't include sigprocmask.h.
70665
70666 2007-05-01  Bruno Haible  <bruno@clisp.org>
70667
70668         * modules/signal: New file.
70669         * lib/signal_.h: New file.
70670         * m4/signal_h.m4: New file.
70671
70672 2007-05-01  Bruno Haible  <bruno@clisp.org>
70673
70674         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
70675         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
70676         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
70677         HAVE_WCTYPE_CTMP_BUG into wctype.h.
70678
70679 2007-05-01  Bruno Haible  <bruno@clisp.org>
70680
70681         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
70682         configure time.
70683         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
70684         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
70685         * modules/sys_stat (Makefile.am): Substitute their values into
70686         sys/stat.h.
70687
70688 2007-05-01  Bruno Haible  <bruno@clisp.org>
70689
70690         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
70691         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
70692         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
70693
70694 2007-05-01  Bruno Haible  <bruno@clisp.org>
70695
70696         * doc/header/assert.texi: Undo last change: don't mention the gnulib
70697         'assert' module here.
70698
70699 2007-05-01  Bruno Haible  <bruno@clisp.org>
70700
70701         * doc/functions/*.texi: New files.
70702         * doc/functions/google-ranking.txt: New file.
70703         * doc/gnulib.texi (Function Substitutes): New chapter.
70704         (ctime, inet_ntoa): Remove sections.
70705         * doc/ctime.texi: Remove file.
70706         * doc/inet_ntoa.texi: Remove file.
70707         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
70708         dependencies.
70709         (%.info): New rule, specifying a --reference-limit.
70710
70711 2007-05-01  Bruno Haible  <bruno@clisp.org>
70712
70713         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
70714
70715 2007-05-01  Bruno Haible  <bruno@clisp.org>
70716
70717         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
70718         the portability of 'mkdir' to mingw systems.
70719
70720 2007-05-01  Bruno Haible  <bruno@clisp.org>
70721
70722         * doc/headers/google-ranking.txt: New file.
70723
70724 2007-04-30  Eric Blake  <ebb9@byu.net>
70725
70726         Prefer fseeko to fseek.
70727         * modules/getpass (Depends-on): Add fseeko.
70728         * lib/getpass.c (getpass): Use fseeko, not fseek.
70729
70730 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
70731
70732         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
70733         assumes the sorting is stable, while most qsort implementations
70734         are not.  Use argument addresses to ensure they never compare as
70735         equal.
70736
70737         * tests/test-argp-2.sh (usage-indent test): Fix output
70738         (func_compare): Restore diff options
70739         * tests/test-argp.c: Restore #include "progname.h"
70740
70741 2007-04-29  Bruno Haible  <bruno@clisp.org>
70742
70743         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
70744         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70745         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
70746         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70747         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
70748         (configure.ac): Define CHECK_SNPRINTF_POSIX.
70749         (TESTS, check_PROGRAMS): Add test-snprintf.
70750         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
70751         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
70752         (TESTS, check_PROGRAMS): Add test-vsnprintf.
70753         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
70754         assertions that fail on HP-UX, OSF/1, or IRIX.
70755         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
70756
70757 2007-04-29  Bruno Haible  <bruno@clisp.org>
70758
70759         * MODULES.html.sh (posix_functions): Remove 'contents'.
70760
70761 2007-04-29  Karl Berry  <karl@gnu.org>
70762
70763         * config/srclist.txt (gendocs_template_min): new entry.
70764
70765 2007-04-29  Bruno Haible  <bruno@clisp.org>
70766
70767         Work around fpurge bug on BSD systems.
70768         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
70769         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
70770         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
70771         fpurge to rpl_fpurge if the system already has this function.
70772         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
70773         the case where the system already has this function. Correct invariants
70774         on BSD systems.
70775         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
70776         BSD systems.
70777
70778 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
70779
70780         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
70781         proposed by Sven Verdoolaege.
70782
70783         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
70784         options.
70785         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
70786         (usage and help tests): Update
70787
70788 2007-04-29  Bruno Haible  <bruno@clisp.org>
70789
70790         * tests/test-fflush.c (main): Use a file of size 17, not 10.
70791         Print more information in case of failure. Disable a test on BeOS.
70792
70793 2007-04-29  Bruno Haible  <bruno@clisp.org>
70794
70795         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
70796         This helps debugging on systems on which no gdb is available.
70797
70798 2007-04-29  Bruno Haible  <bruno@clisp.org>
70799
70800         * lib/freading.h: Improve comments.
70801         * lib/fwriting.h: Likewise.
70802         * tests/test-freading.c (main): Don't check freading immediately after
70803         repositioning. Needed for glibc.
70804
70805 2007-04-29  Bruno Haible  <bruno@clisp.org>
70806
70807         * lib/freading.c (freading): Trivial simplification.
70808
70809 2007-04-28  Bruno Haible  <bruno@clisp.org>
70810
70811         * tests/test-fwriting.c (main): Also test the interaction between
70812         fflush and fwriting.
70813         * modules/fwriting-tests (Depends-on): Add fflush.
70814
70815         * tests/test-freading.c (main): Also test the interaction between
70816         fflush and freading.
70817         * modules/freading-tests (Depends-on): Add fflush.
70818
70819 2007-04-28  Bruno Haible  <bruno@clisp.org>
70820
70821         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
70822         fseeko and ftello.
70823         Suggested by Eric Blake.
70824
70825 2007-04-28  Jim Meyering  <jim@meyering.net>
70826
70827         Avoid false-negative in gl_STDINT_H's C99 conformance test.
70828         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
70829         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
70830
70831 2007-04-27  Eric Blake  <ebb9@byu.net>
70832
70833         * doc/headers/assert.texi (assert.h): Document assert module use.
70834
70835 2007-04-27  Bruno Haible  <bruno@clisp.org>
70836
70837         * doc/headers/*.texi: New files.
70838         * doc/gnulib.texi (Header File Substitutes): New chapter.
70839         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
70840         dependencies.
70841         (standards.info ,standards.html, standards.dvi): Update dependencies.
70842         (mostlyclean, clean): New targets.
70843
70844 2007-04-27  Bruno Haible  <bruno@clisp.org>
70845
70846         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
70847         * modules/sysexits (Files, Makefile.am): Update.
70848
70849         * lib/sys_socket_.h: Renamed from lib/socket_.h.
70850         * modules/sys_socket (Files, Makefile.am): Update.
70851
70852         * lib/sys_stat_.h: Renamed from lib/stat_.h.
70853         * modules/sys_stat (Files, Makefile.am): Update.
70854
70855 2007-04-27  Eric Blake  <ebb9@byu.net>
70856
70857         * lib/freading.h: Improve comments.
70858         * lib/fwriting.h: Likewise.
70859         * lib/fflush.c: Likewise.
70860
70861         Fix closein for mingw.
70862         * modules/closein-tests: Add tests for closein.
70863         * tests/test-closein.c: New file.
70864         * tests/test-closein.sh: Likewise.
70865         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
70866         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
70867
70868 2007-04-27  Bruno Haible  <bruno@clisp.org>
70869
70870         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
70871         version is < 6.
70872         * lib/math_.h [__DECC]: Likewise.
70873         * lib/stdio_.h [__DECC]: Likewise.
70874         * lib/stdlib_.h [__DECC]: Likewise.
70875         * lib/string_.h [__DECC]: Likewise.
70876         * lib/time_.h [__DECC]: Likewise.
70877         * lib/wchar_.h [__DECC]: Likewise.
70878         * lib/wctype_.h [__DECC]: Likewise.
70879
70880 2007-04-27  Bruno Haible  <bruno@clisp.org>
70881
70882         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
70883
70884 2007-04-27  Bruno Haible  <bruno@clisp.org>
70885
70886         * lib/fflush.c: Add comments.
70887         * modules/fpurge-tests (Depends-on): Add fflush.
70888         * modules/freadable-tests (Depends-on): Likewise.
70889         * modules/fwritable-tests (Depends-on): Likewise.
70890
70891 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
70892
70893         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
70894         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
70895         Report by Bruno Haible <bruno@clisp.org>.
70896
70897 2007-04-26  Eric Blake  <ebb9@byu.net>
70898
70899         Fix fflush on mingw.
70900         * modules/fflush (Depends-on): Add freading.
70901         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
70902         but unread data.
70903
70904 2007-04-26  Eric Blake  <ebb9@byu.net>
70905         and Bruno Haible  <bruno@clisp.org>
70906
70907         Implement freading and fwriting.
70908         * lib/freading.c: New file.
70909         * lib/freading.h: Likewise.
70910         * m4/freading.m4: Likewise.
70911         * modules/freading: Likewise.
70912         * modules/freading-tests: Likewise.
70913         * tests/test-freading.c: Likewise.
70914         * lib/fwriting.c: New file.
70915         * lib/fwriting.h: Likewise.
70916         * m4/fwriting.m4: Likewise.
70917         * modules/fwriting: Likewise.
70918         * modules/fwriting-tests: Likewise.
70919         * tests/test-fwriting.c: Likewise.
70920         * MODULES.html.sh (File stream based Input/Output): Mention them.
70921
70922 2007-04-26  Bruno Haible  <bruno@clisp.org>
70923
70924         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
70925         'long' when we assume it.
70926         Suggested by Eric Blake.
70927
70928 2007-04-26  Bruno Haible  <bruno@clisp.org>
70929
70930         Ensure fseeko, ftello are declared on glibc systems.
70931         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
70932         * modules/fseeko (configure.ac-early): Likewise.
70933         * modules/ftello (configure.ac-early): Likewise.
70934         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
70935         AC_FUNC_FSEEKO for this.
70936         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
70937         (gl_CHECK_FSEEKO): Remove macro.
70938
70939 2007-04-26  Bruno Haible  <bruno@clisp.org>
70940
70941         * tests/test-fflush.c (main): Also check the ftell result after
70942         fflush and fseek/fseeko.
70943         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
70944         file descriptor position cache in the stream.
70945         * lib/fseeko.c (rpl_fseeko): Likewise.
70946
70947 2007-04-26  Bruno Haible  <bruno@clisp.org>
70948
70949         * modules/fflush-tests (Depends-on): Add fseeko.
70950
70951 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
70952             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70953
70954         * lib/argz_.h: ensure error_t definition is obtained in same
70955         mechanism system argz.h would have.
70956         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
70957         argz facilities are known bad.  Err on the side of caution if
70958         cross-compiling.
70959
70960 2007-04-25  Eric Blake  <ebb9@byu.net>
70961
70962         * lib/fpurge.c (includes): Use stdlib.h for free.
70963         * tests/test-fflush.c (main): Also test fflush-fseeko.
70964
70965 2007-04-25  Bruno Haible  <bruno@clisp.org>
70966
70967         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
70968         * lib/fseeko.c: New file.
70969         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
70970         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
70971         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
70972         gl_FUNC_FSEEKO.
70973         (gl_FUNC_FSEEKO): Invoke it.
70974         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
70975         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
70976         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
70977
70978 2007-04-25  Bruno Haible  <bruno@clisp.org>
70979
70980         * modules/fflush (Depends-on): Add ftello.
70981
70982 2007-04-25  Bruno Haible  <bruno@clisp.org>
70983
70984         * modules/ftello-tests: New file.
70985         * tests/test-ftello.c: New file.
70986
70987         * modules/ftello: New file.
70988         * m4/ftello.m4: New file.
70989         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
70990         HAVE_FTELLO.
70991         * lib/stdio_.h (ftello): New declaration.
70992         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
70993         HAVE_FTELLO.
70994
70995 2007-04-25  Bruno Haible  <bruno@clisp.org>
70996
70997         * modules/fseeko-tests: New file.
70998         * tests/test-fseeko.c: New file.
70999
71000         * modules/fseeko: New file.
71001         * m4/fseeko.m4: New file.
71002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
71003         HAVE_FSEEKO.
71004         * lib/stdio_.h (fseeko): New declaration.
71005         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
71006         HAVE_FSEEKO.
71007
71008 2007-04-25  Bruno Haible  <bruno@clisp.org>
71009
71010         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
71011
71012 2007-04-25  Bruno Haible  <bruno@clisp.org>
71013
71014         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
71015         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
71016         * tests/test-unistd.c: Likewise.
71017         * tests/test-fcntl.c: Likewise.
71018
71019 2007-04-23  Eric Blake  <ebb9@byu.net>
71020
71021         * lib/fflush.c: Fix missing include.
71022         Reported by Bruno Haible.
71023
71024 2007-04-23  Bruno Haible  <bruno@clisp.org>
71025
71026         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
71027         Reported by Eric Blake.
71028
71029 2007-04-23  Bruno Haible  <bruno@clisp.org>
71030
71031         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
71032
71033 2007-04-23  Bruno Haible  <bruno@clisp.org>
71034
71035         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
71036
71037 2007-04-23  Bruno Haible  <bruno@clisp.org>
71038
71039         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
71040         Needed on HP-UX 11.
71041
71042 2007-04-16  Eric Blake  <ebb9@byu.net>
71043
71044         Make fflush rely on fpurge.
71045         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
71046         open coding all variants.
71047         * modules/fflush (Depends-on): Add fpurge and unistd.
71048         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
71049         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
71050
71051         Fix --with-tests compilation on cygwin.
71052         * modules/argmatch-tests (Makefile.am): List gnulib library first
71053         in LDADD.
71054         * modules/argp-tests (Makefile.am): Likewise.
71055         * modules/array-list-tests (Makefile.am): Likewise.
71056         * modules/array-oset-tests (Makefile.am): Likewise.
71057         * modules/avltree-list-tests (Makefile.am): Likewise.
71058         * modules/avltree-oset-tests (Makefile.am): Likewise.
71059         * modules/avltreehash-list-tests (Makefile.am): Likewise.
71060         * modules/carray-list-tests (Makefile.am): Likewise.
71061         * modules/dirname-tests (Makefile.am): Likewise.
71062         * modules/frexp-tests (Makefile.am): Likewise.
71063         * modules/isnanl-tests (Makefile.am): Likewise.
71064         * modules/linked-list-tests (Makefile.am): Likewise.
71065         * modules/linkedhash-list-tests (Makefile.am): Likewise.
71066         * modules/lock-tests (Makefile.am): Likewise.
71067         * modules/rbtree-list-tests (Makefile.am): Likewise.
71068         * modules/rbtree-oset-tests (Makefile.am): Likewise.
71069         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
71070         * modules/tls-tests (Makefile.am): Likewise.
71071         * modules/tsearch-tests (Makefile.am): Likewise.
71072         * modules/xvasprintf-tests (Makefile.am): Likewise.
71073
71074         Fix fpurge for cygwin.
71075         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
71076         value.
71077         * modules/fpurge-tests (Depends-on): Clean up trash.
71078
71079 2007-04-16  Simon Josefsson  <simon@josefsson.org>
71080
71081         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
71082
71083         * m4/autobuild.m4: Re-indent.
71084
71085 2007-04-13  Bruno Haible  <bruno@clisp.org>
71086
71087         * modules/fpurge-tests: New file.
71088         * tests/test-fpurge.c: New file.
71089
71090         * modules/fpurge: New file.
71091         * lib/fpurge.h: New file.
71092         * lib/fpurge.c: New file.
71093         * m4/fpurge.m4: New file.
71094
71095 2007-04-13  Bruno Haible  <bruno@clisp.org>
71096
71097         * modules/fbufmode-tests: New file.
71098         * tests/test-fbufmode.c: New file.
71099
71100         * modules/fbufmode: New file.
71101         * lib/fbufmode.h: New file.
71102         * lib/fbufmode.c: New file.
71103         * m4/fbufmode.m4: New file.
71104
71105 2007-04-13  Bruno Haible  <bruno@clisp.org>
71106
71107         * modules/fwritable-tests: New file.
71108         * tests/test-fwritable.c: New file.
71109
71110         * modules/fwritable: New file.
71111         * lib/fwritable.h: New file.
71112         * lib/fwritable.c: New file.
71113         * m4/fwritable.m4: New file.
71114
71115 2007-04-13  Bruno Haible  <bruno@clisp.org>
71116
71117         * modules/freadable-tests: New file.
71118         * tests/test-freadable.c: New file.
71119
71120         * modules/freadable: New file.
71121         * lib/freadable.h: New file.
71122         * lib/freadable.c: New file.
71123         * m4/freadable.m4: New file.
71124
71125 2007-04-13  Bruno Haible  <bruno@clisp.org>
71126
71127         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
71128         MOSTLYCLEANFILES.
71129
71130 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71131
71132         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
71133         gzip bootstrap.conf to avoid dragging in i18n machinery.
71134         (gnulib_tool_option): Use it.
71135
71136 2007-04-13  Bruno Haible  <bruno@clisp.org>
71137
71138         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
71139         %F directives.
71140         * tests/test-vasprintf-posix.c (test_function): Likewise.
71141         * tests/test-snprintf-posix.h (test_function): Likewise.
71142         * tests/test-sprintf-posix.h (test_function): Likewise.
71143         * tests/test-fprintf-posix.h (test_function): Likewise.
71144         * tests/test-printf-posix.h (test_function): Likewise.
71145         * tests/test-fprintf-posix.out: Likewise.
71146
71147 2007-04-13  Bruno Haible  <bruno@clisp.org>
71148
71149         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
71150         * modules/tls-tests (configure.ac): Likewise.
71151         Reported by Arto C. Nirkko <anirkko@insel.ch>.
71152
71153 2007-04-13  Bruno Haible  <bruno@clisp.org>
71154
71155         * lib/tls.c (glthread_tls_get): Fix return type.
71156         Patch by Arto C. Nirkko <anirkko@insel.ch>.
71157
71158 2007-04-12  Eric Blake  <ebb9@byu.net>
71159
71160         * modules/gettime (Depends-on): Remove gettime.
71161         Reported by Dmitry V. Levin.
71162
71163 2007-04-12  Bruno Haible  <bruno@clisp.org>
71164
71165         * modules/fflush (Include): Mention <stdio.h>.
71166         * modules/strtoimax (Include): Mention <inttypes.h>.
71167         * modules/strtoumax (Include): Likewise.
71168
71169 2007-04-12  Eric Blake  <ebb9@byu.net>
71170
71171         * .cvsignore: New file.
71172         * .gitignore: Likewise.
71173
71174 2007-04-12  Bruno Haible  <bruno@clisp.org>
71175
71176         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
71177         not before, since $(LDADD) often contains libgnu.a.
71178         * modules/striconv-tests (test_striconv_LDADD): Likewise.
71179         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
71180         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
71181         Needed on Cygwin.
71182
71183 2007-04-12  Eric Blake  <ebb9@byu.net>
71184
71185         Work around glibc's failure to flush stdin on fclose.
71186         * lib/closein.c (close_stdin): Flush stdin before closing.
71187
71188         Work around glibc's failure to reset seekable stdin on exit.
71189         * modules/closein: New module.
71190         * lib/closein.c: New file.
71191         * lib/closein.h: Likewise.
71192         * m4/closein.m4: Likewise.
71193         * MODULES.html.sh (File stream based Input/Output): Document it.
71194
71195 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71196
71197         * gnulib-tool: Rename generated 'autobuild' script to
71198         'do-autobuild' in --create-megatestdir output.
71199
71200         * doc/gnulib.texi (Build robot for gnulib): Fix.
71201
71202 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71203
71204         * modules/sysexits (Depends-on): Add absolute-header.
71205
71206 2007-04-12  Eric Blake  <ebb9@byu.net>
71207
71208         No need to preserve errno on success.
71209         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
71210         Reported by Bruno Haible.
71211
71212 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71213
71214         * MODULES.html.sh (Support for maintaining and releasing
71215         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
71216
71217 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71218
71219         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
71220
71221 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71222
71223         * modules/autobuild: New module.
71224
71225         * m4/autobuild.m4: New file.
71226
71227 2007-04-11  Bruno Haible  <bruno@clisp.org>
71228
71229         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
71230         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
71231         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
71232         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
71233         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
71234         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71235         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71236         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
71237         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71238         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71239         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
71240         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71241         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71242         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_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/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_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/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_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/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_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/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_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         Reported by Eric Blake.
71258
71259 2007-04-11  Bruno Haible  <bruno@clisp.org>
71260
71261         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
71262
71263 2007-04-10  Bruno Haible  <bruno@clisp.org>
71264
71265         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
71266         for NaN and Infinity. Needed on FreeBSD 6.1.
71267         * tests/test-vasnprintf-posix.c (test_function): Undo last change
71268         regarding results for "%010a" of Infinity and NaN.
71269         * tests/test-vasprintf-posix.c (test_function): Likewise.
71270         * tests/test-snprintf-posix.h (test_function): Likewise.
71271         * tests/test-sprintf-posix.h (test_function): Likewise.
71272         * tests/test-fprintf-posix.h (test_function): Likewise.
71273         * tests/test-printf-posix.h (test_function): Likewise.
71274         * tests/test-fprintf-posix.out: Likewise.
71275
71276 2007-04-10  Bruno Haible  <bruno@clisp.org>
71277
71278         * modules/locale-tests: New file.
71279         * tests/test-locale.c: New file.
71280
71281         * modules/locale: New file.
71282         * lib/locale_.h: New file.
71283         * m4/locale_h.m4: New file.
71284
71285 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
71286             Bruno Haible  <bruno@clisp.org>
71287
71288         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
71289         be determined, test for availability of the copysignf, copysign,
71290         copysignl functions.
71291         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
71292         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
71293         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
71294
71295 2007-04-09  Eric Blake  <ebb9@byu.net>
71296
71297         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
71298         * modules/stdio (Makefile.am): Support fflush.
71299         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
71300         * modules/fflush: New file.
71301         * lib/fflush.c: Likewise.
71302         * m4/fflush.m4: Likewise.
71303         * modules/fflush-tests: New test.
71304         * tests/test-fflush.c: Likewise.
71305         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
71306
71307 2007-04-06  Bruno Haible  <bruno@clisp.org>
71308
71309         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
71310         (VASNPRINTF): Use signbit for faster determination whether to print a
71311         minus sign.
71312         * modules/vasnprintf (Files): Remove lib/float+.h.
71313         * modules/fprintf-posix (Depends-on): Add signbit.
71314         * modules/snprintf-posix (Depends-on): Likewise.
71315         * modules/sprintf-posix (Depends-on): Likewise.
71316         * modules/vasnprintf-posix (Depends-on): Likewise.
71317         * modules/vasprintf-posix (Depends-on): Likewise.
71318         * modules/vfprintf-posix (Depends-on): Likewise.
71319         * modules/vsnprintf-posix (Depends-on): Likewise.
71320         * modules/vsprintf-posix (Depends-on): Likewise.
71321
71322 2007-04-06  Bruno Haible  <bruno@clisp.org>
71323
71324         * tests/test-frexp.c (main): Test also the sign bit of zero results.
71325         * tests/test-frexpl.c (main): Likewise.
71326         * tests/test-ldexpl.c (main): Likewise.
71327         * modules/frexp-tests (Depends-on): Add signbit.
71328         * modules/frexpl-tests (Depdends-on): Likewise.
71329         * modules/ldexpl-tests (Depdends-on): Likewise.
71330
71331 2007-04-06  Bruno Haible  <bruno@clisp.org>
71332
71333         * modules/signbit-tests: New file.
71334         * tests/test-signbit.c: New file.
71335
71336         * modules/signbit: New file.
71337         * lib/signbitf.c: New file.
71338         * lib/signbitd.c: New file.
71339         * lib/signbitl.c: New file.
71340         * m4/signbit.m4: New file.
71341         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
71342         (signbit): New macro.
71343         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
71344         REPLACE_SIGNBIT.
71345         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
71346         REPLACE_FREXPL into math.h.
71347
71348 2007-04-06  Bruno Haible  <bruno@clisp.org>
71349
71350         * modules/isnanf-nolibm-tests: New file.
71351         * tests/test-isnanf.c: New file.
71352
71353         * modules/isnanf-nolibm: New file.
71354         * lib/isnanf.h: New file.
71355         * lib/isnanf.c: New file.
71356         * lib/isnan.c: Consider the USE_FLOAT macro.
71357         * m4/isnanf.m4: New file.
71358
71359 2007-04-06  Bruno Haible  <bruno@clisp.org>
71360
71361         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
71362         (Link): New section.
71363
71364         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
71365
71366 2007-04-06  Bruno Haible  <bruno@clisp.org>
71367
71368         Assume the 'long double' type.
71369         * m4/longdouble.m4: Remove file.
71370         * config/srclist.txt: Don't mention longdouble.m4.
71371         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
71372         * lib/float+.h: Likewise.
71373         * lib/frexp.c: Likewise.
71374         * lib/printf-args.h: Likewise.
71375         * lib/printf-args.c: Likewise.
71376         * lib/printf-frexp.c: Likewise.
71377         * lib/printf-parse.c: Likewise.
71378         * lib/vasnprintf.c: Likewise.
71379         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
71380         * m4/intl.m4: Likewise.
71381         * m4/isnanl.m4: Likewise.
71382         * m4/printf.m4: Likewise.
71383         * m4/printf-frexpl.m4: Likewise.
71384         * m4/vasnprintf.m4: Likewise.
71385         * modules/allocsa (Files): Remove m4/longdouble.m4.
71386         * modules/gettext (Files): Likewise.
71387         * modules/relocatable-prog-wrapper (Files): Likewise.
71388         * modules/vasnprintf (Files): Likewise.
71389         * modules/isnanl (Files): Likewise.
71390         (Include): Simplify.
71391         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
71392         (Include): Simplify.
71393         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
71394         (Include): Simplify.
71395         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
71396         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71397         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
71398         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71399         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71400         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71401         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
71402         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71403         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71404         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71405         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
71406         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71407         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
71408         * tests/test-isnanl.c: Likewise.
71409         * tests/test-snprintf-posix.h: Likewise.
71410         * tests/test-sprintf-posix.h: Likewise.
71411         * tests/test-vasnprintf-posix.c: Likewise.
71412         * tests/test-vasnprintf-posix2.c: Likewise.
71413         * tests/test-vasprintf-posix.c: Likewise.
71414
71415 2007-04-06  Bruno Haible  <bruno@clisp.org>
71416
71417         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
71418         * lib/math_.h [__DECC]: Include the overridden include file through
71419         #include_next, outside the double-inclusion guard.
71420         * lib/stdio_.h [__DECC]: Likewise.
71421         * lib/stdlib_.h [__DECC]: Likewise.
71422         * lib/string_.h [__DECC]: Likewise.
71423         * lib/time_.h [__DECC]: Likewise.
71424         * lib/wchar_.h [__DECC]: Likewise.
71425         * lib/wctype_.h [__DECC]: Likewise.
71426         * lib/inttypes_.h [__DECC]: Likewise.
71427         Reported by Albert Chin <china@thewrittenword.com> in
71428         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
71429
71430 2007-04-04  Eric Blake  <ebb9@byu.net>
71431
71432         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
71433         1.5.x.
71434
71435 2007-04-04  Bruno Haible  <bruno@clisp.org>
71436
71437         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
71438         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
71439
71440 2007-04-04  Bruno Haible  <bruno@clisp.org>
71441
71442         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
71443         results for "%010a" of Infinity and NaN.
71444         * tests/test-vasprintf-posix.c (test_function): Likewise.
71445         * tests/test-snprintf-posix.h (test_function): Likewise.
71446         * tests/test-sprintf-posix.h (test_function): Likewise.
71447         * tests/test-fprintf-posix.h (test_function): Remove these tests.
71448         * tests/test-printf-posix.h (test_function): Likewise.
71449         * tests/test-fprintf-posix.out: Update.
71450         Needed for FreeBSD 6.1.
71451
71452 2007-04-04  Bruno Haible  <bruno@clisp.org>
71453
71454         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
71455         directly used by the gnulib modules nor by gnulib-tool.
71456
71457 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71458
71459         * DEPENDENCIES: Give overall description of version dependency
71460         desirability.  Use more-typical names for apps.
71461         Add shell, coreutils, diffutils, grep, tar, gzip.
71462
71463 2007-04-04  Simon Josefsson  <simon@josefsson.org>
71464
71465         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
71466
71467 2007-04-04  Karl Berry  <karl@gnu.org>
71468
71469         * MODULES.html.sh (func_module): missing '.
71470
71471 2007-04-03  Bruno Haible  <bruno@clisp.org>
71472
71473         * modules/argmatch-tests (Makefile.am): New variable
71474         test_argmatch_LDADD.
71475         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
71476         * modules/array-list-tests (Makefile.am): New variable
71477         test_array_list_LDADD.
71478         * modules/array-oset-tests (Makefile.am): New variable
71479         test_array_oset_LDADD.
71480         * modules/avltree-list-tests (Makefile.am): New variable
71481         test_avltree_list_LDADD.
71482         * modules/avltree-oset-tests (Makefile.am): New variable
71483         test_avltree_oset_LDADD.
71484         * modules/avltreehash-list-tests (Makefile.am): New variable
71485         test_avltreehash_list_LDADD.
71486         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
71487         test_canonicalize_lgpl_LDADD.
71488         * modules/carray-list-tests (Makefile.am): New variable
71489         test_carray_list_LDADD.
71490         * modules/dirname-tests (Makefile.am): New variable
71491         test_dirname_LDADD.
71492         * modules/linked-list-tests (Makefile.am): New variable
71493         test_linked_list_LDADD.
71494         * modules/linkedhash-list-tests (Makefile.am): New variable
71495         test_linkedhash_list_LDADD.
71496         * modules/rbtree-list-tests (Makefile.am): New variable
71497         test_rbtree_list_LDADD.
71498         * modules/rbtree-oset-tests (Makefile.am): New variable
71499         test_rbtree_oset_LDADD.
71500         * modules/rbtreehash-list-tests (Makefile.am): New variable
71501         test_rbtreehash_list_LDADD.
71502         * modules/xvasprintf-tests (Makefile.am): New variable
71503         test_xvasprintf_LDADD.
71504         Reported by Eric Blake.
71505
71506 2007-04-03  Eric Blake  <ebb9@byu.net>
71507
71508         * DEPENDENCIES: Weaken m4 requirements.
71509
71510 2007-04-03  Bruno Haible  <bruno@clisp.org>
71511
71512         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
71513         * modules/isnanl-tests (configure.ac): Likewise.
71514
71515 2007-04-03  Ben Pfaff  <blp@gnu.org>
71516
71517         * modules/iconv_open: Add $(srcdir)/ to source directory
71518         references in Makefile fragments that call gperf, to fix VPATH
71519         builds.
71520
71521 2007-04-03  Bruno Haible  <bruno@clisp.org>
71522
71523         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
71524         * lib/ldexpl.c: Undo last change.
71525
71526 2007-04-03  Bruno Haible  <bruno@clisp.org>
71527
71528         * modules/printf-frexpl (Depends-on): Undo last change.
71529         (Files): Add m4/ldexpl.m4.
71530
71531 2007-04-03  Bruno Haible  <bruno@clisp.org>
71532
71533         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
71534         * modules/isnanl (Link): New section.
71535
71536         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
71537         * modules/frexp (Link): New section.
71538
71539         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
71540         * modules/frexpl (Link): New section.
71541
71542         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
71543         * modules/ldexpl (Link): New section.
71544
71545 2007-04-03  Bruno Haible  <bruno@clisp.org>
71546
71547         * modules/TEMPLATE-EXTENDED: New file.
71548         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
71549
71550 2007-04-03  Bruno Haible  <bruno@clisp.org>
71551
71552         * DEPENDENCIES: New file.
71553         Suggested by Simon Josefsson.
71554
71555 2007-04-03  Bruno Haible  <bruno@clisp.org>
71556
71557         * doc/gnulib.texi: Escape @.
71558
71559 2007-04-03  James Youngman  <jay@gnu.org>
71560         and Paul Eggert  <eggert@cs.ucla.edu>
71561
71562         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
71563         birthtime on all systems that have birthtime, not just those which
71564         use st_birthtimensec rather than st_birthtim.  Putting zero in
71565         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
71566         that the birth time is not available for files on an NFS mount.
71567
71568 2007-04-03  Simon Josefsson  <simon@josefsson.org>
71569
71570         * modules/memxor: Move back from crypto/, suggested by Bruno.
71571         * modules/crypto/hmac-sha1: Fix memxor dependency.
71572
71573         * modules/crypto/gc: Moved from ../.
71574
71575 2007-04-02  Eric Blake  <ebb9@byu.net>
71576
71577         * lib/ldexpl.c (includes): Avoid libm.
71578
71579         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
71580
71581 2007-04-02  Bruno Haible  <bruno@clisp.org>
71582
71583         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
71584         on IRIX.
71585
71586 2007-04-02  Bruno Haible  <bruno@clisp.org>
71587
71588         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
71589         x86 or x86_64 platforms running MacOS X.
71590         Reported by Ryan Schmidt <@ryandesign.com>.
71591
71592 2007-04-02  Bruno Haible  <bruno@clisp.org>
71593
71594         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
71595         i386.
71596
71597 2007-04-01  Simon Josefsson  <simon@josefsson.org>
71598
71599         * modules/crypto/arcfour: Moved from ../.
71600         * modules/crypto/arcfour-tests: Moved from ../.
71601         * modules/crypto/arctwo: Moved from ../.
71602         * modules/crypto/arctwo-tests: Moved from ../.
71603         * modules/crypto/des: Moved from ../.
71604         * modules/crypto/des-tests: Moved from ../.
71605         * modules/crypto/gc-arcfour: Moved from ../.
71606         * modules/crypto/gc-arcfour-tests: Moved from ../.
71607         * modules/crypto/gc-arctwo: Moved from ../.
71608         * modules/crypto/gc-arctwo-tests: Moved from ../.
71609         * modules/crypto/gc-des: Moved from ../.
71610         * modules/crypto/gc-des-tests: Moved from ../.
71611         * modules/crypto/gc-hmac-md5: Moved from ../.
71612         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
71613         * modules/crypto/gc-hmac-sha1: Moved from ../.
71614         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
71615         * modules/crypto/gc-md2: Moved from ../.
71616         * modules/crypto/gc-md2-tests: Moved from ../.
71617         * modules/crypto/gc-md4: Moved from ../.
71618         * modules/crypto/gc-md4-tests: Moved from ../.
71619         * modules/crypto/gc-md5: Moved from ../.
71620         * modules/crypto/gc-md5-tests: Moved from ../.
71621         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
71622         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
71623         * modules/crypto/gc-random: Moved from ../.
71624         * modules/crypto/gc-rijndael: Moved from ../.
71625         * modules/crypto/gc-rijndael-tests: Moved from ../.
71626         * modules/crypto/gc-sha1: Moved from ../.
71627         * modules/crypto/gc-sha1-tests: Moved from ../.
71628         * modules/crypto/gc-tests: Moved from ../.
71629         * modules/crypto/hmac-md5: Moved from ../.
71630         * modules/crypto/hmac-md5-tests: Moved from ../.
71631         * modules/crypto/hmac-sha1: Moved from ../.
71632         * modules/crypto/hmac-sha1-tests: Moved from ../.
71633         * modules/crypto/md2: Moved from ../.
71634         * modules/crypto/md2-tests: Moved from ../.
71635         * modules/crypto/md4: Moved from ../.
71636         * modules/crypto/md4-tests: Moved from ../.
71637         * modules/crypto/md5: Moved from ../.
71638         * modules/crypto/md5-tests: Moved from ../.
71639         * modules/crypto/memxor: Moved from ../.
71640         * modules/crypto/rijndael: Moved from ../.
71641         * modules/crypto/rijndael-tests: Moved from ../.
71642         * modules/crypto/sha1: Moved from ../.
71643
71644 2007-03-30  James Youngman  <jay@gnu.org>
71645
71646         * tests/test-stat-time.c (prepare_test): use chmod() rather than
71647         rename() to change the ctime of a file (because ctime is unaffected
71648         by rename on jfs2 on AIX 5.1).
71649         (main): Start by doing cleanup, in case a previous run failed leaving
71650         test files behind.
71651
71652 2007-03-31  Bruno Haible  <bruno@clisp.org>
71653
71654         Support old proprietary implementations of iconv.
71655         * modules/iconv_open: New file.
71656         * lib/iconv_.h: New file.
71657         * m4/iconv_h.m4: New file.
71658         * lib/iconv_open.c: New file.
71659         * lib/iconv_open-aix.gperf: New file.
71660         * lib/iconv_open-hpux.gperf: New file.
71661         * lib/iconv_open-irix.gperf: New file.
71662         * lib/iconv_open-osf.gperf: New file.
71663         * m4/iconv_open.m4: New file.
71664         * modules/linebreak (Depends-on): Add iconv_open.
71665         * modules/striconv (Depends-on): Likewise.
71666         * modules/striconveh (Depends-on): Likewise.
71667         * modules/unicodeio (Depends-on): Likewise.
71668         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
71669         (iconv_t)(-1).
71670         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
71671         conversion if cd is (iconv_t)(-1).
71672         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
71673         is not possible.
71674
71675 2007-03-31  Bruno Haible  <bruno@clisp.org>
71676
71677         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71678         work on Solaris either. Protect also second use of "autodetect_jp".
71679
71680 2007-03-31  Bruno Haible  <bruno@clisp.org>
71681
71682         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
71683         the function is not present.
71684
71685 2007-03-31  Bruno Haible  <bruno@clisp.org>
71686
71687         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
71688         the function is not present.
71689
71690 2007-03-31  Bruno Haible  <bruno@clisp.org>
71691
71692         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
71693         a bug in HP-UX iconv_open().
71694
71695 2007-03-31  Bruno Haible  <bruno@clisp.org>
71696
71697         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
71698         (Mathematics <math.h>): New section, add fpieee.
71699         (Input/output <stdio.h>): Add fseterr.
71700         (Mathematics <math.h>): New section, add printf-frexp.
71701         (Container data structures): Add sublist.
71702         (Core language properties): Add fpucw, inline.
71703         (Functions for greatest-width integer types <inttypes.h>): Add
71704         imaxabs, imaxdiv, inttypes.
71705         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
71706         isnanl-nolibm, ldexp.
71707         (Mathematics <math.h>): New section, add printf-frexpl.
71708         (Support for systems lacking POSIX:2001): Add fprintf-posix,
71709         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
71710         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
71711         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
71712         (Unicode string functions): Add unistr/u*-mbtoucr.
71713         (Java): Add javacomp-script, javaexec-script.
71714         (C#): Add csharpcomp-script, csharpexec-script.
71715         (Support for building libraries and executables): Add havelib,
71716         relocatable-*.
71717         (Support for maintaining and releasing projects): Renamed from
71718         'Support for maintaining and release projects'. Add announce-gen.
71719
71720 2007-03-31  Bruno Haible  <bruno@clisp.org>
71721
71722         * README: Talk primarily about git.
71723         (git and CVS): Renamed from CVS.
71724         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
71725         gnulib is available through git.
71726         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
71727
71728 2007-03-30  Bruno Haible  <bruno@clisp.org>
71729
71730         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
71731         * lib/poll_.h: Likewise.
71732         * lib/stat_.h: Likewise.
71733         * lib/sys_time_.h: Likewise.
71734         * lib/sysexit_.h: Likewise.
71735         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
71736         * lib/stdbool_.h: Likewise.
71737         * lib/byteswap_.h: Add double-inclusion guard.
71738
71739 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
71740
71741         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
71742
71743 2007-03-30  Karl Berry  <karl@gnu.org>
71744
71745         * config/srclist-update: double space after USA in the license
71746         substitution, since that's how it's usually (?) written.
71747
71748 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
71749
71750         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
71751         reported by Bruno Haible.
71752
71753 2007-03-29  Bruno Haible  <bruno@clisp.org>
71754
71755         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
71756         a bug in AIX iconv().
71757
71758 2007-03-29  Bruno Haible  <bruno@clisp.org>
71759
71760         * modules/ldexpl-tests: New file.
71761         * tests/test-ldexpl.c: New file.
71762
71763 2007-03-29  Bruno Haible  <bruno@clisp.org>
71764
71765         * lib/ldexpl.c: Include fpucw.h.
71766         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
71767         multiplication.
71768         * modules/ldexpl (Depends-on): Add fpucw.
71769
71770 2007-03-29  Bruno Haible  <bruno@clisp.org>
71771
71772         * modules/ldexpl: New file.
71773         * m4/ldexpl.m4: New file.
71774         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
71775         set.
71776         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
71777         REPLACE_LDEXPL.
71778         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
71779         REPLACE_LDEXPL.
71780         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
71781         gl_FUNC_LDEXPL_WORKS.
71782         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
71783         * modules/mathl (Files): Remove lib/ldexpl.c.
71784         (Depends-on): Add ldexpl.
71785
71786 2007-03-29  Bruno Haible  <bruno@clisp.org>
71787
71788         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
71789
71790 2007-03-29  Bruno Haible  <bruno@clisp.org>
71791
71792         * tests/test-striconveh.c (main): Don't assume that a direct conversion
71793         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
71794         and possibly also HP-UX.
71795         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71796         work on AIX, IRIX, HP-UX, OSF/1.
71797         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
71798         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
71799         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
71800         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
71801         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
71802         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
71803
71804 2007-03-29  Bruno Haible  <bruno@clisp.org>
71805
71806         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
71807
71808 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71809
71810         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
71811         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
71812
71813 2007-03-29  Eric Blake  <ebb9@byu.net>
71814
71815         * lib/acl-internal.h: Remove redundant include.
71816         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
71817         Cygwin when a file is locked.
71818
71819 2007-03-29  Bruno Haible  <bruno@clisp.org>
71820
71821         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
71822         file.
71823         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
71824
71825 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71826
71827         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
71828         try to remove a parent directory if the child couldn't be removed
71829         (except for the first rmdir, which could fail because the child
71830         doesn't exist).  Problem reported by Jeff Blaine in
71831         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
71832
71833 2007-03-28  Bruno Haible  <bruno@clisp.org>
71834
71835         * lib/striconveh.c (utf8conv_carefully): New function.
71836         (mem_cd_iconveh_internal): Invoke it.
71837
71838 2007-03-28  Bruno Haible  <bruno@clisp.org>
71839
71840         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
71841         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
71842         input.
71843         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
71844         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
71845         unistr/u8-uctomb.
71846
71847 2007-03-28  Bruno Haible  <bruno@clisp.org>
71848
71849         * modules/unistr/u8-mbtoucr: New file.
71850         * lib/unistr/u8-mbtoucr.c: New file.
71851         * modules/unistr/u16-mbtoucr: New file.
71852         * lib/unistr/u16-mbtoucr.c: New file.
71853         * modules/unistr/u16-mbtoucr: New file.
71854         * lib/unistr/u16-mbtoucr.c: New file.
71855         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
71856
71857 2007-03-27  Simon Josefsson  <simon@josefsson.org>
71858             Bruno Haible  <bruno@clisp.org>
71859
71860         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
71861         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
71862         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
71863
71864         * m4/stdio_h.m4: Add stubs for vasprintf too.
71865
71866         * modules/stdio: Support vasprintf in sed command.
71867
71868         * modules/vasprintf: Depend on stdio for prototypes.  Remove
71869         vasprintf.h.  Add stdio module indicator.
71870
71871         * lib/stdio_.h: Declare asprintf and vasprintf, based on
71872         vasprintf.h.
71873
71874         * lib/vasprintf.h: File removed.
71875
71876         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
71877         * lib/vasprintf.c: Ditto.
71878         * lib/xvasprintf.c: Ditto.
71879         * tests/test-vasprintf-posix.c: Ditto.
71880         * tests/test-vasprintf.c: Ditto.
71881
71882 2007-03-27  Bruno Haible  <bruno@clisp.org>
71883
71884         Make vasnprintf multithread-safe.
71885         * lib/vasnprintf.c (decimal_point_char): New function.
71886         (VASNPRINTF): Use it.
71887         Suggested by Simon Josefsson.
71888
71889 2007-03-27  Eric Blake  <ebb9@byu.net>
71890
71891         Support sub-second birthtime on cygwin.
71892         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
71893         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
71894         (get_stat_birthtime): Also work with st_birthtim.
71895
71896 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
71897
71898         * lib/stat-time.h (USE_BIRTHTIME): Remove.
71899         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
71900         (get_stat_birthtime_ns): Do not try to use "spare" fields.
71901         (get_stat_birthtime_ns): Simplify compile-time tests.
71902         (get_stat_birthtime): Change the API to look like
71903         get_stat_mtime etc., except return a negative tv_nsec on error.
71904         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
71905         Don't check for "spare" fields.
71906         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
71907         or for struct stat.st_birthtime, as these tests aren't used.
71908         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
71909
71910 2007-03-27  Bruno Haible  <bruno@clisp.org>
71911
71912         * lib/stat-time.h: Include <sys/stat.h>.
71913
71914 2007-03-27  James Youngman  <jay@gnu.org>
71915
71916         * lib/stat-time.h (get_stat_birthtime): New function for
71917           retrieving st_birthtime as provided by UFS2 (hence *BSD).
71918         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
71919           and its variants.
71920         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
71921         * modules/stat-time-test: New file.
71922         * tests/test-stat-time.c: New test, devised by Bruno Haible.
71923
71924 2007-03-26  Bruno Haible  <bruno@clisp.org>
71925
71926         Better support of signalling NaNs.
71927         * lib/atanl.c: Include isnanl.h.
71928         (atanl): Perform test for NaN at the beginning of the function and
71929         through a call to isnanl.
71930         * lib/cosl.c: Include isnanl.h.
71931         (cosl): Perform test for NaN at the beginning of the function and
71932         through a call to isnanl.
71933         * lib/ldexpl.c: Include isnanl.h.
71934         (ldexpl): Perform test for NaN through a call to isnanl.
71935         * lib/logl.c: Include isnanl.h.
71936         (logl): Perform test for NaN at the beginning of the function and
71937         through a call to isnanl.
71938         * lib/sinl.c: Include isnanl.h.
71939         (sinl): Perform test for NaN at the beginning of the function and
71940         through a call to isnanl.
71941         * lib/sqrtl.c: Include isnanl.h.
71942         (sqrtl): Perform test for NaN at the beginning of the function and
71943         through a call to isnanl.
71944         * lib/tanl.c: Include isnanl.h.
71945         (tanl): Perform test for NaN at the beginning of the function and
71946         through a call to isnanl.
71947         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
71948         * modules/mathl (Depends-on): Add isnanl.
71949
71950 2007-03-26  Eric Blake  <ebb9@byu.net>
71951
71952         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
71953         regression in logic sense of previous patch.
71954
71955 2007-03-26  Bruno Haible  <bruno@clisp.org>
71956
71957         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
71958         unportable shell command "if ! ...".
71959         Reported by Ralf Wildenhues.
71960
71961 2007-03-25  Bruno Haible  <bruno@clisp.org>
71962
71963         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
71964         <sysexits.h> file, and only add EX_CONFIG.
71965         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
71966         absolute file name and whether it is sufficient. Substitute also
71967         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
71968         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
71969         ABSOLUTE_SYSEXITS_H into sysexits.h.
71970
71971 2007-03-25  Bruno Haible  <bruno@clisp.org>
71972
71973         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
71974         hints is NULL.
71975
71976 2007-03-25  Bruno Haible  <bruno@clisp.org>
71977
71978         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
71979         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
71980
71981 2007-03-25  Bruno Haible  <bruno@clisp.org>
71982
71983         * lib/vasnprintf.c: Include langinfo.h.
71984         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
71985         multithread-safe.
71986         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
71987         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
71988         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
71989         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71990         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71991         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71992         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
71993         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
71994         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71995         Reported by Simon Josefsson.
71996
71997 2007-03-25  Bruno Haible  <bruno@clisp.org>
71998
71999         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
72000         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
72001         * modules/vasnprintf (Depends-on): Add stdint.
72002
72003 2007-03-25  Bruno Haible  <bruno@clisp.org>
72004
72005         * modules/fpieee: New file.
72006         * m4/fpieee.m4: New file.
72007         * modules/isnan-nolibm (Depends-on): Add fpieee.
72008         * modules/isnanl-nolibm (Depends-on): Add fpieee.
72009         * modules/isnanl (Depends-on): Add fpieee.
72010
72011 2007-03-25  Bruno Haible  <bruno@clisp.org>
72012
72013         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
72014
72015 2007-03-25  Bruno Haible  <bruno@clisp.org>
72016
72017         Avoid test failures on IRIX 6.5.
72018         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
72019         (main): Use it.
72020         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
72021         macros.
72022         (main): Use them.
72023
72024 2007-03-25  Bruno Haible  <bruno@clisp.org>
72025
72026         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
72027         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
72028         exists but doesn't work.
72029         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
72030         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
72031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
72032         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
72033         math.h.
72034
72035 2007-03-25  Bruno Haible  <bruno@clisp.org>
72036
72037         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
72038         returns inf. Needed on IRIX 6.5.
72039
72040 2007-03-25  Bruno Haible  <bruno@clisp.org>
72041
72042         * tests/test-frexpl.c: Include isnanl-nolibm.h.
72043         (main): Use isnanl instead of x != x idiom.
72044         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
72045
72046         * tests/test-frexp.c: Include isnan.h.
72047         (main): Use isnan instead of x != x idiom.
72048         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
72049
72050 2007-03-25  Bruno Haible  <bruno@clisp.org>
72051
72052         * tests/test-frexp.c (NaN): New function/macro.
72053         (main): Use it instead of 0.0 / 0.0.
72054         * tests/test-isnan.c (NaN): New function/macro.
72055         (main): Use it instead of 0.0 / 0.0.
72056         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
72057         (test_function): Use it instead of 0.0 / 0.0.
72058         * tests/test-vasprintf-posix.c (NaN): New function/macro.
72059         (test_function): Use it instead of 0.0 / 0.0.
72060         * tests/test-snprintf-posix.h (NaN): New function/macro.
72061         (test_function): Use it instead of 0.0 / 0.0.
72062         * tests/test-sprintf-posix.h (NaN): New function/macro.
72063         (test_function): Use it instead of 0.0 / 0.0.
72064         * tests/test-fprintf-posix.h (NaN): New function/macro.
72065         (test_function): Use it instead of 0.0 / 0.0.
72066         * tests/test-printf-posix.h (NaN): New function/macro.
72067         (test_function): Use it instead of 0.0 / 0.0.
72068
72069         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
72070
72071 2007-03-25  Bruno Haible  <bruno@clisp.org>
72072
72073         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
72074
72075 2007-03-25  Bruno Haible  <bruno@clisp.org>
72076
72077         * lib/regexec.c (merge_state_with_log): Make static.
72078
72079 2007-03-25  Bruno Haible  <bruno@clisp.org>
72080
72081         * lib/trigl.c (kernel_rem_pio2): Make static.
72082
72083 2007-03-25  Bruno Haible  <bruno@clisp.org>
72084
72085         * lib/sincosl.c (sincosl_table): Make static.
72086
72087 2007-03-25  Bruno Haible  <bruno@clisp.org>
72088
72089         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
72090         if the compiler does not support C99.
72091
72092 2007-03-25  Bruno Haible  <bruno@clisp.org>
72093
72094         * modules/time (Makefile.am): Ensure all rule action lines start with a
72095         tab.
72096
72097 2007-03-24  Bruno Haible  <bruno@clisp.org>
72098
72099         * modules/tsearch-tests: New file.
72100         * tests/test-tsearch.sh: New file.
72101         * tests/test-tsearch.c: New file, mostly copied from glibc.
72102
72103         * modules/search-tests: New file.
72104         * tests/test-search.c: New file.
72105
72106         * modules/search: New file.
72107         * lib/search_.h: New file, incorporating lib/tsearch.h.
72108         * m4/search_h.m4: New file.
72109         * lib/tsearch.h: Remove file.
72110         * lib/tsearch.c: Include search.h instead of tsearch.h.
72111         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
72112         HAVE_TSEARCH.
72113         * modules/tsearch (Files): Remove lib/tsearch.h.
72114         (Depends-on): Add search.
72115         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
72116         (Include): Change tsearch.h into search.h.
72117
72118 2007-03-24  Bruno Haible  <bruno@clisp.org>
72119
72120         * modules/fpucw: New file.
72121         * lib/fpucw.h: New file.
72122         * lib/frexp.c: Include fpucw.h.
72123         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72124         (FUNC): Use them.
72125         * lib/printf-frexp.c: Include fpucw.h.
72126         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72127         (FUNC): Use them.
72128         * lib/vasnprintf.c: Include fpucw.h.
72129         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
72130         'long double' calculations.
72131         * tests/test-frexpl.c: Include fpucw.h.
72132         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72133         * tests/test-printf-frexpl.c: Include fpucw.h.
72134         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72135         * modules/frexpl (Depends-on): Add fpucw.
72136         * modules/printf-frexpl (Depends-on): Likewise.
72137         * modules/fprintf-posix (Depends-on): Likewise.
72138         * modules/snprintf-posix (Depends-on): Likewise.
72139         * modules/sprintf-posix (Depends-on): Likewise.
72140         * modules/vasnprintf-posix (Depends-on): Likewise.
72141         * modules/vasprintf-posix (Depends-on): Likewise.
72142         * modules/vfprintf-posix (Depends-on): Likewise.
72143         * modules/vsnprintf-posix (Depends-on): Likewise.
72144         * modules/vsprintf-posix (Depends-on): Likewise.
72145         * modules/frexpl-tests (Depends-on): Likewise.
72146         * modules/printf-frexpl-tests (Depends-on): Likewise.
72147
72148 2007-03-24  Bruno Haible  <bruno@clisp.org>
72149
72150         * lib/float+.h: New file.
72151         * lib/isnan.c: Include float+.h.
72152         (SIZE): New macro.
72153         (FUNC): Compare only SIZE bytes of the value.
72154         * lib/vasnprintf.c: Include float+.h.
72155         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
72156         SIZEOF_LDBL or SIZEOF_DBL bytes.
72157         * modules/isnan-nolibm (Files): Add lib/float+.h.
72158         * modules/isnanl-nolibm (Files): Add lib/float+.h.
72159         * modules/isnanl (Files): Add lib/float+.h.
72160         * modules/vasnprintf (Files): Add lib/float+.h.
72161
72162 2007-03-24  Bruno Haible  <bruno@clisp.org>
72163
72164         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
72165         include isnanl-nolibm.h.
72166
72167 2007-03-24  Bruno Haible  <bruno@clisp.org>
72168
72169         * tests/test-read-file.c (main): Don't produce spurious output for
72170         expected situations. Make the test fail if it encountered unexpected
72171         results.
72172
72173 2007-03-24  Bruno Haible  <bruno@clisp.org>
72174
72175         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
72176         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
72177
72178 2007-03-24  Bruno Haible  <bruno@clisp.org>
72179
72180         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
72181
72182 2007-03-24  Bruno Haible  <bruno@clisp.org>
72183
72184         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
72185         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
72186
72187         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
72188         * modules/utf8-ucs4: Turn into a symbolic link to module
72189         unistr/u8-mbtouc.
72190
72191         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
72192         utf8-ucs4-unsafe.
72193         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
72194         unistr/u8-mbtouc-unsafe.
72195
72196         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
72197         * modules/utf16-ucs4: Turn into a symbolic link to module
72198         unistr/u16-mbtouc.
72199
72200         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
72201         utf16-ucs4-unsafe.
72202         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
72203         unistr/u16-mbtouc-unsafe.
72204
72205         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
72206         * modules/ucs4-utf8: Turn into a symbolic link to module
72207         unistr/u8-ubtomb.
72208
72209         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
72210         * modules/ucs4-utf16: Turn into a symbolic link to module
72211         unistr/u16-ubtomb.
72212
72213 2007-03-24  Bruno Haible  <bruno@clisp.org>
72214
72215         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
72216         Enable the function only if HAVE_INLINE.
72217         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
72218         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72219         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
72220         Enable the function only if HAVE_INLINE.
72221         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
72222         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72223         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
72224         Enable the function only if HAVE_INLINE.
72225         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
72226         Enable the function only if HAVE_INLINE.
72227         * modules/utf8-ucs4: Update.
72228         * modules/utf8-ucs4-unsafe: Update.
72229         * modules/utf16-ucs4: Update.
72230         * modules/utf16-ucs4-unsafe: Update.
72231         * modules/ucs4-utf8: Update.
72232         * modules/ucs4-utf16: Update.
72233
72234 2007-03-24  Bruno Haible  <bruno@clisp.org>
72235
72236         * lib/utf8-ucs4.h: Remove file.
72237         * lib/utf8-ucs4-unsafe.h: Remove file.
72238         * lib/utf16-ucs4.h: Remove file.
72239         * lib/utf16-ucs4-unsafe.h: Remove file.
72240         * lib/ucs4-utf8.h: Remove file.
72241         * lib/ucs4-utf16.h: Remove file.
72242         * lib/unistr.h: Include their previous contents.
72243         * m4/utf-ucs4.m4: Remove file.
72244         * m4/ucs4-utf.m4: Remove file.
72245         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
72246         (Depends-on): Add unistr/base.
72247         (configure.ac): Remove gl_UTF_UCS4.
72248         (Makefile.am): Update.
72249         (Include): Change to unistr.h.
72250         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
72251         (Depends-on): Add unistr/base.
72252         (configure.ac): Remove gl_UTF_UCS4.
72253         (Makefile.am): Update.
72254         (Include): Change to unistr.h.
72255         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
72256         (Depends-on): Add unistr/base.
72257         (configure.ac): Remove gl_UTF_UCS4.
72258         (Makefile.am): Update.
72259         (Include): Change to unistr.h.
72260         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
72261         (Depends-on): Add unistr/base.
72262         (configure.ac): Remove gl_UTF_UCS4.
72263         (Makefile.am): Update.
72264         (Include): Change to unistr.h.
72265         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
72266         (Depends-on): Add unistr/base.
72267         (configure.ac): Remove gl_UCS4_UTF.
72268         (Makefile.am): Update.
72269         (Include): Change to unistr.h.
72270         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
72271         (Depends-on): Add unistr/base.
72272         (configure.ac): Remove gl_UCS4_UTF.
72273         (Makefile.am): Update.
72274         (Include): Change to unistr.h.
72275         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
72276         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
72277         utf8-ucs4-unsafe.h.
72278         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
72279         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
72280         utf16-ucs4-unsafe.h.
72281         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
72282         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
72283         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
72284         * lib/unistr/u8-strchr.c: Likewise.
72285         * lib/unistr/u8-strrchr.c: Likewise.
72286         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
72287         * lib/unistr/u16-strchr.c: Likewise.
72288         * lib/unistr/u16-strrchr.c: Likewise.
72289         * lib/striconveh.c: Update.
72290         * lib/linebreak.c: Update.
72291
72292 2007-03-24  Bruno Haible  <bruno@clisp.org>
72293
72294         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
72295         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
72296
72297 2007-03-22  Bruno Haible  <bruno@clisp.org>
72298
72299         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
72300
72301 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72302
72303         * MODULES.html.sh (File system functions): New module write-any-file.
72304         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
72305         * m4/write-any-file.m4: New files.
72306
72307 2007-03-23  Eric Blake  <ebb9@byu.net>
72308
72309         * gnulib-tool: Rearrange space-tab sequences, since some editors
72310         like to eat them.
72311
72312 2007-03-23  Eric Blake  <ebb9@byu.net>
72313
72314         * lib/version-etc.c (version_etc_va): Update license wording to
72315         be more concise.  Recommended by Richard Stallman.
72316
72317 2007-03-22  Bruno Haible  <bruno@clisp.org>
72318
72319         * lib/poll.c (MSG_PEEK): New fallback definition.
72320
72321 2007-03-22  Bruno Haible  <bruno@clisp.org>
72322
72323         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
72324         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
72325         (main): Update.
72326         Fixes a compilation error on BeOS.
72327
72328 2007-03-22  Bruno Haible  <bruno@clisp.org>
72329
72330         * modules/frexpl-tests: New file.
72331         * tests/test-frexpl.c: New file.
72332
72333         * modules/frexpl: New file.
72334         * m4/frexpl.m4: New file.
72335         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
72336         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
72337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
72338         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
72339         (Depends-on): Add frexpl. Remove isnanl-nolibm.
72340         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
72341
72342 2007-03-22  Bruno Haible  <bruno@clisp.org>
72343
72344         * lib/frexpl.c: Share code with lib/frexp.c.
72345         * modules/mathl (Files): Add lib/frexp.c.
72346         (Depends-on): Add isnanl-nolibm.
72347
72348 2007-03-22  Bruno Haible  <bruno@clisp.org>
72349
72350         * modules/printf-frexp (Files): Add m4/frexp.m4.
72351         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
72352         only if the found frexp function actually works.
72353
72354 2007-03-22  Bruno Haible  <bruno@clisp.org>
72355
72356         * lib/frexp.c: Remove older implementation that uses divisions.
72357
72358 2007-03-21  Bruno Haible  <bruno@clisp.org>
72359
72360         * modules/frexp-tests: New file.
72361         * tests/test-frexp.c: New file.
72362
72363         * modules/frexp: New file.
72364         * lib/frexp.c: New file.
72365         * m4/frexp.m4: New file.
72366         * lib/math_.h (frexp): New declaration.
72367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
72368         REPLACE_FREXP.
72369         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
72370
72371 2007-03-21  Bruno Haible  <bruno@clisp.org>
72372
72373         * modules/isnanl-tests: New file.
72374         * tests/test-isnanl.c: New file.
72375
72376         * modules/isnanl: New file.
72377         * lib/isnanl.h: New file.
72378         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
72379         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
72380         gl_FUNC_ISNANL_WORKS.
72381         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
72382         New macros.
72383
72384 2007-03-21  Bruno Haible  <bruno@clisp.org>
72385
72386         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
72387         lib/isnanl.h.
72388         (Include): Update.
72389         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
72390         * lib/vasnprintf.c: Update.
72391         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
72392         tests/test-isnanl.h, remove tests/test-isnanl.c.
72393         (Makefile.am): Update.
72394         * tests/test-isnanl-nolibm.c: New file.
72395         * tests/test-isnanl.h: New file.
72396         * tests/test-isnanl.c: Remove file.
72397
72398 2007-03-21  Jim Meyering  <jim@meyering.net>
72399
72400         When trying to open ".", treat ESTALE like EACCES.
72401         * lib/savewd.c (savewd_save): Resort to forking not just upon
72402         failure with EACCES, but also when errno is ESTALE.
72403
72404 2007-03-20  Bruno Haible  <bruno@clisp.org>
72405
72406         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
72407         Needed on AIX 5.1. Reported by Matthew Woehlke.
72408
72409 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72410
72411         Suggestions by Bruno Haible:
72412         * lib/acl-internal.h: Include "gettext.h" rather than rolling
72413         our own.
72414         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
72415         * modules/acl (Depends-on): Add gettext.
72416
72417 2007-03-19  Bruno Haible  <bruno@clisp.org>
72418
72419         * modules/iconvme: Remove file.
72420         * lib/iconvme.h: Remove file.
72421         * lib/iconvme.c: Remove file.
72422         * m4/iconvme.m4: Remove file.
72423
72424 2007-03-19  Bruno Haible  <bruno@clisp.org>
72425
72426         * doc/relocatable-maint.texi: Break long shell script line.
72427         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72428
72429 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72430
72431         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
72432         handle file_has_acl.
72433         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
72434         * lib/acl.c: Move header inclusions and related macro defns into
72435         lib/acl-internal.h.
72436         (S_ISLNK): Remove defn, since that's now done for us.
72437         (file_has_acl): Move to lib/file-has-acl.c.
72438         Call acl_trivial if available.  This is the crucial part of the fix.
72439         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
72440         shared within the library.  Rewrite a bit, partly to make it compatible
72441         with the GNU coding style.
72442         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
72443         Remove unnecessary double-quotes.
72444         Don't test for acl_to_text; the build will catch that.
72445         Replace acl_entries if it doesn't exist and it is needed.
72446         Check for -lsec and acl_trivial (as used on Solaris 10).
72447         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
72448         lib/file-has-acl.c.
72449         (Depends-on): Add sys_stat, for S_ISLNK.
72450
72451 2007-03-19  Ben Pfaff  <blp@gnu.org>
72452
72453         * doc/gnulib.texi: Fix typos.
72454         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72455
72456 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72457
72458         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
72459         If size is zero here, buf must be zero.
72460
72461 2007-03-19  Simon Josefsson  <simon@josefsson.org>
72462
72463         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
72464         <bruno@clisp.org>.
72465
72466 2007-03-18  Bruno Haible  <bruno@clisp.org>
72467
72468         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
72469         Suggested by Eric Blake.
72470
72471 2007-03-18  Ben Pfaff  <blp@gnu.org>
72472
72473         * doc/relocatable.texi: Recommend using as prefix a directory
72474         that does not exist and will never be created.  Based on
72475         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
72476         and others.
72477
72478 2007-03-17  Bruno Haible  <bruno@clisp.org>
72479
72480         * lib/fchownat.c: Include lchown.h.
72481
72482 2007-03-17  Bruno Haible  <bruno@clisp.org>
72483
72484         Fix endless loop when the given allocated size was > INT_MAX.
72485         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
72486         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
72487         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
72488         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
72489         * lib/sprintf.c (sprintf): Likewise.
72490
72491 2007-03-17  Bruno Haible  <bruno@clisp.org>
72492
72493         * tests/test-argp-2.sh (func_compare): Output a context diff.
72494
72495 2007-03-17  Bruno Haible  <bruno@clisp.org>
72496
72497         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
72498         locale's decimal-point character.
72499
72500 2007-03-17  Bruno Haible  <bruno@clisp.org>
72501
72502         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
72503         before comparing it. Needed because on some platforms (e.g. x86) a
72504         'long double' occupies less bytes than sizeof (long double).
72505
72506 2007-03-17  Bruno Haible  <bruno@clisp.org>
72507
72508         * tests/test-crc.c (main): Make printf statements 64-bit clean.
72509         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
72510         * tests/test-getaddrinfo.c (simple): Likewise.
72511         * tests/test-read-file.c (main): Likewise.
72512
72513 2007-03-17  Bruno Haible  <bruno@clisp.org>
72514
72515         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
72516
72517 2007-03-17  Bruno Haible  <bruno@clisp.org>
72518
72519         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
72520         unused variable.
72521
72522 2007-03-17  Bruno Haible  <bruno@clisp.org>
72523
72524         * tests/test-c-strcasecmp.c: Include c-strcase.h.
72525         * tests/test-c-strncasecmp.c: Likewise.
72526
72527 2007-03-17  Bruno Haible  <bruno@clisp.org>
72528
72529         * modules/stdlib (Depends-on): Add unistd.
72530         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
72531         Needed for MacOS X 10.3.
72532
72533 2007-03-17  Bruno Haible  <bruno@clisp.org>
72534
72535         * lib/unistr/u-strdup.h: Include <stdlib.h>.
72536
72537 2007-03-17  Bruno Haible  <bruno@clisp.org>
72538
72539         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
72540
72541 2007-03-17  Bruno Haible  <bruno@clisp.org>
72542
72543         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
72544         to reflect files copied from gnulib (with or without modifications).
72545         Suggested by Jim Meyering.
72546
72547 2007-03-17  Eric Blake  <ebb9@byu.net>
72548
72549         * NEWS: Document stdlib change from 2007-02-18.
72550
72551 2007-03-17  Jim Meyering  <jim@meyering.net>
72552
72553         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
72554         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
72555         someone uses a name containing shell meta-characters.
72556         Reported by Alfred M. Szmidt.
72557
72558         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
72559
72560 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72561
72562         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
72563         and copy gettext configuration files only if configure.ac contains
72564         a use of AM_GNU_GETTEXT_VERSION.
72565
72566 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72567
72568         * build-aux/bootstrap (gnulib_name): New variable.
72569         (gnulib_tool_options): Use it.
72570
72571 2007-03-13  Simon Josefsson  <simon@josefsson.org>
72572
72573         * tests/test-des.c: Use new namespace.
72574
72575 2007-03-15  Bruno Haible  <bruno@clisp.org>
72576
72577         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
72578         Reported by James Youngman <jay@gnu.org>.
72579
72580 2007-03-15  Bruno Haible  <bruno@clisp.org>
72581
72582         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
72583         declared prototype. Needed with cc on OSF/1 5.1.
72584
72585 2007-03-15  Bruno Haible  <bruno@clisp.org>
72586
72587         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
72588         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
72589         (struct gl_list_implementation): Add dispose_fn argument to the
72590         'create_empty', 'create' methods.
72591         (struct gl_list_impl_base): Add field 'dispose_fn'.
72592         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
72593         argument.
72594         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
72595         dispose_fn argument.
72596         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
72597         dispose_fn on the dropped values.
72598         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
72599         dispose_fn argument.
72600         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
72601         dropped values.
72602         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
72603         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72604         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
72605         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72606         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
72607         argument.
72608         (gl_tree_list_free): Call dispose_fn on the dropped values.
72609         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
72610         the dropped values.
72611         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72612         Add dispose_fn argument.
72613         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
72614         Call dispose_fn on the dropped values.
72615         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
72616         Add dispose_fn argument.
72617         (gl_sublist_create): Initialize the 'dispose_fn' field.
72618         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
72619         * tests/test-array_list.c (main): Update.
72620         * tests/test-carray_list.c (main): Update.
72621         * tests/test-avltree_list.c (main): Update.
72622         * tests/test-rbtree_list.c (main): Update.
72623         * tests/test-avltreehash_list.c (main): Update.
72624         * tests/test-rbtreehash_list.c (main): Update.
72625         * tests/test-linked_list.c (main): Update.
72626         * tests/test-linkedhash_list.c (main): Update.
72627         * tests/test-array_oset.c (main): Update.
72628
72629 2007-03-15  Bruno Haible  <bruno@clisp.org>
72630
72631         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
72632         (gl_oset_create_empty): Add dispose_fn argument.
72633         (struct gl_oset_implementation): Add dispose_fn argument to
72634         'create_empty' method.
72635         (struct gl_oset_impl_base): Add dispose_fn field.
72636         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
72637         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
72638         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
72639         values.
72640         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
72641         (gl_tree_oset_free): Call dispose_fn on the dropped values.
72642         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72643         dropped value.
72644         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72645         dropped value.
72646         * tests/test-array_oset.c (main): Update.
72647         * tests/test-avltree_oset.c (main): Update.
72648         * tests/test-rbtree_oset.c (main): Update.
72649         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
72650
72651 2007-03-13  Bruno Haible  <bruno@clisp.org>
72652
72653         * tests/test-stdbool.c (i): Update after last patch.
72654
72655 2007-03-12  Bruno Haible  <bruno@clisp.org>
72656
72657         * lib/quotearg.c: Include <wctype.h> early, before the definition of
72658         the iswprint macro. Needed on Solaris 2.5.1.
72659
72660 2007-03-12  Bruno Haible  <bruno@clisp.org>
72661
72662         * tests/test-printf-frexp.c (main): Declare x as volatile.
72663
72664 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72665
72666         * doc/gnulib.texi (Build robot for gnulib): New section.
72667
72668 2007-03-12  Jim Meyering  <jim@meyering.net>
72669
72670         * build-aux/bootstrap: New file.
72671         * build-aux/bootstrap.conf: New file, from coreutils.
72672
72673 2007-03-11  Bruno Haible  <bruno@clisp.org>
72674
72675         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
72676
72677 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72678
72679         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
72680         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
72681         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
72682
72683 2007-03-11  Bruno Haible  <bruno@clisp.org>
72684
72685         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
72686         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
72687
72688 2007-03-11  Bruno Haible  <bruno@clisp.org>
72689
72690         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
72691         formula. Needed for SunPRO C 5.0.
72692
72693 2007-03-11  Bruno Haible  <bruno@clisp.org>
72694
72695         * modules/long-options (Depends-on): Add getopt.
72696
72697 2007-03-11  Bruno Haible  <bruno@clisp.org>
72698
72699         * modules/modechange (Depends-on): Add stdbool.
72700
72701 2007-03-11  Bruno Haible  <bruno@clisp.org>
72702
72703         * modules/i-ring (Depends-on): Add stdbool.
72704
72705 2007-03-11  Bruno Haible  <bruno@clisp.org>
72706
72707         * modules/gc-des (Depends-on): Add stdbool.
72708
72709 2007-03-11  Bruno Haible  <bruno@clisp.org>
72710
72711         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
72712
72713 2007-03-11  Bruno Haible  <bruno@clisp.org>
72714
72715         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
72716
72717 2007-03-11  Bruno Haible  <bruno@clisp.org>
72718
72719         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
72720
72721 2007-03-11  Bruno Haible  <bruno@clisp.org>
72722
72723         * lib/vasnprintf.c (sprintf): Undefine.
72724
72725 2007-03-11  Bruno Haible  <bruno@clisp.org>
72726
72727         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
72728         initializers in SunPRO C and Compaq C compilers.
72729
72730 2007-03-11  Bruno Haible  <bruno@clisp.org>
72731
72732         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
72733         decrementing code ANSI C compliant.
72734
72735 2007-03-11  Bruno Haible  <bruno@clisp.org>
72736
72737         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
72738         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
72739
72740 2007-03-11  Bruno Haible  <bruno@clisp.org>
72741
72742         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
72743         <stdbool.h> substitute doesn't pass.
72744
72745 2007-03-11  Bruno Haible  <bruno@clisp.org>
72746
72747         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
72748
72749 2007-03-11  Bruno Haible  <bruno@clisp.org>
72750
72751         * gnulib-tool (func_create_megatestdir): Create also an autobuild
72752         script, for submission to autobuild.josefsson.org.
72753
72754 2007-03-10  Bruno Haible  <bruno@clisp.org>
72755
72756         * modules/canonicalize-lgpl-tests: New file.
72757         * tests/test-canonicalize-lgpl.sh: New file.
72758         * tests/test-canonicalize-lgpl.c: New file.
72759
72760         * modules/c-strcase-tests: New file.
72761         * tests/test-c-strcase.sh: New file.
72762         * tests/test-c-strcasecmp.c: New file.
72763         * tests/test-c-strncasecmp.c: New file.
72764
72765         * modules/atexit-tests: New file.
72766         * tests/test-atexit.sh: New file.
72767         * tests/test-atexit.c: New file.
72768
72769 2007-03-10  Bruno Haible  <bruno@clisp.org>
72770
72771         * tests/test-binary-io.sh: Use temporary filenames that are not so
72772         likely to clash with those of other tests (in a parallel make).
72773         * tests/test-binary-io.c: Likewise.
72774
72775 2007-03-10  Bruno Haible  <bruno@clisp.org>
72776
72777         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
72778         fallback; use #error instead.
72779         Suggested by Simon Josefsson.
72780
72781 2007-03-10  Bruno Haible  <bruno@clisp.org>
72782
72783         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
72784         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
72785         first and the last.
72786
72787 2007-03-10  Bruno Haible  <bruno@clisp.org>
72788
72789         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
72790
72791 2007-03-10  Bruno Haible  <bruno@clisp.org>
72792
72793         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
72794         "make distcheck".
72795         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
72796         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
72797         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
72798
72799 2007-03-10  Bruno Haible  <bruno@clisp.org>
72800
72801         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
72802         variable.
72803         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
72804         variable.
72805
72806 2007-03-09  Eric Blake  <ebb9@byu.net>
72807         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
72808
72809         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
72810         types are not being provided by gnulib.
72811         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
72812         types are supported.
72813
72814 2007-03-10  Bruno Haible  <bruno@clisp.org>
72815
72816         * lib/stdio_.h (__attribute__): New macro.
72817         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
72818         vsprintf): Specify __attribute__ __format__ for GCC.
72819         Suggested by Eric Blake.
72820
72821 2007-03-09  Bruno Haible  <bruno@clisp.org>
72822
72823         * modules/printf-posix-tests: New file.
72824         * tests/test-printf-posix.sh: New file.
72825         * tests/test-printf-posix.c: New file.
72826
72827         * modules/printf-posix: New file.
72828         * lib/printf.c: New file.
72829         * m4/printf-posix-rpl.m4: New file.
72830         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
72831         REPLACE_PRINTF.
72832         * lib/stdio_.h (printf): New declaration.
72833         (format, __format__, ____printf____, ____scanf____, ____strftime____,
72834         ____strfmon____): New macros.
72835         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
72836         REPLACE_PRINTF.
72837
72838 2007-03-09  Bruno Haible  <bruno@clisp.org>
72839
72840         * tests/test-vasnprintf-posix2.sh: New file.
72841         * tests/test-vasnprintf-posix2.c: New file.
72842         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
72843         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
72844         (Makefile.am): Activate test-vasnprintf-posix2.sh.
72845
72846         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
72847         a locale dependent decimal point, rather than always '.'.
72848
72849 2007-03-09  Eric Blake  <ebb9@byu.net>
72850
72851         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
72852         spite of platforms like Tandem/NSK that define it to -1.
72853
72854 2007-03-08  Bruno Haible  <bruno@clisp.org>
72855
72856         * modules/vprintf-posix-tests: New file.
72857         * tests/test-vprintf-posix.sh: New file.
72858         * tests/test-vprintf-posix.c: New file.
72859         * tests/test-printf-posix.h: New file.
72860
72861         * modules/vprintf-posix: New file.
72862         * lib/vprintf.c: New file.
72863         * m4/vprintf-posix.m4: New file.
72864         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
72865         REPLACE_VPRINTF.
72866         * lib/stdio_.h (vprintf): New declaration.
72867         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
72868         REPLACE_VPRINTF.
72869
72870 2007-03-08  Bruno Haible  <bruno@clisp.org>
72871
72872         * modules/fprintf-posix-tests: New file.
72873         * tests/test-fprintf-posix.sh: New file.
72874         * tests/test-fprintf-posix.c: New file.
72875
72876         * modules/fprintf-posix: New file.
72877         * lib/fprintf.c: New file.
72878         * m4/fprintf-posix.m4: New file.
72879         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
72880         REPLACE_FPRINTF.
72881         * lib/stdio_.h (fprintf): New declaration.
72882         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
72883         REPLACE_FPRINTF.
72884
72885 2007-03-08  Bruno Haible  <bruno@clisp.org>
72886
72887         * modules/vfprintf-posix-tests: New file.
72888         * tests/test-vfprintf-posix.sh: New file.
72889         * tests/test-vfprintf-posix.c: New file.
72890         * tests/test-fprintf-posix.h: New file.
72891         * tests/test-fprintf-posix.out: New file.
72892
72893         * modules/vfprintf-posix: New file.
72894         * lib/vfprintf.c: New file.
72895         * m4/vfprintf-posix.m4: New file.
72896         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
72897         REPLACE_VFPRINTF.
72898         * lib/stdio_.h (vfprintf): New declaration.
72899         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
72900         REPLACE_VFPRINTF.
72901
72902 2007-03-08  Bruno Haible  <bruno@clisp.org>
72903
72904         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
72905
72906 2007-03-08  Bruno Haible  <bruno@clisp.org>
72907
72908         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
72909         instead of 'expr' invocations.
72910         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72911         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72912         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72913         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
72914         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72915         Suggested by Paul Eggert.
72916
72917 2007-03-08  Bruno Haible  <bruno@clisp.org>
72918
72919         * modules/fseterr-tests: New file.
72920         * tests/test-fseterr.c: New file.
72921
72922         * modules/fseterr: New file.
72923         * lib/fseterr.h: New file.
72924         * lib/fseterr.c: New file.
72925
72926 2007-03-08  Bruno Haible  <bruno@clisp.org>
72927
72928         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
72929         * lib/getopt_.h: Likewise.
72930         * lib/mbswidth.h: Likewise.
72931         * lib/setenv.h: Likewise.
72932         * lib/vasnprintf.h: Likewise.
72933         * lib/vasprintf.h: Likewise.
72934         * lib/verror.h: Likewise.
72935         * lib/xsetenv.h: Likewise.
72936         * lib/xvasprintf.h: Likewise.
72937
72938 2007-03-08  Jim Meyering  <jim@meyering.net>
72939
72940         * users.txt: Add parted.
72941
72942         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
72943
72944 2007-03-07  Bruno Haible  <bruno@clisp.org>
72945
72946         * m4/printf.m4: Make the shell script snippets copy&pastable.
72947
72948 2007-03-02  Bruno Haible  <bruno@clisp.org>
72949
72950         * lib/netinet_in_.h: New file.
72951         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
72952         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
72953         * modules/netinet_in (Files): Add lib/netinet_in_.h.
72954         (Depends-on): Add absolute-header.
72955         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
72956         into netinet/in.h.
72957
72958 2007-03-03  Bruno Haible  <bruno@clisp.org>
72959
72960         * lib/sys_select_.h: New file.
72961         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
72962         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
72963         * modules/sys_select (Files): Add lib/sys_select_.h.
72964         (Depends-on): Add absolute-header.
72965         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
72966         into sys/select.h.
72967
72968 2007-03-02  Bruno Haible  <bruno@clisp.org>
72969
72970         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
72971         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
72972         values.
72973         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
72974         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
72975         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
72976         * modules/sys_socket (Depends-on): Add absolute-header.
72977         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
72978         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
72979         (Include): Remove requirement of inclusion of <sys/types.h>.
72980
72981 2007-03-02  Bruno Haible  <bruno@clisp.org>
72982
72983         * lib/byteswap_.h (bswap_32): Fix formula.
72984
72985 2007-03-06  Bruno Haible  <bruno@clisp.org>
72986
72987         * modules/sprintf-posix-tests: New file.
72988         * tests/test-sprintf-posix.c: New file.
72989
72990         * modules/sprintf-posix: New file.
72991         * lib/sprintf.c: New file.
72992         * m4/sprintf-posix.m4: New file.
72993         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
72994         REPLACE_SPRINTF.
72995         * lib/stdio_.h (sprintf): New declaration.
72996         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
72997         REPLACE_SPRINTF.
72998
72999 2007-03-06  Bruno Haible  <bruno@clisp.org>
73000
73001         * modules/vsprintf-posix-tests: New file.
73002         * tests/test-vsprintf-posix.c: New file.
73003         * tests/test-sprintf-posix.h: New file.
73004
73005         * modules/vsprintf-posix: New file.
73006         * lib/vsprintf.c: New file.
73007         * m4/vsprintf-posix.m4: New file.
73008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
73009         REPLACE_VSPRINTF.
73010         * lib/stdio_.h (vsprintf): New declaration.
73011         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
73012         REPLACE_VSPRINTF.
73013
73014 2007-03-06  Bruno Haible  <bruno@clisp.org>
73015
73016         * modules/vsnprintf (Depend-on): Remove minmax.
73017
73018 2007-03-06  Bruno Haible  <bruno@clisp.org>
73019
73020         * modules/snprintf-posix-tests: New file.
73021         * tests/test-snprintf-posix.c: New file.
73022
73023         * modules/snprintf-posix: New file.
73024         * m4/snprintf-posix.m4: New file.
73025         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
73026         gl_FUNC_SNPRINTF.
73027         (gl_FUNC_SNPRINTF): Invoke it.
73028         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
73029         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
73030         is set.
73031         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
73032
73033 2007-03-06  Bruno Haible  <bruno@clisp.org>
73034
73035         * modules/vsnprintf-posix-tests: New file.
73036         * tests/test-vsnprintf-posix.c: New file.
73037         * tests/test-snprintf-posix.h: New file.
73038
73039         * modules/vsnprintf-posix: New file.
73040         * m4/vsnprintf-posix.m4: New file.
73041         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
73042         gl_FUNC_VSNPRINTF.
73043         (gl_FUNC_VSNPRINTF): Invoke it.
73044         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
73045         * lib/stdio_.h (vsnprintf): Define as a replacement if
73046         REPLACE_VSNPRINTF is set.
73047         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
73048
73049 2007-03-06  Bruno Haible  <bruno@clisp.org>
73050
73051         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
73052         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
73053
73054 2007-03-06  Bruno Haible  <bruno@clisp.org>
73055
73056         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
73057         (asinl): Declare also if HAVE_DECL_ASINL is set.
73058         (atanl): Declare also if HAVE_DECL_ATANL is set.
73059         (ceill): Declare also if HAVE_DECL_CEILL is set.
73060         (cosl): Declare also if HAVE_DECL_COSL is set.
73061         (expl): Declare also if HAVE_DECL_EXPL is set.
73062         (floorl): Declare also if HAVE_DECL_FLOORL is set.
73063         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
73064         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
73065         (logl): Declare also if HAVE_DECL_LOGL is set.
73066         (sinl): Declare also if HAVE_DECL_SINL is set.
73067         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
73068         (tanl): Declare also if HAVE_DECL_TANL is set.
73069         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
73070         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
73071         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
73072         declaration of frexpl, ldexpl.
73073         * modules/printf-frexpl (Depends-on): Add math.
73074         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
73075
73076 2007-03-05  Bruno Haible  <bruno@clisp.org>
73077
73078         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
73079         frexpl and ldexpl are declared.
73080         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
73081
73082 2007-03-05  Bruno Haible  <bruno@clisp.org>
73083
73084         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
73085         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
73086
73087 2007-03-05  Bruno Haible  <bruno@clisp.org>
73088
73089         * lib/stdio_.h: Include <stddef.h>.
73090
73091 2007-03-05  Bruno Haible  <bruno@clisp.org>
73092
73093         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
73094
73095 2007-03-05  Bruno Haible  <bruno@clisp.org>
73096
73097         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
73098         NetBSD 4, from Ralf Wildenhues.
73099
73100 2007-03-04  Bruno Haible  <bruno@clisp.org>
73101
73102         * lib/vasprintf.h: Update #if logic for the case when the functions
73103         exist but are overridden.
73104
73105 2007-03-04  Bruno Haible  <bruno@clisp.org>
73106
73107         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
73108         implementations: glibc-2.4 and MacOS X 10.3.
73109         * tests/test-vasnprintf-posix.c (test_function): Test also the case
73110         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
73111         * tests/test-vasprintf-posix.c (test_function): Likewise.
73112
73113 2007-03-04  Bruno Haible  <bruno@clisp.org>
73114
73115         * modules/vasprintf-posix-tests: New file.
73116         * tests/test-vasprintf-posix.c: New file.
73117
73118         * modules/vasprintf-posix: New file.
73119         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
73120         defined.
73121         * m4/vasprintf-posix.m4: New file.
73122         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
73123         gl_FUNC_VASPRINTF.
73124         (gl_FUNC_VASPRINTF): Invoke it.
73125         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
73126         here.
73127         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
73128
73129 2007-03-04  Bruno Haible  <bruno@clisp.org>
73130
73131         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
73132         REPLACE_GETTIMEOFDAY.
73133         * modules/sys_time (Makefile.am): Likewise.
73134         * m4/sys_time_h.m4: Likewise.
73135         * m4/gettimeofday.m4: Likewise.
73136
73137 2007-03-04  Bruno Haible  <bruno@clisp.org>
73138
73139         * modules/vasnprintf-posix-tests: New file.
73140         * tests/test-vasnprintf-posix.c: New file.
73141
73142         * modules/vasnprintf-posix: New file.
73143         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
73144         printf-frexpl.h.
73145         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
73146         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
73147         REPLACE_VASNPRINTF is defined.
73148         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
73149         gl_FUNC_VASNPRINTF.
73150         (gl_FUNC_VASNPRINTF): Invoke it.
73151         * m4/vasnprintf-posix.m4: New file.
73152         * m4/printf.m4: New file.
73153
73154 2007-03-04  Bruno Haible  <bruno@clisp.org>
73155
73156         Compile progreloc.c only if --enable-relocatable is specified.
73157         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
73158         if --enable-relocatable was specified.
73159         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
73160         lib_SOURCES.
73161
73162 2007-03-04  Jim Meyering  <jim@meyering.net>
73163
73164         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
73165         Use it consistently, rather than enumerating errno constants.
73166
73167 2007-03-04  Bruno Haible  <bruno@clisp.org>
73168
73169         * modules/xvasprintf-tests: New file.
73170         * tests/test-xvasprintf.c: New file.
73171
73172         * modules/vasprintf-tests: New file.
73173         * tests/test-vasprintf.c: New file.
73174
73175         * modules/vasnprintf-tests: New file.
73176         * tests/test-vasnprintf.c: New file.
73177
73178         * modules/vsnprintf-tests: New file.
73179         * tests/test-vsnprintf.c: New file.
73180
73181         * modules/snprintf-tests: New file.
73182         * tests/test-snprintf.c: New file.
73183
73184 2007-03-04  Bruno Haible  <bruno@clisp.org>
73185
73186         Compile relocatable.c only if --enable-relocatable is specified.
73187         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
73188         gl_RELOCATABLE_LIBRARY.
73189         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
73190         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
73191         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
73192         gl_RELOCATABLE_LIBRARY.
73193         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
73194         (Makefile.am): Remove lib_SOURCES.
73195         * modules/relocatable-lib-lgpl (configure.ac): Invoke
73196         gl_RELOCATABLE_LIBRARY.
73197         (Makefile.am): Remove lib_SOURCES.
73198         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
73199         always.
73200         * modules/relocatable-prog-wrapper (configure.ac): Invoke
73201         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
73202
73203 2007-03-04  Bruno Haible  <bruno@clisp.org>
73204
73205         * modules/argmatch-tests: New file.
73206         * tests/test-argmatch.c: New file.
73207
73208         * tests/test-allocsa.c (main): Halve the number of loop runs.
73209
73210         * modules/alloca-opt-tests: New file.
73211         * tests/test-alloca-opt.c: New file.
73212
73213 2007-03-04  Jim Meyering  <jim@meyering.net>
73214
73215         Work around difference between Linux ACLs and Solaris 10 ZFS.
73216         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
73217         for EINVAL.
73218
73219 2007-03-03  Bruno Haible  <bruno@clisp.org>
73220
73221         * modules/relocatable-prog (Depends-on): Add back progreloc's
73222         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
73223
73224 2007-03-03  Bruno Haible  <bruno@clisp.org>
73225
73226         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
73227         * modules/relocatable-lib: New file.
73228
73229 2007-03-03  Bruno Haible  <bruno@clisp.org>
73230
73231         * modules/relocatable-prog: Renamed from modules/relocatable.
73232         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
73233
73234 2007-03-03  Bruno Haible  <bruno@clisp.org>
73235
73236         * modules/relocatable-script (Files): Add doc/relocatable.texi,
73237         m4/relocatable-lib.m4.
73238         (Depends-on): Remove 'relocatable'.
73239         (configure.ac): Add gl_RELOCATABLE_NOP.
73240
73241 2007-03-03  Bruno Haible  <bruno@clisp.org>
73242
73243         * modules/relocatable-prog-wrapper: New file.
73244         * modules/relocatable (Depends-on): Add it. Remove all other
73245         dependencies except progname.
73246         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
73247
73248         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
73249         (gl_FUNC_STRERROR): Nop.
73250         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
73251
73252         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
73253         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
73254
73255         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
73256         (gl_FUNC_READLINK): Update.
73257
73258         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
73259
73260 2007-03-03  Bruno Haible  <bruno@clisp.org>
73261
73262         * lib/xreadlink.c: Include <unistd.h> unconditionally.
73263         * modules/xreadlink (Depends-on): Add unistd.
73264         * modules/xreadlink-with-size (Depends-on): Likewise.
73265
73266 2007-03-03  Bruno Haible  <bruno@clisp.org>
73267
73268         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
73269         extracted from gt_FUNC_SETENV.
73270         (gt_FUNC_SETENV): Remove macro.
73271         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
73272         remove gt_FUNC_SETENV.
73273
73274 2007-03-03  Bruno Haible  <bruno@clisp.org>
73275
73276         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
73277         ENABLE_RELOCATABLE here.
73278         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
73279
73280 2007-03-03  Bruno Haible  <bruno@clisp.org>
73281
73282         * modules/rbtreehash-list-tests (Depends-on): Add progname.
73283         * tests/test-rbtreehash_list.c: Include progname.h.
73284         (main): Call set_program_name.
73285
73286         * modules/rbtree-oset-tests (Depends-on): Add progname.
73287         * tests/test-rbtree_oset.c: Include progname.h.
73288         (main): Call set_program_name.
73289
73290         * modules/rbtree-list-tests (Depends-on): Add progname.
73291         * tests/test-rbtree_list.c: Include progname.h.
73292         (main): Call set_program_name.
73293
73294         * modules/linked-list-tests (Depends-on): Add progname.
73295         * tests/test-linked_list.c: Include progname.h.
73296         (main): Call set_program_name.
73297
73298 2007-03-03  Bruno Haible  <bruno@clisp.org>
73299
73300         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
73301         All uses of __restrict changed to _Restrict_.
73302         * lib/glob_.h (__restrict): Remove macro.
73303
73304 2007-03-02  Bruno Haible  <bruno@clisp.org>
73305
73306         * modules/gettext (configure.ac): Require gettext infrastructure
73307         from version 0.16.1.
73308
73309 2007-03-02  Bruno Haible  <bruno@clisp.org>
73310
73311         * modules/linkedhash-list-tests (Depends-on): Add progname.
73312         * tests/test-linkedhash_list.c: Include progname.h.
73313         (main): Call set_program_name.
73314
73315         * modules/carray-list-tests (Depends-on): Add progname.
73316         * tests/test-carray_list.c: Include progname.h.
73317         (main): Call set_program_name.
73318
73319         * modules/avltreehash-list-tests (Depends-on): Add progname.
73320         * tests/test-avltreehash_list.c: Include progname.h.
73321         (main): Call set_program_name.
73322
73323         * modules/avltree-oset-tests (Depends-on): Add progname.
73324         * tests/test-avltree_oset.c: Include progname.h.
73325         (main): Call set_program_name.
73326
73327         * modules/avltree-list-tests (Depends-on): Add progname.
73328         * tests/test-avltree_list.c: Include progname.h.
73329         (main): Call set_program_name.
73330
73331         * modules/array-oset-tests (Depends-on): Add progname.
73332         * tests/test-array_oset.c: Include progname.h.
73333         (main): Call set_program_name.
73334
73335         * modules/array-list-tests (Depends-on): Add progname.
73336         * tests/test-array_list.c: Include progname.h.
73337         (main): Call set_program_name.
73338
73339         * modules/argp-tests (Depends-on): Add progname.
73340         * tests/test-argp.c: Include argp.h first. Include progname.h.
73341         (main): Call set_program_name.
73342
73343 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
73344
73345         * doc/gnulib-tool.texi (Initial import): Reword description of
73346         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
73347         limited effect even if defined after the first system include.
73348
73349 2007-03-01  Bruno Haible  <bruno@clisp.org>
73350
73351         * build-aux/config.libpath: Update to libtool-1.5.22.
73352         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73353
73354 2007-03-01  Bruno Haible  <bruno@clisp.org>
73355
73356         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
73357         foo_CFLAGS.
73358         Reported by Ralf Wildenhues.
73359
73360 2007-03-01  Bruno Haible  <bruno@clisp.org>
73361
73362         * build-aux/install-reloc: Remove object files left over by some
73363         compilers.
73364         Reported by Ralf Wildenhues.
73365
73366 2007-03-01  Bruno Haible  <bruno@clisp.org>
73367
73368         * build-aux/install-reloc: Break long lines.
73369
73370 2007-03-01  Bruno Haible  <bruno@clisp.org>
73371
73372         * doc/relocatable.texi: Document that it may not work on OpenBSD.
73373         Reported by Ralf Wildenhues.
73374
73375 2007-03-01  Bruno Haible  <bruno@clisp.org>
73376
73377         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
73378         include ordering constraints.
73379
73380 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73381
73382         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
73383         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
73384         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
73385         as another example.
73386         * lib/time_.h: Fix misspelling.
73387         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73388         Require gl_HEADER_TIME_H_DEFAULTS.
73389         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
73390         * m4/time_r.m4 (gl_TIME_R): Likewise.
73391         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
73392
73393 2007-03-01  Bruno Haible  <bruno@clisp.org>
73394
73395         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
73396         * m4/utimens.m4 (gl_UTIMENS): Likewise.
73397
73398 2007-03-01  Jim Meyering  <jim@meyering.net>
73399
73400         * modules/xreadlink (Maintainer): Add my name.
73401         * modules/xreadlink-with-size (Depends-on): Alphabetize.
73402
73403 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
73404             Bruno Haible  <bruno@clisp.org>
73405
73406         * build-aux/install-reloc: Compile also c-ctype.c.
73407         * build-aux/relocatable.sh.in: New file.
73408         * doc/relocatable.texi: New file.
73409         * doc/relocatable-maint.texi: New file.
73410         * doc/gnulib.texi: Include relocatable-maint.texi.
73411         * lib/progreloc.c: Include unistd.h unconditionally.
73412         * lib/relocwrapper.c: Include unistd.h unconditionally.
73413         Include c-ctype.h.
73414         (add_dotbin): Use c_tolower.
73415         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
73416         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
73417         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
73418         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
73419         to m4/relocatable-lib.m4.
73420         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
73421         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
73422         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
73423         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
73424         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
73425         * modules/relocatable: New file.
73426         * modules/relocatable-lib: New file.
73427         * modules/relocatable-script: New file.
73428
73429 2007-02-28  Bruno Haible  <bruno@clisp.org>
73430
73431         Import --enable-relocatable infrastructure.
73432         * build-aux/config.libpath: New file, from GNU gettext.
73433         * build-aux/install-reloc: New file, from GNU gettext.
73434         * build-aux/reloc-ldflags: New file, from GNU gettext.
73435         * lib/relocatable.h: New file, from GNU gettext.
73436         * lib/relocatable.c: New file, from GNU gettext.
73437         * lib/relocwrapper.c: New file, from GNU gettext.
73438         * m4/relocatable.m4: New file, from GNU gettext.
73439
73440 2007-02-28  Bruno Haible  <bruno@clisp.org>
73441
73442         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
73443
73444         * modules/xreadlink: New file, from GNU gettext with modifications.
73445         * lib/xreadlink.c: New file, from GNU gettext.
73446         * lib/xreadlink.h: Add comments.
73447         (xreadlink): New declaration.
73448
73449         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
73450         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
73451         lib/xreadlink-with-size.c.
73452         (configure.ac): Remove gl_XREADLINK invocation.
73453         (Makefile.am): Augment lib_SOURCES.
73454         * m4/xreadlink.m4: Remove file.
73455         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
73456         (xreadlink_with_size): Renamed from xreadink.
73457         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
73458         * modules/canonicalize (Depends-on): Replace xreadlink with
73459         xreadlink-with-size.
73460         * lib/canonicalize.c (canonicalize_filename_mode): Update.
73461
73462 2007-02-25  Jim Meyering  <jim@meyering.net>
73463
73464         * build-aux/announce-gen: When complaining about excess arguments,
73465         list them.
73466
73467 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73468
73469         * README: Document signed integer overflow situation more
73470         accurately.
73471
73472 2007-02-25  Bruno Haible  <bruno@clisp.org>
73473
73474         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
73475         'a' or 'A' conversion.
73476
73477 2007-02-25  Bruno Haible  <bruno@clisp.org>
73478
73479         * modules/filename: Renamed from modules/pathname.
73480         (Files): Replace lib/pathname.h with lib/filename.h. Replace
73481         lib/concatpath.c with lib/concat-filename.c.
73482         (Makefile.am): Update.
73483         (Include): Replace pathname.h with filename.h.
73484         * lib/filename.h: Renamed from lib/pathname.h.
73485         (concatenated_filename): Renamed from concatenated_pathname.
73486         * lib/concat-filename.c: Renamed from lib/concatpath.c.
73487         (concatenated_filename): Renamed from concatenated_pathname.
73488         * lib/findprog.c: Include filename.h instead of pathname.h.
73489         (find_in_path): Update.
73490         * lib/javacomp.c: Include filename.h instead of pathname.h.
73491         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
73492         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
73493         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
73494         is_oldgcj_14_13_usable, is_javac_usable): Update.
73495         * lib/javaexec.c: Include filename.h instead of pathname.h.
73496         (execute_java_class): Update.
73497         * modules/findprog: Update.
73498         * modules/javacomp: Update.
73499         * modules/javaexec: Update.
73500         * MODULES.html.sh (File system functions): Add 'filename', remove
73501         'pathname'.
73502
73503 2007-02-25  Bruno Haible  <bruno@clisp.org>
73504
73505         * modules/printf-frexpl-tests: New file.
73506         * tests/test-printf-frexpl.c: New file.
73507
73508         * modules/printf-frexpl: New file.
73509         * lib/printf-frexpl.h: New file.
73510         * lib/printf-frexpl.c: New file.
73511         * m4/printf-frexpl.m4: New file.
73512
73513 2007-02-25  Bruno Haible  <bruno@clisp.org>
73514
73515         * modules/printf-frexp-tests: New file.
73516         * tests/test-printf-frexp.c: New file.
73517
73518         * modules/printf-frexp: New file.
73519         * lib/printf-frexp.h: New file.
73520         * lib/printf-frexp.c: New file.
73521         * m4/printf-frexp.m4: New file.
73522
73523 2007-02-25  Bruno Haible  <bruno@clisp.org>
73524
73525         Assume automake >= 1.10 for the tests.
73526         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
73527         * modules/arctwo-tests: Likewise.
73528         * modules/argp-tests: Likewise.
73529         * modules/avltree-list-tests: Likewise.
73530         * modules/avltree-oset-tests: Likewise.
73531         * modules/avltreehash-list-tests: Likewise.
73532         * modules/carray-list-tests: Likewise.
73533         * modules/crc-tests: Likewise.
73534         * modules/des-tests: Likewise.
73535         * modules/gc-arcfour-tests: Likewise.
73536         * modules/gc-arctwo-tests: Likewise.
73537         * modules/gc-des-tests: Likewise.
73538         * modules/gc-hmac-md5-tests: Likewise.
73539         * modules/gc-hmac-sha1-tests: Likewise.
73540         * modules/gc-md2-tests: Likewise.
73541         * modules/gc-md4-tests: Likewise.
73542         * modules/gc-md5-tests: Likewise.
73543         * modules/gc-pbkdf2-sha1-tests: Likewise.
73544         * modules/gc-rijndael-tests: Likewise.
73545         * modules/gc-sha1-tests: Likewise.
73546         * modules/gc-tests: Likewise.
73547         * modules/getaddrinfo-tests: Likewise.
73548         * modules/hmac-md5-tests: Likewise.
73549         * modules/hmac-sha1-tests: Likewise.
73550         * modules/linked-list-tests: Likewise.
73551         * modules/linkedhash-list-tests: Likewise.
73552         * modules/lock-tests: Likewise.
73553         * modules/md2-tests: Likewise.
73554         * modules/md4-tests: Likewise.
73555         * modules/md5-tests: Likewise.
73556         * modules/rbtree-list-tests: Likewise.
73557         * modules/rbtree-oset-tests: Likewise.
73558         * modules/rbtreehash-list-tests: Likewise.
73559         * modules/read-file-tests: Likewise.
73560         * modules/rijndael-tests: Likewise.
73561         * modules/stdint-tests: Likewise.
73562         * modules/tls-tests: Likewise.
73563
73564 2007-02-24  Bruno Haible  <bruno@clisp.org>
73565
73566         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
73567         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
73568         function; instead check whether isnan with a double argument links.
73569         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
73570         function; instead check whether isnan with a 'long double' argument
73571         links.
73572         Reported by Eric Blake <ebb9@byu.net>.
73573
73574 2007-02-24  Bruno Haible  <bruno@clisp.org>
73575
73576         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
73577         defined.
73578         * lib/isnanl.c: Remove all code. Just include isnan.c.
73579         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
73580
73581 2007-02-25  Jim Meyering  <jim@meyering.net>
73582
73583         Avoid conflicting types for 'unsetenv' on FreeBSD.
73584         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
73585         conflicting with FreeBSD's (5.0 and 6.1) function declaration
73586         in stdlib.h.
73587
73588 2007-02-24  Bruno Haible  <bruno@clisp.org>
73589
73590         * modules/isnanl-nolibm-tests: New file.
73591         * tests/test-isnanl.c: New file.
73592
73593         * modules/isnanl-nolibm: New file.
73594         * lib/isnanl.h: New file.
73595         * lib/isnanl.c: New file.
73596         * m4/isnanl.m4: New file.
73597
73598 2007-02-24  Bruno Haible  <bruno@clisp.org>
73599
73600         * modules/isnan-nolibm-tests: New file.
73601         * tests/test-isnan.c: New file.
73602
73603         * modules/isnan-nolibm: New file.
73604         * lib/isnan.h: New file.
73605         * lib/isnan.c: New file.
73606         * m4/isnan.m4: New file.
73607
73608 2007-02-24  Bruno Haible  <bruno@clisp.org>
73609
73610         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
73611         assume that an exponent fits in 20 bits.
73612
73613 2007-02-24  Jim Meyering  <jim@meyering.net>
73614
73615         * m4/regex.m4: Update the description of the configure-time option,
73616         --without-included-regex, to state accurately what the defaults are,
73617         and perhaps to give people an idea why using this option is risky.
73618
73619 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73620
73621         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
73622         loops on small arguments.  This attempts to avoid the problem
73623         Bruno Haible reported for AIX 4.3.2 in
73624         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
73625
73626 2007-02-23  Bruno Haible  <bruno@clisp.org>
73627
73628         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
73629         Needed for help2man.
73630
73631 2007-02-23  Karl Berry  <karl@gnu.org>
73632
73633         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
73634         exists, foo.h should be cvs-ignored, not committed.
73635
73636 2007-02-23  Eric Blake  <ebb9@byu.net>
73637
73638         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
73639         * lib/stat-time.h (includes): Likewise.
73640         * lib/utimecmp.c (includes): Likewise.
73641         * lib/utimens.h (includes): Likewise.
73642         * lib/getdate.y (includes): Also include "timespec.h" for use
73643         internal to the module.
73644         * modules/utimens (Depends-on): Revert yesterday's patch.
73645         * modules/nanosleep (Depends-on): Add missing dependency.
73646
73647 2007-02-22  Bruno Haible  <bruno@clisp.org>
73648
73649         * lib/glob.c: Don't include getlogin_r.h.
73650
73651 2007-02-22  Jim Meyering  <jim@meyering.net>
73652
73653         * modules/utimens (Depends-on): Add timespec, required for
73654         utimens.h's inclusion of timespec.h.
73655
73656 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
73657
73658         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
73659         long unreadable paths in GNU/Linux.  Problem reported by Andreas
73660         Schwab in
73661         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
73662         I'll try to think of a better way to fix the Solaris problem.
73663
73664         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
73665         like glibc; on Solaris 10, it fails with errno == EINVAL.
73666         POSIX says the behavior is unspecified if the first argument is NULL,
73667         so play it safe and never pass NULL to the system getcwd.
73668
73669 2007-02-21  Jim Meyering  <jim@meyering.net>
73670
73671         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
73672         of gettimeofday.  It would conflict with the one now always
73673         provided via sys_time_.h.  Reported by Matthew Woehlke, as
73674         an IRIX 6.5 build failure.
73675
73676 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73677
73678         Minor fixups to port to Solaris 10 with Sun C 5.8.
73679         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
73680         * modules/getcwd (Depends-on): Add dirfd.
73681         * lib/putenv.c (putenv): #undef it.
73682         (rpl_putenv): New decl.
73683         (malloc, free): Include <stdlib.h> rather than prototyping separately.
73684
73685 2007-02-20  Bruno Haible  <bruno@clisp.org>
73686
73687         * modules/stdio-tests: New file.
73688         * tests/test-stdio.c: New file.
73689
73690         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
73691         (Depends-on): Add stdio.
73692         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73693         (Include): Use <stdio.h> instead of vsnprintf.h.
73694         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73695         HAVE_DECL_VSNPRINTF.
73696         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
73697
73698         * modules/snprintf (Files): Remove lib/snprintf.h.
73699         (Depends-on): Add stdio.
73700         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73701         (Include): Use <stdio.h> instead of snprintf.h.
73702         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73703         HAVE_DECL_SNPRINTF.
73704         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
73705         * lib/getaddrinfo.c: Likewise.
73706
73707         * modules/stdio: New file.
73708         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
73709         * lib/snprintf.h: Remove file.
73710         * lib/vsnprintf.h: Remove file.
73711         * lib/.cppi-disable: Remove snprintf.h.
73712         * m4/stdio_h.m4: New file.
73713         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
73714
73715 2007-02-20  Jim Meyering  <jim@meyering.net>
73716
73717         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
73718         used by e.g., mingw.  From Bruno Haible.
73719
73720 2007-02-19  Bruno Haible  <bruno@clisp.org>
73721
73722         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
73723         warnings.
73724         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73725
73726 2007-02-19  Bruno Haible  <bruno@clisp.org>
73727
73728         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
73729         from mingw users.
73730
73731 2007-02-19  Bruno Haible  <bruno@clisp.org>
73732
73733         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
73734         warnings.
73735         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
73736
73737 2007-02-19  Jim Meyering  <jim@meyering.net>
73738
73739         Don't use FD after a successful "fdopendir (fd)".
73740         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
73741         Reset it by calling dirfd on the just-obtained DIR*.
73742
73743         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
73744         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
73745
73746 2007-02-18  Bruno Haible  <bruno@clisp.org>
73747
73748         * lib/readlink.c: Include <unistd.h>.
73749         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
73750         HAVE_READLINK.
73751         * modules/readlink (Depends-on): Add unistd.
73752         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73753         (Include): Add <unistd.h>.
73754
73755         * lib/getlogin_r.h: Remove file.
73756         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
73757         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
73758         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
73759         HAVE_DECL_GETLOGIN_R.
73760         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
73761         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73762         (Include): Use <unistd.h> instead of getlogin_r.h.
73763
73764         * lib/getcwd.h: Remove file.
73765         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
73766         * lib/xgetcwd.c: Likewise.
73767         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
73768         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
73769         * modules/getcwd (Files): Remove lib/getcwd.h.
73770         (Depends-on): Add unistd.
73771         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73772         (Include): Use <unistd.h> instad of getcwd.h.
73773
73774         * lib/ftruncate.c: Include <unistd.h> first.
73775         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
73776         Set HAVE_FTRUNCATE.
73777         * modules/ftruncate (Depends-on): Add unistd.
73778         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73779
73780         * lib/fchdir.c: Include <unistd.h> first.
73781         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
73782         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
73783         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
73784         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73785         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
73786
73787         * lib/dup2.c: Include <unistd.h> first.
73788         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
73789         HAVE_DUP2.
73790         * modules/dup2 (Depends-on): Add unistd.
73791         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73792
73793         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
73794         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
73795         REPLACE_CHOWN. Don't define chown as a macro here.
73796         * modules/chown (Depends-on): Add unistd.
73797         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73798
73799         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
73800         Add definition for GL_LINK_WARNING.
73801         (chown, dup2): New declarations.
73802         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
73803         link warning.
73804         (ftruncate): New declaration.
73805         (getcwd): New declaration, taken from old getcwd.h.
73806         (getlogin_r): New declaration, taken from old getlogin_r.h.
73807         (readlink): New declaration.
73808         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
73809         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
73810         (gl_PREREQ_UNISTD): Remove macro.
73811         (gl_UNISTD_MODULE_INDICATOR): New macro.
73812         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
73813         many new variables. Don't set UNISTD_H.
73814         * modules/unistd (Description): Change.
73815         (Depends-on): Add link-warning.
73816         (configure.ac): Update.
73817         (Makefile.am): Create unistd.h always. Substitute many new variables
73818         into it.
73819
73820 2007-02-18  Bruno Haible  <bruno@clisp.org>
73821
73822         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
73823         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
73824         HAVE_GETSUBOPT.
73825         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
73826         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
73827         * lib/getsubopt.h: Remove file.
73828         * modules/getsubopt (Files): Remove lib/getsubopt.h.
73829         (Depends-on): Add stdlib.
73830         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73831         (Includes): Use <stdlib.h> instead of getsubopt.h.
73832         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
73833         Set HAVE_GETSUBOPT.
73834         * lib/getsubopt.c: Don't include getsubopt.h.
73835
73836 2007-02-18  Bruno Haible  <bruno@clisp.org>
73837
73838         * modules/fchdir (Depends-on): Add dup2.
73839
73840 2007-02-18  Bruno Haible  <bruno@clisp.org>
73841
73842         * lib/stdlib_.h: Handle glibc's special invocation convention
73843         specially.
73844
73845 2007-02-18  Bruno Haible  <bruno@clisp.org>
73846
73847         * modules/stdlib-tests: New file.
73848         * tests/test-stdlib.c: New file.
73849
73850         * modules/mkstemp (Files): Remove lib/mkstemp.h.
73851         (Depends-on): Add stdlib.
73852         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73853         (Includes): Use <stdlib.h> instead of mkstemp.h.
73854         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73855         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
73856         * lib/mkstemp.c: Don't include mkstemp.h.
73857         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
73858         * lib/stdlib--.h: Don't include mkstemp.h.
73859
73860         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
73861         (Depends-on): Add stdlib.
73862         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73863         (Includes): Use <stdlib.h> instead of mkdtemp.h.
73864         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73865         HAVE_MKDTEMP.
73866         * lib/mkdtemp.c: Don't include mkdtemp.h.
73867         * lib/clean-temp.c: Don't include mkdtemp.h.
73868
73869         * modules/exit (Files): Remove lib/exit.h.
73870         (Depends-on): Add stdlib.
73871         (Makefile.am): Remove lib_SOURCES.
73872         (Include): Use <stdlib.h> instead of exit.h.
73873         * lib/argmatch.c: Don't include exit.h.
73874         * lib/execute.c: Likewise.
73875         * lib/pagealign_alloc.c: Likewise.
73876         * lib/pipe.c: Likewise.
73877         * lib/wait-process.c: Likewise.
73878         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
73879         * lib/exitfail.c: Likewise.
73880         * lib/savewd.c: Likewise.
73881         * lib/xsetenv.c: Likewise.
73882
73883         * modules/stdlib: New file.
73884         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
73885         and extra comments about mkstemp().
73886         * lib/exit.h: Remove file.
73887         * lib/mkdtemp.h: Remove file.
73888         * lib/mkstemp.h: Remove file.
73889         * m4/stdlib_h.m4: New file.
73890         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
73891
73892 2007-02-18  Bruno Haible  <bruno@clisp.org>
73893
73894         * modules/math-tests: New file.
73895         * tests/test-math.c: New file.
73896
73897         * modules/math: New file.
73898         * modules/mathl (Files): Remove lib/mathl.h.
73899         (Depends-on): Add math.
73900         (Makefile.am): Don't mention mathl.h.
73901         (Include): Use <math.h> instead of mathl.h.
73902         * lib/math_.h: New file.
73903         * lib/mathl.h: Remove file.
73904         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
73905         mathl.h.
73906         * lib/asinl.c: Likewise.
73907         * lib/atanl.c: Likewise.
73908         * lib/ceill.c: Likewise.
73909         * lib/cosl.c: Likewise.
73910         * lib/expl.c: Likewise.
73911         * lib/floorl.c: Likewise.
73912         * lib/frexpl.c: Likewise.
73913         * lib/ldexpl.c: Likewise.
73914         * lib/logl.c: Likewise.
73915         * lib/sincosl.c: Likewise.
73916         * lib/sinl.c: Likewise.
73917         * lib/sqrtl.c: Likewise.
73918         * lib/tanl.c: Likewise.
73919         * lib/trigl.c: Likewise.
73920         * m4/math_h.m4: New file.
73921         * MODULES.html.sh (Mathematics): Add math.
73922
73923 2007-02-17  Bruno Haible  <bruno@clisp.org>
73924
73925         * modules/wctype-tests: New file.
73926         * tests/test-wctype.c: New file.
73927
73928         * modules/wchar-tests: New file.
73929         * tests/test-wchar.c: New file.
73930
73931         * modules/unistd-tests: New file.
73932         * tests/test-unistd.c: New file.
73933
73934         * modules/time-tests: New file.
73935         * tests/test-time.c: New file.
73936
73937         * modules/sysexits-tests: New file.
73938         * tests/test-sysexits.c: New file.
73939
73940         * modules/sys_time-tests: New file.
73941         * tests/test-sys_time.c: New file.
73942
73943         * modules/sys_stat-tests: New file.
73944         * tests/test-sys_stat.c: New file.
73945
73946         * modules/sys_socket-tests: New file.
73947         * tests/test-sys_socket.c: New file.
73948
73949         * modules/sys_select-tests: New file.
73950         * tests/test-sys_select.c: New file.
73951
73952         * modules/string-tests: New file.
73953         * tests/test-string.c: New file.
73954
73955         * modules/stdbool-tests: New file.
73956         * tests/test-stdbool.c: New file.
73957
73958         * modules/netinet_in-tests: New file.
73959         * tests/test-netinet_in.c: New file.
73960
73961         * modules/inttypes-tests: New file.
73962         * tests/test-inttypes.c: New file.
73963
73964         * modules/fcntl-tests: New file.
73965         * tests/test-fcntl.c: New file.
73966
73967         * modules/byteswap-tests: New file.
73968         * tests/test-byteswap.c: New file.
73969
73970         * modules/arpa_inet-tests: New file.
73971         * tests/test-arpa_inet.c: New file.
73972
73973 2007-02-17  Bruno Haible  <bruno@clisp.org>
73974
73975         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
73976         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
73977         if the corresponding module is not enabled. Emit link warnings if
73978         the function is used nevertheless.
73979         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
73980         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
73981         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
73982         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
73983         * modules/inttypes (Depends-on): Add link-warning.
73984         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73985         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
73986         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
73987         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
73988         * modules/imaxdiv (configure.ac): Likewise.
73989         * modules/strtoimax (configure.ac): Likewise.
73990         * modules/strtoumax (configure.ac): Likewise.
73991
73992 2007-02-17  Bruno Haible  <bruno@clisp.org>
73993
73994         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
73995         gl_STRING_MODULE_INDICATOR_DEFAULTS.
73996         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
73997         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
73998
73999 2007-02-17  Bruno Haible  <bruno@clisp.org>
74000
74001         * modules/link-warning: New file.
74002         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
74003         * lib/string_.h (GL_LINK_WARNING): Remove definition.
74004         * modules/string (Depends-on): Add link-warning.
74005         (Makefile.am): Copy the contents of build-aux/link-warning.h into
74006         string.h.
74007         * MODULES.html.sh (Support for building libraries and executables): Add
74008         link-warning.
74009
74010 2007-02-17  Bruno Haible  <bruno@clisp.org>
74011
74012         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
74013         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
74014         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
74015         long lines.
74016
74017 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
74018             Bruno Haible  <bruno@clisp.org>
74019
74020         * modules/tmpfile: New file.
74021         * lib/tmpfile.c: New file.
74022         * m4/tmpfile.m4: New file.
74023         * MODULES.html.sh (func_all_modules): New section "Input/output".
74024
74025 2007-02-15  Bruno Haible  <bruno@clisp.org>
74026
74027         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
74028         (supports_delete_on_close): New function.
74029         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
74030
74031 2007-02-14  Bruno Haible  <bruno@clisp.org>
74032
74033         * modules/mbspcasecmp-tests: New file.
74034         * tests/test-mbspcasecmp.sh: New file.
74035         * tests/test-mbspcasecmp.c: New file.
74036
74037         New module mbspcasecmp.
74038         * modules/mbspcasecmp: New file.
74039         * lib/mbspcasecmp.c: New file.
74040         * lib/string_.h (strncasecmp): Change warning message.
74041         (mbspcasecmp): New declaration.
74042         * m4/mbspcasecmp.m4: New file.
74043         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74044         GNULIB_MBSPCASECMP.
74045         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
74046         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
74047
74048 2007-02-14  Bruno Haible  <bruno@clisp.org>
74049
74050         * modules/mbsncasecmp-tests: New file.
74051         * tests/test-mbsncasecmp.sh: New file.
74052         * tests/test-mbsncasecmp.c: New file.
74053
74054         New module mbsncasecmp.
74055         * modules/mbsncasecmp: New file.
74056         * lib/mbsncasecmp.c: New file.
74057         * lib/string_.h (mbsncasecmp): New declaration.
74058         * m4/mbsncasecmp.m4: New file.
74059         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74060         GNULIB_MBSNCASECMP.
74061         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
74062         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
74063
74064 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74065
74066         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
74067         Verify that it doesn't overlap with our flags.
74068         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
74069         do not have the desired effect in multibyte locales; instead, use
74070         mbscasecmp.
74071         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
74072         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
74073         we don't require GNU fnmatch ourselves (if our users require it, they
74074         should do so explicitly).
74075
74076         Fix regex code so it doesn't rely on strcasecmp.
74077         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
74078         Otherwise, include gnulib's langinfo.h.
74079         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
74080         undesirable behavior in non-C locales.  Instead, rely on localecharset.
74081         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
74082         * modules/regex (FILES): Remove m4/codeset.m4.
74083         (Depends-on): Add localcharset.  Remove strcase.
74084
74085 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74086
74087         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
74088         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
74089
74090 2007-02-13  Bruno Haible  <bruno@clisp.org>
74091
74092         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
74093         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74094
74095 2007-02-12  Bruno Haible  <bruno@clisp.org>
74096
74097         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74098         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
74099         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
74100         time warning rather than a link error.
74101
74102 2007-02-12  Bruno Haible  <bruno@clisp.org>
74103
74104         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
74105         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
74106         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74107
74108 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74109
74110         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
74111         args, not 2.
74112
74113 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74114
74115         New module 'time', so that apps can include <time.h> as per
74116         POSIX and GNU instead of separate include files like time_r.h
74117         and timegm.h.  This implementation tries out a simpler approach
74118         for replacing decls in standard include files (as compared to
74119         the string module), somewhat as an experiment.
74120
74121         * config/srclist.txt: Comment out mktime.c for now.
74122         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
74123         since it doesn't apply any more.  Use generic wording instead.
74124         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
74125         'time'.
74126         * lib/time_.h, m4/time_h.m4, modules/time: New files.
74127         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
74128         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
74129         Don't include <sys/types.h>; no longer needed since we assume C89.
74130         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
74131         * lib/strftime.c: Likewise.
74132         * lib/time_r.c: Likewise.
74133         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
74134         * lib/nanosleep.c: Include <time.h> first, to check interface.
74135         * lib/strptime.c: Likewise.
74136         * lib/time_r.c: Likewise.
74137         * lib/timegm.c: Likewise.
74138         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
74139         needed.
74140         * lib/timegm.c: Don't include timegm.h; no longer needed.
74141         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
74142         time.h now handles any problems in that area.
74143         (struct timespec, nanosleep): Remove; time.h now arranges for these.
74144         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
74145         that time.h defines struct timespec.
74146         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
74147         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
74148         handles that.
74149         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
74150         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
74151         needed.  Set REPLACE_LOCALTIME.
74152         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
74153         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
74154         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
74155         nanosleep; time_h.m4 now does that.  Don't require
74156         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
74157         module handles this now.
74158         * modules/getdate (Depends-on): Remove timespec.  Add time.
74159         * modules/nanosleep (Depends-on): Likewise.
74160         * modules/stat-time (Depends-on): Likewise.
74161         * modules/nanosleep (Include): Include time.h, not timespec.h.
74162         * modules/strptime (Files): Remove lib/strptime.h.
74163         (Depends-on): Add extensions, time.
74164         (Include): Include time.h, not strptime.h.
74165         * modules/time_r (Files): Remove lib/time_r.h.
74166         (Depends-on): Add time.
74167         (Include): Include time.h, not time_r.h.
74168         * modules/timegm: Likewise.
74169         * modules/timespec (Description): Now does timespec-related decls
74170         of our own, instead of struct timespec itself.
74171         (Depends-on): Add time; remove extensions.
74172         (Maintainer): Add self.
74173         * modules/utimecmp (Depends-on): Add time; remove timespec.
74174         * modules/utimens (Depends-on): Likewise.
74175         * modules/xnanosleep (Depends-on): Likewise.
74176
74177 2007-02-11  Bruno Haible  <bruno@clisp.org>
74178
74179         * lib/c-strstr.c: Include allocsa.h.
74180         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74181         * lib/c-strcasestr.c: Include allocsa.h.
74182         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74183         * lib/strcasestr.c: Include allocsa.h.
74184         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74185         * lib/mbsstr.c: Include allocsa.h.
74186         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74187         allocsa/freesa instead of malloc/free.
74188         * lib/mbscasestr.c: Include allocsa.h.
74189         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74190         allocsa/freesa instead of malloc/free.
74191         * modules/c-strstr (Depends-on): Add allocsa.
74192         * modules/c-strcasestr (Depends-on): Likewise.
74193         * modules/strcasestr (Depends-on): Likewise.
74194         * modules/mbsstr (Depends-on): Likewise.
74195         * modules/mbscasestr (Depends-on): Likewise.
74196
74197 2007-02-11  Bruno Haible  <bruno@clisp.org>
74198
74199         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
74200
74201         * modules/mbsspn-tests: New file.
74202         * tests/test-mbsspn.sh: New file.
74203         * tests/test-mbsspn.c: New file.
74204
74205 2007-02-11  Bruno Haible  <bruno@clisp.org>
74206
74207         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
74208
74209         * modules/mbspbrk-tests: New file.
74210         * tests/test-mbspbrk.sh: New file.
74211         * tests/test-mbspbrk.c: New file.
74212
74213 2007-02-11  Bruno Haible  <bruno@clisp.org>
74214
74215         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
74216         unneeded cast.
74217
74218         * modules/mbscspn-tests: New file.
74219         * tests/test-mbscspn.sh: New file.
74220         * tests/test-mbscspn.c: New file.
74221
74222 2007-02-11  Bruno Haible  <bruno@clisp.org>
74223
74224         * modules/mbscasecmp-tests: New file.
74225         * tests/test-mbscasecmp.sh: New file.
74226         * tests/test-mbscasecmp.c: New file.
74227
74228 2007-02-11  Bruno Haible  <bruno@clisp.org>
74229
74230         Ensure O(n) worst-case complexity of mbscasestr.
74231         * lib/mbscasestr.c: Include stdbool.h.
74232         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74233         functions.
74234         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
74235         the bookkeeping indicates that it's worth it.
74236         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
74237
74238         * modules/mbscasestr-tests: New file.
74239         * tests/test-mbscasestr1.c: New file.
74240         * tests/test-mbscasestr2.sh: New file.
74241         * tests/test-mbscasestr2.c: New file.
74242         * tests/test-mbscasestr3.sh: New file.
74243         * tests/test-mbscasestr3.c: New file.
74244         * tests/test-mbscasestr4.sh: New file.
74245         * tests/test-mbscasestr4.c: New file.
74246         * m4/locale-tr.m4: New file.
74247
74248 2007-02-11  Bruno Haible  <bruno@clisp.org>
74249
74250         Ensure O(n) worst-case complexity of mbsstr.
74251         * lib/mbsstr.c: Include stdbool.h.
74252         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74253         functions.
74254         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
74255         bookkeeping indicates that it's worth it.
74256         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
74257
74258         * modules/mbsstr-tests: New file.
74259         * tests/test-mbsstr1.c: New file.
74260         * tests/test-mbsstr2.sh: New file.
74261         * tests/test-mbsstr2.c: New file.
74262         * tests/test-mbsstr3.sh: New file.
74263         * tests/test-mbsstr3.c: New file.
74264         * m4/locale-fr.m4: New file.
74265
74266 2007-02-11  Bruno Haible  <bruno@clisp.org>
74267
74268         * lib/mbsrchr.c (mbsrchr): Fix bug.
74269
74270         * modules/mbsrchr-tests: New file.
74271         * tests/test-mbsrchr.sh: New file.
74272         * tests/test-mbsrchr.c: New file.
74273
74274 2007-02-11  Bruno Haible  <bruno@clisp.org>
74275
74276         * lib/mbschr.c (mbschr): Fix bug.
74277
74278         * modules/mbschr-tests: New file.
74279         * tests/test-mbschr.sh: New file.
74280         * tests/test-mbschr.c: New file.
74281         * m4/locale-zh.m4: New file.
74282
74283 2007-02-11  Bruno Haible  <bruno@clisp.org>
74284
74285         Support for copying multibyte string iterators.
74286         * lib/mbiter.h: Include <string.h>.
74287         (mbiter_multi_copy): New function.
74288         (mbi_copy): New macro.
74289         * lib/mbuiter.h: Include <string.h>.
74290         (mbuiter_multi_copy): New function.
74291         (mbui_copy): New macro.
74292
74293 2007-02-11  Bruno Haible  <bruno@clisp.org>
74294
74295         New module mbslen.
74296         * modules/mbslen: New file.
74297         * lib/mbslen.c: New file.
74298         * lib/string_.h (mbslen): New declaration.
74299         * m4/mbslen.m4: New file.
74300         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74301         GNULIB_MBSLEN.
74302         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
74303         * MODULES.html.sh (Internationalization functions): Add mbslen.
74304
74305 2007-02-11  Bruno Haible  <bruno@clisp.org>
74306
74307         Ensure O(n) worst-case complexity of strcasestr substitute.
74308         * lib/strcasestr.c: Include stdbool.h.
74309         (knuth_morris_pratt): New function.
74310         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74311         bookkeeping indicates that it's worth it.
74312         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
74313
74314         * modules/strcasestr-tests: New file.
74315         * tests/test-strcasestr.c: New file.
74316
74317 2007-02-11  Bruno Haible  <bruno@clisp.org>
74318
74319         Ensure O(n) worst-case complexity of c_strcasestr.
74320         * lib/c-strcasestr.c: Include stdbool.h, string.h.
74321         (knuth_morris_pratt): New function.
74322         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
74323         the bookkeeping indicates that it's worth it.
74324         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
74325
74326         * modules/c-strcasestr-tests: New file.
74327         * tests/test-c-strcasestr.c: New file.
74328
74329 2007-02-11  Bruno Haible  <bruno@clisp.org>
74330
74331         Ensure O(n) worst-case complexity of c_strstr.
74332         * lib/c-strstr.c: Include stdbool.h, string.h.
74333         (knuth_morris_pratt): New function.
74334         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74335         bookkeeping indicates that it's worth it.
74336         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
74337
74338         * lib/c-strstr.c: Complete rewrite for maintainability.
74339
74340         * modules/c-strstr-tests: New file.
74341         * tests/test-c-strstr.c: New file.
74342
74343 2007-02-11  Bruno Haible  <bruno@clisp.org>
74344
74345         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
74346         5.2.1 and earlier, whereby \055 was treated just like the range
74347         delimiter '-'.
74348         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
74349
74350 2007-02-08  Bruno Haible  <bruno@clisp.org>
74351
74352         * modules/regex (Depends-on): Add stdbool.
74353         Reported by Dalibor Topic <robilad@kaffe.org>.
74354
74355 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74356
74357         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
74358         Prefer returning from main to exiting from it.
74359         Remove unnecessary parens after sizeof.
74360
74361 2007-02-05  Bruno Haible  <bruno@clisp.org>
74362
74363         New module mbssep.
74364         * modules/mbssep: New file.
74365         * lib/mbssep.c: New file.
74366         * lib/string_.h (strsep): Add a conditional link warning.
74367         (mbssep): New declaration.
74368         * m4/mbssep.m4: New file.
74369         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74370         GNULIB_MBSSEP.
74371         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
74372         * MODULES.html.sh (Internationalization functions): Add mbssep.
74373
74374 2007-02-05  Bruno Haible  <bruno@clisp.org>
74375
74376         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
74377         Optimize search in case of 1 delimiter.
74378
74379 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74380
74381         * lib/acl.h: Include sys/types.h before sys/acl.h.
74382
74383 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74384
74385         Merge upstream fix for glibc bugzilla #3957:
74386
74387         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
74388
74389         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
74390         bit for RE_HAT_LISTS_NOT_NEWLINE.
74391         (build_charclass_op): Remove bogus comment.
74392
74393 2007-02-05  Simon Josefsson  <simon@josefsson.org>
74394
74395         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
74396
74397 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74398
74399         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
74400         * lib/memmem.c [!defined _LIBC]: Include config.h.
74401
74402 2007-02-04  Bruno Haible  <bruno@clisp.org>
74403
74404         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
74405         warning message.
74406
74407 2007-02-04  Bruno Haible  <bruno@clisp.org>
74408
74409         New module mbstok_r.
74410         * modules/mbstok_r: New file.
74411         * lib/mbstok_r.c: New file.
74412         * lib/string_.h (strtok_r): Change argument names to match the
74413         comments. Add a conditional link warning.
74414         (mbstok_r): New declaration.
74415         * m4/mbstok_r.m4: New file.
74416         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74417         GNULIB_MBSTOK_R.
74418         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
74419         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
74420
74421 2007-02-04  Bruno Haible  <bruno@clisp.org>
74422
74423         New module mbsspn.
74424         * modules/mbsspn: New file.
74425         * lib/mbsspn.c: New file.
74426         * lib/string_.h (strspn): Add a conditional link warning.
74427         (mbsspn): New declaration.
74428         * m4/mbsspn.m4: New file.
74429         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74430         GNULIB_MBSSPN.
74431         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
74432         * MODULES.html.sh (Internationalization functions): Add mbsspn.
74433
74434 2007-02-04  Bruno Haible  <bruno@clisp.org>
74435
74436         New module mbspbrk.
74437         * modules/mbspbrk: New file.
74438         * lib/mbspbrk.c: New file.
74439         * lib/string_.h (strpbrk): Add a conditional link warning.
74440         (mbspbrk): New declaration.
74441         * m4/mbspbrk.m4: New file.
74442         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74443         GNULIB_MBSPBRK.
74444         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
74445         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
74446
74447 2007-02-04  Bruno Haible  <bruno@clisp.org>
74448
74449         New module mbscspn.
74450         * modules/mbscspn: New file.
74451         * lib/mbscspn.c: New file.
74452         * lib/string_.h (strcspn): Add a conditional link warning.
74453         (mbscspn): New declaration.
74454         * m4/mbscspn.m4: New file.
74455         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74456         GNULIB_MBSCSPN.
74457         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
74458         * MODULES.html.sh (Internationalization functions): Add mbscspn.
74459
74460 2007-02-04  Bruno Haible  <bruno@clisp.org>
74461
74462         New module mbscasestr, reduced goal of strcasestr.
74463         * modules/mbscasestr: New file.
74464         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
74465         (mbscasestr): Renamed from strcasestr.
74466         * lib/strcasestr.c: Don't include mbuiter.h.
74467         (strcasestr): Remove support for multibyte locales.
74468         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
74469         Change the conditional link warning.
74470         (mbscasestr): New declaration.
74471         * m4/mbscasestr.m4: New file.
74472         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
74473         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
74474         REPLACE_STRCASESTR.
74475         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
74476         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74477         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74478         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
74479         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
74480         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74481         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
74482         (Depends-on): Remove mbuiter.
74483         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
74484
74485 2007-02-04  Bruno Haible  <bruno@clisp.org>
74486
74487         Simplify handling of strncasecmp.
74488         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
74489         the conditional link warning.
74490         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74491         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
74492         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
74493         * modules/strcase (configure.ac): Don't invoke
74494         gl_STRING_MODULE_INDICATOR.
74495         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
74496
74497 2007-02-04  Bruno Haible  <bruno@clisp.org>
74498
74499         New module mbscasecmp, reduced goal of strcasecmp.
74500         * modules/mbscasecmp: New file.
74501         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
74502         (mbscasecmp): Renamed from strcasecmp.
74503         * lib/strcasecmp.c: Don't include mbuiter.h.
74504         (strcasecmp): Remove support for multibyte locales.
74505         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
74506         Change the conditional link warning.
74507         (mbscasecmp): New declaration.
74508         * m4/mbscasecmp.m4: New file.
74509         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
74510         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
74511         REPLACE_STRCASECMP.
74512         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
74513         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74514         GNULIB_MBSCASECMP.
74515         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
74516         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
74517         * modules/strcase (Files): Remove m4/mbrtowc.m4.
74518         (Depends-on): Remove mbuiter.
74519         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
74520
74521 2007-02-04  Bruno Haible  <bruno@clisp.org>
74522
74523         New module mbsstr. Remove module strstr.
74524         * modules/mbsstr: New file.
74525         * modules/strstr: Remove file.
74526         * lib/mbsstr.c: Renamed from lib/strstr.c.
74527         (mbsstr): Renamed from strstr.
74528         * lib/string_.h (strstr): Remove declaration. Change the conditional
74529         link warning.
74530         (mbsstr): New declaration.
74531         * m4/mbsstr.m4: New file.
74532         * m4/strstr.m4: Remove file.
74533         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
74534         REPLACE_STRSTR.
74535         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
74536         Don't initialize GNULIB_STRSTR.
74537         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
74538         substitute GNULIB_STRSTR and REPLACE_STRSTR.
74539         * MODULES.html.sh (Internationalization functions): Add mbsstr.
74540         (Support for systems lacking ANSI C 89): Remove strstr.
74541
74542 2007-02-04  Bruno Haible  <bruno@clisp.org>
74543
74544         New module mbsrchr.
74545         * modules/mbsrchr: New file.
74546         * lib/mbsrchr.c: New file.
74547         * lib/string_.h (strrchr): Add a conditional link warning.
74548         (mbsrchr): New declaration.
74549         * m4/mbsrchr.m4: New file.
74550         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74551         GNULIB_MBSRCHR.
74552         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
74553         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
74554
74555 2007-02-04  Bruno Haible  <bruno@clisp.org>
74556
74557         New module mbschr.
74558         * modules/mbschr: New file.
74559         * lib/mbschr.c: New file.
74560         * lib/string_.h (strchr): Add a conditional link warning.
74561         (mbschr): New declaration.
74562         * m4/mbschr.m4: New file.
74563         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74564         GNULIB_MBSCHR.
74565         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
74566         * MODULES.html.sh (Internationalization functions): Add mbschr.
74567
74568 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74569
74570         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
74571
74572         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
74573
74574 2007-02-04  Bruno Haible  <bruno@clisp.org>
74575
74576         New module description section 'configure.ac-early'.
74577         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
74578         (func_get_autoconf_early_snippet): New function.
74579         (func_import, func_create_testdir): Use it. Remove special cases for
74580         modules 'extensions' and 'lock'.
74581         * modules/extensions (configure.ac-early): Require
74582         gl_USE_SYSTEM_EXTENSIONS.
74583         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
74584
74585 2007-02-04  Bruno Haible  <bruno@clisp.org>
74586
74587         Make use of gcj-4.3's -fsource and -ftarget option.
74588         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
74589         and if so try the options -fsource and -ftarget.
74590         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
74591         source_version, ftarget_option, target_version arguments.
74592         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
74593         (is_envjavac_oldgcj_14_14_usable): Renamed from
74594         is_envjavac_gcj_14_14_usable.
74595         (is_envjavac_oldgcj_14_13_usable): Renamed from
74596         is_envjavac_gcj_14_13_usable.
74597         (is_gcj_present): Update.
74598         (is_gcj_43, is_gcj43_usable): New functions.
74599         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
74600         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
74601         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
74602         try the options -fsource and -ftarget.
74603
74604 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74605
74606         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
74607         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
74608         larger value.
74609
74610 2007-02-03  Jim Meyering  <jim@meyering.net>
74611
74612         Give tools a better chance to allocate space for very large buffers.
74613         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
74614
74615         Make pwd and readlink work also when run with an unreadable parent dir
74616         on systems with openat support.
74617         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
74618         provided getcwd function, even when we have openat support.
74619         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
74620
74621 2007-02-02  Bruno Haible  <bruno@clisp.org>
74622
74623         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74624         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
74625         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
74626         portability problems if one of these functions is only used on specific
74627         platforms.
74628         Reported by Paul Eggert.
74629
74630 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
74631
74632         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
74633         is causing more trouble than it's curing.
74634         * lib/regex_internal.h (__mempcpy): Remove.
74635         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
74636         (and make the code a tad smaller to boot).
74637         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
74638
74639 2007-02-02  Jim Meyering  <jim@meyering.net>
74640
74641         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
74642         section, not in the Makefile.am: one.
74643
74644 2007-02-02  Eric Blake  <ebb9@byu.net>
74645
74646         * lib/strchrnul.c: Always include config.h first.
74647
74648         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
74649         gnulib strstr is not necessary here.
74650
74651 2007-02-02  Simon Josefsson  <simon@josefsson.org>
74652
74653         * m4/socklen.m4: Fix typo.
74654
74655 2007-02-02  Eric Blake  <ebb9@byu.net>
74656
74657         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
74658         * modules/netinet_in (Makefile.am): Likewise.
74659
74660 2007-02-01  Bruno Haible  <bruno@clisp.org>
74661
74662         * lib/string_.h (GL_LINK_WARNING): New macro.
74663         (strcasecmp, strstr, strcasestr): If provided by the system,
74664         conditionally define as a macro that leads to a warning instead of to
74665         an error.
74666         (strncasecmp): Conditionally define as a macro that leads to a warning.
74667
74668 2007-02-01  Karl Berry  <karl@gnu.org>
74669
74670         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
74671
74672 2007-02-01  Bruno Haible  <bruno@clisp.org>
74673
74674         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
74675         renamings.
74676
74677 2007-02-01  Eric Blake  <ebb9@byu.net>
74678
74679         * modules/regex (Depends-on): Revert dependence on mempcpy.
74680         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
74681         module's definition of mempcpy.
74682         Reported by Paul Eggert.
74683
74684 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74685
74686         * lib/string_.h: If the gnulib module XYZ is not present, undefine
74687         the symbol XYZ before redefining it.  This fixes a problem with
74688         programs that don't use XYZ, when compiled on systems that define
74689         XYZ to something else.
74690
74691 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
74692
74693         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
74694         occurs when "mkdir -m foo" creates a setgid directory that is (1)
74695         writeable to group or other and (2) is intended to have a special
74696         mode bit that is set or cleared.  In such a case, the directory
74697         should be neither group- nor other-writeable until the special
74698         mode bits are right.
74699
74700 2007-01-31  Eric Blake  <ebb9@byu.net>
74701
74702         * modules/mountlist (Depends-on): Add strstr.
74703
74704         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
74705         bug.
74706         * modules/string (Makefile.am): Remove redundant replacement.
74707         * modules/regex (Depends-on): Add mempcpy.
74708
74709 2007-01-31  Bruno Haible  <bruno@clisp.org>
74710
74711         New module description field 'Link'.
74712         * gnulib-tool (func_usage): Document --extract-link-directive.
74713         (sed_extract_prog): Recognize 'Link' directive.
74714         (func_get_link_directive): New function.
74715         (func_import): Show summary of link directives.
74716         Handle --extract-link-directive option.
74717         * modules/acl (Link): New section.
74718         * modules/clock-time (Link): New section.
74719         * modules/euidaccess (Link): New section.
74720         * modules/gettext (Link): New section.
74721         * modules/iconv (Link): New section.
74722         * modules/lock (Link): New section.
74723         * modules/nanosleep (Link): New section.
74724         * modules/readline (Link): New section.
74725
74726 2007-01-27  Bruno Haible  <bruno@clisp.org>
74727
74728         Enforce the use of gnulib modules for unportable <string.h> functions.
74729         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
74730         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
74731         (gl_HEADER_STRING_H_BODY): Require it.
74732         * lib/string_.h: If the gnulib module XYZ is not present, redefine
74733         the symbol XYZ to one that gives a link error.
74734         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
74735         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
74736         * modules/mempcpy (configure.ac): Likewise.
74737         * modules/memrchr (configure.ac): Likewise.
74738         * modules/stpcpy (configure.ac): Likewise.
74739         * modules/stpncpy (configure.ac): Likewise.
74740         * modules/strcase (configure.ac): Likewise.
74741         * modules/strcasestr (configure.ac): Likewise.
74742         * modules/strchrnul (configure.ac): Likewise.
74743         * modules/strdup (configure.ac): Likewise.
74744         * modules/strndup (configure.ac): Likewise.
74745         * modules/strnlen (configure.ac): Likewise.
74746         * modules/strpbrk (configure.ac): Likewise.
74747         * modules/strsep (configure.ac): Likewise.
74748         * modules/strstr (configure.ac): Likewise.
74749         * modules/strtok_r (configure.ac): Likewise.
74750
74751 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
74752
74753         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
74754
74755 2007-01-30  Jim Meyering  <jim@meyering.net>
74756
74757         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
74758
74759 2007-01-29  Bruno Haible  <bruno@clisp.org>
74760
74761         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
74762         * lib/execute.c: Likewise.
74763         * lib/pipe.c: Likewise.
74764         * lib/printf-args.h: Likewise.
74765         * lib/printf-args.c: Likewise.
74766         * lib/printf-parse.c: Likewise.
74767         * lib/vasnprintf.c: Likewise.
74768
74769 2007-01-29  Eric Blake  <ebb9@byu.net>
74770
74771         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
74772         declaration.
74773
74774 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
74775
74776         * lib/strptime.h (strptime): Use 'restrict' for args where
74777         POSIX requires this.
74778         * lib/strptime.c (strptime): Likewise.
74779         Change license notice from LGPL to GPL, since gnulib-tool will
74780         change this as needed.
74781         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
74782         defined.
74783         Include "strptime.h" first, to check interface.
74784         Do not #undef _LIBC and _NL_CURRENT.
74785         Do not include <stdlib.h>; no longer needed.
74786         Include "time_r.h" and declare ptime_locale_status
74787         only if _LIBC is not defined.
74788         (__P): Remove unused macro.
74789         (match_string): Bring back glibc version, but use it only if _LIBC
74790         is defined.
74791         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
74792         Remove unnecessary assertion and abort() call.
74793         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
74794         * m4/strptime.m4: Fix serial number comment.
74795         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
74796         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
74797         (Depends-on): Add time_r.
74798
74799 2007-01-29  Bruno Haible  <bruno@clisp.org>
74800
74801         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74802         strptime.
74803         * modules/strptime (Depends-on): Add stdbool.
74804         * lib/strptime.h: Include <time.h> always. Add comments.
74805
74806 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74807
74808         * modules/strptime: New file.
74809         * lib/strptime.h: New file.
74810         * lib/strptime.c: New file.
74811         * m4/strptime.m4: New file.
74812
74813 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74814
74815         * MODULES.html.sh: New module mpsort.
74816         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
74817
74818         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
74819         a circularity problem with HP-UX ia64 reported by Bob Proulx in
74820         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
74821         All uses changed.
74822         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
74823         All uses changed.
74824         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
74825         to _Restrict_.
74826         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
74827         the parameter matches the prototype.
74828
74829 2007-01-28  Jim Meyering  <jim@meyering.net>
74830
74831         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
74832         sys/time.h here, reverting that part of the previous patch:
74833         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
74834
74835 2007-01-28  Bruno Haible  <bruno@clisp.org>
74836
74837         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
74838         value of $(SYS_TIME_H).
74839         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
74840         remove it conditionally, too. [added by Jim Meyering]
74841         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
74842         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74843         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
74844         GETTIMEOFDAY_REPLACEMENT to 1.
74845
74846 2007-01-28  Bruno Haible  <bruno@clisp.org>
74847
74848         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
74849         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
74850         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
74851         Set UNISTD_H instead of UNISTD_H2.
74852         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
74853
74854 2007-01-28  Bruno Haible  <bruno@clisp.org>
74855
74856         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
74857         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
74858
74859 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74860
74861         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
74862         (func_create_testdir): Ensure C locale for `grep' and `tr'
74863         character ranges.
74864         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
74865         ACLOCAL_AMFLAGS parsing state machine.
74866
74867 2007-01-27  Bruno Haible  <bruno@clisp.org>
74868
74869         * modules/unistr/base: Update.
74870
74871 2007-01-27  Bruno Haible  <bruno@clisp.org>
74872
74873         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
74874         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
74875         * modules/unistr/u32-mbtouc-unsafe: Renamed from
74876         modules/unistr/u32-mbtouc.
74877         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
74878         * lib/unistr.h: Update.
74879         * lib/linebreak.c: Update.
74880         * modules/unistr/u32-mbtouc: Renamed from
74881         modules/unistr/u32-mbtouc-safe.
74882         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
74883         * lib/unistr.h: Update.
74884         * lib/unistr/u32-to-u8.c: Update.
74885         * lib/unistr/u32-to-u16.c: Update.
74886
74887 2007-01-27  Bruno Haible  <bruno@clisp.org>
74888
74889         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
74890         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
74891         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
74892         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
74893         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
74894         * modules/unistr/u16-mbtouc-unsafe: Renamed from
74895         modules/unistr/u16-mbtouc.
74896         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
74897         * lib/unistr.h: Update.
74898         * lib/linebreak.c: Update.
74899         * modules/linebreak: Update.
74900         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
74901         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
74902         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
74903         * modules/unistr/u16-mbtouc: Renamed from
74904         modules/unistr/u16-mbtouc-safe.
74905         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
74906         * lib/unistr.h: Update.
74907         * lib/unistr/u16-to-u8.c: Update.
74908         * modules/unistr/u16-to-u8: Update.
74909         * lib/unistr/u16-to-u32.c: Update.
74910         * modules/unistr/u16-to-u32: Update.
74911
74912 2007-01-27  Bruno Haible  <bruno@clisp.org>
74913
74914         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
74915         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
74916         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
74917         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
74918         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
74919         * modules/unistr/u8-mbtouc-unsafe: Renamed from
74920         modules/unistr/u8-mbtouc.
74921         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
74922         * lib/unistr.h: Update.
74923         * lib/striconveh.c: Update.
74924         * modules/striconveh: Update.
74925         * lib/linebreak.c: Update.
74926         * modules/linebreak: Update.
74927         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
74928         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
74929         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
74930         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
74931         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
74932         * lib/unistr.h: Update.
74933         * lib/striconveh.c: Update.
74934         * modules/striconveh: Update.
74935         * lib/unistr/u8-to-u16.c: Update.
74936         * modules/unistr/u8-to-u16: Update.
74937         * lib/unistr/u8-to-u32.c: Update.
74938         * modules/unistr/u8-to-u32: Update.
74939
74940 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74941
74942         Sync from Libtool.
74943         * lib/argz.c: Do not include strings.h nor memory.h, include
74944         string.h unconditionally.  Patch by Simon Josefsson.
74945
74946 2007-01-27  Bruno Haible  <bruno@clisp.org>
74947
74948         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
74949         from gl_HEADER_STRING_H_BODY.
74950         (gl_HEADER_STRING_H_BODY): Require it.
74951         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
74952         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
74953         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
74954         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
74955         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
74956         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
74957         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74958         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
74959         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
74960         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
74961         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
74962         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
74963         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
74964         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74965         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74966
74967 2007-01-27  Bruno Haible  <bruno@clisp.org>
74968
74969         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
74970         check_PROGRAMS into noinst_PROGRAMS.
74971         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
74972         check_PROGRAMS in this case.
74973         (func_import): Set for_test to false.
74974         (func_create_testdir): Set for_test to true.
74975
74976 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74977             Bruno Haible  <bruno@clisp.org>
74978
74979         * modules/strcasestr (Files): Remove lib/strcasestr.h.
74980         (Depends-on): Add string.
74981         (Includes): Use <string.h> instead of strcasestr.h.
74982         * modules/string (Makefile.am): Also substitute the value of
74983         REPLACE_STRCASESTR.
74984         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
74985         assume strcasestr is declared in <string.h> not <strings.h>. Also
74986         set REPLACE_STRCASESTR.
74987         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
74988         REPLACE_STRCASESTR.
74989         * lib/strcasestr.h: Remove file.
74990         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
74991         * lib/string_.h (strcasestr): New declaration.
74992
74993 2007-01-27  Bruno Haible  <bruno@clisp.org>
74994
74995         * lib/string_.h: Use 'extern'.
74996
74997 2007-01-27  Jim Meyering  <jim@meyering.net>
74998
74999         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
75000         of set-but-not-used local, "q".
75001
75002         * lib/mempcpy.c: Include <config.h> before <string.h>.
75003         This fixes a compilation error on HP-UX, due to the system's
75004         "restrict"-using mempcpy prototype.
75005
75006 2007-01-26  Bruno Haible  <bruno@clisp.org>
75007
75008         Small optimization.
75009         * lib/javacomp.c: Include c-strstr.h.
75010          (is_envjavac_gcj): Use c_strstr instead of strstr.
75011         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
75012
75013 2007-01-26  Bruno Haible  <bruno@clisp.org>
75014
75015         * MODULES.html.sh (Unicode string functions): Add the new modules.
75016
75017         * modules/uniconv/u32-strconv-to-locale: New file.
75018         * lib/uniconv/u32-strconv-to-locale.c: New file.
75019
75020         * modules/uniconv/u16-strconv-to-locale: New file.
75021         * lib/uniconv/u16-strconv-to-locale.c: New file.
75022
75023         * modules/uniconv/u8-strconv-to-locale: New file.
75024         * lib/uniconv/u8-strconv-to-locale.c: New file.
75025
75026         * modules/uniconv/u32-strconv-from-locale: New file.
75027         * lib/uniconv/u32-strconv-from-locale.c: New file.
75028
75029         * modules/uniconv/u16-strconv-from-locale: New file.
75030         * lib/uniconv/u16-strconv-from-locale.c: New file.
75031
75032         * modules/uniconv/u8-strconv-from-locale: New file.
75033         * lib/uniconv/u8-strconv-from-locale.c: New file.
75034
75035         * modules/uniconv/u32-strconv-to-enc: New file.
75036         * lib/uniconv/u32-strconv-to-enc.c: New file.
75037         * modules/uniconv/u32-strconv-to-enc-tests: New file.
75038         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
75039
75040         * modules/uniconv/u16-strconv-to-enc: New file.
75041         * lib/uniconv/u16-strconv-to-enc.c: New file.
75042         * lib/uniconv/u-strconv-to-enc.h: New file.
75043         * modules/uniconv/u16-strconv-to-enc-tests: New file.
75044         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
75045
75046         * modules/uniconv/u8-strconv-to-enc: New file.
75047         * lib/uniconv/u8-strconv-to-enc.c: New file.
75048         * modules/uniconv/u8-strconv-to-enc-tests: New file.
75049         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
75050
75051         * modules/uniconv/u32-strconv-from-enc: New file.
75052         * lib/uniconv/u32-strconv-from-enc.c: New file.
75053         * modules/uniconv/u32-strconv-from-enc-tests: New file.
75054         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
75055
75056         * modules/uniconv/u16-strconv-from-enc: New file.
75057         * lib/uniconv/u16-strconv-from-enc.c: New file.
75058         * modules/uniconv/u16-strconv-from-enc-tests: New file.
75059         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
75060
75061         * modules/uniconv/u8-strconv-from-enc: New file.
75062         * lib/uniconv/u8-strconv-from-enc.c: New file.
75063         * lib/uniconv/u-strconv-from-enc.h: New file.
75064         * modules/uniconv/u8-strconv-from-enc-tests: New file.
75065         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
75066
75067         * modules/uniconv/u32-conv-from-enc: New file.
75068         * lib/uniconv/u32-conv-from-enc.c: New file.
75069         * modules/uniconv/u32-conv-from-enc-tests: New file.
75070         * tests/uniconv/test-u32-conv-from-enc.c: New file.
75071
75072         * modules/uniconv/u16-conv-from-enc: New file.
75073         * lib/uniconv/u16-conv-from-enc.c: New file.
75074         * lib/uniconv/u-conv-from-enc.h: New file.
75075         * modules/uniconv/u16-conv-from-enc-tests: New file.
75076         * tests/uniconv/test-u16-conv-from-enc.c: New file.
75077
75078         * modules/uniconv/u8-conv-from-enc: New file.
75079         * lib/uniconv/u8-conv-from-enc.c: New file.
75080         * modules/uniconv/u8-conv-from-enc-tests: New file.
75081         * tests/uniconv/test-u8-conv-from-enc.c: New file.
75082
75083         * modules/uniconv/base: New file.
75084         * lib/uniconv.h: New file.
75085
75086 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75087
75088         * doc/gnulib-tool.texi (Initial import): Update to match current
75089         behavior with strdup module.
75090         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
75091         * lib/memmem.h: Remove; all uses removed.  This is now done
75092         by <string.h>.
75093         * lib/mempcpy.h: Likewise.
75094         * lib/memrchr.h: Likewise.
75095         * lib/stpcpy.h: Likewise.
75096         * lib/stpncpy.h: Likewise.
75097         * lib/strcase.h: Likewise.
75098         * lib/strchrnul.h: Likewise.
75099         * lib/strdup.h: Likewise.
75100         * lib/strndup.h: Likewise.
75101         * lib/strnlen.h: Likewise.
75102         * lib/strpbrk.h: Likewise.
75103         * lib/strsep.h: Likewise.
75104         * lib/strstr.h: Likewise.
75105         * lib/strtok_r.h: Likewise.
75106         * lib/string_.h: New file.
75107         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
75108         Rely on <string.h> instead.
75109         * lib/canon-host.c: Likewise.
75110         * lib/chdir-long.c: Likewise.
75111         * lib/concatpath.c: Likewise.
75112         * lib/exclude.c: Likewise.
75113         * lib/fchdir.c: Likewise.
75114         * lib/getaddrinfo.c: Likewise.
75115         * lib/getcwd.c: Likewise.
75116         * lib/getsubopt.c: Likewise.
75117         * lib/glob.c: Likewise.
75118         * lib/hard-locale.c: Likewise.
75119         * lib/iconvme.c: Likewise.
75120         * lib/javacomp.c: Likewise.
75121         * lib/mempcpy.c: Likewise.
75122         * lib/memrchr.c: Likewise.
75123         * lib/regex_internal.h: Likewise.
75124         * lib/stpncpy.c: Likewise.
75125         * lib/strcasecmp.c: Likewise.
75126         * lib/strchrnul.c: Likewise.
75127         * lib/strdup.c: Likewise.
75128         * lib/striconv.c: Likewise.
75129         * lib/striconveh.c: Likewise.
75130         * lib/striconveha.c: Likewise.
75131         * lib/strncasecmp.c: Likewise.
75132         * lib/strndup.c: Likewise.
75133         * lib/strnlen.c: Likewise.
75134         * lib/strsep.c: Likewise.
75135         * lib/strstr.c: Likewise.
75136         * lib/strtok_r.c: Likewise.
75137         * lib/userspec.c: Likewise.
75138         * lib/w32spawn.h: Likewise.
75139         * lib/xstrndup.c: Likewise.
75140         * lib/mountlist.c (strstr): Remove decl.
75141         * m4/string_h.m4: New file.
75142         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
75143         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
75144         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
75145         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
75146         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
75147         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
75148         Set REPLACE_STRCASECMP if necessary.
75149         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
75150         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
75151         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
75152         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
75153         HAVE_DECL_STRDUP if necessary.
75154         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
75155         since gl_FUNC_STRNDUP does that now.
75156         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
75157         Check for decl here...
75158         (gl_PREREQ_STRNLEN): ... not here.
75159         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
75160         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
75161         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
75162         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
75163         necessary.
75164         * modules/string: New file.
75165         * modules/memmem (Files): Remove special-purpose include file.
75166         (Depends-on): Add string.
75167         (Include): Include <string.h>, not the removed file.
75168         * modules/mempcpy: Likewise.
75169         * modules/memrchr: Likewise.
75170         * modules/stpcpy: Likewise.
75171         * modules/stpncpy: Likewise.
75172         * modules/strcase: Likewise.
75173         * modules/strchrnul: Likewise.
75174         * modules/strdup: Likewise.
75175         * modules/strndup: Likewise.
75176         * modules/strnlen: Likewise.
75177         * modules/strpbrk: Likewise.
75178         * modules/strsep: Likewise.
75179         * modules/strstr: Likewise.
75180         * modules/strtok_r: Likewise.
75181         * tests/test-dirname.c: Don't include "strdup.h", since
75182         <string.h> now suffices.
75183         * tests/test-memmem.c: Don't include "memmem.h", since
75184         <string.h> now suffices.
75185
75186 2007-01-25  Bruno Haible  <bruno@clisp.org>
75187
75188         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
75189         *resultp is 0.
75190
75191         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
75192         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
75193         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
75194         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
75195
75196         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
75197         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
75198         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
75199         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
75200         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
75201         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
75202
75203 2007-01-24  Bruno Haible  <bruno@clisp.org>
75204
75205         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
75206         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
75207         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
75208         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
75209         gl_FUNC_FTS_CORE.
75210         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
75211         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
75212         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75213         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
75214         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
75215         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
75216         gl_FUNC_FCHOWNAT.
75217         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
75218         gl_FUNC_STRFTIME.
75219         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
75220         Reported by Ralf Wildenhues.
75221
75222 2007-01-24  Bruno Haible  <bruno@clisp.org>
75223
75224         Drop AC_REQUIRE calls that are redundant with the module dependencies.
75225         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
75226         gl_GETADDRINFO.
75227         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
75228         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
75229         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
75230
75231 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
75232
75233         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
75234         Don't use 'exit'; just return from 'main'.
75235         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
75236
75237         * lib/fnmatch_.h: Readjust white space and comments to match
75238         glibc, to avoid spurious diffs.
75239
75240 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75241
75242         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
75243         2004-12-01 change by Jakub Jelinek, since this code won't compile
75244         if !LIBC.  Problem reported by Bob Proulx.
75245
75246 2007-01-23  Bruno Haible  <bruno@clisp.org>
75247
75248         * lib/striconveh.c: Include c-strcaseeq.h.
75249         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
75250         * modules/striconveh (Depends-on): Add c-strcaseeq.
75251
75252 2007-01-23  Bruno Haible  <bruno@clisp.org>
75253
75254         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
75255
75256         * modules/c-strcaseeq: New file.
75257         * lib/c-strcaseeq.h: New file.
75258
75259         * modules/streq: New file.
75260         * lib/streq.h: New file.
75261
75262 2007-01-23  Bruno Haible  <bruno@clisp.org>
75263
75264         * modules/striconveha-tests: New file.
75265         * tests/test-striconveha.c: New file.
75266
75267         * lib/striconveha.h: Include <stdbool.h>.
75268         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
75269         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
75270         (mem_iconveha_notranslit): Renamed from mem_iconveha.
75271         (mem_iconveha): New function.
75272         (str_iconveha_notranslit): Renamed from str_iconveha.
75273         (str_iconveha): New function.
75274         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
75275         c-strcase.
75276
75277 2007-01-23  Bruno Haible  <bruno@clisp.org>
75278
75279         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
75280         encodings without forgiving before trying any encoding with handler.
75281         (str_iconveha): Try all encodings without forgiving before trying any
75282         encoding with handler.
75283
75284 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75285
75286         Import the following changes from libc.
75287
75288         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
75289
75290         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
75291
75292         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75293
75294         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
75295         normal_bracket label.
75296
75297         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
75298
75299         [BZ #361]
75300         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
75301         to normal_bracket after fetching the next character.
75302
75303 2007-01-22  Bruno Haible  <bruno@clisp.org>
75304
75305         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
75306         argument.
75307         * lib/striconveh.c (iconv_carefully_1): New function.
75308         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
75309         argument.
75310         (str_cd_iconveh): Update.
75311         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
75312         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
75313         * tests/test-striconveh.c (MAGIC): New macro.
75314         (new_offsets): New function.
75315         (main): Test call with and without offsets.
75316
75317 2007-01-22  Bruno Haible  <bruno@clisp.org>
75318
75319         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
75320         * modules/sys_select (Makefile.am): Likewise.
75321         * modules/sys_socket (Makefile.am): Likewise.
75322         * modules/sys_time (Makefile.am): Likewise.
75323
75324 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75325
75326         * modules/gettimeofday (License): Change from GPL to LGPL, since
75327         gettimeofday is a library function.
75328
75329 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75330
75331         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
75332
75333 2007-01-21  Bruno Haible  <bruno@clisp.org>
75334
75335         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
75336
75337 2007-01-21  Bruno Haible  <bruno@clisp.org>
75338
75339         * modules/striconveha: New file.
75340         * lib/striconveha.h: New file.
75341         * lib/striconveha.c: New file.
75342         * MODULES.html.sh (Internationalization functions): Add striconveha.
75343         * lib/striconv.c (str_iconv): Optimize the case of an empty input
75344         string.
75345         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
75346
75347 2007-01-21  Bruno Haible  <bruno@clisp.org>
75348
75349         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
75350         * lib/striconveh.c (str_iconveh): Likewise.
75351
75352 2007-01-21  Bruno Haible  <bruno@clisp.org>
75353
75354         * lib/striconveh.h (mem_iconveh): New declaration.
75355         * lib/striconveh.c (mem_iconveh): New function.
75356         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
75357
75358 2007-01-21  Bruno Haible  <bruno@clisp.org>
75359
75360         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
75361
75362         * lib/striconveh.h (mem_cd_iconveh): Change specification.
75363         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
75364         original result buffer.
75365         (str_cd_iconveh): Update.
75366         * tests/test-striconveh.c (main): Update.
75367
75368         * lib/striconv.h (mem_cd_iconv): Change specification.
75369         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
75370         result buffer.
75371         (str_cd_iconv): Update.
75372         * tests/test-striconv.c (main): Update.
75373
75374 2007-01-21  Bruno Haible  <bruno@clisp.org>
75375
75376         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
75377
75378 2007-01-20  Jim Meyering  <jim@meyering.net>
75379
75380         * lib/userspec.c (parse_with_separator): If a user or group string
75381         starts with "+", skip the corresponding name-to-ID look-up, since
75382         such a look-up must fail: user and group names may not include "+".
75383
75384 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75385
75386         * lib/poll.c: Include sys/time.h and time.h unconditionally,
75387         since we now assume the sys_time module.
75388         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
75389         check for sys/time.h; no longer needed.
75390         * modules/poll (Depends-on): Depend on sys_time.
75391
75392 2007-01-18  Bruno Haible  <bruno@clisp.org>
75393
75394         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
75395         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75396
75397         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
75398         gettimeofday.
75399
75400         * tests/test-gettimeofday.c: Include <time.h>.
75401         (dummy): Remove variable.
75402
75403         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
75404         gl_HEADER_SYS_TIME_H.
75405         (gl_HEADER_SYS_TIME_H): New macro.
75406
75407         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
75408         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75409         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
75410         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
75411         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75412         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
75413         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
75414         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75415         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
75416         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
75417         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75418
75419         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
75420         last change; it caused a compilation error when cross-compiling to
75421         Cygwin.
75422
75423 2007-01-18  Jim Meyering  <jim@meyering.net>
75424
75425         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
75426         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
75427         than the race-prone "test -d sys || mkdir sys".
75428         (configure.ac): Use AC_PROG_MKDIR_P.
75429         * modules/sys_select: Likewise.
75430         * modules/sys_socket: Likewise.
75431         * modules/sys_time: Likewise.
75432
75433 2007-01-18  Eric Blake  <ebb9@byu.net>
75434
75435         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
75436         replace gettimeofday.
75437         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
75438         name, to avoid infinite recursion.
75439
75440 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
75441
75442         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
75443         module sys_time.
75444         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
75445         assume timespec.h defines struct timeval.
75446         * lib/settime.c: Likewise.
75447         * lib/utimens.c: Likewise.
75448         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
75449         since we now assume the gettimeofday module.
75450         * lib/tempname.c (__gen_tempname): Likewise.
75451         * lib/gettimeofday.h: Remove.
75452         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
75453         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
75454         Include <time.h>, for 'time()'.
75455         (localtime_buffer_addr): Also use this workaround if
75456         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
75457         to simplify the uses.  All uses changed.
75458         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
75459         that #undef is inside {}, and 'const' follows type name consistently.
75460         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
75461         (gettimeofday): Do not use the maximum possible value for
75462         tv->tv_usec, since that might break usages other than ls.c.
75463         Instead, we'll leave ls.c alone.  This undoes today's patch
75464         by Bruno.  Add a compile-time warning for 1s-clock resolution;
75465         we've never observed the problem but might as well keep the
75466         canary.
75467         * lib/nanosleep.c: Include timespec.h first, for interface check.
75468         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
75469         now assume the sys_time module.
75470         * lib/tempname.c: Likewise.
75471         * lib/timespec.h: Likewise.
75472         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
75473         needed.
75474         * lib/strftime.c: Likewise.
75475         * lib/timespec.h: Likewise.
75476         * lib/posixtm.c: Include posixtm.h first, for interface check.
75477         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
75478         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
75479         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
75480         * lib/sys_time_.h: New file.
75481         * lib/timespec.h (struct timespec): Use long int, not long.
75482         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75483         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
75484         Remove obsolescent call to AC_HEADER_TIME.
75485         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
75486         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75487         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75488         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
75489         Likewise.
75490         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
75491         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
75492         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
75493         into the sys_time module.  Check for gettimeofday just once.
75494         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
75495         for gettimeofday signature to just check the signature.  Merely
75496         compile it, since linking doesn't test signature.  Improve test for
75497         whether gettimeofday.o is actually needed.
75498         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
75499         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
75500         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
75501         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75502         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
75503         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
75504         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
75505         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
75506         than worrying about sys/time.h.
75507         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75508         Don't bother worrying about TIME_WITH_SYS_TIME.
75509         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
75510         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
75511         * m4/sys_time_h.m4: New file.
75512         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
75513         Don't include sys/time.h.  Return from main rather than exiting.
75514         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
75515         all uses changed.
75516         * modules/gethrxtime (Depends-on): Add sys_time.
75517         * modules/gettime (Depends-on): Likewise.
75518         * modules/gettimeofday (Depends-on): Likewise.
75519         * modules/nanosleep (Depends-on): Likewise.
75520         * modules/settime (Depends-on): Likewise.
75521         * modules/tempname (Depends-on): Likewise.
75522         * modules/utimens (Depends-on): Likewise.
75523         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
75524         (Include): Change back to <sys/time.h>.
75525         (Maintainer): Add self.
75526         * modules/sys_time: New file.
75527         * modules/tempname (Depends-on): Add gettimeofday.
75528         * tests/test-gettimeofday.c: Include <sys/time.h>
75529         rather than gettimeofday.h.
75530
75531 2007-01-17  Bruno Haible  <bruno@clisp.org>
75532
75533         * gnulib-tool (func_get_license): Revert last patch. Instead, let
75534         the license default to GPL.
75535         (func_create_testdir): Don't complain if a module is LGPL and its
75536         tests module depends on GPLed modules.
75537
75538 2007-01-17  Bruno Haible  <bruno@clisp.org>
75539
75540         * lib/gettimeofday.c (gettimeofday): Add code for the case
75541         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
75542         maximum possible value for tv->tv_usec, rather than the minimum one.
75543
75544 2005-10-08  Martin Lambers  <marlam@marlam.de>
75545 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75546 2007-01-16  Bruno Haible  <bruno@clisp.org>
75547
75548         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
75549         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
75550         gl_FUNC_GETTIMEOFDAY.
75551         (Include): Add gettimeofday.h.
75552         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
75553         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
75554         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
75555         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
75556         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
75557         * lib/gettimeofday.h: New file.
75558         * lib/gettimeofday.c: Include <sys/timeb.h>.
75559         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
75560         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75561         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
75562         fall back on time().
75563
75564         * tests/test-gettimeofday.c: New file.
75565         * modules/gettimeofday-tests: New file.
75566
75567 2007-01-16  Eric Blake  <ebb9@byu.net>
75568
75569         * modules/fnmatch (Depends-on): Depend on wchar.
75570         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
75571         * m4/fnmatch.m4: Likewise.
75572         * modules/mbchar (Makefile.am): Assume <wchar.h>.
75573         * m4/mbchar.m4: Likewise.
75574         * modules/mbswidth (Depends-on): Depend on wchar.
75575         * lib/mbswidth.c: Assume <wchar.h>.
75576         * m4/mbswidth.m4: Likewise.
75577         * modules/quotearg (Depends-on): Depend on wchar.
75578         * lib/quotearg.c: Assume <wchar.h>.
75579         * m4/quotearg.m4: Likewise.
75580         * modules/regex (Depends-on): Depend on wchar.
75581         * lib/regex_internal.h: Assume <wchar.h>.
75582         * m4/regex.m4: Likewise.
75583         * modules/stdint (Depends-on): Depend on wchar.
75584         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
75585         * m4/stdint.m4: Likewise.
75586         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
75587         * modules/strftime (Depends-on): Depend on wchar.
75588         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
75589         * modules/strtol (Depends-on): Depend on wchar.
75590         * lib/strtol.c: Assume <wchar.h>.
75591         * modules/wcwidth (Depends-on): Depend on wchar.
75592         * lib/wcwidth.h: Assume <wchar.h>.
75593         * m4/wcwidth.m4: Likewise.
75594
75595 2007-01-16  Bruno Haible  <bruno@clisp.org>
75596
75597         * modules/csharpexec-script: New, created from...
75598         * modules/csharpexec: ... this.
75599
75600 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
75601
75602         * modules/javaexec-script: New, created from...
75603         * modules/javaexec: ... this.
75604
75605 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75606
75607         * modules/poll (Dependencies): Add sys_select.
75608
75609 2007-01-15  Jim Meyering  <jim@meyering.net>
75610
75611         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
75612         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
75613         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
75614         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
75615
75616 2007-01-15  Bruno Haible  <bruno@clisp.org>
75617
75618         * modules/striconveh: New file.
75619         * lib/striconveh.h: New file.
75620         * lib/striconveh.c: New file.
75621         * MODULES.html.sh (Internationalization functions): Add striconveh.
75622
75623         * modules/striconveh-tests: New file.
75624         * tests/test-striconveh.c: New file.
75625
75626 2007-01-15  Bruno Haible  <bruno@clisp.org>
75627
75628         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
75629         not from GNU libiconv or GNU libc.
75630
75631 2007-01-15  Bruno Haible  <bruno@clisp.org>
75632
75633         * doc/gnulib-intro.texi (Copyright): Explain the different license
75634         terms for module descriptions, autoconf macros, tests, documentation.
75635
75636 2007-01-14  Bruno Haible  <bruno@clisp.org>
75637
75638         * modules/striconv-tests: New file.
75639         * tests/test-striconv.c: New file.
75640
75641 2007-01-14  Bruno Haible  <bruno@clisp.org>
75642
75643         * modules/iconv-tests: New file.
75644         * tests/test-iconv.c: New file.
75645
75646 2007-01-14  Bruno Haible  <bruno@clisp.org>
75647
75648         * gnulib-tool (func_get_license): For test modules, use the license of
75649         the main module.
75650
75651 2007-01-14  Bruno Haible  <bruno@clisp.org>
75652
75653         * modules/iconv (Include): Clarify that <iconv.h> can only be included
75654         if iconv is found to exist.
75655
75656 2007-01-14  Bruno Haible  <bruno@clisp.org>
75657
75658         * modules/c-ctype-tests: New file.
75659         * tests/test-c-ctype.c: New file.
75660
75661 2007-01-14  Bruno Haible  <bruno@clisp.org>
75662
75663         * modules/binary-io-tests: New file.
75664         * tests/test-binary-io.sh: New file.
75665         * tests/test-binary-io.c: New file.
75666
75667 2007-01-14  Bruno Haible  <bruno@clisp.org>
75668
75669         * modules/array-oset-tests: New file.
75670         * tests/test-array_oset.c: New file.
75671
75672 2007-01-14  Bruno Haible  <bruno@clisp.org>
75673
75674         * modules/array-list-tests: New file.
75675         * tests/test-array_list.c: New file.
75676
75677 2007-01-14  Bruno Haible  <bruno@clisp.org>
75678
75679         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
75680         and make.
75681         Reported by Simon Josefsson in
75682         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
75683
75684 2007-01-14  Bruno Haible  <bruno@clisp.org>
75685
75686         * modules/allocsa-tests: New file.
75687         * tests/test-allocsa.c: New file.
75688
75689 2007-01-14  Bruno Haible  <bruno@clisp.org>
75690
75691         * modules/fchdir (Depends-on): Add absolute-header.
75692         * modules/unistd (Depends-on): Likewise.
75693
75694 2006-12-30  Bruno Haible  <bruno@clisp.org>
75695
75696         * modules/fchdir: New file.
75697         * modules/unistd (Files): Add lib/unistd_.h.
75698         (Makefile.am): Generate unistd.h from unistd_.h.
75699         * lib/fchdir.c: New file.
75700         * lib/dirent_.h: New file.
75701         * lib/unistd_.h: New file.
75702         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
75703         * m4/fchdir.m4: New file.
75704         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
75705         (gl_HEADER_UNISTD): Invoke it.
75706         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
75707         function.
75708         * lib/backupfile.c (opendir, closedir): Undefine.
75709         * lib/chown.c (open, close): Undefine.
75710         * lib/clean-temp.c (open, close): Undefine.
75711         * lib/copy-file.c (open, close): Undefine.
75712         * lib/execute.c (open, close): Undefine.
75713         * lib/fsusage.c (open, close): Undefine.
75714         * lib/gc-gnulib.c (open, close): Undefine.
75715         * lib/getcwd.c (opendir, closedir): Undefine.
75716         * lib/glob.c (opendir, closedir): Undefine.
75717         * lib/javacomp.c (open, close): Undefine.
75718         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
75719         * lib/openat-proc.c (open, close): Undefine.
75720         * lib/pagealign_alloc.c (open, close): Undefine.
75721         * lib/pipe.c (open, close): Undefine.
75722         * lib/progreloc.c (open, close): Undefine.
75723         * lib/savedir.c (opendir, closedir): Undefine.
75724         * lib/utime.c (open, close): Undefine.
75725         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
75726
75727 2007-01-10  Bruno Haible  <bruno@clisp.org>
75728
75729         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
75730
75731 2007-01-12  Eric Blake  <ebb9@byu.net>
75732
75733         Provide a robust <wchar.h>.  Further simplifications are now
75734         possible in other modules, but not included here.
75735         * modules/wchar: New module.
75736         * m4/wchar.m4: New file.
75737         * lib/wchar_.h: Likewise.
75738         * modules/mbchar (Depends-on): Depend on wchar, as the first use
75739         of the new module.
75740         * MODULES.html.sh (Extended multibyte and wide character utilities):
75741         New section.
75742
75743 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
75744
75745         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
75746         to a reasonable default for memory allocation.
75747         (xreadlink): Don't allocate a huge buffer, to work around a buggy
75748         file system that reports garbage st_size values for symlinks.
75749         Problem reported by Liyang Hu.
75750
75751 2007-01-11  Simon Josefsson  <simon@josefsson.org>
75752
75753         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
75754         Emacs .#* auto-save files).
75755
75756 2007-01-11  Bruno Haible  <bruno@clisp.org>
75757
75758         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
75759         directory.
75760
75761 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75762
75763         Use @...@ consistently in lib/wctype_.h.
75764         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
75765         on it being set to 1 or 0.
75766         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
75767         go back to AC_SUBSTing it.
75768         * modules/wctype (Makefile.am): Undo previous change.
75769
75770 2007-01-10  Eric Blake  <ebb9@byu.net>
75771
75772         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
75773         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
75774         * modules/wctype (Makefile.am): Likewise.
75775         Reported by Chris McGuire.
75776
75777 2007-01-10  Jim Meyering  <jim@meyering.net>
75778
75779         fts.c: a small readability/maintainability improvement
75780         * lib/fts.c (fts_read): Make this code slightly more readable and
75781         maintainable by hoisting the "sp->fts_cur = p" assignments to
75782         immediately follow the statements that set P.  Derived from
75783         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
75784
75785 2007-01-10  Eric Blake  <ebb9@byu.net>
75786
75787         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
75788         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
75789         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75790         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
75791         Reported by Chris McGuire.
75792
75793 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75794
75795         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
75796         in sed script.
75797
75798 2007-01-09  Bruno Haible  <bruno@clisp.org>
75799
75800         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
75801         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
75802         variables.
75803         (func_module): Use them.
75804
75805 2007-01-09  Bruno Haible  <bruno@clisp.org>
75806
75807         * modules/unistr/base: New file.
75808         * lib/unistr.h: New file.
75809
75810         * modules/unistr/u8-to-u16: New file.
75811         * lib/unistr/u8-to-u16.c: New file.
75812
75813         * modules/unistr/u8-to-u32: New file.
75814         * lib/unistr/u8-to-u32.c: New file.
75815
75816         * modules/unistr/u16-to-u8: New file.
75817         * lib/unistr/u16-to-u8.c: New file.
75818
75819         * modules/unistr/u16-to-u32: New file.
75820         * lib/unistr/u16-to-u32.c: New file.
75821
75822         * modules/unistr/u32-to-u8: New file.
75823         * lib/unistr/u32-to-u8.c: New file.
75824
75825         * modules/unistr/u32-to-u16: New file.
75826         * lib/unistr/u32-to-u16.c: New file.
75827
75828         * modules/unistr/u8-check: New file.
75829         * modules/unistr/u16-check: New file.
75830         * modules/unistr/u32-check: New file.
75831         * lib/unistr/u8-check.c: New file.
75832         * lib/unistr/u16-check.c: New file.
75833         * lib/unistr/u32-check.c: New file.
75834
75835         * modules/unistr/u8-chr: New file.
75836         * modules/unistr/u16-chr: New file.
75837         * modules/unistr/u32-chr: New file.
75838         * lib/unistr/u8-chr.c: New file.
75839         * lib/unistr/u16-chr.c: New file.
75840         * lib/unistr/u32-chr.c: New file.
75841
75842         * modules/unistr/u8-cmp: New file.
75843         * modules/unistr/u16-cmp: New file.
75844         * modules/unistr/u32-cmp: New file.
75845         * lib/unistr/u8-cmp.c: New file.
75846         * lib/unistr/u16-cmp.c: New file.
75847         * lib/unistr/u32-cmp.c: New file.
75848
75849         * modules/unistr/u8-cpy: New file.
75850         * modules/unistr/u16-cpy: New file.
75851         * modules/unistr/u32-cpy: New file.
75852         * lib/unistr/u8-cpy.c: New file.
75853         * lib/unistr/u16-cpy.c: New file.
75854         * lib/unistr/u32-cpy.c: New file.
75855         * lib/unistr/u-cpy.h: New file.
75856
75857         * modules/unistr/u8-cpy-alloc: New file.
75858         * modules/unistr/u16-cpy-alloc: New file.
75859         * modules/unistr/u32-cpy-alloc: New file.
75860         * lib/unistr/u8-cpy-alloc.c: New file.
75861         * lib/unistr/u16-cpy-alloc.c: New file.
75862         * lib/unistr/u32-cpy-alloc.c: New file.
75863         * lib/unistr/u-cpy-alloc.h: New file.
75864
75865         * modules/unistr/u8-endswith: New file.
75866         * modules/unistr/u16-endswith: New file.
75867         * modules/unistr/u32-endswith: New file.
75868         * lib/unistr/u8-endswith.c: New file.
75869         * lib/unistr/u16-endswith.c: New file.
75870         * lib/unistr/u32-endswith.c: New file.
75871         * lib/unistr/u-endswith.h: New file.
75872
75873         * modules/unistr/u8-mblen: New file.
75874         * modules/unistr/u16-mblen: New file.
75875         * modules/unistr/u32-mblen: New file.
75876         * lib/unistr/u8-mblen.c: New file.
75877         * lib/unistr/u16-mblen.c: New file.
75878         * lib/unistr/u32-mblen.c: New file.
75879
75880         * modules/unistr/u8-mbtouc: New file.
75881         * modules/unistr/u16-mbtouc: New file.
75882         * modules/unistr/u32-mbtouc: New file.
75883         * lib/unistr/u8-mbtouc.c: New file.
75884         * lib/unistr/u16-mbtouc.c: New file.
75885         * lib/unistr/u32-mbtouc.c: New file.
75886
75887         * modules/unistr/u8-mbtouc-safe: New file.
75888         * modules/unistr/u16-mbtouc-safe: New file.
75889         * modules/unistr/u32-mbtouc-safe: New file.
75890         * lib/unistr/u8-mbtouc-safe.c: New file.
75891         * lib/unistr/u16-mbtouc-safe.c: New file.
75892         * lib/unistr/u32-mbtouc-safe.c: New file.
75893
75894         * modules/unistr/u8-move: New file.
75895         * modules/unistr/u16-move: New file.
75896         * modules/unistr/u32-move: New file.
75897         * lib/unistr/u8-move.c: New file.
75898         * lib/unistr/u16-move.c: New file.
75899         * lib/unistr/u32-move.c: New file.
75900         * lib/unistr/u-move.h: New file.
75901
75902         * modules/unistr/u8-next: New file.
75903         * modules/unistr/u16-next: New file.
75904         * modules/unistr/u32-next: New file.
75905         * lib/unistr/u8-next.c: New file.
75906         * lib/unistr/u16-next.c: New file.
75907         * lib/unistr/u32-next.c: New file.
75908
75909         * modules/unistr/u8-prev: New file.
75910         * modules/unistr/u16-prev: New file.
75911         * modules/unistr/u32-prev: New file.
75912         * lib/unistr/u8-prev.c: New file.
75913         * lib/unistr/u16-prev.c: New file.
75914         * lib/unistr/u32-prev.c: New file.
75915
75916         * modules/unistr/u8-set: New file.
75917         * modules/unistr/u16-set: New file.
75918         * modules/unistr/u32-set: New file.
75919         * lib/unistr/u8-set.c: New file.
75920         * lib/unistr/u16-set.c: New file.
75921         * lib/unistr/u32-set.c: New file.
75922         * lib/unistr/u-set.h: New file.
75923
75924         * modules/unistr/u8-startswith: New file.
75925         * modules/unistr/u16-startswith: New file.
75926         * modules/unistr/u32-startswith: New file.
75927         * lib/unistr/u8-startswith.c: New file.
75928         * lib/unistr/u16-startswith.c: New file.
75929         * lib/unistr/u32-startswith.c: New file.
75930         * lib/unistr/u-startswith.h: New file.
75931
75932         * modules/unistr/u8-stpcpy: New file.
75933         * modules/unistr/u16-stpcpy: New file.
75934         * modules/unistr/u32-stpcpy: New file.
75935         * lib/unistr/u8-stpcpy.c: New file.
75936         * lib/unistr/u16-stpcpy.c: New file.
75937         * lib/unistr/u32-stpcpy.c: New file.
75938         * lib/unistr/u-stpcpy.h: New file.
75939
75940         * modules/unistr/u8-stpncpy: New file.
75941         * modules/unistr/u16-stpncpy: New file.
75942         * modules/unistr/u32-stpncpy: New file.
75943         * lib/unistr/u8-stpncpy.c: New file.
75944         * lib/unistr/u16-stpncpy.c: New file.
75945         * lib/unistr/u32-stpncpy.c: New file.
75946         * lib/unistr/u-stpncpy.h: New file.
75947
75948         * modules/unistr/u8-strcat: New file.
75949         * modules/unistr/u16-strcat: New file.
75950         * modules/unistr/u32-strcat: New file.
75951         * lib/unistr/u8-strcat.c: New file.
75952         * lib/unistr/u16-strcat.c: New file.
75953         * lib/unistr/u32-strcat.c: New file.
75954         * lib/unistr/u-strcat.h: New file.
75955
75956         * modules/unistr/u8-strchr: New file.
75957         * modules/unistr/u16-strchr: New file.
75958         * modules/unistr/u32-strchr: New file.
75959         * lib/unistr/u8-strchr.c: New file.
75960         * lib/unistr/u16-strchr.c: New file.
75961         * lib/unistr/u32-strchr.c: New file.
75962
75963         * modules/unistr/u8-strcmp: New file.
75964         * modules/unistr/u16-strcmp: New file.
75965         * modules/unistr/u32-strcmp: New file.
75966         * lib/unistr/u8-strcmp.c: New file.
75967         * lib/unistr/u16-strcmp.c: New file.
75968         * lib/unistr/u32-strcmp.c: New file.
75969
75970         * modules/unistr/u8-strcpy: New file.
75971         * modules/unistr/u16-strcpy: New file.
75972         * modules/unistr/u32-strcpy: New file.
75973         * lib/unistr/u8-strcpy.c: New file.
75974         * lib/unistr/u16-strcpy.c: New file.
75975         * lib/unistr/u32-strcpy.c: New file.
75976         * lib/unistr/u-strcpy.h: New file.
75977
75978         * modules/unistr/u8-strcspn: New file.
75979         * modules/unistr/u16-strcspn: New file.
75980         * modules/unistr/u32-strcspn: New file.
75981         * lib/unistr/u8-strcspn.c: New file.
75982         * lib/unistr/u16-strcspn.c: New file.
75983         * lib/unistr/u32-strcspn.c: New file.
75984         * lib/unistr/u-strcspn.h: New file.
75985
75986         * modules/unistr/u8-strdup: New file.
75987         * modules/unistr/u16-strdup: New file.
75988         * modules/unistr/u32-strdup: New file.
75989         * lib/unistr/u8-strdup.c: New file.
75990         * lib/unistr/u16-strdup.c: New file.
75991         * lib/unistr/u32-strdup.c: New file.
75992         * lib/unistr/u-strdup.h: New file.
75993
75994         * modules/unistr/u8-strlen: New file.
75995         * modules/unistr/u16-strlen: New file.
75996         * modules/unistr/u32-strlen: New file.
75997         * lib/unistr/u8-strlen.c: New file.
75998         * lib/unistr/u16-strlen.c: New file.
75999         * lib/unistr/u32-strlen.c: New file.
76000         * lib/unistr/u-strlen.h: New file.
76001
76002         * modules/unistr/u8-strmblen: New file.
76003         * modules/unistr/u16-strmblen: New file.
76004         * modules/unistr/u32-strmblen: New file.
76005         * lib/unistr/u8-strmblen.c: New file.
76006         * lib/unistr/u16-strmblen.c: New file.
76007         * lib/unistr/u32-strmblen.c: New file.
76008
76009         * modules/unistr/u8-strmbtouc: New file.
76010         * modules/unistr/u16-strmbtouc: New file.
76011         * modules/unistr/u32-strmbtouc: New file.
76012         * lib/unistr/u8-strmbtouc.c: New file.
76013         * lib/unistr/u16-strmbtouc.c: New file.
76014         * lib/unistr/u32-strmbtouc.c: New file.
76015
76016         * modules/unistr/u8-strncat: New file.
76017         * modules/unistr/u16-strncat: New file.
76018         * modules/unistr/u32-strncat: New file.
76019         * lib/unistr/u8-strncat.c: New file.
76020         * lib/unistr/u16-strncat.c: New file.
76021         * lib/unistr/u32-strncat.c: New file.
76022         * lib/unistr/u-strncat.h: New file.
76023
76024         * modules/unistr/u8-strncmp: New file.
76025         * modules/unistr/u16-strncmp: New file.
76026         * modules/unistr/u32-strncmp: New file.
76027         * lib/unistr/u8-strncmp.c: New file.
76028         * lib/unistr/u16-strncmp.c: New file.
76029         * lib/unistr/u32-strncmp.c: New file.
76030
76031         * modules/unistr/u8-strncpy: New file.
76032         * modules/unistr/u16-strncpy: New file.
76033         * modules/unistr/u32-strncpy: New file.
76034         * lib/unistr/u8-strncpy.c: New file.
76035         * lib/unistr/u16-strncpy.c: New file.
76036         * lib/unistr/u32-strncpy.c: New file.
76037         * lib/unistr/u-strncpy.h: New file.
76038
76039         * modules/unistr/u8-strnlen: New file.
76040         * modules/unistr/u16-strnlen: New file.
76041         * modules/unistr/u32-strnlen: New file.
76042         * lib/unistr/u8-strnlen.c: New file.
76043         * lib/unistr/u16-strnlen.c: New file.
76044         * lib/unistr/u32-strnlen.c: New file.
76045         * lib/unistr/u-strnlen.h: New file.
76046
76047         * modules/unistr/u8-strpbrk: New file.
76048         * modules/unistr/u16-strpbrk: New file.
76049         * modules/unistr/u32-strpbrk: New file.
76050         * lib/unistr/u8-strpbrk.c: New file.
76051         * lib/unistr/u16-strpbrk.c: New file.
76052         * lib/unistr/u32-strpbrk.c: New file.
76053         * lib/unistr/u-strpbrk.h: New file.
76054
76055         * modules/unistr/u8-strrchr: New file.
76056         * modules/unistr/u16-strrchr: New file.
76057         * modules/unistr/u32-strrchr: New file.
76058         * lib/unistr/u8-strrchr.c: New file.
76059         * lib/unistr/u16-strrchr.c: New file.
76060         * lib/unistr/u32-strrchr.c: New file.
76061
76062         * modules/unistr/u8-strspn: New file.
76063         * modules/unistr/u16-strspn: New file.
76064         * modules/unistr/u32-strspn: New file.
76065         * lib/unistr/u8-strspn.c: New file.
76066         * lib/unistr/u16-strspn.c: New file.
76067         * lib/unistr/u32-strspn.c: New file.
76068         * lib/unistr/u-strspn.h: New file.
76069
76070         * modules/unistr/u8-strstr: New file.
76071         * modules/unistr/u16-strstr: New file.
76072         * modules/unistr/u32-strstr: New file.
76073         * lib/unistr/u8-strstr.c: New file.
76074         * lib/unistr/u16-strstr.c: New file.
76075         * lib/unistr/u32-strstr.c: New file.
76076         * lib/unistr/u-strstr.h: New file.
76077
76078         * modules/unistr/u8-strtok: New file.
76079         * modules/unistr/u16-strtok: New file.
76080         * modules/unistr/u32-strtok: New file.
76081         * lib/unistr/u8-strtok.c: New file.
76082         * lib/unistr/u16-strtok.c: New file.
76083         * lib/unistr/u32-strtok.c: New file.
76084         * lib/unistr/u-strtok.h: New file.
76085
76086         * modules/unistr/u8-uctomb: New file.
76087         * modules/unistr/u16-uctomb: New file.
76088         * modules/unistr/u32-uctomb: New file.
76089         * lib/unistr/u8-uctomb.c: New file.
76090         * lib/unistr/u16-uctomb.c: New file.
76091         * lib/unistr/u32-uctomb.c: New file.
76092
76093         * MODULES.html.sh (Unicode string functions): Add the new modules.
76094
76095 2007-01-08  Bruno Haible  <bruno@clisp.org>
76096
76097         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
76098         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
76099         subdirectories.
76100
76101 2007-01-08  Karl Berry  <karl@gnu.org>
76102
76103         * doc/error.texi: mention that main() fns must set program_name
76104         when progname is used.
76105
76106 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
76107
76108         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
76109         WCTYPE_H is empty, for the benefit of builds from non-distclean
76110         directories.  Problem reported by Eric Blake in
76111         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
76112
76113 2007-01-08  Bruno Haible  <bruno@clisp.org>
76114
76115         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
76116         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
76117         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
76118         PROVIDE_CANONICALIZE_FILENAME_MODE.
76119         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
76120
76121 2007-01-08  Bruno Haible  <bruno@clisp.org>
76122
76123         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
76124         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
76125         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
76126         * lib/fts.c: Likewise.
76127         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
76128
76129 2006-12-25  Bruno Haible  <bruno@clisp.org>
76130
76131         * modules/utf8-ucs4-safe: New file.
76132         * lib/utf8-ucs4-safe.h: New file.
76133         * lib/unistr/utf8-ucs4-safe.c: New file.
76134
76135         * modules/utf16-ucs4-safe: New file.
76136         * lib/utf16-ucs4-safe.h: New file.
76137         * lib/unistr/utf16-ucs4-safe.c: New file.
76138
76139         * MODULES.html.sh (Unicode string functions): Add the new modules.
76140
76141 2007-01-08  Bruno Haible  <bruno@clisp.org>
76142
76143         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
76144         (Depends-on): Add unitypes.
76145         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76146         (u8_mbtouc_aux): Move out to separate file.
76147         (u8_mbtouc): Use ucs4_t, uint8_t types.
76148         * lib/unistr/utf8-ucs4.c: New file.
76149
76150         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
76151         (Depends-on): Add unitypes.
76152         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76153         (u16_mbtouc_aux): Move out to separate file.
76154         (u16_mbtouc): Use ucs4_t, uint16_t types.
76155         * lib/unistr/utf16-ucs4.c: New file.
76156
76157         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
76158         (Depends-on): Add unitypes.
76159         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
76160         (u8_uctomb_aux): Move out to separate file.
76161         (u8_uctomb): Use ucs4_t, uint8_t types.
76162         * lib/unistr/ucs4-utf8.c: New file.
76163
76164         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
76165         (Depends-on): Add unitypes.
76166         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
76167         (u16_uctomb_aux): Move out to separate file.
76168         (u16_uctomb): Use ucs4_t, uint16_t types.
76169         * lib/unistr/ucs4-utf16.c: New file.
76170
76171 2006-12-25  Bruno Haible  <bruno@clisp.org>
76172
76173         * modules/unitypes: New file.
76174         * lib/unitypes.h: New file.
76175         * MODULES.html.sh (func_all_modules): New section "Unicode string
76176         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
76177         this section. Add unitypes.
76178
76179 2007-01-08  Bruno Haible  <bruno@clisp.org>
76180
76181         Avoid variable names that conflict with those from libtool.
76182         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
76183         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
76184         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
76185         library_names_spec to acl_library_names_spec, hardcode_* to
76186         acl_hardcode_*.
76187         Reported by Ralf Wildenhues.
76188
76189 2007-01-08  Bruno Haible  <bruno@clisp.org>
76190
76191         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
76192         definition.
76193         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
76194         definition.
76195         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
76196         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
76197         definition.
76198         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
76199         definition.
76200         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
76201         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
76202         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
76203         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
76204         definition.
76205         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
76206         definition.
76207         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
76208         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
76209         GC_USE_<algorithm>.
76210         * lib/gc-libgcrypt.c: Likewise.
76211         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
76212         * modules/gc-arctwo (configure.ac): Likewise.
76213         * modules/gc-des (configure.ac): Likewise.
76214         * modules/gc-hmac-md5 (configure.ac): Likewise.
76215         * modules/gc-hmac-sha1 (configure.ac): Likewise.
76216         * modules/gc-md2 (configure.ac): Likewise.
76217         * modules/gc-md4 (configure.ac): Likewise.
76218         * modules/gc-md5 (configure.ac): Likewise.
76219         * modules/gc-random (configure.ac): Likewise.
76220         * modules/gc-rijndael (configure.ac): Likewise.
76221         * modules/gc-sha1 (configure.ac): Likewise.
76222
76223 2007-01-08  Bruno Haible  <bruno@clisp.org>
76224
76225         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
76226         macro definition.
76227         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
76228         definition.
76229         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
76230         definition.
76231         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
76232         * modules/fcntl-safer (configure.ac): Likewise.
76233         * modules/fopen-safer (configure.ac): Likewise.
76234         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
76235         GNULIB_FWRITEERROR macro definition.
76236
76237 2007-01-08  Bruno Haible  <bruno@clisp.org>
76238
76239         * m4/gnulib-common.m4: New file.
76240         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
76241         (func_get_filelist): Add m4/gnulib-common.m4.
76242
76243 2007-01-08  Bruno Haible  <bruno@clisp.org>
76244
76245         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
76246         command.
76247
76248 2007-01-08  Jim Meyering  <jim@meyering.net>
76249
76250         Use a more robust test for a "can't happen" condition.
76251         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
76252         narrowed the st_size value.  Presuming the "can't happen" condition
76253         is true, that narrowing could conceivably convert an invalid st_size
76254         value into a valid one.  Instead, use a change based on Matthew
76255         Woehlke's original patch.
76256
76257         Slight readability improvement: use an assert-like macro
76258         in place of literal "abort ()" uses.
76259         * lib/fts.c (fts_assert): Define.
76260         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
76261         Use this macro instead of a bare 'abort'.
76262
76263 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
76264
76265         Don't worry about using IRIX 5.3's wctype.h broken definitions;
76266         simply work around them.
76267         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
76268         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
76269         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
76270         declaring.
76271         Don't bother to define as macros, since the standard doesn't require it.
76272         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
76273         longer worry about IRIX 5.3.
76274         (HAVE_WCTYPE_CTMP_BUG): Remove.
76275
76276 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76277
76278         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
76279         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
76280         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76281         Problems reported by Georg Schwarz for IRIX 5.3.
76282
76283         * gnulib-tool (autoconf_minversion): Take the maximum version number
76284         found, not the minimum.  Problem reported by James Youngman.
76285
76286 2007-01-03  Karl Berry  <karl@gnu.org>
76287
76288         * doc/error.texi: new file, explaining interaction with progname.
76289         * doc/gnulib.texi: include it.  Update copyright.
76290
76291 2007-01-03  Simon Josefsson  <simon@josefsson.org>
76292
76293         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
76294         AC_CANONICAL_HOST, to improve autobuild outputs.
76295
76296 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
76297             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
76298
76299         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
76300         sockets, server sockets, and other file descriptors.  Count errors
76301         to compute the return value.  Reorder the code a bit to be easier
76302         to follow.  Don't set event bits that were not requested (except
76303         POLLERR and POLLHUP).
76304
76305 2007-01-01  Bruno Haible  <bruno@clisp.org>
76306
76307         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
76308
76309 2007-01-03  Jim Meyering  <jim@meyering.net>
76310
76311         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
76312
76313 2007-01-02  Bruno Haible  <bruno@clisp.org>
76314
76315         * modules/settime (Include): Require timespec.h.
76316         * modules/nanosleep (Include): Likewise.
76317
76318 2007-01-01  Bruno Haible  <bruno@clisp.org>
76319
76320         * gnulib-tool (func_emit_copyright_notice): Bump year.
76321         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
76322
76323 2007-01-01  Bruno Haible  <bruno@clisp.org>
76324
76325         Improve support for OpenBSD.
76326         * build-aux/config.rpath (libname_spec): Export.
76327         (library_names_spec): New variable. Export.
76328         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
76329         library_names_spec from the config.rpath output. Locate shared library
76330         through the name pattern in library_names_spec.
76331
76332 2007-01-01  Eric Blake  <ebb9@byu.net>
76333
76334         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
76335
76336 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
76337
76338         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
76339         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
76340         assume the C locale, and avoid an "eval" that could cause trouble.
76341         Problem with SORT reported by Bob Proulx.
76342
76343         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
76344         Define.  Trivial patch from Henning Nielsen Lund, originally
76345         sent to bug-grep@gnu.org today.
76346
76347 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
76348
76349         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
76350         struct stat.  Problem reported by Henning Nielsen Lund.
76351         * lib/acl.c: Include acl.h first, to check interface.  Don't
76352         bother to include sys/types.h and sys/stat.h again.
76353
76354 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76355
76356         Import the following change from libc; problem reported by
76357         Sven Verdoolaege.
76358
76359         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
76360
76361         [BZ #1373]
76362         * lib/argp.h: Remove __NTH for __argp_usage inline function.
76363
76364 2006-12-28  Jim Meyering  <jim@meyering.net>
76365
76366         * build-aux/announce-gen: Do not assume that the package
76367         builds any of tar.gz, tar.bz2, and .xdelta files.
76368         Suggestion from Simon Josefsson.
76369
76370 2006-12-28  Simon Josefsson  <simon@josefsson.org>
76371
76372         * modules/announce-gen: New file.
76373
76374 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
76375
76376         * lib/mbchar.h: Just include <wctype.h>; the wctype module
76377         handles its gotchas now.
76378         * lib/mbswidth.c: Likewise.
76379         * lib/wcwidth.h: Likewise.
76380         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
76381         and iswcntrl; the wctype module does this stuff now.
76382         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76383         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76384         * modules/mbchar (Depends-on): Add wctype.
76385         * modules/mbswidth (Depends-on): Likewise.
76386         * modules/wcwidth (Depends-on): Likewise.
76387
76388 2006-12-27  Eric Blake  <ebb9@byu.net>
76389
76390         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
76391         module uses more than what <wctype.h> is required to provide.
76392
76393 2006-12-26  Eric Blake  <ebb9@byu.net>
76394
76395         * gnulib-tool (sed_extract_prog): Avoid space-tab.
76396
76397 2006-12-26  Eric Blake  <ebb9@byu.net>
76398
76399         * modules/absolute-header: New module.
76400         * modules/fcntl (Depends-on): Depend on it.
76401         * modules/inttypes (Depends-on): Likewise.
76402         * modules/stdint (Depends-on): Likewise.
76403         * modules/sys_stat (Depends-on): Likewise.
76404         * modules/wctype (Depends-on): Likewise.
76405         * MODULES.html.sh (Support for building libraries and
76406         executables): Document it.
76407
76408 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
76409
76410         * gnulib-tool (SED): Remove, undoing previous change.
76411         The problem was that it broke coreutils on Solaris, because
76412         "sed --posix" leaked into a makefile.
76413         (sed): New alias, if 'alias' and GNU sed.
76414
76415 2006-12-24  Jim Meyering  <jim@meyering.net>
76416
76417         Work around an fchownat bug in glibc-2.4:
76418         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
76419         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
76420         in spite of the -P option.
76421         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
76422         New macros.
76423         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
76424         * modules/openat (Files): Add lib/fchownat.c.
76425         * lib/openat.c (fchownat): Don't define here.  Move to...
76426         * lib/fchownat.c: ...this new file.
76427
76428 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76429
76430         Fix bug reported by Bruno Haible in
76431         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
76432         where quotearg.c didn't compile on Mac OS X 10.2 because it
76433         lacks <wchar.h> and wint_t.
76434         * lib/wctype_.h (__wctype_wint_t): New type.
76435         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
76436         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
76437         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
76438         Arg is now of type __wctype_wint_t, not wint_t.
76439         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
76440         substitute HAVE_WINT_T.
76441         * modules/wctype (Files): Add m4/wint_t.m4.
76442         (wctype.h): Substitute HAVE_WINT_T.
76443
76444 2006-12-23  Bruno Haible  <bruno@clisp.org>
76445
76446         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
76447
76448 2006-12-23  Bruno Haible  <bruno@clisp.org>
76449
76450         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
76451         S_ISLNK.
76452         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
76453         mingw.
76454
76455 2006-12-22  Bruno Haible  <bruno@clisp.org>
76456
76457         * lib/copy-file.c: Include acl.h.
76458         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
76459         Close the file descriptors only after being done with copy_acl.
76460         * modules/copy-file (Depends-on): Add acl.
76461
76462 2006-12-22  Bruno Haible  <bruno@clisp.org>
76463
76464         * gnulib-tool (SED): New variable.
76465         Use $SED instead of sed everywhere.
76466
76467 2006-12-22  Bruno Haible  <bruno@clisp.org>
76468
76469         * modules/no-c++: New file.
76470         * m4/no-c++.m4: New file.
76471         * MODULES.html.sh (Support for building libraries and executables):
76472         Add no-c++.
76473
76474 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
76475
76476         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76477         Include <limits.h>, and use its INT_MAX to rewrite the
76478         j loop so that it does not overflow 'int'.  Problem reported by
76479         Ralf Wildenhues in
76480         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
76481         Play it safe by shifting left by 1 rather than multiplying by 2,
76482         as GCC is less likely to optimize this away when the value
76483         is signed (when it assumes overflow leads to undefined behavior).
76484         Also, don't assume time_t uses two's complement.
76485
76486 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
76487
76488         * MODULES.html.sh: New module wctype.
76489         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
76490         * lib/fnmatch.c: Don't bother to include <wchar.h> before
76491         <wctype.h>, since the new wctype module should fix this.
76492         * lib/quotearg.c: Include <wctype.h> unconditionally, since
76493         the wctype module should arrange for it.
76494         * lib/regex_internal.h: Likewise.
76495         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
76496         since the wctype module should handle this now.
76497         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
76498         * modules/fnmatch (Depends-on): Add wctype.
76499         * modules/quotearg (Depends-on): Likewise.
76500         * modules/regex (Depends-on): Likewise.
76501
76502 2006-12-19  Bruno Haible  <bruno@clisp.org>
76503
76504         * lib/strdup.h [C++]: Wrap definitions in extern "C".
76505         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
76506
76507 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76508
76509         * modules/savewd (Depends-on): Fix dependency on fcntl.
76510
76511 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76512
76513         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
76514         conforms to C99, rather than relying on the user's environment
76515         setting of STDINT_H.
76516
76517 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76518         and Eric Blake  <ebb9@byu.net>
76519
76520         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
76521         This is more consistent with the other defines here.
76522         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
76523         Port to z/OS.  Problem reported by Paul Gilmartin.
76524         Change local vars to use gl_ prefix rather than ac_.
76525         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
76526         with other defines.
76527         * modules/double-slash-root: New module.
76528         * modules/dirname (Files): Remove m4/double-slash-root.m4.
76529         (Depends-on): Add double-slash-root.
76530         * MODULES.html.sh (File system functions): Mention new module.
76531
76532 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
76533
76534         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
76535         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
76536         This is for the benefit of gzip, which doesn't do i18n.
76537
76538 2006-12-12  Jim Meyering  <jim@meyering.net>
76539
76540         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
76541         Reported by Andreas Schwab <schwab@suse.de>.
76542
76543 2006-12-12  Bruno Haible  <bruno@clisp.org>
76544
76545         Merge these changes.
76546         2006-09-05  Bruno Haible  <bruno@clisp.org>
76547         * lib/iconvme.c (iconv_string): No need to save and restore errno when
76548         iconv_alloc succeeded.
76549         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
76550         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
76551         test for " && dest " at the end - dest is always != NULL there. Call
76552         iconv with 4xNULL arguments initially, to reset the state. Call iconv
76553         with 2xNULL arguments, also to flush the state storage. Handle the
76554         IRIX iconv behaviour. Realloc the final result, to throw away unused
76555         memory.
76556
76557 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
76558
76559         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
76560         and fchmodat unconditionally, since glibc 2.4 has them.
76561         Problem reported by Arkadiusz Miskiewicz.
76562
76563 2006-12-10  Bruno Haible  <bruno@clisp.org>
76564
76565         * gnulib-tool (func_import): Show the include files only for those
76566         modules that are copied and specified.
76567         Reported by Karl Berry.
76568
76569 2006-12-08  Jim Meyering  <jim@meyering.net>
76570
76571         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
76572         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
76573
76574         * build-aux/announce-gen: Add two new options, both optional:
76575         --bootstrap-tools=TOOL_LIST
76576               a comma-separated list of tools, e.g.,
76577               autoconf,automake,bison,gnulib
76578         --gnulib-snapshot-date=DATE
76579               if gnulib is in the bootstrap tool list,
76580               then report this as the snapshot date.
76581               If not specified, use the current date/time.
76582               If you specify a date here, be sure it's UTC.
76583
76584 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76585
76586         * tests/test-argp-2.sh: Fix test to match actual output.
76587         (func_compare): Fix sed script to be portable.
76588
76589 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
76590
76591         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
76592         workaround for this case.  It is not autoconfigured now; offhand
76593         it's hard to see how to autoconfigure it.
76594
76595 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
76596
76597         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
76598         a directory that is about to be chowned.  Such a directory's
76599         initial file permissions should permit the owner only and this
76600         should not be changed until after the chown, since the group and
76601         other bits would be incorrect if they granted permission before
76602         the chown.
76603
76604         Fix porting problem for iswctype reported by Georg Schwarz in:
76605         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
76606         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
76607         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
76608         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
76609         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
76610
76611 2006-12-03  Jim Meyering  <jim@meyering.net>
76612
76613         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
76614         p->fts_statp may not yet be defined.
76615         (fts_read): Instead, set it in the caller, once p->fts_statp is
76616         sure to be defined, and corresponds to a top-level directory.
76617         This bug made du -x fail.  Here's the coreutils test case:
76618         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
76619         Reported by Mike Frysinger.
76620
76621 2006-12-01  Jim Meyering  <jim@meyering.net>
76622
76623         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
76624         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
76625         Reported by Simon Josefsson.
76626
76627 2006-11-30  Jim Meyering  <jim@meyering.net>
76628
76629         * m4/warning.m4: Use the all-permissive copyright notice
76630         recommended by RMS (rather than LGPL).
76631         * m4/vararrays.m4: Likewise.
76632         * m4/flexmember.m4: Likewise.
76633
76634 2006-11-29  Bruno Haible  <bruno@clisp.org>
76635
76636         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76637         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
76638         using +=.
76639         Reported by Simon Josefsson <simon@josefsson.org>.
76640
76641 2006-11-28  James Youngman <jay@gnu.org>
76642
76643         * README: Advise users that they might find the bug-gnulib@gnu.org
76644         and autotools-announce@gnu.org mailing lists useful.
76645
76646 2006-11-28  Bruno Haible  <bruno@clisp.org>
76647
76648         * m4/ptrdiff_max.m4: Remove file.
76649
76650 2006-11-21  Bruno Haible  <bruno@clisp.org>
76651
76652         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
76653         _AC_COMPUTE_INT.
76654         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76655         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
76656         _AC_COMPUTE_INT.
76657         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76658         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
76659         _AC_COMPUTE_INT.
76660         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76661
76662 2006-11-28  Jim Meyering  <jim@meyering.net>
76663
76664         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
76665         warning from "gcc -Wshadow" about shadowing the builtin.
76666
76667 2006-11-27  Bruno Haible  <bruno@clisp.org>
76668
76669         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
76670         _AC_COMPUTE_INT.
76671         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76672
76673 2006-11-27  Bruno Haible  <bruno@clisp.org>
76674             Paul Eggert  <eggert@cs.ucla.edu>
76675
76676         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
76677
76678 2006-11-26  Bruno Haible  <bruno@clisp.org>
76679
76680         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76681         noinst_LTLIBRARIES.
76682
76683 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76684             Bruno Haible  <bruno@clisp.org>
76685
76686         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
76687         if compiling with "gcc -ansi".
76688
76689 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76690
76691         Fix some incompatibilities with gcc -ansi -pedantic.
76692         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
76693         if compiling pedantically with GCC, unless it's C99 or later.
76694         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
76695         it mishandles gcc -ansi -pedantic as well.
76696         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
76697         if gcc -pedantic.
76698         * lib/regexec.c (check_node_accept_bytes): Don't use auto
76699         initializers for struct if -pedantic, unless it's C99 or later.
76700
76701 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
76702
76703         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
76704         Don't close an fd more than once. Identical atimes indicate
76705         success, not failure.
76706
76707 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
76708
76709         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
76710
76711 2006-11-23  Jim Meyering  <jim@meyering.net>
76712
76713         * build-aux/announce-gen: New file.  From coreutils.
76714
76715 2006-11-22  Jim Meyering  <jim@meyering.net>
76716
76717         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
76718         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
76719         (fts_read): Use a temporary to narrow the overused st_size member
76720         before using it in a switch statement.  Reported by Matthew Woehlke.
76721
76722         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
76723         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
76724
76725 2006-11-20  Bruno Haible  <bruno@clisp.org>
76726
76727         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
76728         changequote instead of pairs of brackets.
76729         Reported by Andreas Schwab <schwab@suse.de>.
76730
76731 2006-11-21  Jim Meyering  <jim@meyering.net>
76732
76733         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
76734         so as to remain compatible with older compilers.
76735         Patch from Michael Deutschmann.
76736
76737 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76738
76739         * MODULES.html.sh (File system functions): Add openat.
76740
76741         * lib/openat.h (rpl_fstatat): New macro, if
76742         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
76743         (fstatat): Define to rpl_fstatat under the same conditions,
76744         unless COMPILING_FSTATAT.
76745         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
76746         seems to have the bug.
76747         * lib/fstatat.c: New file.
76748         * modules/openat (Files): Add it.
76749
76750 2006-11-20  Bruno Haible  <bruno@clisp.org>
76751
76752         * Makefile: New file.
76753
76754 2006-11-20  Jim Meyering  <jim@meyering.net>
76755
76756         The beginnings of syntax-related checks for gnulib.
76757         * lib/Makefile: New file.
76758         * lib/t-idcache: New script.  Ensure that the two halves of
76759         idcache.c stay in sync.
76760
76761         * lib/idcache.c: Adjust comments in user- and group- portions to
76762         be more accurate, and to be consistent with one another.
76763
76764 2006-11-20  Jim Meyering  <jim@meyering.net>
76765
76766         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
76767         continue using the flexible array member (thus, this module performs
76768         half as many malloc calls), with the addition that...
76769         (getgroup, getuser): Consistently record a non-match via an empty
76770         "name" string, and map an empty string match to a NULL return value.
76771         * modules/idcache (Depends-on): Re-add flexmember.
76772
76773         * lib/idcache.c (getuser): Remove all uses of the register keyword.
76774         (getuidbyname, getgroup, getgidbyname): Likewise.
76775
76776         Use cleaner syntax: NULL rather than 0.
76777         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
76778
76779 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76780
76781         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
76782         It mishandled the case where the group was missing.
76783         Problem reported by Greg Schafer.
76784         * modules/idcache: Likewise.
76785
76786 2006-11-18  Jim Meyering  <jim@meyering.net>
76787
76788         * check-module (%exempt_header): Add exception for some
76789         conditionally-included headers.
76790
76791         * modules/i-ring (Depends-on): Add verify.
76792         (License): Change to LGPL.
76793
76794 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76795
76796         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
76797         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
76798         and inttostr.h.  Use snprintf rather than uinttostr, so that
76799         LGPLed code doesn't depend on GPLed.
76800
76801 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76802
76803         * modules/inline (License): Change from GPL to LGPL.
76804
76805 2006-11-17  Jim Meyering  <jim@meyering.net>
76806
76807         * modules/d-type (License): Switch to LGPL.
76808
76809 2006-11-15  Bruno Haible  <bruno@clisp.org>
76810
76811         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
76812
76813 2006-11-15  Eric Blake  <ebb9@byu.net>
76814
76815         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
76816         the module dependency.
76817
76818 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76819             Bruno Haible  <bruno@clisp.org>
76820
76821         * gnulib-tool (func_create_testdir): Add license consistency check.
76822
76823 2006-11-15  Eric Blake  <ebb9@byu.net>
76824
76825         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
76826         random "(cached)" in configure output.
76827
76828 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76829
76830         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
76831         test for conforming inttypes.h is both announced and cached.
76832
76833         * MODULES.html.sh (seen_modules, seen_files): New variables.
76834         (func_module): Rewrite to use a few less gnulib-tool and sed
76835         invocations.  Avoid a couple of quadratic algorithms for ...
76836         (missed_modules, missed_files): ... these, with ...
76837         (func_append, func_tmpdir): ... these new functions, from
76838         gnulib-tool.  Analogously, install traps for cleanup.
76839
76840         * tests/test-gc.c (main): Remove unused variables.
76841         * tests/test-read-file.c: Include stdlib.h, for 'free'.
76842
76843 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
76844
76845         * modules/inttostr (License): Change to LGPL.
76846
76847 2006-11-14  Eric Blake  <ebb9@byu.net>
76848
76849         * modules/tempname (License): Change to LGPL.
76850
76851 2006-11-14  Eric Blake  <ebb9@byu.net>
76852
76853         * doc/functions.texi (Function Portability): *printf functions on
76854         Cygwin now understand all POSIX size specifiers.
76855
76856 2006-11-14  Bruno Haible  <bruno@clisp.org>
76857
76858         * modules/c-ctype (License): Change to LGPL.
76859
76860 2006-11-12  Bruno Haible  <bruno@clisp.org>
76861
76862         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
76863         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
76864         for GNOME libraries, for which the include files are installed in
76865         subdirectories of $prefix/include.
76866
76867 2006-11-12  Bruno Haible  <bruno@clisp.org>
76868
76869         * m4/lib-link.m4: Require at least autoconf-2.54.
76870         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
76871         name to underscores for the --with option.
76872
76873 2006-11-13  Bruno Haible  <bruno@clisp.org>
76874
76875         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
76876         the tests directory.
76877         Reported by Ralf Wildenhues.
76878
76879 2006-11-13  Bruno Haible  <bruno@clisp.org>
76880
76881         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
76882         (func_emit_initmacro_end): Undo the override here.
76883         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
76884         Works around the famous automake error in coreutils.
76885
76886 2006-11-13  Eric Blake  <ebb9@byu.net>
76887
76888         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
76889         element, not its node.
76890
76891 2006-11-12  Bruno Haible  <bruno@clisp.org>
76892
76893         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
76894         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
76895
76896 2006-11-12  Bruno Haible  <bruno@clisp.org>
76897
76898         * gnulib-tool: New option --local-symlink.
76899         (func_usage): Document it.
76900         (lsymbolic): New variable.
76901         (func_import, func_create_testdir): If --symlink was not specified,
76902         test whether --local-symlink was specified and the file comes from
76903         the local_gnulib_dir.
76904
76905 2006-11-12  Bruno Haible  <bruno@clisp.org>
76906
76907         * gnulib-tool (func_ln): New function.
76908         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
76909
76910 2006-11-12  Bruno Haible  <bruno@clisp.org>
76911
76912         Finish support for source files in subdirectories.
76913         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
76914         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
76915         AUTOMAKE_OPTIONS.
76916         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
76917
76918 2006-11-12  Bruno Haible  <bruno@clisp.org>
76919
76920         * gnulib-tool (func_get_automake_snippet): Synthesize also an
76921         EXTRA_lib_SOURCES augmentation.
76922         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
76923
76924 2006-11-12  Jim Meyering  <jim@meyering.net>
76925
76926         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
76927         file descriptors.  This also averts a failure on systems with
76928         native openat support when a traversed directory lacks "x" access.
76929         * lib/fts_.h: Include "i-ring.h"
76930         (struct FTS) [fts_fd_ring]: New member.
76931         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
76932         (FCHDIR): Add parentheses.
76933         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
76934         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
76935         When descending, rather than simply closing the previous
76936         fts_cwd_fd value, push that file descriptor onto the ring.
76937         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
76938         (fts_open): Initialize the new fd_ring member.
76939         (fts_close): Clear the ring.
76940         (fts_safe_changedir): When possible, use our new fd_ring to skip
76941         the diropen and fstat and dev/ino comparison that would normally
76942         accompany a virtual `chdir ("..")'.
76943
76944         * modules/fts (Depends-on): Add i-ring.
76945         * modules/i-ring: New module.
76946         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
76947         * m4/i-ring.m4: New file.
76948
76949 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76950
76951         * gnulib-tool (func_create_testdir): Fix replacement of
76952         `build-aux' in configure.ac.  Run autotools in gltests
76953         subdirectory.
76954         (func_create_testdir, func_create_megatestdir, test): There is
76955         no need for '--force' in most autotool invocations in a new
76956         tree.  Actually fail the whole test if any of the tools, or the
76957         configure or make stages fail.
76958
76959         Sync from Automake.
76960         * build-aux/gnupload: Revert last change.  Add pointer to upload
76961         instructions of the GNU Maintenance Instructions.
76962         Suggestion by Karl Berry.
76963
76964 2006-11-10  Jim Meyering  <jim@meyering.net>
76965
76966         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
76967
76968 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76969
76970         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
76971         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
76972         (bind_textdomain_codeset) [! ENABLE_NLS]:
76973         Evaluate all the arguments.  That way, callers get compatible behavior
76974         if the arguments have side effects.  Also, it avoids some GCC
76975         diagnostics in some cases; Joel E. Denny reported problems when Bison
76976         was configured with --enable-gcc-warnigs.
76977
76978 2006-11-10  Jim Meyering  <jim@meyering.net>
76979
76980         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
76981         relevant options in CFLAGS (like -O, -fno-inline) are taken into
76982         account.
76983
76984 2006-11-10  Jim Meyering  <jim@meyering.net>
76985
76986         * modules/inline: New file/module.
76987         * modules/xalloc (Files): Remove m4/inline.m4.
76988         (Depends-on): Add inline, instead.
76989         * modules/oset: Likewise.
76990         * modules/list: Likewise.
76991
76992 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76993
76994         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
76995         Problem reported by Matthew Woehlke.
76996
76997 2006-11-09  Bruno Haible  <bruno@clisp.org>
76998
76999         * lib/tempname.c (gen_tempname): Remove variant that invokes
77000         __gen_tempname.
77001         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
77002         __gen_tempname.
77003
77004 2006-11-08  Bruno Haible  <bruno@clisp.org>
77005
77006         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
77007         to 'yes' instead of 'cross-compiling'.
77008
77009 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
77010
77011         * lib/quotearg.h (quotearg_free): New decl.
77012         * lib/quotearg.c (quotearg_free): New function.
77013         (slot0, nslots, slotvec0, slotvec):
77014         Now file-scope so that quotearg_free can get at them.
77015
77016 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77017
77018         Sync from Automake.
77019         * build-aux/gnupload: Add missing 'gnu' to example URL.
77020         Report by Karl Berry.
77021
77022 2006-11-08  Bruno Haible  <bruno@clisp.org>
77023
77024         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
77025         Suggested by Paul Eggert.
77026
77027 2006-11-08  Jim Meyering  <jim@meyering.net>
77028
77029         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
77030         It's already included if !_LIBC.
77031         (fts_safe_changedir): Add a comment.
77032
77033 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77034
77035         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
77036         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
77037         Matthew Woehlke.
77038
77039         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
77040         definitions up, to avoid colliding with change below.
77041         (static_inline) [HAVE_INLINE]: New macro.
77042         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
77043         Provide extern decls when !HAVE_INLINE.  Do not define unless
77044         static_inline is defined, either by us or by xmalloc.c.  Use
77045         static_inline rather than static inline.
77046         (XCALLOC): Optimize sizeof(T) = 1 case.
77047         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
77048
77049 2006-11-07  Bruno Haible  <bruno@clisp.org>
77050
77051         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
77052         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
77053         AC_C_INLINE.
77054         * modules/xalloc (Files): Add m4/inline.m4.
77055
77056 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77057
77058         * README: Fix typo.
77059         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
77060         (Miscellanous Notes): ...from this.
77061
77062 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77063
77064         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
77065         Mention that offsetof should be used instead of sizeof.
77066         From Bruno Haible.
77067
77068 2006-11-07  Bruno Haible  <bruno@clisp.org>
77069
77070         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
77071
77072 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77073
77074         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77075         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
77076         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77077         (gl_tree_add_before, gl_tree_add_after):
77078         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
77079         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
77080         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
77081         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
77082         (gl_linked_add_after, gl_linked_add_at): Likewise.
77083         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
77084         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77085         (gl_tree_add_before, gl_tree_add_after): Likewise.
77086         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
77087         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
77088         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
77089
77090 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77091
77092         * lib/gl_oset.h: Use C comment style, not C++ comment style.
77093
77094 2006-11-06  Bruno Haible  <bruno@clisp.org>
77095
77096         * m4/inline.m4: New file.
77097         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
77098         * modules/list (Files): Add m4/inline.m4.
77099         * modules/oset (Files): Likewise.
77100
77101 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77102
77103         * lib/idcache.c: Include <stddef.h>, for offsetof.
77104         (struct userid.name): Change from char * to a flexible array member.
77105         All uses changed.
77106         * modules/idcache (Depends-on): Add flexmember.
77107
77108         * MODULES.html.sh (Core language properties): New module flexmember.
77109         * modules/flexmember, m4/flexmember.m4: New files.
77110
77111         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
77112         inline functions that are identical with the old xnmalloc_inline,
77113         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
77114         that we can avoid some unnecessary integer multiplications and
77115         divisions in the common case where the element size is known at
77116         compile time.
77117         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
77118         needed.
77119         (xnboundedmalloc): Remove.
77120         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
77121         arguments, for consistency with rest of this header.
77122         (xcharalloc): Rewrite using XNMALLOC.
77123         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
77124         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
77125         versions have been moved to lib/xalloc.h and renamed to be the
77126         non-*_inline versions.
77127         (xmalloc, xrealloc): Implement without reference to the xnmalloc
77128         and xnrealloc functions, since those functions are now inline and
77129         now call us.
77130         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
77131         renaming described above.
77132         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
77133         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
77134         captures the dependency in AC_C_INLINE.
77135
77136         New module canonicalize-lgpl, proposed by Charles Wilson in
77137         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
77138         with a few small changes afterwards.
77139         * MODULES.html.sh (File system functions): New module
77140         canonicalize-lgpl.
77141         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
77142         and canonicalize_file_name.
77143         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
77144         * modules/canonicalize-lgpl: New files.
77145
77146 2006-11-05  Bruno Haible  <bruno@clisp.org>
77147
77148         * gnulib-tool (func_import, func_create_testdir): Create directories
77149         also for files in subdirectories of lib/.
77150
77151 2006-11-05  Bruno Haible  <bruno@clisp.org>
77152
77153         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
77154         ANSI C compliant.
77155
77156 2006-11-03  Bruno Haible  <bruno@clisp.org>
77157
77158         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77159         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
77160         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
77161         (xnboundedmalloc): New inline function.
77162         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
77163         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
77164         xmalloc.
77165         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
77166         xmalloc.
77167         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
77168         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
77169         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
77170         xmalloc.
77171         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77172         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
77173         xmalloc.
77174         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
77175         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77176         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
77177         xmalloc.
77178         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77179         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
77180         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77181         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
77182         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
77183         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
77184         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
77185
77186 2006-11-03  Bruno Haible  <bruno@clisp.org>
77187
77188         * lib/c-ctype.h [C++]: Define functions without name mangling.
77189         * lib/fwriteerror.h [C++]: Likewise.
77190         * lib/gcd.h [C++]: Likewise.
77191         * lib/linebreak.h [C++]: Likewise.
77192
77193 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77194
77195         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
77196         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
77197         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
77198         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77199         Check for functions and headers just once.
77200         Check for declaration of canonicalize_file_name.
77201         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
77202
77203 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77204
77205         * gnulib-tool (func_import): Fix typo in actioncmd.
77206
77207 2006-11-02  Bruno Haible  <bruno@clisp.org>
77208
77209         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
77210         newline sequence in the Makefile.am snippet as a space, like "make"
77211         does.
77212         Reported by Roger Persson <perrog@gmail.com>.
77213
77214 2006-11-01  Bruno Haible  <bruno@clisp.org>
77215
77216         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
77217         already declared in <string.h>.
77218         * lib/strcase.h (strncasecmp): Don't declare it if yes.
77219
77220 2006-11-01  Bruno Haible  <bruno@clisp.org>
77221
77222         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
77223         * lib/strcase.h: Include <string.h>.
77224         (strcasecmp): Define to rpl_strcasecmp here.
77225
77226 2006-11-01  Bruno Haible  <bruno@clisp.org>
77227
77228         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
77229
77230 2006-11-01  Eric Blake  <ebb9@byu.net>
77231
77232         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
77233
77234         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
77235
77236 2006-10-29  Bruno Haible  <bruno@clisp.org>
77237
77238         Make it compile in C++ mode.
77239         * lib/full-write.c (full_rw): Add a cast.
77240
77241 2006-11-01  Bruno Haible  <bruno@clisp.org>
77242
77243         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
77244         be POSIX compliant.
77245         Reported by Roger Persson <perrog@gmail.com>.
77246
77247 2006-11-01  Eric Blake  <ebb9@byu.net>
77248
77249         * lib/getopt_.h: Fix comments.
77250
77251 2006-10-31  Eric Blake  <ebb9@byu.net>
77252
77253         * modules/tmpdir (Depends-on): Add sys_stat.
77254         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
77255         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
77256         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
77257         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
77258         tempname.
77259
77260 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
77261
77262         Avoid some C++ diagnostics reported by Bruno Haible.
77263         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
77264         xmalloc.
77265         (quotearg_alloc): Use xcharalloc rather than xmalloc.
77266         (struct slotvec): Move to top level.
77267         (quotearg_n_options): Rewrite to avoid xmalloc.
77268         * lib/xalloc.h (xcharalloc): New function.
77269         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
77270         [defined __cplusplus]: Add function template that provides result
77271         type propagation.  This part of the change is from Bruno Haible.
77272
77273 2006-10-29  Bruno Haible  <bruno@clisp.org>
77274
77275         Make it compile in C++ mode.
77276         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
77277         * lib/strnlen1.c (strnlen1): Cast memchr result.
77278         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
77279         * lib/clean-temp.c (string_equals, string_hash): Add casts.
77280         (create_temp_dir): Rename local variable 'template'.
77281         (compile_csharp_using_sscli): Add cast.
77282         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
77283         * lib/findprog.c (find_in_path): Likewise.
77284         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
77285         * lib/wait-process.c (register_slave_subprocess): Likewise.
77286
77287 2006-10-22  Bruno Haible  <bruno@clisp.org>
77288
77289         * modules/tsearch: New file.
77290         * lib/tsearch.h: New file.
77291         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
77292         * m4/tsearch.m4: New file.
77293         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
77294
77295 2006-10-29  Eric Blake  <ebb9@byu.net>
77296
77297         * lib/arcfour.c: Assume config.h.
77298         * lib/arctwo.c: Likewise.
77299         * lib/base64.c: Likewise.
77300         * lib/check-version.c: Likewise.
77301         * lib/crc.c: Likewise.
77302         * lib/des.c: Likewise.
77303         * lib/gc-gnulib.c: Likewise.
77304         * lib/gc-libgcrypt.c: Likewise.
77305         * lib/gc-pbkdf2-sha1.c: Likewise.
77306         * lib/getaddrinfo.c: Likewise.
77307         * lib/getdelim.c: Likewise.
77308         * lib/getline.c: Likewise.
77309         * lib/hmac-md5.c: Likewise.
77310         * lib/hmac-sha1.c: Likewise.
77311         * lib/iconvme.c: Likewise.
77312         * lib/md2.c: Likewise.
77313         * lib/md4.c: Likewise.
77314         * lib/memxor.c: Likewise.
77315         * lib/read-file.c: Likewise.
77316         * lib/readline.c: Likewise.
77317         * lib/rijndael-alg-fst.c: Likewise.
77318         * lib/rijndael-api-fst.c: Likewise.
77319         * lib/xgetdomainname.c: Likewise.
77320
77321 2006-10-28  Eric Blake  <ebb9@byu.net>
77322
77323         * lib/xstrndup.c: Assume config.h.
77324
77325 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
77326
77327         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
77328         stat-macros.h is now for our own macros, whereas stat_h is for
77329         macros in the <sys/stat.h> name space.
77330         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
77331         (STAT_MACROS_H): Remove.
77332         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
77333         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
77334         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
77335         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
77336         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
77337         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
77338         Move these macros to ...
77339         * lib/stat_.h: here.  Don't include stat-macros.h.
77340         * lib/canonicalize.c: Don't include stat-macros.h.
77341         * lib/chown.c: Likewise.
77342         * lib/euidaccess.c: Likewise.
77343         * lib/file-type.c: Likewise.
77344         * lib/filemode.c: Likewise.
77345         * lib/glob.c: Likewise.
77346         * lib/isapipe.c: Likewise.
77347         * lib/lchown.c: Likewise.
77348         * lib/lstat.c: Likewise.
77349         * lib/mkdir-p.c: Likewise.
77350         * lib/rmdir.c: Likewise.
77351         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
77352         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
77353         unless mkdir isn't declared, to speed up 'configure'.
77354         Always create sys/stat.h, since it's unlikely any real sys/stat.h
77355         would define all the S_* symbols.
77356         * modules/canonicalize (Depends-on):
77357         Depend on sys_stat, not stat-macros.
77358         * modules/chown: Likewise.
77359         * modules/euidaccess: Likewise.
77360         * modules/filemode: Likewise.
77361         * modules/file-type: Likewise.
77362         * modules/glob: Likewise.
77363         * modules/isapipe: Likewise.
77364         * modules/lchown: Likewise.
77365         * modules/lstat: Likewise.
77366         * modules/mkancesdirs: Likewise.
77367         * modules/rmdir: Likewise.
77368         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
77369         * modules/modechange: Likewise.
77370         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
77371         (configure.ac): Remove gl_STAT_MACROS.
77372         * modules/sys_stat (Depends-on): Remove stat-macros.
77373
77374 2006-10-27  Bruno Haible  <bruno@clisp.org>
77375
77376         * m4/signed.m4: Remove file.
77377         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
77378         invocation.
77379         * modules/vasnprintf (Files): Remove m4/signed.m4.
77380
77381 2006-10-27  Bruno Haible  <bruno@clisp.org>
77382
77383         Update to GNU gettext 0.16.
77384         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
77385         m4/inttypes-h.m4, m4/signed.m4.
77386         * m4/gettext.m4: Update to GNU gettext 0.16.
77387         * m4/intl.m4: New file, from GNU gettext.
77388         * m4/intldir.m4: New file, from GNU gettext.
77389         * config/srclist.txt: Update
77390
77391 2006-10-27  Eric Blake  <ebb9@byu.net>
77392
77393         * MODULES.html.sh: Document tempname.
77394         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
77395         dependencies.
77396         (Files): Move lib/tempname.c...
77397         * modules/tempname: ...to this new module.
77398         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
77399         (gl_PREREQ_TEMPNAME): Move...
77400         * m4/tempname.m4: ...to this new file.
77401         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
77402         * modules/sys_stat (Depends-on): Add stat-macros.
77403         * lib/stat_.h (includes): Pick up stat macros.
77404         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
77405         if stat macros are broken.
77406         * lib/tempname.c (includes): No need to include "stat-macros.h".
77407         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
77408         (direxists, __path_search) [!_LIBC]: Don't compile these in
77409         gnulib; the tmpdir module covers that.
77410         * lib/tempname.h: New file.
77411
77412 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
77413
77414         * COPYING: Explain how gnulib-tool converts licence headers.
77415         Almost all wording by Eric Blake.
77416
77417 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
77418
77419         * lib/mbchar.h (is_basic_table): Make read-only.
77420         * lib/mbchar.c (is_basic_table): Likewise.
77421         Reported by John Darrington.
77422
77423 2006-10-25  Bruno Haible  <bruno@clisp.org>
77424
77425         * lib/progname.h (set_program_name): Undefine before defining.
77426
77427 2006-10-25  Bruno Haible  <bruno@clisp.org>
77428
77429         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
77430         false for non-gcc C++ compilers.
77431         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
77432
77433 2006-10-24  Bruno Haible  <bruno@clisp.org>
77434
77435         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
77436         iconv implementations like Irix iconv.
77437
77438 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77439
77440         * modules/vararrays: New file.
77441         * m4/vararrays.m4: New file, taken from diffutils.
77442         * MODULES.html.sh: New module vararrays.
77443
77444 2006-10-24  Karl Berry  <karl@gnu.org>
77445
77446         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
77447         Don't call GNU Unix.
77448
77449 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77450
77451         * users.txt: Add Libtool.
77452
77453         Sync from Libtool:
77454
77455         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77456
77457         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
77458         to gnulib's policy of including config.h unconditionally.
77459
77460 2006-10-24  Bruno Haible  <bruno@clisp.org>
77461
77462         * modules/wcwidth (Files): Add m4/wint_t.m4.
77463         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
77464         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
77465
77466 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77467
77468         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
77469         to pacify GCC with some -W flags enabled.  Problem reported by
77470         Bruno Haible.
77471
77472 2006-10-24  Jim Meyering  <jim@meyering.net>
77473
77474         * MODULES.html.sh: Remove uinttostr.  It's not a module.
77475         Reported by Karl Berry.
77476
77477 2006-10-23  Bruno Haible  <bruno@clisp.org>
77478
77479         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
77480
77481 2006-10-24  Bruno Haible  <bruno@clisp.org>
77482
77483         * lib/gl_list.h: Use C comment style, not C++ comment style.
77484
77485 2006-10-23  Eric Blake  <ebb9@byu.net>
77486
77487         * lib/getaddrinfo.c (includes): Add missing include.
77488
77489 2006-10-23  Bruno Haible  <bruno@clisp.org>
77490             Paul Eggert  <eggert@cs.ucla.edu>
77491
77492         Ability to rename obstack_free.
77493         * lib/obstack.h (__obstack_free): New macro. Declare instead of
77494         obstack_free.
77495         (obstack_free): Invoke the __obstack_free macro.
77496         * lib/obstack.c (obstack_free): Use __obstack_free macro.
77497
77498 2006-10-23  Bruno Haible  <bruno@clisp.org>
77499             Paul Eggert  <eggert@cs.ucla.edu>
77500
77501         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
77502         __argc, __argv from the declaration. (They are defined as macros on
77503         mingw.)
77504
77505 2006-10-22  Bruno Haible  <bruno@clisp.org>
77506
77507         * doc/gnulib-intro.texi: New file.
77508         * doc/gnulib.texi: Include it.
77509
77510 2006-10-21  Bruno Haible  <bruno@clisp.org>
77511
77512         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
77513         "Introduction", "Miscellanous Notes", "Particular Modules".
77514
77515 2006-10-21  Bruno Haible  <bruno@clisp.org>
77516
77517         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77518         Change mostlyclean-local rule to avoid sh syntax error from bash
77519         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
77520
77521 2006-10-23  Jim Meyering  <jim@meyering.net>
77522
77523         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
77524         in place of snprintf.
77525
77526         * modules/inttostr (Files): Add lib/uinttostr.c.
77527         * lib/uinttostr.c (inttostr): New file/function.
77528         * lib/inttostr.h (uinttostr): Declare.
77529         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
77530         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77531         Add uinttostr.
77532         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
77533
77534 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77535
77536         * lib/canonicalize.c (ELOOP): Define if not already defined.
77537         Problem reported by Bruno Haible in
77538         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
77539
77540 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77541
77542         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
77543         Problem reported by Perry Smith and Ville Laurikari.
77544
77545         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
77546         uses.
77547
77548 2006-10-19  Bruno Haible  <bruno@clisp.org>
77549
77550         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
77551         for mingw.
77552
77553 2006-10-19  Bruno Haible  <bruno@clisp.org>
77554
77555         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
77556         Needed for mingw.
77557
77558 2006-10-19  Bruno Haible  <bruno@clisp.org>
77559
77560         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
77561
77562 2006-10-19  Bruno Haible  <bruno@clisp.org>
77563
77564         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
77565         it.
77566
77567 2006-10-19  Bruno Haible  <bruno@clisp.org>
77568
77569         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
77570         invocation.
77571
77572 2006-10-19  Bruno Haible  <bruno@clisp.org>
77573
77574         * gnulib-tool (func_create_testdir): Don't include ftruncate and
77575         mountlist by default.
77576
77577 2006-10-16  Bruno Haible  <bruno@clisp.org>
77578
77579         * lib/c-strstr.c: Include c-strstr.h.
77580
77581 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77582
77583         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
77584         in a slash.
77585
77586 2006-10-18  Bruno Haible  <bruno@clisp.org>
77587
77588         * lib/lock.h [C++]: Wrap definitions in extern "C".
77589
77590 2006-10-18  Bruno Haible  <bruno@clisp.org>
77591
77592         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
77593         gl_LIBOBJS list.
77594
77595 2006-10-18  Bruno Haible  <bruno@clisp.org>
77596
77597         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
77598
77599 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
77600
77601         * lib/xstrtol.h: Include gettext.h.
77602         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
77603         Problem reported by Eric Blake.
77604         * modules/xstrtol (Depends-on): Add gettext-h.
77605
77606 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
77607
77608         * lib/strftime.c (advance): New macro.
77609         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
77610         incomplete type, so you can't add 0 to it.  Problem and patch
77611         reported by Eelco Dolstra for dietlibc.
77612
77613 2006-10-18  Jim Meyering  <jim@meyering.net>
77614
77615         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
77616         type for a local, and rename it: s/up/user_proc/.
77617
77618 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
77619
77620         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
77621         READ_UTMP_USER_PROCESS.
77622         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
77623
77624 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77625
77626         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
77627         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
77628
77629 2006-10-17  Eric Blake  <ebb9@byu.net>
77630
77631         * lib/sigprocmask.c (sigprocmask): Fix typo.
77632
77633         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
77634
77635         * modules/clean-temp (Makefile.am): Don't add to make output...
77636         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
77637         config.h.
77638
77639 2006-10-17  Bruno Haible  <bruno@clisp.org>
77640
77641         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
77642         differently if DEFAULT_TEXT_DOMAIN is set.
77643
77644 2006-10-16  Bruno Haible  <bruno@clisp.org>
77645
77646         * lib/clean-temp.c: Include fwriteerror.h.
77647
77648 2006-10-16  Bruno Haible  <bruno@clisp.org>
77649
77650         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
77651
77652 2006-10-16  Bruno Haible  <bruno@clisp.org>
77653
77654         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
77655         * lib/sigprocmask.h: Include <sys/types.h>.
77656         (sigset_t): Use the system's definition if present.
77657
77658 2006-10-17  Eric Blake  <ebb9@byu.net>
77659
77660         * lib/xvasprintf.c (includes): Assume config.h.
77661         * lib/xasprintf.c (includes): Likewise.
77662
77663 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
77664
77665         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
77666         at least as wide as intmax_t.
77667
77668 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
77669
77670         (Imported from Automake.)
77671         * build-aux/gnupload: Update to version 1.1 of directive file.
77672
77673 2006-10-16  Eric Blake  <ebb9@byu.net>
77674
77675         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
77676         match Automake 1.10a.
77677
77678 2006-10-14  Bruno Haible  <bruno@clisp.org>
77679
77680         * modules/sigprocmask: New file.
77681         * lib/sigprocmask.h: New file.
77682         * lib/sigprocmask.c: New file.
77683         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
77684         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
77685         request sigprocmask.o.
77686         (gl_PREREQ_SIGPROCMASK): New macro.
77687         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
77688         (Depends-on): Add sigprocmask.
77689         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
77690         gt_SIGNALBLOCKING. Test for 'raise' only once.
77691         * lib/fatal-signal.c: Include sigprocmask.h.
77692         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
77693         unblock_fatal_signals): Define always.
77694         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77695         sigprocmask.
77696
77697 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77698
77699         Sync from Automake.
77700         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
77701         which incorrectly sets the mode of an existing destination
77702         directory.  In some cases the unpatched install-sh could do the
77703         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
77704         system.  We hope this is rare in practice, but it's clearly worth
77705         fixing.  Problem reported by Alex Unleashed in
77706         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
77707         Also, don't bother to check for -m bugs unless we're using -m;
77708         suggested by Stepan Kasal.
77709
77710 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77711
77712         Sync from Automake.
77713         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
77714         `-c' flag, so they appear at the same position as in %FASTDEP%
77715         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
77716         which ignores unknown options only after the first non-option.
77717         Bug report against M4 by Nelson H. F. Beebe.
77718
77719 2006-10-13  Jim Meyering  <jim@meyering.net>
77720
77721         Fix a bug in yesterday's change.
77722         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
77723         p->fts_statp->st_dev would be used uninitialized.
77724         Ensures that we always call fts_stat on the very first entry.
77725         Miklos Szeredi reported that find -xdev stopped working.
77726
77727 2006-10-12  Bruno Haible  <bruno@clisp.org>
77728
77729         * gnulib-tool (func_get_automake_snippet): Append an automatically
77730         computed EXTRA_DIST augmentation.
77731         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
77732         * modules/alloca-opt (Makefile.am): Likewise.
77733         * modules/allocsa (Makefile.am): Likewise.
77734         * modules/arcfour (Makefile.am): Likewise.
77735         * modules/arctwo (Makefile.am): Likewise.
77736         * modules/argmatch (Makefile.am): Likewise.
77737         * modules/argz (Makefile.am): Likewise.
77738         * modules/atexit (Makefile.am): Likewise.
77739         * modules/backupfile (Makefile.am): Likewise.
77740         * modules/byteswap (Makefile.am): Likewise.
77741         * modules/c-strtod (Makefile.am): Likewise.
77742         * modules/c-strtold (Makefile.am): Likewise.
77743         * modules/calloc (Makefile.am): Likewise.
77744         * modules/canon-host (Makefile.am): Likewise.
77745         * modules/canonicalize (Makefile.am): Likewise.
77746         * modules/chdir-long (Makefile.am): Likewise.
77747         * modules/chdir-safer (Makefile.am): Likewise.
77748         * modules/check-version (Makefile.am): Likewise.
77749         * modules/chown (Makefile.am): Likewise.
77750         * modules/cloexec (Makefile.am): Likewise.
77751         * modules/close-stream (Makefile.am): Likewise.
77752         * modules/closeout (Makefile.am): Likewise.
77753         * modules/crc (Makefile.am): Likewise.
77754         * modules/csharpexec (Makefile.am): Likewise.
77755         * modules/cycle-check (Makefile.am): Likewise.
77756         * modules/des (Makefile.am): Likewise.
77757         * modules/dev-ino (Makefile.am): Likewise.
77758         * modules/dirfd (Makefile.am): Likewise.
77759         * modules/dirname (Makefile.am): Likewise.
77760         * modules/dup2 (Makefile.am): Likewise.
77761         * modules/eealloc (Makefile.am): Likewise.
77762         * modules/error (Makefile.am): Likewise.
77763         * modules/euidaccess (Makefile.am): Likewise.
77764         * modules/exclude (Makefile.am): Likewise.
77765         * modules/exitfail (Makefile.am): Likewise.
77766         * modules/fcntl-safer (Makefile.am): Likewise.
77767         * modules/fcntl (Makefile.am): Likewise.
77768         * modules/file-type (Makefile.am): Likewise.
77769         * modules/fileblocks (Makefile.am): Likewise.
77770         * modules/filemode (Makefile.am): Likewise.
77771         * modules/filenamecat (Makefile.am): Likewise.
77772         * modules/fnmatch (Makefile.am): Likewise.
77773         * modules/fopen-safer (Makefile.am): Likewise.
77774         * modules/fpending (Makefile.am): Likewise.
77775         * modules/fprintftime (Makefile.am): Likewise.
77776         * modules/free (Makefile.am): Likewise.
77777         * modules/fsusage (Makefile.am): Likewise.
77778         * modules/ftruncate (Makefile.am): Likewise.
77779         * modules/fts (Makefile.am): Likewise.
77780         * modules/gc-arcfour (Makefile.am): Likewise.
77781         * modules/gc-des (Makefile.am): Likewise.
77782         * modules/gc-hmac-md5 (Makefile.am): Likewise.
77783         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
77784         * modules/gc-md4 (Makefile.am): Likewise.
77785         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77786         * modules/gc-sha1 (Makefile.am): Likewise.
77787         * modules/gc (Makefile.am): Likewise.
77788         * modules/getaddrinfo (Makefile.am): Likewise.
77789         * modules/getcwd (Makefile.am): Likewise.
77790         * modules/getdelim (Makefile.am): Likewise.
77791         * modules/getdomainname (Makefile.am): Likewise.
77792         * modules/getgroups (Makefile.am): Likewise.
77793         * modules/gethostname (Makefile.am): Likewise.
77794         * modules/gethrxtime (Makefile.am): Likewise.
77795         * modules/getline (Makefile.am): Likewise.
77796         * modules/getloadavg (Makefile.am): Likewise.
77797         * modules/getlogin_r (Makefile.am): Likewise.
77798         * modules/getndelim2 (Makefile.am): Likewise.
77799         * modules/getopt (Makefile.am): Likewise.
77800         * modules/getpagesize (Makefile.am): Likewise.
77801         * modules/getpass-gnu (Makefile.am): Likewise.
77802         * modules/getpass (Makefile.am): Likewise.
77803         * modules/getsubopt (Makefile.am): Likewise.
77804         * modules/gettime (Makefile.am): Likewise.
77805         * modules/gettimeofday (Makefile.am): Likewise.
77806         * modules/getugroups (Makefile.am): Likewise.
77807         * modules/getusershell (Makefile.am): Likewise.
77808         * modules/glob (Makefile.am): Likewise.
77809         * modules/group-member (Makefile.am): Likewise.
77810         * modules/hard-locale (Makefile.am): Likewise.
77811         * modules/hash (Makefile.am): Likewise.
77812         * modules/hmac-md5 (Makefile.am): Likewise.
77813         * modules/hmac-sha1 (Makefile.am): Likewise.
77814         * modules/human (Makefile.am): Likewise.
77815         * modules/idcache (Makefile.am): Likewise.
77816         * modules/imaxabs (Makefile.am): Likewise.
77817         * modules/imaxdiv (Makefile.am): Likewise.
77818         * modules/inet_ntop (Makefile.am): Likewise.
77819         * modules/inet_pton (Makefile.am): Likewise.
77820         * modules/intprops (Makefile.am): Likewise.
77821         * modules/inttostr (Makefile.am): Likewise.
77822         * modules/inttypes (Makefile.am): Likewise.
77823         * modules/isapipe (Makefile.am): Likewise.
77824         * modules/javaversion (Makefile.am): Likewise.
77825         * modules/lchmod (Makefile.am): Likewise.
77826         * modules/lchown (Makefile.am): Likewise.
77827         * modules/localcharset (Makefile.am): Likewise.
77828         * modules/long-options (Makefile.am): Likewise.
77829         * modules/lstat (Makefile.am): Likewise.
77830         * modules/malloc (Makefile.am): Likewise.
77831         * modules/mathl (Makefile.am): Likewise.
77832         * modules/mbchar (Makefile.am): Likewise.
77833         * modules/md2 (Makefile.am): Likewise.
77834         * modules/md4 (Makefile.am): Likewise.
77835         * modules/md5 (Makefile.am): Likewise.
77836         * modules/memcasecmp (Makefile.am): Likewise.
77837         * modules/memchr (Makefile.am): Likewise.
77838         * modules/memcmp (Makefile.am): Likewise.
77839         * modules/memcoll (Makefile.am): Likewise.
77840         * modules/memcpy (Makefile.am): Likewise.
77841         * modules/memmem (Makefile.am): Likewise.
77842         * modules/memmove (Makefile.am): Likewise.
77843         * modules/mempcpy (Makefile.am): Likewise.
77844         * modules/memrchr (Makefile.am): Likewise.
77845         * modules/memset (Makefile.am): Likewise.
77846         * modules/memxor (Makefile.am): Likewise.
77847         * modules/mkancesdirs (Makefile.am): Likewise.
77848         * modules/mkdir-p (Makefile.am): Likewise.
77849         * modules/mkdir (Makefile.am): Likewise.
77850         * modules/mkdtemp (Makefile.am): Likewise.
77851         * modules/mkstemp (Makefile.am): Likewise.
77852         * modules/mktime (Makefile.am): Likewise.
77853         * modules/modechange (Makefile.am): Likewise.
77854         * modules/mountlist (Makefile.am): Likewise.
77855         * modules/nanosleep (Makefile.am): Likewise.
77856         * modules/obstack (Makefile.am): Likewise.
77857         * modules/openat (Makefile.am): Likewise.
77858         * modules/pagealign_alloc (Makefile.am): Likewise.
77859         * modules/pathmax (Makefile.am): Likewise.
77860         * modules/physmem (Makefile.am): Likewise.
77861         * modules/poll (Makefile.am): Likewise.
77862         * modules/posixtm (Makefile.am): Likewise.
77863         * modules/posixver (Makefile.am): Likewise.
77864         * modules/putenv (Makefile.am): Likewise.
77865         * modules/quote (Makefile.am): Likewise.
77866         * modules/quotearg (Makefile.am): Likewise.
77867         * modules/raise (Makefile.am): Likewise.
77868         * modules/read-file (Makefile.am): Likewise.
77869         * modules/readline (Makefile.am): Likewise.
77870         * modules/readlink (Makefile.am): Likewise.
77871         * modules/readtokens (Makefile.am): Likewise.
77872         * modules/readutmp (Makefile.am): Likewise.
77873         * modules/realloc (Makefile.am): Likewise.
77874         * modules/regex (Makefile.am): Likewise.
77875         * modules/rename-dest-slash (Makefile.am): Likewise.
77876         * modules/rename (Makefile.am): Likewise.
77877         * modules/rijndael (Makefile.am): Likewise.
77878         * modules/rmdir (Makefile.am): Likewise.
77879         * modules/rpmatch (Makefile.am): Likewise.
77880         * modules/safe-read (Makefile.am): Likewise.
77881         * modules/safe-write (Makefile.am): Likewise.
77882         * modules/same-inode (Makefile.am): Likewise.
77883         * modules/same (Makefile.am): Likewise.
77884         * modules/save-cwd (Makefile.am): Likewise.
77885         * modules/savedir (Makefile.am): Likewise.
77886         * modules/setenv (Makefile.am): Likewise.
77887         * modules/settime (Makefile.am): Likewise.
77888         * modules/sha1 (Makefile.am): Likewise.
77889         * modules/sig2str (Makefile.am): Likewise.
77890         * modules/snprintf (Makefile.am): Likewise.
77891         * modules/stat-macros (Makefile.am): Likewise.
77892         * modules/stat-time (Makefile.am): Likewise.
77893         * modules/stdbool (Makefile.am): Likewise.
77894         * modules/stdint (Makefile.am): Likewise.
77895         * modules/stdlib-safer (Makefile.am): Likewise.
77896         * modules/stpcpy (Makefile.am): Likewise.
77897         * modules/stpncpy (Makefile.am): Likewise.
77898         * modules/strcase (Makefile.am): Likewise.
77899         * modules/strcasestr (Makefile.am): Likewise.
77900         * modules/strchrnul (Makefile.am): Likewise.
77901         * modules/strcspn (Makefile.am): Likewise.
77902         * modules/strdup (Makefile.am): Likewise.
77903         * modules/strerror (Makefile.am): Likewise.
77904         * modules/strftime (Makefile.am): Likewise.
77905         * modules/strndup (Makefile.am): Likewise.
77906         * modules/strnlen (Makefile.am): Likewise.
77907         * modules/strpbrk (Makefile.am): Likewise.
77908         * modules/strsep (Makefile.am): Likewise.
77909         * modules/strstr (Makefile.am): Likewise.
77910         * modules/strtod (Makefile.am): Likewise.
77911         * modules/strtoimax (Makefile.am): Likewise.
77912         * modules/strtok_r (Makefile.am): Likewise.
77913         * modules/strtol (Makefile.am): Likewise.
77914         * modules/strtoll (Makefile.am): Likewise.
77915         * modules/strtoul (Makefile.am): Likewise.
77916         * modules/strtoull (Makefile.am): Likewise.
77917         * modules/strtoumax (Makefile.am): Likewise.
77918         * modules/strverscmp (Makefile.am): Likewise.
77919         * modules/sys_socket (Makefile.am): Likewise.
77920         * modules/sys_stat (Makefile.am): Likewise.
77921         * modules/sysexits (Makefile.am): Likewise.
77922         * modules/time_r (Makefile.am): Likewise.
77923         * modules/timegm (Makefile.am): Likewise.
77924         * modules/timespec (Makefile.am): Likewise.
77925         * modules/tmpfile-safer (Makefile.am): Likewise.
77926         * modules/trim (Makefile.am): Likewise.
77927         * modules/unistd-safer (Makefile.am): Likewise.
77928         * modules/unlinkdir (Makefile.am): Likewise.
77929         * modules/unlocked-io (Makefile.am): Likewise.
77930         * modules/userspec (Makefile.am): Likewise.
77931         * modules/utime (Makefile.am): Likewise.
77932         * modules/utimecmp (Makefile.am): Likewise.
77933         * modules/utimens (Makefile.am): Likewise.
77934         * modules/vasnprintf (Makefile.am): Likewise.
77935         * modules/vasprintf (Makefile.am): Likewise.
77936         * modules/vsnprintf (Makefile.am): Likewise.
77937         * modules/xalloc (Makefile.am): Likewise.
77938         * modules/xgetcwd (Makefile.am): Likewise.
77939         * modules/xnanosleep (Makefile.am): Likewise.
77940         * modules/xreadlink (Makefile.am): Likewise.
77941         * modules/xstrtod (Makefile.am): Likewise.
77942         * modules/xstrtol (Makefile.am): Likewise.
77943         * modules/xstrtold (Makefile.am): Likewise.
77944         * modules/yesno (Makefile.am): Likewise.
77945         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
77946
77947 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77948
77949         * modules/error (Makefile.am): Distribute files through
77950         EXTRA_DIST, not lib_SOURCES.
77951
77952 2006-10-12  Eric Blake  <ebb9@byu.net>
77953
77954         * modules/error (Makefile.am): Distribute files in /lib.
77955         * modules/obstack (Makefile.am): Likewise.
77956
77957 2006-10-12  Bruno Haible  <bruno@clisp.org>
77958
77959         * modules/acl (Makefile.am): Distribute all files in lib/ through
77960         EXTRA_DIST.
77961         * modules/arcfour (Makefile.am): Likewise.
77962         * modules/arctwo (Makefile.am): Likewise.
77963         * modules/argmatch (Makefile.am): Likewise.
77964         * modules/argz (Makefile.am): Likewise.
77965         * modules/atexit (Makefile.am): Likewise.
77966         * modules/backupfile (Makefile.am): Likewise.
77967         * modules/c-strtod (Makefile.am): Likewise.
77968         * modules/c-strtold (Makefile.am): Likewise.
77969         * modules/calloc (Makefile.am): Likewise.
77970         * modules/canon-host (Makefile.am): Likewise.
77971         * modules/canonicalize (Makefile.am): Likewise.
77972         * modules/chdir-long (Makefile.am): Likewise.
77973         * modules/chdir-safer (Makefile.am): Likewise.
77974         * modules/check-version (Makefile.am): Likewise.
77975         * modules/chown (Makefile.am): Likewise.
77976         * modules/cloexec (Makefile.am): Likewise.
77977         * modules/close-stream (Makefile.am): Likewise.
77978         * modules/closeout (Makefile.am): Likewise.
77979         * modules/crc (Makefile.am): Likewise.
77980         * modules/cycle-check (Makefile.am): Likewise.
77981         * modules/des (Makefile.am): Likewise.
77982         * modules/dirfd (Makefile.am): Likewise.
77983         * modules/dirname (Makefile.am): Likewise.
77984         * modules/dup2 (Makefile.am): Likewise.
77985         * modules/euidaccess (Makefile.am): Likewise.
77986         * modules/exclude (Makefile.am): Likewise.
77987         * modules/exitfail (Makefile.am): Likewise.
77988         * modules/fcntl-safer (Makefile.am): Likewise.
77989         * modules/file-type (Makefile.am): Likewise.
77990         * modules/fileblocks (Makefile.am): Likewise.
77991         * modules/filemode (Makefile.am): Likewise.
77992         * modules/filenamecat (Makefile.am): Likewise.
77993         * modules/fnmatch (Makefile.am): Likewise.
77994         * modules/fopen-safer (Makefile.am): Likewise.
77995         * modules/fpending (Makefile.am): Likewise.
77996         * modules/fprintftime (Makefile.am): Likewise.
77997         * modules/free (Makefile.am): Likewise.
77998         * modules/fsusage (Makefile.am): Likewise.
77999         * modules/ftruncate (Makefile.am): Likewise.
78000         * modules/fts (Makefile.am): Likewise.
78001         * modules/gc (Makefile.am): Likewise.
78002         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
78003         * modules/getaddrinfo (Makefile.am): Likewise.
78004         * modules/getcwd (Makefile.am): Likewise.
78005         * modules/getdelim (Makefile.am): Likewise.
78006         * modules/getdomainname (Makefile.am): Likewise.
78007         * modules/getgroups (Makefile.am): Likewise.
78008         * modules/gethostname (Makefile.am): Likewise.
78009         * modules/gethrxtime (Makefile.am): Likewise.
78010         * modules/getline (Makefile.am): Likewise.
78011         * modules/getloadavg (Makefile.am): Likewise.
78012         * modules/getlogin_r (Makefile.am): Likewise.
78013         * modules/getopt (Makefile.am): Likewise.
78014         * modules/getpass (Makefile.am): Likewise.
78015         * modules/getpass-gnu (Makefile.am): Likewise.
78016         * modules/getsubopt (Makefile.am): Likewise.
78017         * modules/gettime (Makefile.am): Likewise.
78018         * modules/gettimeofday (Makefile.am): Likewise.
78019         * modules/getugroups (Makefile.am): Likewise.
78020         * modules/getusershell (Makefile.am): Likewise.
78021         * modules/glob (Makefile.am): Likewise.
78022         * modules/group-member (Makefile.am): Likewise.
78023         * modules/hard-locale (Makefile.am): Likewise.
78024         * modules/hash (Makefile.am): Likewise.
78025         * modules/hmac-md5 (Makefile.am): Likewise.
78026         * modules/hmac-sha1 (Makefile.am): Likewise.
78027         * modules/human (Makefile.am): Likewise.
78028         * modules/idcache (Makefile.am): Likewise.
78029         * modules/imaxabs (Makefile.am): Likewise.
78030         * modules/imaxdiv (Makefile.am): Likewise.
78031         * modules/inet_ntop (Makefile.am): Likewise.
78032         * modules/inet_pton (Makefile.am): Likewise.
78033         * modules/inttostr (Makefile.am): Likewise.
78034         * modules/isapipe (Makefile.am): Likewise.
78035         * modules/lchown (Makefile.am): Likewise.
78036         * modules/long-options (Makefile.am): Likewise.
78037         * modules/lstat (Makefile.am): Likewise.
78038         * modules/malloc (Makefile.am): Likewise.
78039         * modules/mathl (Makefile.am): Likewise.
78040         * modules/mbchar (Makefile.am): Likewise.
78041         * modules/md2 (Makefile.am): Likewise.
78042         * modules/md4 (Makefile.am): Likewise.
78043         * modules/md5 (Makefile.am): Likewise.
78044         * modules/memcasecmp (Makefile.am): Likewise.
78045         * modules/memchr (Makefile.am): Likewise.
78046         * modules/memcmp (Makefile.am): Likewise.
78047         * modules/memcoll (Makefile.am): Likewise.
78048         * modules/memcpy (Makefile.am): Likewise.
78049         * modules/memmem (Makefile.am): Likewise.
78050         * modules/memmove (Makefile.am): Likewise.
78051         * modules/mempcpy (Makefile.am): Likewise.
78052         * modules/memrchr (Makefile.am): Likewise.
78053         * modules/memset (Makefile.am): Likewise.
78054         * modules/memxor (Makefile.am): Likewise.
78055         * modules/mkancesdirs (Makefile.am): Likewise.
78056         * modules/mkdir (Makefile.am): Likewise.
78057         * modules/mkdir-p (Makefile.am): Likewise.
78058         * modules/mkdtemp (Makefile.am): Likewise.
78059         * modules/mkstemp (Makefile.am): Likewise.
78060         * modules/mktime (Makefile.am): Likewise.
78061         * modules/modechange (Makefile.am): Likewise.
78062         * modules/mountlist (Makefile.am): Likewise.
78063         * modules/nanosleep (Makefile.am): Likewise.
78064         * modules/openat (Makefile.am): Likewise.
78065         * modules/pagealign_alloc (Makefile.am): Likewise.
78066         * modules/physmem (Makefile.am): Likewise.
78067         * modules/poll (Makefile.am): Likewise.
78068         * modules/posixtm (Makefile.am): Likewise.
78069         * modules/posixver (Makefile.am): Likewise.
78070         * modules/putenv (Makefile.am): Likewise.
78071         * modules/quote (Makefile.am): Likewise.
78072         * modules/quotearg (Makefile.am): Likewise.
78073         * modules/raise (Makefile.am): Likewise.
78074         * modules/read-file (Makefile.am): Likewise.
78075         * modules/readline (Makefile.am): Likewise.
78076         * modules/readlink (Makefile.am): Likewise.
78077         * modules/readtokens (Makefile.am): Likewise.
78078         * modules/readutmp (Makefile.am): Likewise.
78079         * modules/realloc (Makefile.am): Likewise.
78080         * modules/regex (Makefile.am): Likewise.
78081         * modules/rename (Makefile.am): Likewise.
78082         * modules/rename-dest-slash (Makefile.am): Likewise.
78083         * modules/rijndael (Makefile.am): Likewise.
78084         * modules/rmdir (Makefile.am): Likewise.
78085         * modules/rpmatch (Makefile.am): Likewise.
78086         * modules/safe-read (Makefile.am): Likewise.
78087         * modules/safe-write (Makefile.am): Likewise.
78088         * modules/same (Makefile.am): Likewise.
78089         * modules/save-cwd (Makefile.am): Likewise.
78090         * modules/savedir (Makefile.am): Likewise.
78091         * modules/setenv (Makefile.am): Likewise.
78092         * modules/settime (Makefile.am): Likewise.
78093         * modules/sha1 (Makefile.am): Likewise.
78094         * modules/sig2str (Makefile.am): Likewise.
78095         * modules/snprintf (Makefile.am): Likewise.
78096         * modules/stdlib-safer (Makefile.am): Likewise.
78097         * modules/stpcpy (Makefile.am): Likewise.
78098         * modules/stpncpy (Makefile.am): Likewise.
78099         * modules/strcase (Makefile.am): Likewise.
78100         * modules/strcasestr (Makefile.am): Likewise.
78101         * modules/strchrnul (Makefile.am): Likewise.
78102         * modules/strcspn (Makefile.am): Likewise.
78103         * modules/strdup (Makefile.am): Likewise.
78104         * modules/strerror (Makefile.am): Likewise.
78105         * modules/strftime (Makefile.am): Likewise.
78106         * modules/strndup (Makefile.am): Likewise.
78107         * modules/strnlen (Makefile.am): Likewise.
78108         * modules/strpbrk (Makefile.am): Likewise.
78109         * modules/strsep (Makefile.am): Likewise.
78110         * modules/strstr (Makefile.am): Likewise.
78111         * modules/strtod (Makefile.am): Likewise.
78112         * modules/strtoimax (Makefile.am): Likewise.
78113         * modules/strtok_r (Makefile.am): Likewise.
78114         * modules/strtol (Makefile.am): Likewise.
78115         * modules/strtoll (Makefile.am): Likewise.
78116         * modules/strtoul (Makefile.am): Likewise.
78117         * modules/strtoull (Makefile.am): Likewise.
78118         * modules/strtoumax (Makefile.am): Likewise.
78119         * modules/strverscmp (Makefile.am): Likewise.
78120         * modules/time_r (Makefile.am): Likewise.
78121         * modules/timegm (Makefile.am): Likewise.
78122         * modules/tmpfile-safer (Makefile.am): Likewise.
78123         * modules/unistd-safer (Makefile.am): Likewise.
78124         * modules/unlinkdir (Makefile.am): Likewise.
78125         * modules/userspec (Makefile.am): Likewise.
78126         * modules/utime (Makefile.am): Likewise.
78127         * modules/utimecmp (Makefile.am): Likewise.
78128         * modules/utimens (Makefile.am): Likewise.
78129         * modules/vasnprintf (Makefile.am): Likewise.
78130         * modules/vasprintf (Makefile.am): Likewise.
78131         * modules/vsnprintf (Makefile.am): Likewise.
78132         * modules/xalloc (Makefile.am): Likewise.
78133         * modules/xgetcwd (Makefile.am): Likewise.
78134         * modules/xnanosleep (Makefile.am): Likewise.
78135         * modules/xreadlink (Makefile.am): Likewise.
78136         * modules/xstrtod (Makefile.am): Likewise.
78137         * modules/xstrtol (Makefile.am): Likewise.
78138         * modules/xstrtold (Makefile.am): Likewise.
78139         * modules/yesno (Makefile.am): Likewise.
78140
78141 2006-10-12  Jim Meyering  <jim@meyering.net>
78142
78143         * m4/getloadavg.m4: Revert the change below.
78144
78145         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
78146         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
78147         fail with a symlink, which is what coreutils' ./bootstrap now
78148         creates by default.
78149
78150 2006-10-12  Bruno Haible  <bruno@clisp.org>
78151
78152         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
78153         mingw.
78154         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
78155         MSVC and mingw explicitly.
78156
78157 2006-10-11  Simon Josefsson  <jas@extundo.com>
78158             Bruno Haible  <bruno@clisp.org>
78159
78160         Add support for multiple gnulib-tool invocations in the scope of a
78161         single configure.ac file.
78162         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
78163         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
78164         with the same contents as the _LIBADD variable.
78165         (func_emit_initmacro_start, func_emit_initmacro_end,
78166         func_emit_initmacro_done): New functions.
78167         (func_import, func_create_testdir): Invoke them. Allow the identifiers
78168         gl_LIBOBJS and gl_LTLIBOBJS.
78169
78170 2006-10-11  Bruno Haible  <bruno@clisp.org>
78171
78172         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
78173         (func_create_testdir): Don't create po/Makefile.am, don't invoke
78174         autoreconf. Instead, invoke autopoint explicitly but move back the
78175         *.m4 files from gnulib.
78176
78177 2006-10-11  Bruno Haible  <bruno@clisp.org>
78178
78179         * gnulib-tool (func_usage): Make module names after --create-testdir
78180         optional.
78181         (func_create_testdir): If no module was specified, use nearly all
78182         modules.
78183
78184 2006-10-12  Jim Meyering  <jim@meyering.net>
78185
78186         Big performance improvement for fts-based tools that use FTS_NOSTAT.
78187         Avoid spurious inode-mismatch problems on non-POSIX file systems.
78188         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
78189         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
78190         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
78191         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
78192         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
78193         (fts_set_stat_required): New function.
78194         (fts_open): Defer the calls to fts_stat, if possible or requested.
78195         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
78196         into fts_stat itself.
78197         (fts_read): Perform any required (deferred) fts_stat call.
78198         (fts_build): Likewise, for the directory we're about to open and read.
78199         In the readdir loop, carefully decide whether each entry will require
78200         an eventual call to fts_stat, using dirent.d_type info if available.
78201         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
78202         a command line argument into this function.  Update all callers.
78203         Map a return value of FTS_DOT to FTS_D for a command line argument.
78204         * modules/fts (Depends-on): Add d-type.  Alphabetize.
78205         Thanks to Miklos Szeredi for his tenacity and for the initial
78206         bug report about "find" failing on a FUSE-based file system.
78207
78208         * lib/fts.c (fts_open): Use consistent indentation.
78209
78210 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78211
78212         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
78213         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
78214         reported by Jim Meyering.  All uses of cache variables renamed
78215         to match Autoconf's.
78216         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
78217         the other one.
78218
78219         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
78220         Fix misspelling in diagnostic.
78221
78222 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78223
78224         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
78225         defined.  Problem reported by Matthew Woehlke.
78226
78227         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
78228         Add support for Tandem NonStop R series.
78229         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
78230         Use new macro.
78231
78232         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
78233         (has_trailing_slash): Omit size arg; all callers changed.
78234         Omit 'inline', since it doesn't help performance and we'd
78235         need to configure it.
78236         Don't count //, ///, etc. as having a trailing slash.
78237         As a side effect, this removes a C99ism reported by Matthew Woehlke.
78238         (rpl_rename_dest_slash): On failure, use rename's errno rather
78239         than (in some cases) an incorrect or junk errno.
78240         Simplify code by removing need to compute length; this does
78241         cause it to make two passes instead of one over the file name,
78242         but it's worth it.
78243
78244         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
78245         change, since Autoconf's version may no longer be appropriate now
78246         that we are using CVS Autoconf's version.  Add support for Tandem.
78247
78248 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78249             Bruno Haible  <bruno@clisp.org>
78250
78251         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
78252         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
78253         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
78254         gl_AC_TYPE_LONG_LONG.
78255
78256         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
78257         instead of HAVE_LONG_LONG.
78258         * lib/printf-args.c (printf_fetchargs): Likewise.
78259         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
78260         * lib/vasnprintf.c (VASNPRINTF): Likewise.
78261         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
78262         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
78263         gl_AC_TYPE_LONG_LONG.
78264
78265 2006-10-11  Bruno Haible  <bruno@clisp.org>
78266
78267         * m4/longlong.m4: Add comments.
78268         * m4/ulonglong.m4: Likewise.
78269
78270 2006-10-10  Bruno Haible  <bruno@clisp.org>
78271
78272         Make it possible to #define stpcpy, strdup to aliases.
78273         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
78274         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
78275
78276 2006-10-10  Bruno Haible  <bruno@clisp.org>
78277
78278         Make it possible to #define gcd to an alias.
78279         * lib/gcd.c: Include config.h.
78280
78281 2006-10-10  Bruno Haible  <bruno@clisp.org>
78282
78283         Make it possible to #define c_isascii to an alias.
78284         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
78285         defined. Undefine the macros before defining them, to avoid gcc
78286         warnings.
78287         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
78288         define NO_C_CTYPE_MACROS early.
78289
78290 2006-10-10  Bruno Haible  <bruno@clisp.org>
78291
78292         Make it possible to #define set_program_name to an alias.
78293         * lib/progname.c: Don't undefine set_program_name; instead, undefine
78294         ENABLE_RELOCATABLE early.
78295
78296 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78297
78298         Port to Tandem NSK OSS, which has 64-bit signed int but at most
78299         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
78300         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
78301         More generally, don't assume that 64-bit signed int is available
78302         if unsigned int is, and vice versa.
78303         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
78304         unsigned symbols, not on their signed counterparts.
78305         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
78306         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
78307         (UINT64_C, UINTMAX_C):
78308         Likewise.
78309         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
78310         unsigned counterparts.
78311         (Have_long_long, Unsigned): New macros.
78312         (Int): Renamed from INT.
78313         (strtoimax): Use the new macros.
78314         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
78315         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
78316         * modules/inttypes (inttypes.h): Substitute
78317         HAVE_UNSIGNED_LONG_LONG_INT.
78318         * modules/stdint (stdint.h): Likewise.
78319         (Files): Add m4/ulonglong.m4.
78320
78321 2006-10-10  Bruno Haible  <bruno@clisp.org>
78322
78323         Fix a gcc -Wshadow warning.
78324         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
78325         to 'bucket'.
78326         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
78327         gl_linked_indexof_from_to): Likewise.
78328         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
78329         Likewise.
78330         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
78331         Likewise.
78332         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
78333         Reported by Eric Blake.
78334
78335 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
78336
78337         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
78338         for NetBSD.  Problem reported by Bruno Haible.
78339
78340 2006-10-09  Jim Meyering  <jim@meyering.net>
78341
78342         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
78343         Patch from Bruno Haible.
78344
78345 2006-10-09  Jim Meyering  <jim@meyering.net>
78346
78347         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
78348         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
78349         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
78350
78351 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
78352
78353         Don't include <config.h> twice; this doesn't work in some cases,
78354         e.g., when config.h has "#define intmax_t long long int" and
78355         we include <config.h>, <inttypes.h>, <config.h> in that order.
78356         Problem reported by Matthew Woehlke in:
78357         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
78358         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
78359         * lib/fts-cycle.c: Don't include config.h.
78360         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
78361         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
78362         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
78363         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
78364         inttypes.h.
78365         * lib/xstrtoumax.c: Likewise.
78366         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
78367         __strtol and the like, so that this module is more like its siblings.
78368         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
78369         Remove; no longer needed now that we assume gnulib inttypes.h.
78370
78371 2006-10-08  Bruno Haible  <bruno@clisp.org>
78372
78373         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
78374         option.
78375
78376 2006-10-07  Jim Meyering  <jim@meyering.net>
78377
78378         * modules/inttypes (inttypes.h): Revert what seems to have been
78379         an inadvertent part of today's change: use "|", not "/" in the
78380         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
78381
78382 2006-10-07  Bruno Haible  <bruno@clisp.org>
78383
78384         * modules/sublist: New file.
78385
78386 2006-10-07  Bruno Haible  <bruno@clisp.org>
78387
78388         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
78389         * modules/argz (argz.h): Likewise.
78390         * modules/arpa_inet (arpa/inet.h): Likewise.
78391         * modules/byteswap (byteswap.h): Likewise.
78392         * modules/configmake (configmake.h): Likewise.
78393         * modules/fcntl (fcntl.h): Likewise.
78394         * modules/fnmatch (fnmatch.h): Likewise.
78395         * modules/getopt (getopt.h): Likewise.
78396         * modules/glob (glob.h): Likewise.
78397         * modules/inttypes (inttypes.h): Likewise.
78398         * modules/netinet_in (netinet/in.h): Likewise.
78399         * modules/poll (poll.h): Likewise.
78400         * modules/stdbool (stdbool.h): Likewise.
78401         * modules/stdint (stdint.h): Likewise.
78402         * modules/sys_select (sys/select.h): Likewise.
78403         * modules/sys_socket (sys/socket.h): Likewise.
78404         * modules/sys_stat (sys/stat.h): Likewise.
78405         * modules/sysexits (sysexits.h): Likewise.
78406         * modules/unistd (unistd.h): Likewise.
78407         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78408         Add a "DO NOT EDIT" comment to the generated file.
78409         (func_import): Likewise for gnulib-comp.m4.
78410
78411 2006-10-07  Bruno Haible  <bruno@clisp.org>
78412
78413         * lib/gl_sublist.h: New file.
78414         * lib/gl_sublist.c: New file.
78415
78416 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78417
78418         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
78419         name (relative to the original working directory) and the file
78420         name component (relative to the temporary working directory).  All
78421         callers changed.
78422         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
78423         * lib/mkdir-p.c (make_dir_parents): Likewise.
78424         * lib/mkdir-p.h (make_dir_parents): Likewise.
78425
78426 2006-10-06  Eric Blake  <ebb9@byu.net>
78427
78428         Define several macros for use by the clean-temp module.
78429         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
78430         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
78431         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
78432
78433         * lib/clean-temp.h (close_stream_temp): New declaration.
78434         * lib/clean-temp.c (includes): Pull in headers according to what
78435         other modules are in use.
78436         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
78437
78438 2006-10-06  Bruno Haible  <bruno@clisp.org>
78439
78440         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
78441         instead of fopen, fwriteerror.
78442
78443 2006-10-06  Bruno Haible  <bruno@clisp.org>
78444
78445         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
78446         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
78447         int.
78448         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
78449         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
78450         Return an error indicator.
78451         Suggested by Eric Blake.
78452
78453 2006-10-06  Bruno Haible  <bruno@clisp.org>
78454
78455         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
78456         Reported by Eric Blake.
78457
78458 2006-10-06  Bruno Haible  <bruno@clisp.org>
78459
78460         * modules/closeout (Description): Mention stderr too.
78461
78462 2006-10-06  Bruno Haible  <bruno@clisp.org>
78463         and Paul Eggert  <eggert@cs.ucla.edu>
78464
78465         * lib/closeout.c (close_stdout): Also close stderr.
78466         * lib/closeout.h: Update comment.
78467
78468 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78469
78470         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
78471         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
78472         * lib/dirchownmod.c: Include lchown.h.
78473         * lib/lchown.c: Don't include files that lchown.h now includes.
78474         Don't declare chown, since lchown.h now does that.
78475         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
78476         (lchown): Define to rpl_chown if lchown is declared but
78477         does not exist.  Declare using a prototype if lchown is not
78478         declared.  Add a copyright notice.
78479         * lib/mkstemp.h: Include <unistd.h>.
78480         * lib/openat.c: Include lchown.h.
78481
78482         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
78483         we now test for that separately.
78484         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
78485         rather than O_NOFOLLOW, when testing whether it's possible to
78486         avoid a race condition reliably.
78487         * lib/savewd.c (savewd_chdir): Likewise.
78488
78489         Remove macros that are no longer needed now that stdint.h is
78490         reliable.
78491         * lib/fsusage.c (UINTMAX_MAX): Remove.
78492         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
78493         * lib/utimecmp.c (SIZE_MAX): Remove.
78494
78495         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
78496
78497         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
78498         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
78499         O_NOATIME works.
78500
78501 2006-10-05  Bruno Haible  <bruno@clisp.org>
78502
78503         * lib/gl_list.h (gl_sortedlist_search_from_to,
78504         gl_sortedlist_indexof_from_to): New declarations.
78505         (gl_list_implementation): New fields sortedlist_search_from_to,
78506         sortedlist_indexof_from_to.
78507         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
78508         inline functions.
78509         * lib/gl_list.c (gl_sortedlist_search_from_to,
78510         gl_sortedlist_indexof_from_to): New functions.
78511         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
78512         function.
78513         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
78514         (gl_array_sortedlist_search_from_to): New function.
78515         (gl_array_list_implementation): Update.
78516         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
78517         function.
78518         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
78519         (gl_carray_sortedlist_search_from_to): New function.
78520         (gl_carray_list_implementation): Update.
78521         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
78522         gl_linked_sortedlist_indexof_from_to): New functions.
78523         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78524         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78525         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
78526         gl_tree_sortedlist_indexof_from_to): New functions.
78527         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78528         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78529         Update.
78530         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78531         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
78532         Update.
78533
78534 2006-10-05  Bruno Haible  <bruno@clisp.org>
78535
78536         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
78537         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
78538         (struct gl_list_implementation): Add fields search_from_to,
78539         indexof_from_to. Remove fields search, indexof.
78540         (gl_list_search): Use the search_from_to method.
78541         (gl_list_search_from, gl_list_search_from_to): New functions.
78542         (gl_list_indexof): Use the indexof_from_to method.
78543         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78544         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
78545         (gl_list_search_from, gl_list_search_from_to): New functions.
78546         (gl_list_indexof): Use the indexof_from_to method.
78547         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78548         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
78549         gl_array_indexof. Add start_index, end_index arguments.
78550         (gl_array_search_from_to): Renamed from gl_array_search. Add
78551         start_index, end_index arguments.
78552         (gl_array_remove, gl_array_list_implementation): Update.
78553         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
78554         gl_carray_indexof. Add start_index, end_index arguments.
78555         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
78556         start_index, end_index arguments.
78557         (gl_carray_remove, gl_carray_list_implementation): Update.
78558         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
78559         gl_linked_search. Add start_index, end_index arguments.
78560         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
78561         start_index, end_index arguments.
78562         (gl_linked_remove): Update.
78563         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78564         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78565         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
78566         field to 'size_t'.
78567         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
78568         gl_tree_search. Add start_index, end_index arguments.
78569         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78570         start_index, end_index arguments.
78571         (gl_tree_remove): Update.
78572         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78573         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78574         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
78575         function.
78576         * lib/gl_anytreehash_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         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78581         Update.
78582         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78583
78584 2006-10-05  Bruno Haible  <bruno@clisp.org>
78585
78586         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
78587
78588         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
78589         fwriteerror_temp): New declarations.
78590         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
78591         (descriptors): New variable.
78592         (cleanup): First, close the descriptors.
78593         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
78594         fclose_temp, fwriteerror_temp): New functions.
78595
78596 2006-10-04  Jim Meyering  <jim@meyering.net>
78597
78598         * lib/fts.c (fts_open): Tiny comment change.
78599
78600 2006-10-04  Bruno Haible  <bruno@clisp.org>
78601
78602         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
78603         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
78604         gl_LOCK_BODY.
78605         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
78606         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
78607         gl_LOCK_EARLY_BODY.
78608         (gl_LOCK): Require gl_LOCK_BODY.
78609
78610 2006-10-04  Bruno Haible  <bruno@clisp.org>
78611
78612         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
78613         (gl_oset_search_atleast): New declaration.
78614         (struct gl_oset_implementation): Add field 'search_atleast'.
78615         (gl_oset_search_atleast): New inline function.
78616         * lib/gl_oset.c (gl_oset_search_atleast): New function.
78617         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
78618         (gl_array_oset_implementation): Update.
78619         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
78620         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
78621         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
78622
78623 2006-10-04  Bruno Haible  <bruno@clisp.org>
78624
78625         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
78626
78627 2006-10-03  Bruno Haible  <bruno@clisp.org>
78628
78629         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
78630         from gl_avltreehash_list_implementation.
78631
78632 2006-10-03  Bruno Haible  <bruno@clisp.org>
78633
78634         * lib/gl_oset.c (gl_oset_add): Fix return type.
78635
78636 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
78637
78638         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
78639
78640 2006-10-02  Eric Blake  <ebb9@byu.net>
78641
78642         * modules/strnlen (Depends-on): Add extensions.
78643
78644 2006-10-02  Eric Blake  <ebb9@byu.net>
78645
78646         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
78647         definition in 2.60+.
78648
78649 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
78650
78651         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
78652         checks.
78653
78654 2006-10-02  Bruno Haible  <bruno@clisp.org>
78655
78656         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
78657         to the AUTOMAKE_OPTIONS.
78658         Reported by Jim Meyering.
78659
78660 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78661
78662         Work around bug in Solaris 10 /proc file system:
78663         /proc/self/fd/NNN/.. isn't the parent directory of
78664         the directory whose file descriptor is NNN.  This needs to
78665         be worked around at run time, not compile time, since a
78666         program might be built on Solaris 8, where things work, and
78667         run on Solaris 10.
78668         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
78669         to use the following interface instead:
78670         (OPENAT_BUFFER_SIZE): New macro.
78671         (openat_proc_name): New function.
78672         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
78673         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
78674         Likewise.
78675         * lib/openat-proc.c: New file.
78676         * modules/openat (Files): Add lib/openat-proc.c.
78677         (Depends-on): Add same-inode, stdbool.
78678         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
78679
78680 2006-09-29  Bruno Haible  <bruno@clisp.org>
78681
78682         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
78683         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
78684         argument. Set stdout_closed before testing for ferror, not after.
78685         (fwriteerror, fwriteerror_no_ebadf): New functions.
78686
78687 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78688
78689         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
78690
78691 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
78692
78693         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
78694         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
78695
78696 2006-09-28  Jim Meyering  <jim@meyering.net>
78697
78698         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
78699         Include <unistd.h>.
78700
78701 2006-09-28  Bruno Haible  <bruno@clisp.org>
78702
78703         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
78704         * modules/linkedhash-list (Depends-on): Likewise.
78705         * modules/rbtreehash-list (Depends-on): Likewise.
78706
78707 2006-09-28  Bruno Haible  <bruno@clisp.org>
78708
78709         * lib/strndup.h: Simplify the redefinition of strndup.
78710         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
78711         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
78712
78713 2006-09-28  Bruno Haible  <bruno@clisp.org>
78714
78715         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
78716         * lib/gl_linkedhash_list.c: Likewise.
78717         * lib/gl_rbtreehash_list.c: Likewise.
78718
78719 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78720
78721         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
78722         getaddrinfo.
78723
78724         * lib/__fpending.h: Don't include <stdio_ext.h> unless
78725         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
78726         it causes <stdio_ext.h> to cause a compile-time error.
78727         Problem reported by Nelson H. F. Beebe.
78728         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
78729         of HAVE_DECL___PENDING.
78730
78731         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
78732         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
78733         declaration.
78734
78735 2006-09-27  Jim Meyering  <jim@meyering.net>
78736
78737         This file could end up with a definition for a function
78738         named __strndup, rather than rpl_strndup on a system with
78739         incomplete weak_alias support.
78740         * lib/strndup.c (strndup): Rename from __strndup.
78741         Remove #defines that used to map __strndup to strndup.
78742         Don't use K&R prototypes.
78743         Remove LIBC-related code, since this file is not sync'd with glibc.
78744         * lib/strndup.h: Revamp, accordingly.
78745         * m4/strndup.m4: Modernize.
78746
78747 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78748
78749         * modules/savewd (Depends-on): Add 'raise'.
78750         * lib/savewd.c: Include <signal.h>, for 'raise'.
78751
78752 2006-09-26  Jim Meyering  <jim@meyering.net>
78753
78754         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
78755         when we detect Darwin 8.7.0's acl_get_file bug.
78756         Rearrange to perform the new (below) run-test while $LIBS
78757         contains any acl-related library.  Set USE_ACL at the end.
78758         (gl_ACL_GET_FILE): New function.
78759
78760 2006-09-26  Eric Blake  <ebb9@byu.net>
78761
78762         * lib/verror.c: Include <config.h> unconditionally.
78763
78764 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
78765
78766         * modules/clock-time (Maintainer): Add self.
78767         * modules/getlogin_r (Depends-on): Add extensions.
78768
78769 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78770
78771         * modules/clock-time: New module.
78772         * modules/nanosleep (Depends-on): Add clock-time.
78773         * modules/gethrxtime (Depends-on): Likewise.
78774         * modules/gettime (Depends-on): Likewise.
78775         * modules/settime (Depends-on): Likewise.
78776
78777         * modules/fts-lgpl: Depend on openat.
78778         * modules/mkancesdirs: Depend on savewd.
78779         * modules/mkdir-p: Likewise.
78780
78781 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78782
78783         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
78784
78785         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
78786         `gl_have_arbitrary_file_name_length_limit' to
78787         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
78788         actually works between configure runs.
78789
78790 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78791             Bruno Haible  <bruno@clisp.org>
78792
78793         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
78794
78795 2006-09-25  Jim Meyering  <jim@meyering.net>
78796
78797         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
78798         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
78799
78800 2006-09-25  Eric Blake  <ebb9@byu.net>
78801
78802         * gnulib-tool (func_import, func_create_testdir): Fix typos in
78803         exec's in 2006-09-18 patch when shuffling fds.
78804
78805 2006-09-25  Bruno Haible  <bruno@clisp.org>
78806
78807         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
78808         Reported by Jim Meyering.
78809
78810 2006-09-24  Jim Meyering  <jim@meyering.net>
78811
78812         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
78813         compare a pointer against a literal "0".  That caused failures with
78814         at least HP-UX's hpcc.
78815
78816 2006-09-22  Simon Josefsson  <jas@extundo.com>
78817
78818         * modules/gc-sha1:
78819         * modules/gc-md4:
78820         * modules/gc-hmac-sha1:
78821         * modules/gc-hmac-md5:
78822         * modules/gc-des:
78823         * modules/gc-arcfour: Distribute more files.
78824
78825 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78826
78827         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
78828         (gl_linked_iterator_from_to): Initialize struct completely.
78829         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
78830         (gl_tree_iterator_from_to): Likewise
78831         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
78832         * lib/gl_array_list.c [lint] (gl_array_iterator)
78833         (gl_array_iterator_from_to): Likewise.
78834         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
78835         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
78836         (gl_carray_iterator_from_to): Likewise.
78837
78838         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
78839         * lib/md4.c (md4_process_block): Remove unused variable.
78840         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
78841         parentheses for clarity.
78842
78843 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78844
78845         * modules/bison-i18n (Depends-on): Add gettext.
78846
78847 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78848
78849         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
78850         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
78851         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
78852         also add missing comma that caused broken test.
78853         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
78854         stdlib.h, for `abort'.
78855         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
78856         variables.
78857         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
78858         include unistd.h if present, for `rmdir'.
78859         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
78860         variables.
78861         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
78862         in the process include standard headers for prototypes.
78863         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
78864         gets declared on GNU/Linux.
78865         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
78866         unistd.h, for `rmdir'.
78867         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
78868
78869         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
78870         always true.
78871         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
78872
78873         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
78874
78875 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78876
78877         * gnulib-tool (func_version): Create output all at once.  This
78878         may help avoid triggering unnecessary SIGPIPEs, and at any
78879         rate it doesn't hurt.
78880
78881 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78882             Bruno Haible  <bruno@clisp.org>
78883
78884         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
78885         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
78886         * m4/signed.m4 (bh_C_SIGNED): Likewise.
78887
78888         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
78889         (gl_FUNC_VASPRINTF): Invoke it.
78890
78891 2006-09-22  Bruno Haible  <bruno@clisp.org>
78892
78893         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
78894         getloadavg.c as first argument.
78895
78896 2006-09-22  Bruno Haible  <bruno@clisp.org>
78897
78898         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
78899         at the beginning of the gl_INIT macro.
78900         * modules/getloadavg (configure.ac): Pass $gl_source_base to
78901         gl_GETLOADAVG.
78902
78903 2006-09-22  Bruno Haible  <bruno@clisp.org>
78904
78905         * gnulib-tool (func_create_megatestdir): Don't include the config-h
78906         module.
78907         Suggested by Ralf Wildenhues.
78908
78909 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78910
78911         Import this patch from libc:
78912
78913         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
78914
78915         * lib/regex_internal.c (re_string_reconstruct): Handle
78916         offset < pstr->valid_raw_len && pstr->offsets_needed case.
78917         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
78918         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
78919         re_string_context_at.
78920
78921         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
78922         now requires it.
78923         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
78924         gl_REGEX now does it for us.
78925         (gl_REGEX): Add test taken from
78926         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
78927
78928         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
78929         Check that large offsets work.  Modernize Autoconf usages.
78930         Prefer "yes" to mean a good thing rather than a bad.
78931         Don't put "#define mkstemp" in config.h, as this might interfere
78932         with standard system headers that "#define mkstemp mkstemp64".
78933
78934         * modules/mkstemp (Depends-on): Add extensions, so that
78935         mkstemp is visible on some platforms.
78936         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
78937         (Include): Change to "mkstemp.h" from <stdlib.h>.
78938         (Files): Add mkstemp.h.
78939
78940         * lib/mkstemp.h: New file, since some standard headers
78941         #define mkstemp.
78942         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
78943         Include "mkstemp.h".
78944         Make the _LIBC code resemble glibc original more,
78945         e.g., use K&R style.
78946         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
78947         (mkstemp): Remove, since mkstemp.h does this for us.
78948         * lib/stdlib--.h: Include mkstemp.h.
78949
78950         Import this patch from libc:
78951
78952         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78953
78954         * lib/tempname.c (__gen_tempname): Change attempts_min
78955         into a macro.  Use preprocessor to decide how to initialize
78956         attempts [Coverity CID 67].
78957
78958 2006-09-20  Bruno Haible  <bruno@clisp.org>
78959
78960         * lib/mkdtemp.c: Import from libc.
78961         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78962                 * sysdeps/posix/tempname.c (__gen_tempname): Change
78963                 attempts_min into a macro.  Use preprocessor to decide how to
78964                 initialize attempts [Coverity CID 67].
78965         2001-11-27  Paul Eggert  <eggert@twinsun.com>
78966                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
78967                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
78968
78969 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78970
78971         * gnulib-tool (func_exit): New function, to allow to pass the
78972         exit status portably through the trap.  Use everywhere.
78973         (--help, --version): Signal a write error.
78974         (trap): catch SIGPIPE, for write errors.
78975         Exit at the end of the trap, with the correct exit status.
78976
78977 2006-09-19  Karl Berry  <karl@gnu.org>
78978
78979         * doc/gnulib.texi: note about the license texinfo files.
78980
78981 2006-09-19  Eric Blake  <ebb9@byu.net>
78982
78983         * gnulib-tool: Avoid space-tab.
78984
78985 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78986
78987         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
78988         that prevented coreutils 6.1 from building.  Problem reported
78989         by Petter Reinholdtsen.
78990
78991 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78992
78993         * gnulib-tool (avoidlist): Fix typo that broke options like
78994         --avoid=lock that are used by coreutils bootstrap.
78995
78996 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
78997
78998         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
78999         more systematically.
79000
79001 2006-09-18  Jim Meyering  <jim@meyering.net>
79002
79003         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
79004
79005 2006-09-18  Bruno Haible  <bruno@clisp.org>
79006
79007         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
79008
79009 2006-09-18  Bruno Haible  <bruno@clisp.org>
79010
79011         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
79012         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
79013         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
79014         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
79015         * m4/gettext.m4: Require autoconf >= 2.52.
79016         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
79017         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
79018         of gl_cv_header_inttypes_h.
79019
79020 2006-09-18  Bruno Haible  <bruno@clisp.org>
79021
79022         * lib/javaversion.c: Include configmake.h.
79023
79024 2006-09-18  Bruno Haible  <bruno@clisp.org>
79025
79026         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
79027         avoid that the while loops be executed in a subshell.
79028
79029 2006-09-18  Bruno Haible  <bruno@clisp.org>
79030
79031         * MODULES.html.sh (func_module): Break long lines.
79032         Suggested by Bruce Korb <bkorb@gnu.org>.
79033
79034 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79035
79036         Speed up by a factor of 1.12.
79037         * gnulib-tool (nl): New variable.
79038         (func_import): Rewrite include directive extraction to only read each
79039         directive once.
79040
79041 2006-09-17  Bruno Haible  <bruno@clisp.org>
79042
79043         * modules/javaversion (Makefile.am): Remove DEFS setting.
79044         (Depends-on): Add configmake, for PKGDATADIR definition.
79045
79046 2006-09-17  Bruno Haible  <bruno@clisp.org>
79047
79048         * gnulib-tool (func_create_testdir): Rewrite all files at once.
79049
79050 2006-09-17  Bruno Haible  <bruno@clisp.org>
79051
79052         * gnulib-tool (func_append): New function, stolen from libtool.m4.
79053         (func_modules_transitive_closure, func_modules_add_dummy,
79054         func_modules_to_filelist, func_import, func_create_testdir,
79055         func_create_megatestdir, ...): Use it wherever possible.
79056         Suggested by Ralf Wildenhues.
79057
79058 2006-09-16  Karl Berry  <karl@gnu.org>
79059
79060         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
79061         to avoid sectioning errors.
79062         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
79063         [ifinfo]: blank line after @center-ed titles.
79064         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
79065         Spell FSF address consistently with others.
79066         (These changes approved by rms.)
79067
79068 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79069
79070         Speed up by a factor of 1.61.
79071         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
79072         already checked module names again.
79073
79074 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79075
79076         Speed up by a factor of 1.13.
79077         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
79078         for new_files, and the input to func_add_or_update.
79079
79080 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79081
79082         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
79083         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
79084
79085 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79086
79087         * modules/mkancesdirs (Depends-on): Add fcntl.
79088         * modules/savewd: New file.
79089         * MODULES.html.sh (File system functions): Add savewd.
79090
79091         * modules/configmake (Makefile.am): Add support for the
79092         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
79093
79094 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79095
79096         * m4/savewd.m4: New file.
79097
79098 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79099
79100         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
79101         (dirchownmod): New arg FD.  All callers changed.
79102         Use FD rather than opening the directory ourself, as opening is
79103         now the caller's responsibility.
79104         * lib/dirchownmod.h: Likewise.
79105         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
79106         hosts that require <sys/types.h> before <sys/stat.h>.  Include
79107         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
79108         (test_dir): Remove.
79109         (mkancesdirs): Return length of prefix of FILE that has already
79110         been made, or -2 if there is a child doing the work.  Redo
79111         algorithm so that it is O(N) rather than O(N**2).  Optimize away
79112         ".", and treat ".." specially since it might stray back into
79113         already-created areas.  Use a subprocess if necessary.  New arg
79114         WD; all users changed.  MAKE_DIR function should now return 1
79115         if it creates a directory that is not readable.  Return -2 if
79116         a child process is spun off.
79117         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
79118         Adjust signature to match code.
79119         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
79120         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
79121         all users changed.
79122         * lib/savewd.c, lib/savewd.h: New files.
79123
79124 2006-09-15  Jim Meyering  <jim@meyering.net>
79125
79126         * modules/rename-dest-slash: New module.
79127         * MODULES.html.sh (posix_compat): Add it here.
79128
79129         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
79130
79131 2006-09-15  Jim Meyering  <jim@meyering.net>
79132
79133         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
79134         file.
79135
79136         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
79137
79138 2006-09-15  Jim Meyering  <jim@meyering.net>
79139
79140         * lib/rename-dest-slash.c (has_trailing_slash): Use
79141         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
79142         (rpl_rename_dest_slash): Perform the cheaper trailing slash
79143         test before testing whether SRC is a directory.
79144         Suggestions from Bruno Haible.
79145
79146         Avoid a warning about an unused variable.
79147         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
79148         into the #ifdef block where it's used.
79149
79150         * lib/rename-dest-slash.c: New file.
79151
79152 2006-09-14  Bruno Haible  <bruno@clisp.org>
79153
79154         * lib/allocsa.c: Include <config.h> unconditionally.
79155         * lib/asnprintf.c: Likewise.
79156         * lib/asprintf.c: Likewise.
79157         * lib/c-strcasecmp.c: Likewise.
79158         * lib/c-strcasestr.c: Likewise.
79159         * lib/c-strncasecmp.c: Likewise.
79160         * lib/c-strstr.c: Likewise.
79161         * lib/classpath.c: Likewise.
79162         * lib/clean-temp.c: Likewise.
79163         * lib/concatpath.c: Likewise.
79164         * lib/copy-file.c: Likewise.
79165         * lib/csharpcomp.c: Likewise.
79166         * lib/csharpexec.c: Likewise.
79167         * lib/execute.c: Likewise.
79168         * lib/fatal-signal.c: Likewise.
79169         * lib/findprog.c: Likewise.
79170         * lib/fwriteerror.c: Likewise.
79171         * lib/gl_array_list.c: Likewise.
79172         * lib/gl_array_oset.c: Likewise.
79173         * lib/gl_avltree_list.c: Likewise.
79174         * lib/gl_avltree_oset.c: Likewise.
79175         * lib/gl_avltreehash_list.c: Likewise.
79176         * lib/gl_carray_list.c: Likewise.
79177         * lib/gl_linked_list.c: Likewise.
79178         * lib/gl_linkedhash_list.c: Likewise.
79179         * lib/gl_list.c: Likewise.
79180         * lib/gl_oset.c: Likewise.
79181         * lib/gl_rbtree_list.c: Likewise.
79182         * lib/gl_rbtree_oset.c: Likewise.
79183         * lib/gl_rbtreehash_list.c: Likewise.
79184         * lib/imaxabs.c: Likewise.
79185         * lib/imaxdiv.c: Likewise.
79186         * lib/javacomp.c: Likewise.
79187         * lib/javaexec.c: Likewise.
79188         * lib/javaversion.c: Likewise.
79189         * lib/linebreak.c: Likewise.
79190         * lib/localcharset.c: Likewise.
79191         * lib/lock.c: Likewise.
79192         * lib/mbchar.c: Likewise.
79193         * lib/mbswidth.c: Likewise.
79194         * lib/mkdtemp.c: Likewise.
79195         * lib/pipe.c: Likewise.
79196         * lib/printf-args.c: Likewise.
79197         * lib/printf-parse.c: Likewise.
79198         * lib/progname.c: Likewise.
79199         * lib/progreloc.c: Likewise.
79200         * lib/readlink.c: Likewise.
79201         * lib/sh-quote.c: Likewise.
79202         * lib/stpcpy.c: Likewise.
79203         * lib/stpncpy.c: Likewise.
79204         * lib/strcasecmp.c: Likewise.
79205         * lib/strcasestr.c: Likewise.
79206         * lib/strcspn.c: Likewise.
79207         * lib/striconv.c: Likewise.
79208         * lib/strncasecmp.c: Likewise.
79209         * lib/strnlen1.c: Likewise.
79210         * lib/strstr.c: Likewise.
79211         * lib/strtok_r.c: Likewise.
79212         * lib/tls.c: Likewise.
79213         * lib/tmpdir.c: Likewise.
79214         * lib/unicodeio.c: Likewise.
79215         * lib/unsetenv.c: Likewise.
79216         * lib/vasnprintf.c: Likewise.
79217         * lib/vasprintf.c: Likewise.
79218         * lib/wait-process.c: Likewise.
79219         * lib/xallocsa.c: Likewise.
79220         * lib/xsetenv.c: Likewise.
79221         * lib/xstriconv.c: Likewise.
79222
79223 2006-09-13  Simon Josefsson  <jas@extundo.com>
79224
79225         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
79226         that internally, suggested by Ralf Wildenhues
79227         <Ralf.Wildenhues@gmx.de>.
79228
79229 2006-09-13  Simon Josefsson  <jas@extundo.com>
79230
79231         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
79232         @LIBOBJS@.
79233         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79234
79235 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79236
79237         * lib/_fpending.c: Include <config.h> unconditionally, since we no
79238         longer worry about uses that don't define HAVE_CONFIG_H.
79239         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
79240         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
79241         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
79242         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
79243         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
79244         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
79245         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
79246         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
79247         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
79248         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
79249         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
79250         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
79251         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
79252         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
79253         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
79254         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
79255         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
79256         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
79257         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
79258         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
79259         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
79260         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
79261         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
79262         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
79263         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
79264         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
79265         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
79266         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
79267         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
79268         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
79269         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
79270         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
79271         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
79272         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
79273         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
79274         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
79275         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
79276         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
79277         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
79278         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
79279         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
79280         Likewise.
79281
79282 2006-09-13  Eric Blake  <ebb9@byu.net>
79283
79284         * lib/getopt.c: Fix typo in last commit.
79285
79286 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
79287
79288         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
79289         dgettext.
79290
79291 2006-09-12  Jim Meyering  <jim@meyering.net>
79292
79293         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
79294         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
79295         Reported by Nelson H. F. Beebe.
79296
79297 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79298
79299         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
79300         program_invocation_name and program_invocation_short_name are
79301         initialized.
79302         * lib/argp-namefrob.h: Move declarations of program_invocation_name
79303         and program_invocation_short_name to argp.h, so they are visible
79304         to user programs.
79305         * lib/argp.h: Likewise
79306
79307 2006-09-10  Bruno Haible  <bruno@clisp.org>
79308
79309         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79310         m4/inttypes_h.m4, m4/uintmax_t.m4.
79311
79312 2006-09-10  Bruno Haible  <bruno@clisp.org>
79313
79314         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
79315         gl_AC_TYPE_UINTMAX_T.
79316
79317 2006-09-10  Bruno Haible  <bruno@clisp.org>
79318
79319         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
79320
79321 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79322
79323         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
79324         convention.  Text proposed by Bruno Haible.
79325         (struct argp_option): Document the use of N_() wrappers.
79326
79327         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
79328         '\v', and translate the two parts separately, instead of feeding
79329         the whole string to gettext.  This allows to exclude
79330         '\v' from the strings visible to the translator by writing doc
79331         strings as N_("..") "\v" N_("..").
79332
79333 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
79334
79335         * config/srclist.txt: Undo latest change; the bug was fixed.
79336
79337 2006-09-09  Bruno Haible  <bruno@clisp.org>
79338
79339         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
79340         assignments if building a library without libtool.
79341         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
79342         in func_emit_lib_Makefile_am.
79343         (func_import): When building a static library libfoo.a, arrange to
79344         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
79345         (func_create_testdir): Likewise.
79346         * modules/gc (configure.ac, Makefile.am): If building statically,
79347         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
79348         * modules/iconvme (configure.ac, Makefile.am): Likewise.
79349         * modules/striconv (configure.ac, Makefile.am): Likewise.
79350         Based on a suggestion by Ralf Wildenhues.
79351
79352 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79353
79354         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
79355         Check for unistd.h too, since Autoconf doesn't assume POSIX.
79356         Also:
79357
79358         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79359         Add year_2050_test to catch glibc bug 2821
79360         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79361
79362         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79363         Prefer #ifdef to #if.
79364
79365         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
79366         Return from 'main' instead of calling 'exit'.
79367
79368 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79369
79370         * lib/mktime.c (guess_time_tm): Fix bug where mktime
79371         returned the maximum time_t value rather than (time_t) -1.
79372         Problem originally reported by William Bardwell
79373         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79374
79375         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79376         Moved to here ...
79377         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79378         ... from here.
79379
79380 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79381
79382         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
79383         2821 is fixed.
79384
79385 2006-09-08  Jim Meyering  <jim@meyering.net>
79386
79387         Don't make generated files read-only.  That would bother too many
79388         people.  However, do retain the ability to work when targets are
79389         read-only: remove the destination and temporary files before writing
79390         them (when generated via sed or echo), or by using the -f option for
79391         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
79392         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79393         * modules/byteswap, modules/configmake, modules/fcntl:
79394         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79395         * modules/localcharset, modules/netinet_in, modules/poll:
79396         * modules/stdbool, modules/stdint, modules/sys_select:
79397         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79398
79399 2006-09-08  Jim Meyering  <jim@meyering.net>
79400
79401         Avoid new build failure on FreeBSD 6.0.
79402         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
79403         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
79404         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
79405
79406 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79407
79408         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
79409
79410 2006-09-07  Jim Meyering  <jim@meyering.net>
79411
79412         Fix global typo in last change: use chmod u-w, not chmod u-x.
79413         Spotted by Paul Eggert and Bruce Korb.
79414         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79415         * modules/byteswap, modules/configmake, modules/fcntl:
79416         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79417         * modules/localcharset, modules/netinet_in, modules/poll:
79418         * modules/stdbool, modules/stdint, modules/sys_select:
79419         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79420
79421 2006-09-06  Jim Meyering  <jim@meyering.net>
79422
79423         Make generated files be read-only.
79424         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
79425         Ensure that each generated file is now read-only.
79426         * modules/argz: Likewise.
79427         * modules/arpa_inet: Likewise.
79428         * modules/byteswap: Likewise.
79429         * modules/configmake: Likewise.
79430         * modules/fcntl: Likewise.
79431         * modules/fnmatch: Likewise.
79432         * modules/getopt: Likewise.
79433         * modules/glob: Likewise.
79434         * modules/inttypes: Likewise.
79435         * modules/netinet_in: Likewise.
79436         * modules/poll: Likewise.
79437         * modules/stdbool: Likewise.
79438         * modules/stdint: Likewise.
79439         * modules/sys_select: Likewise.
79440         * modules/sys_socket: Likewise.
79441         * modules/sys_stat: Likewise.
79442         * modules/sysexits: Likewise.
79443         * modules/localcharset: Same as above, but continue using temporary
79444         file named "t-$@" (why different?) rather than the "$@-t" used
79445         everywhere else.
79446
79447         * modules/sysexits (Makefile.am): Replace literal occurrences
79448         of "sysexit.h" more readable, and more consistent, "$@".
79449
79450 2006-09-06  Bruno Haible  <bruno@clisp.org>
79451
79452         * modules/striconv: New file.
79453         * modules/xstriconv: New file.
79454         * MODULES.html.sh (Internationalization functions): Add striconv,
79455         xstriconv.
79456
79457 2006-09-06  Bruno Haible  <bruno@clisp.org>
79458
79459         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
79460         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
79461         not using libtool correctly.
79462
79463 2006-09-06  Bruno Haible  <bruno@clisp.org>
79464
79465         * lib/striconv.h: New file.
79466         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
79467         iconvstring.c.
79468         * lib/xstriconv.h: New file.
79469         * lib/xstriconv.c: New file.
79470
79471 2006-09-06  Bruno Haible  <bruno@clisp.org>
79472
79473         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
79474         lib_..._LDFLAGS.
79475
79476 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79477
79478         * lib/argz_.h: Sync from Libtool.
79479
79480         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
79481                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79482
79483         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
79484
79485 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79486
79487         * modules/trim: New file.
79488
79489 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79490
79491         * lib/trim.h: New file.
79492         * lib/trim.c: New file.
79493
79494 2006-09-05  Bruno Haible  <bruno@clisp.org>
79495
79496         * MODULES.html.sh (String handling): Add trim.
79497
79498 2006-09-04  Karl Berry  <karl@gnu.org>
79499
79500         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
79501         until next release.
79502
79503 2006-09-03  Bruno Haible  <bruno@clisp.org>
79504
79505         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
79506         correctly.
79507
79508 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79509
79510         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
79511         not gl_GETLOADAVG.  Omit unneeded semicolons.
79512         Problems reported by Ralf Wildenhues in
79513         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79514         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
79515         at the end, which is the usual gnulib style.
79516
79517         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
79518         of doing all the work ourselves.
79519         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
79520         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
79521
79522 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79523
79524         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
79525         Problem reported by Ralf Wildenhues in
79526         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79527
79528         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
79529         HAVE_STRUCT_STATFS_F_FSTYPENAME.
79530
79531 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79532
79533         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
79534         yesterday's patch by changing test -n to test -z.
79535
79536 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79537
79538         * modules/getloadavg (Files): Add m4/getloadavg.m4.
79539         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
79540         the former is now obsolescent.
79541
79542         * modules/chdir-long (Depends-on): Add fcntl.
79543
79544 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79545
79546         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
79547         obsolescent, and programs should use gnulib instead.
79548         * m4/getloadavg.m4: New file, with contents taken from Autoconf
79549         but with prefixes changed.
79550
79551 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79552
79553         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
79554         or stdbool.h, because they might not exist while configuring.
79555
79556         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
79557         Don't include unistd.h or limits.h; not needed, since chdir-long.h
79558         does that for us.
79559         (O_DIRECTORY): Remove.
79560
79561 2006-08-31  Eric Blake  <ebb9@byu.net>
79562
79563         * gnulib-tool: Don't let emacs change spaces to TAB.
79564
79565 2006-08-31  Bruno Haible  <bruno@clisp.org>
79566
79567         * gnulib-tool: When calling func_import more than once, do it in a
79568         subshell.
79569         Reported by Eric Blake <ebb9@byu.net>.
79570
79571 2006-08-31  Bruno Haible  <bruno@clisp.org>
79572
79573         * gnulib-tool (nl): Remove variable.
79574         (sed_transform_lib_file): Use more robust test for config-h module.
79575         (func_import): Fix typo in 2006-08-25 patch.
79576
79577 2006-08-31  Bruno Haible  <bruno@clisp.org>
79578
79579         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
79580         specified, augment Makefile.am variables instead of assigning them.
79581
79582 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79583
79584         Work around a bug in both the Linux and SunOS 64-bit kernels:
79585         nanosleep mishandles sleeps for longer than 2**31 seconds.
79586         Problem reported by Frank v Waveren in
79587         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79588         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
79589         Check for nanosleep bug.
79590         (LIB_NANOSLEEP): Append clock_gettime library if needed.
79591
79592 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79593
79594         Work around a bug in both the Linux and SunOS 64-bit kernels:
79595         nanosleep mishandles sleeps for longer than 2**31 seconds.
79596         Problem reported by Frank v Waveren in
79597         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79598         * lib/nanosleep.c (BILLION): New constant.
79599         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
79600         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
79601         implementation.
79602
79603 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79604
79605         * modules/nanosleep (Depends-on): Add gettime.
79606
79607 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79608         and Simon Josefsson  <jas@extundo.com>
79609         and Oskar Liljeblad  <oskar@osk.mine.nu>
79610
79611         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
79612         * gnulib-tool (func_import): New license type 'unmodifiable license
79613         text'.
79614         * modules/fdl: Use it.  Longer description.
79615         * module/gpl, module/lgpl: New files.
79616
79617 2006-08-30  Jim Meyering  <jim@meyering.net>
79618
79619         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
79620         shadowing the parameter.
79621
79622 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79623
79624         Sync from Libtool:
79625
79626         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79627
79628         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
79629         sharing with gnulib.  Report by Eric Blake.
79630
79631 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79632
79633         * modules/isapipe: New file.
79634         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
79635
79636 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79637
79638         * modules/configmake (Makefile.am): Add a comment, and omit
79639         the CONFIGMAKE_ prefix from generated macro names.  Suggested
79640         by Bruno Haible.
79641
79642 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79643
79644         * m4/isapipe.m4: New file.
79645
79646 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79647
79648         * lib/isapipe.c, lib/isapipe.h: New files.
79649
79650 2006-08-29  Jim Meyering  <jim@meyering.net>
79651
79652         * modules/configmake (Makefile.am): Make configmake.h depend on
79653         Makefile.  Otherwise, a stale configmake.h could hang around.
79654
79655 2006-08-29  Eric Blake  <ebb9@byu.net>
79656
79657         * lib/error.c (error_at_line, print_errno_message): Match libc, after
79658         resolution of upstream bug 3044.
79659
79660 2006-08-29  Bruno Haible  <bruno@clisp.org>
79661
79662         * modules/localcharset (Depends-on): Add configmake.
79663         (Makefile.am): Remove setting of LIBDIR through DEFS.
79664
79665 2006-08-29  Bruno Haible  <bruno@clisp.org>
79666
79667         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
79668         defined.
79669
79670 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79671
79672         * modules/fcntl: New file.
79673         * modules/chdir-safer (Depends-on): Add fcntl.
79674         * modules/fts: Likewise.
79675         * modules/mkdir-p: Likewise.
79676
79677         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
79678         This undoes the most recent change, since we're now addressing the
79679         problem in a different way.
79680
79681         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
79682         into output, since the output might be called Makefile.am even
79683         if $makefile_name is something different.
79684         (func_import): Use $makefile_am rather than
79685         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
79686         empty.
79687
79688         * modules/inttypes (Files): Add m4/inttypes-h.m4.
79689
79690 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79691
79692         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
79693         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
79694         recent change to stdint.m4, since we're now addressing the problem in a
79695         different way.
79696
79697 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79698
79699         * m4/fcntl_h.m4: New file.
79700
79701 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79702
79703         * lib/fcntl_.h: New file.
79704         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
79705         the fcntl module.
79706         * lib/dirchownmod.c: Likewise.
79707         * lib/fts.c: Likewise.
79708
79709         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
79710         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
79711         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
79712         just before including <inttypes.h>, to avoid circular inclusion.
79713
79714 2006-08-28  Jim Meyering  <jim@meyering.net>
79715
79716         * doc/visibility.texi: Actually read and correct the grammar of the
79717         sentence affected by yesterday's change.
79718
79719 2006-08-28  Eric Blake  <ebb9@byu.net>
79720
79721         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
79722         needs wrapper.
79723
79724 2006-08-28  Eric Blake  <ebb9@byu.net>
79725
79726         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
79727
79728 2006-08-28  Eric Blake  <ebb9@byu.net>
79729
79730         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
79731
79732 2006-08-28  Bruno Haible  <bruno@clisp.org>
79733
79734         * modules/c-strstr: New file, from GNU gettext.
79735         * MODULES.html.sh (String handling): Add c-strstr.
79736
79737 2006-08-28  Bruno Haible  <bruno@clisp.org>
79738
79739         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
79740         macros.
79741         Reported by Eric Blake.
79742
79743 2006-08-28  Bruno Haible  <bruno@clisp.org>
79744
79745         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
79746         (VASNPRINTF): Return a string of length > INT_MAX without failing.
79747         * lib/vasprintf.c: Include errno.h, limits.h.
79748         (EOVERFLOW): New fallback definition.
79749         (vasprintf): Test here whether the string length is > INT_MAX.
79750         * lib/vsnprintf.c: Include errno.h, limits.h.
79751         (EOVERFLOW): New fallback definition.
79752         (vsnprintf): Fix bug when generated string was too long for the buffer.
79753         Test here whether the string length is > INT_MAX.
79754
79755 2006-08-28  Bruno Haible  <bruno@clisp.org>
79756
79757         * lib/inttypes_.h (SCNX*): Remove definitions.
79758         Reported by Eric Blake.
79759
79760 2006-08-28  Bruno Haible  <bruno@clisp.org>
79761
79762         * lib/c-strstr.h: New file, from GNU gettext.
79763         * lib/c-strstr.c: New file, from GNU gettext.
79764
79765 2006-08-28  Bruno Haible  <bruno@clisp.org>
79766
79767         * gnulib-tool: Reorder some statements.
79768
79769 2006-08-28  Bruno Haible  <bruno@clisp.org>
79770
79771         * gnulib-tool: New option --makefile-name.
79772         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
79773         $makefile_name.
79774         (func_import): Write $makefile_name to the cache file, and read it from
79775         there unless explicitly specified. Use $makefile_name as file name
79776         instead of Makefile.am. Adjust the recommendations accordingly.
79777
79778 2006-08-28  Bruno Haible  <bruno@clisp.org>
79779
79780         * gnulib-tool (func_verify_module): Check against misapplying patch.
79781
79782 2006-08-28  Bruno Haible  <bruno@clisp.org>
79783
79784         * gnulib-tool (func_relativize, func_relconcat): New functions.
79785         Give an error if --local-dir is given with --update.
79786         Remove trailing slashes from $local_gnulib_dir.
79787         (func_import): Store the relativized $local_gnulib_dir in
79788         gnulib-cache.m4, and read it from there if not specified explicitly.
79789
79790 2006-08-28  Bruno Haible  <bruno@clisp.org>
79791
79792         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
79793         is the current directory. Respect also $local_gnulib_dir.
79794
79795 2006-08-28  Bruno Haible  <bruno@clisp.org>
79796             Simon Josefsson  <jas@extundo.com>
79797
79798         BeOS portability.
79799         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
79800
79801 2006-08-27  Jim Meyering  <jim@meyering.net>
79802
79803         * doc/visibility.texi: Remove duplicate word: "pointer".
79804
79805 2006-08-26  Bruno Haible  <bruno@clisp.org>
79806
79807         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
79808         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
79809         (Makefile.am): Create inttypes.h from inttypes_.h.
79810         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
79811
79812         * modules/imaxabs: New file.
79813
79814         * modules/imaxdiv: New file.
79815
79816 2006-08-26  Bruno Haible  <bruno@clisp.org>
79817
79818         * m4/inttypes.m4: New file.
79819         * m4/_inttypes_h.m4: Remove file.
79820         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
79821         PRI_MACROS_BROKEN.
79822         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
79823
79824         * m4/imaxabs.m4: New file.
79825
79826         * m4/imaxdiv.m4: New file.
79827
79828 2006-08-26  Bruno Haible  <bruno@clisp.org>
79829
79830         * lib/inttypes_.h: New file.
79831         * lib/inttypes.h: Remove file.
79832         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
79833
79834         * lib/imaxabs.c: New file.
79835
79836         * lib/imaxdiv.c: New file.
79837
79838 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79839
79840         New config-h module, so that "make" output needn't be cluttered
79841         by -DHAVE_CONFIG_H.
79842         * MODULES.html.sh (Support for building libraries and executables):
79843         Add config-h.
79844         * modules/config-h: New file.
79845         * gnulib-tool (nl, sed_transform_lib_file): New vars.
79846         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
79847         the config-h module is used.
79848
79849         New configmake module, so that "make" output needn't be cluttered
79850         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
79851         * MODULES.html.sh (Support for building libraries and executables):
79852         Add configmake.
79853         * modules/configmake: New file.
79854
79855 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79856
79857         * m4/config-h.m4: New file.
79858
79859 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79860
79861         * config/srclist.txt: Add elisp-comp.
79862
79863 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79864
79865         * MODULES.html.sh (Support for building libraries and executables):
79866         Add elisp-comp.
79867         * build-aux/elisp-comp: New file.
79868         * modules/elisp-comp: New file.
79869
79870 2006-08-24  Bruno Haible  <bruno@clisp.org>
79871
79872         * gnulib-tool (func_create_testdir): Use non-default values of
79873         sourcebase and m4base.
79874
79875 2006-08-24  Bruno Haible  <bruno@clisp.org>
79876
79877         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
79878         HTML structure.
79879
79880 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79881
79882         * modules/openat (Depends-on): Add lchown.
79883
79884 2006-08-23  Bruno Haible  <bruno@clisp.org>
79885
79886         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
79887         of gl_LOCK_EARLY instead of gl_LOCK.
79888
79889 2006-08-23  Bruno Haible  <bruno@clisp.org>
79890
79891         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
79892         on OSF/1 to no.
79893         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
79894
79895 2006-08-23  Bruno Haible  <bruno@clisp.org>
79896
79897         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
79898         as unusable.
79899
79900         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
79901         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
79902         (gl_LOCK): New macro.
79903
79904 2006-08-22  Simon Josefsson  <jas@extundo.com>
79905
79906         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
79907         to md5 module.
79908
79909 2006-08-22  Simon Josefsson  <jas@extundo.com>
79910
79911         * MODULES.html.sh: Add "Support for maintaining and release
79912         projects".
79913
79914         * build-aux/gnupload: New file, from coreutils.
79915
79916 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79917
79918         Avoid the need for AC_LIBSOURCES in m4 macros.
79919         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
79920         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
79921         * modules/check-version (EXTRA_DIST): Add check-version.h.
79922         * modules/crc (EXTRA_DIST): Add crc.h.
79923         * modules/des (EXTRA_DIST): Add des.h.
79924         * modules/gc (EXTRA_DIST): Add gc.h.
79925         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
79926         * modules/getline (EXTRA_DIST): Add getline.h.
79927         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
79928         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
79929         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
79930         * modules/md2 (EXTRA_DIST): Add md2.h.
79931         * modules/md4 (EXTRA_DIST): Add md4.h.
79932         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
79933         * modules/read-file (EXTRA_DIST): Add read-file.h.
79934         * modules/readline (EXTRA_DIST): Add readline.h.
79935         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
79936         rijndael-api-fst.h.
79937
79938 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79939
79940         * m4/rijndael.m4 (gl_ARCFOUR):
79941         * m4/arctwo.m4 (gl_ARCTWO):
79942         * m4/check-version.m4 (gl_CHECK_VERSION):
79943         * m4/crc.m4 (gl_CRC):
79944         * m4/des.m4 (gl_DES):
79945         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
79946         * m4/gc.m4 (gl_GC):
79947         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
79948         * m4/getline.m4 (gl_FUNC_GETLINE):
79949         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
79950         * m4/hmac-md5.m4 (gl_HMAC_MD5):
79951         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
79952         * m4/md2.m4 (gl_MD2):
79953         * m4/md4.m4 (gl_MD4):
79954         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
79955         * m4/read-file.m4 (gl_FUNC_READ_FILE):
79956         * m4/readline.m4 (gl_FUNC_READLINE):
79957         * m4/rijndael.m4 (gl_RIJNDAEL):
79958         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79959         to get the necessary .h files and whatnot.
79960
79961 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79962
79963         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
79964         gnulib rather than the other way around.
79965         * config/srclistvars.sh (COREUTILS): Remove.
79966
79967 2006-08-22  Jim Meyering  <jim@meyering.net>
79968
79969         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
79970
79971         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
79972
79973 2006-08-22  Eric Blake  <ebb9@byu.net>
79974
79975         * modules/regexprops-generic: New file.
79976         * MODULES.html.sh (Support for building documentation): List it.
79977
79978 2006-08-22  Eric Blake  <ebb9@byu.net>
79979
79980         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
79981         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
79982         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
79983         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
79984
79985 2006-08-22  Bruno Haible  <bruno@clisp.org>
79986
79987         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
79988         and lib_LTLIBRARIES like the other lib_* variables.
79989
79990 2006-08-22  Bruno Haible  <bruno@clisp.org>
79991
79992         * build-aux/x-to-1.in: New file, from GNU gettext.
79993
79994 2006-08-22  Bruno Haible  <bruno@clisp.org>
79995
79996         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
79997         <utmpx.h> exists.
79998
79999 2006-08-22  Bruno Haible  <bruno@clisp.org>
80000
80001         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
80002         <utmpx.h> exists.
80003
80004 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80005
80006         BeOS portability.
80007         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
80008         exist.
80009         Problem reported by Bruno Haible.
80010
80011 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80012
80013         Avoid the need for AC_LIBSOURCES in m4 macros.
80014         * modules/acl (EXTRA_DIST): Add acl.h.
80015         * modules/argmatch (Files): Add m4/argmatch.m4.
80016         (configure.ac): Add gl_ARGMATCH.
80017         (EXTRA_DIST): Renamed from lib_SOURCES, for
80018         consistency with the other modules.  Remove argmatch.c.
80019         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
80020         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
80021         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
80022         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
80023         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
80024         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
80025         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
80026         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
80027         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
80028         * modules/closeout (EXTRA_DIST): Add closeout.h.
80029         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
80030         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
80031         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
80032         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
80033         dirname.h; remove basename.c and stripslash.c.
80034         * modules/exclude (EXTRA_DIST): Add exclude.h.
80035         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
80036         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
80037         * modules/file-type (EXTRA_DIST): Add file-type.h.
80038         * modules/filemode (EXTRA_DIST): Add filemode.h.
80039         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
80040         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80041         * modules/fpending (EXTRA_DIST): Add __fpending.h.
80042         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
80043         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
80044         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
80045         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
80046         * modules/getdate (EXTRA_DIST): Add getdate.c.
80047         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
80048         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
80049         * modules/getpass (EXTRA_DIST): Add getpass.h.
80050         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
80051         * modules/group-member (EXTRA_DIST): Add group-member.h.
80052         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
80053         * modules/hash (EXTRA_DIST): Add hash.h.
80054         * modules/human (EXTRA_DIST): Add human.h.
80055         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
80056         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
80057         * modules/lchown (EXTRA_DIST): Add lchown.h.
80058         * modules/long-options (EXTRA_DIST): Add long-options.h.
80059         * modules/lstat (EXTRA_DIST): Add lstat.h.
80060         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
80061         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
80062         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
80063         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
80064         * modules/memxor (EXTRA_DIST): Add memxor.h.
80065         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
80066         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
80067         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
80068         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
80069         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
80070         * modules/physmem (EXTRA_DIST): Add physmem.h.
80071         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
80072         * modules/posixver (EXTRA_DIST): Add posixver.h.
80073         * modules/quote (EXTRA_DIST): Add quote.h.
80074         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
80075         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
80076         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
80077         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
80078         regex_internal.h regexec.c.
80079         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
80080         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
80081         * modules/same (EXTRA_DIST): Add same.h.
80082         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
80083         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
80084         * modules/savedir (EXTRA_DIST): Add savedir.h.
80085         * modules/sha1 (EXTRA_DIST): Add sha1.h.
80086         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
80087         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
80088         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
80089         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
80090         * modules/strdup (EXTRA_DIST): Add strdup.h.
80091         * modules/strftime (EXTRA_DIST): Add strftime.h.
80092         * modules/strndup (EXTRA_DIST): Add strndup.h.
80093         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
80094         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
80095         * modules/time_r (EXTRA_DIST): Add time_r.h.
80096         * modules/timespec (EXTRA_DIST): Add timespec.h.
80097         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80098         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
80099         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
80100         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
80101         * modules/userspec (EXTRA_DIST): Add userspec.h.
80102         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
80103         * modules/utimens (EXTRA_DIST): Add utimens.h.
80104         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
80105         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
80106         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
80107         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
80108         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
80109         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
80110         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
80111         * modules/yesno (EXTRA_DIST): Add yesno.h.
80112
80113 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80114
80115         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
80116
80117         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
80118         * m4/dev-ino.m4, same-inode.m4: Remove.
80119
80120         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
80121         * m4/acl.m4 (AC_FUNC_ACL):
80122         * m4/backupfile.m4 (gl_BACKUPFILE):
80123         * m4/c-strtod.m4 (gl_C99_STRTOLD):
80124         * m4/canon-host.m4 (gl_CANON_HOST):
80125         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
80126         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
80127         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
80128         * m4/cloexec.m4 (gl_CLOEXEC):
80129         * m4/close-stream.m4 (gl_CLOSE_STREAM):
80130         * m4/closeout.m4 (gl_CLOSEOUT):
80131         * m4/dirfd.m4 (gl_FUNC_DIRFD):
80132         * m4/dirname.m4 (gl_DIRNAME):
80133         * m4/exclude.m4 (gl_EXCLUDE):
80134         * m4/exitfail.m4 (gl_EXITFAIL):
80135         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
80136         * m4/file-type.m4 (gl_FILE_TYPE):
80137         * m4/filemode.m4 (gl_FILEMODE):
80138         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
80139         * m4/fpending.m4 (gl_FUNC_FPENDING):
80140         * m4/fprintftime.m4 (gl_FPRINTFTIME):
80141         * m4/fts.m4 (gl_FUNC_FTS):
80142         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
80143         * m4/getdate.m4 (gl_GETDATE):
80144         * m4/gethrxtime.m4 (gl_GETHRXTIME):
80145         * m4/getpagesize.m4 (gl_GETPAGESIZE):
80146         * m4/getpass.m4 (gl_FUNC_GETPASS):
80147         * m4/gettime.m4 (gl_GETTIME):
80148         * m4/getugroups.m4 (gl_GETUGROUPS):
80149         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
80150         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
80151         * m4/hard-locale.m4 (gl_HARD_LOCALE):
80152         * m4/hash.m4 (gl_HASH):
80153         * m4/idcache.m4 (gl_IDCACHE):
80154         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
80155         * m4/lchown.m4 (gl_FUNC_LCHOWN):
80156         * m4/long-options.m4 (gl_LONG_OPTIONS):
80157         * m4/lstat.m4 (gl_FUNC_LSTAT):
80158         * m4/md5.m4 (gl_MD5):
80159         * m4/memcasecmp.m4 (gl_MEMCASECMP):
80160         * m4/memcoll.m4 (gl_MEMCOLL):
80161         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
80162         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
80163         * m4/memxor.m4 (gl_MEMXOR):
80164         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
80165         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
80166         * m4/modechange.m4 (gl_MODECHANGE):
80167         * m4/mountlist.m4 (gl_MOUNTLIST):
80168         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
80169         * m4/openat.m4 (gl_FUNC_OPENAT):
80170         * m4/pathmax.m4 (gl_PATHMAX):
80171         * m4/physmem.m4 (gl_PHYSMEM):
80172         * m4/posixtm.m4 (gl_POSIXTM):
80173         * m4/posixver.m4 (gl_POSIXVER):
80174         * m4/quote.m4 (gl_QUOTE):
80175         * m4/quotearg.m4 (gl_QUOTEARG):
80176         * m4/readtokens.m4 (gl_READTOKENS):
80177         * m4/readutmp.m4 (gl_READUTMP):
80178         * m4/regex.m4 (gl_REGEX):
80179         * m4/safe-read.m4 (gl_SAFE_READ):
80180         * m4/safe-write.m4 (gl_SAFE_WRITE):
80181         * m4/same.m4 (gl_SAME):
80182         * m4/save-cwd.m4 (gl_SAVE_CWD):
80183         * m4/savedir.m4 (gl_SAVEDIR):
80184         * m4/settime.m4 (gl_SETTIME):
80185         * m4/sha1.m4 (gl_SHA1):
80186         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
80187         * m4/stat-macros.m4 (gl_STAT_MACROS):
80188         * m4/stat-time.m4 (gl_STAT_TIME):
80189         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
80190         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
80191         * m4/strdup.m4 (gl_FUNC_STRDUP):
80192         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
80193         * m4/strndup.m4 (gl_FUNC_STRNDUP):
80194         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
80195         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
80196         * m4/time_r.m4 (gl_TIME_R):
80197         * m4/timespec.m4 (gl_TIMESPEC):
80198         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
80199         * m4/unlinkdir.m4 (gl_UNLINKDIR):
80200         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
80201         * m4/userspec.m4 (gl_USERSPEC):
80202         * m4/utimecmp.m4 (gl_UTIMECMP):
80203         * m4/utimens.m4 (gl_UTIMENS):
80204         * m4/xalloc.m4 (gl_XALLOC):
80205         * m4/xgetcwd.m4 (gl_XGETCWD):
80206         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
80207         * m4/xreadlink.m4 (gl_XREADLINK):
80208         * m4/xstrtod.m4 (gl_XSTRTOD):
80209         * m4/yesno.m4 (gl_YESNO):
80210         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
80211         to get the necessary .h files and whatnot.
80212
80213 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
80214             Bruno Haible  <bruno@clisp.org>
80215
80216         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
80217         /bin/sh understanding of '!' conditional negation.
80218
80219 2006-08-21  Jim Meyering  <jim@meyering.net>
80220
80221         * modules/openat (Depends-on): Really alphabetize.
80222
80223         * modules/acl (Depends-on): Add error and quote.
80224
80225         * check-module (find_included_lib_files): Add at-func.c to the
80226         ok-to-include-more-than-once white list.
80227
80228         * modules/openat (Depends-on): Add lstat.  Alphabetize.
80229
80230 2006-08-21  Bruno Haible  <bruno@clisp.org>
80231
80232         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80233         Emit a pkgdata_DATA variable only if some snippets add contents to it.
80234         Reported by Martin Lambers <marlam@marlam.de>.
80235
80236 2006-08-21  Bruno Haible  <bruno@clisp.org>
80237
80238         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
80239         specify an installation location, don't emit a noinst_LIBRARIES or
80240         noinst_LTLIBRARIES assignment.
80241
80242 2006-08-21  Bruno Haible  <bruno@clisp.org>
80243
80244         BeOS portability.
80245         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
80246         BeOS has mbrtowc() but no <wctype.h>.
80247
80248 2006-08-21  Bruno Haible  <bruno@clisp.org>
80249
80250         BeOS portability.
80251         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
80252         exist.
80253
80254 2006-08-21  Bruno Haible  <bruno@clisp.org>
80255
80256         BeOS portability.
80257         * lib/mbchar.h: Include <wctype.h> only if it exists.
80258
80259 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80260
80261         Remove files that are no longer needed by their respective modules.
80262         * m4/obstack.m4: Remove.
80263         * m4/strerror_r.m4: Remove.
80264         * m4/uint32_t.m4: Remove.
80265         * m4/uintptr_t.m4: Remove.
80266         * m4/ullong_max.m4: Remove.
80267         * m4/xstrtoimax.m4: Remove.
80268         * m4/xstrtoumax.m4: Remove.
80269
80270         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
80271         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
80272         dependencies now capture this.
80273
80274         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
80275         Do not use AC_LIBSOURCES, since gnulib modules now do this.
80276         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
80277         * m4/human.m4 (gl_HUMAN): Likewise.
80278         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
80279         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
80280
80281         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
80282
80283         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
80284         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
80285         stdint.
80286         * m4/human.m4 (gl_HUMAN): Likewise.
80287         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
80288         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
80289         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80290         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80291         * m4/xstrtol (gl_XSTRTOL): Likewise.
80292
80293         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
80294         AC_TYPE_LONG_LONG_INT.
80295         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80296         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
80297         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
80298         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80299
80300         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
80301         on stdbool.
80302
80303         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
80304         (gl_PREREQ_XSTRTOUL): Remove.
80305
80306         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
80307
80308         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
80309         mode.
80310
80311 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80312
80313         Add and change modules to make it easier for coreutils to use
80314         gnulib-tool.
80315         * modules/backupfile (Files): Remove m4/d-ino.m4.
80316         (Depends-on): Add d-ino.
80317         * modules/cycle-check (Depends-on): Add stdint.
80318         (lib_SOURCES): Add cycle-check.h.
80319         * modules/d-ino: New module.
80320         * modules/d-type: New module.
80321         * modules/error (Files): Remove m4/strerror_r.m4.
80322         * modules/filemode (Files): Add m4/st_dm_mode.m4.
80323         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
80324         m4/inttypes_h.m4, m4/uintmax_t.m4.
80325         (Depends-on): Add stdint.
80326         (lib_SOURCES): Add fsusage.h.
80327         * modules/getcwd (Files): Remove d-ino.m4.
80328         (Depends-on): Add d-ino.
80329         * modules/getndelim2 (Depends-on): Add stdint.
80330         * modules/glob (Files): Remove m4/d-type.m4.
80331         (Depends-on): Add d-type.
80332         * modules/host-os: New module.
80333         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
80334         m4/inttypes_h.m4, m4/uintmax_t.m4.
80335         * Depends-on: Add stdint.
80336         (lib_SOURCES): Add human.h.
80337         * modules/inttostr (Files): Remove m4/intmax_t.m4,
80338         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
80339         m4/uintmax_t.m4, m4/ulonglong.m4.
80340         (Depends-on): Add stdint.
80341         (EXTRA_DIST): Add inttostr.h.
80342         * modules/lchmod: New module.
80343         * modules/link-follow: New module.
80344         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
80345         (Depends-on): Add lchmod.
80346         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
80347         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
80348         (Depends-on): Add stdint.
80349         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
80350         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
80351         (Depends-on): Add stdint.
80352         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
80353         * modules/perl: New module.
80354         * modules/regex (Depends-on): Add stdint.
80355         * modules/rmdir-errno: New module.
80356         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80357         m4/intmax_t.m4.
80358         (Depends-on): Add stdint.
80359         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80360         m4/uintmax_t.m4.
80361         (Depends-on): Add stdint.
80362         * modules/unlink-busy: New module.
80363         * modules/utimecmp (Depends-on): Add stdint.
80364         * modules/uptime: New module.
80365         * modules/winsz-ioctl: New module.
80366         * modules/winsz-termios: New module.
80367         * modules/xnanosleep (Depends-on): Add nanosleep.
80368         * modules/ullong_max: Remove.
80369         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
80370         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
80371         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
80372         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
80373         (Depends-on): Add inttypes.
80374         (lib_SOURCES): Add xstrtol.h.
80375         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
80376         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
80377         * MODULES.html.sh: Move 'assert' into the assert section.
80378         Move 'dummy' into the linking section.
80379         Remove ullong_max.
80380         Add section for compatibility checks for POSIX:2001 functions,
80381         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
80382         winsz-ioctl, and winsz-termios into it.
80383         Add lchmod.
80384         Add top-level Misc section and put host-os, perl, and uptime
80385         into it.
80386
80387 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80388
80389         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
80390         now assume the stdint module.  Do not include inttypes.h.
80391         * lib/fsusage.h: Likewise.
80392         * lib/getndelim2.c: Likewise.
80393         * lib/human.h: Likewise.
80394         * lib/inttostr.h: Likewise.
80395         * lib/obstack.c: Likewise.
80396         * lib/regex_internal.h: Likewise.
80397         * lib/tempname.c: Likewise.
80398         * lib/utimecmp.c: Likewise.
80399         * lib/xstrtol.h: Likewise.
80400
80401         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
80402
80403         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
80404         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
80405         * lib/xtime.h: Likewise.
80406
80407 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80408
80409         * modules/openat (Files): Add lib/fchmodat.c.
80410         Fixes problem reported by Jay Youngman.
80411
80412 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80413
80414         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
80415         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
80416
80417 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
80418             Bruno Haible  <bruno@clisp.org>
80419
80420         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
80421         and is a script that invokes bison. Tighten the code. Add comments.
80422
80423 2006-08-18  Jim Meyering  <jim@meyering.net>
80424
80425         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
80426         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
80427         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
80428         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
80429
80430 2006-08-18  Bruno Haible  <bruno@clisp.org>
80431
80432         * modules/bison-i18n: New file.
80433         * MODULES.html.sh (Internationalization functions): Add it.
80434
80435 2006-08-18  Bruno Haible  <bruno@clisp.org>
80436
80437         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
80438         sys/statvfs.h. When getmntinfo was found, check its declaration and
80439         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
80440
80441 2006-08-18  Bruno Haible  <bruno@clisp.org>
80442
80443         * m4/bison-i18n.m4: New file, from bison.
80444
80445 2006-08-18  Bruno Haible  <bruno@clisp.org>
80446
80447         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
80448         (ME_DUMMY): Treat "kernfs" as a dummy.
80449         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
80450
80451 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80452
80453         Update from coreutils.
80454
80455         2006-08-15  Jim Meyering  <jim@meyering.net>
80456
80457         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
80458
80459         2006-01-17  Jim Meyering  <jim@meyering.net>
80460
80461         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
80462
80463         2006-01-11  Jim Meyering  <jim@meyering.net>
80464
80465         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
80466         Check for the lchmod function.
80467
80468 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80469
80470         Update from coreutils.
80471
80472         * lib/__fpending.h: Add copyright notice.
80473         * lib/fprintftime.h: Likewise.
80474         * lib/savedir.c: Use (C) in copyright notice.
80475         * lib/savedir.h: Likewise.
80476
80477         2006-08-15  Jim Meyering  <jim@meyering.net>
80478
80479         * lib/at-func.c: New file, with the logic of all emulated at-functions.
80480         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
80481         in support of the EXPECTED_ERRNO macro.
80482         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
80483         definitions.  Instead, define the appropriate symbols and include
80484         "at-func.c".
80485         * lib/mkdirat.c (mkdirat): Likewise.
80486         * lib/fchmodat.c (fchmodat): Likewise.
80487         (ENOSYS): Remove definition.
80488         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
80489         it.  Don't include "unistd--.h" -- it wasn't ever used.
80490
80491         2006-01-17  Jim Meyering  <jim@meyering.net>
80492
80493         Rewrite fts.c not to change the current working directory,
80494         by using openat, fstatat, fdopendir, etc..
80495
80496         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
80497         (HAVE_OPENAT_SUPPORT): Define.
80498         [_LIBC] (fchdir): Don't undef or define; no longer used.
80499         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
80500         Now, this `function' always succeeds, and consumes its file descriptor
80501         parameter -- so callers must not close such FDs.  Update callers.
80502         (diropen_fd, opendirat, cwd_advance_fd): New functions.
80503         (diropen): Add parameter, SP.  Adjust all callers.
80504         Implement using diropen_fd, rather than open.
80505         (fts_open): Initialize new member, fts_cwd_fd.
80506         Remove fts_rft-setting code.
80507         (fts_close): Close fts_cwd_fd, if necessary.
80508         (__opendir2): Define in terms of opendir or opendirat,
80509         depending on whether the FST_NOCHDIR flag is set.
80510         (fts_build): Since fts_safe_changedir consumes its FD, and since
80511         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
80512         and close the dup'd file descriptor upon failure.
80513         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
80514         (fts_safe_changedir): Tweak semantics to reflect that this function
80515         now calls cwd_advance_fd and hence consumes its FD argument.
80516         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
80517         [struct FTS] (fts_rft): Remove now-unused member.
80518         [struct FTS] (fts_cycle.state): Improve comment.
80519
80520         * lib/openat.c (openat_needs_fchdir): New function.
80521         * lib/openat.h (openat_needs_fchdir): Declare it.
80522
80523 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80524
80525         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
80526         Problem and fix reported by Pádraig Brady in
80527         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
80528
80529 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80530
80531         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
80532
80533 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80534
80535         * lib/memcoll.c (memcoll): Optimize for the common case where the
80536         arguments are bytewise equal.
80537
80538 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80539
80540         * doc/regexprops-generic.texi: Add a copyright notice.
80541
80542 2006-08-15  Bruno Haible  <bruno@clisp.org>
80543
80544         * modules/tmpdir (License): Change to LGPL.
80545
80546 2006-08-15  Bruno Haible  <bruno@clisp.org>
80547
80548         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
80549         module.
80550
80551 2006-08-14  Simon Josefsson  <jas@extundo.com>
80552
80553         * config/srclist.txt: Add gnupload.
80554
80555 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80556
80557         Change copyright notice from LGPL 2 to GPL 2, since that's the
80558         standard form used in the gnulib repository.
80559         * tests/test-lock.c: Likewise.
80560         * tests/test-stdint.c: Likewise.
80561         * tests/test-tls.c: Likewise.
80562
80563         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
80564         prelude-manager.  User shorter URLs for GNU projects, without '?'.
80565         Add copyright notice.
80566
80567         * check-module: Add copyright notice.  Output a copyright
80568         notice if "--version" is specified.
80569         * modules/COPYING: New file.
80570         * tests/test-getaddrinfo.c: Add copyright notice.
80571         * tests/test-verify.c: Likewise.
80572
80573 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80574
80575         Change copyright notice from LGPL 2 to GPL 2, since that's the
80576         standard form used in the gnulib repository.
80577         * lib/lock.c: LGPL -> GPL.
80578         * lib/lock.h: Likewise.
80579         * lib/strnlen1.c: Likewise.
80580         * lib/strnlen1.h: Likewise.
80581         * lib/tls.c: Likewise.
80582         * lib/tls.h: Likewise.
80583         * lib/tmpdir.c: Likewise.
80584
80585         * lib/TODO: Remove; this belongs only in coreutils.
80586
80587 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80588
80589         Add copyright notices to long-enough files that lack them, since
80590         otherwise the files aren't clearly free.  Use the same notice that
80591         getdate.texi already uses.
80592         * doc/alloca-opt.texi: Add copyright notice.
80593         * doc/alloca.texi: Likewise.
80594         * doc/ctime.texi: Likewise.
80595         * doc/functions.texi: Likewise.
80596         * doc/gcd.texi: Likewise.
80597         * doc/gnulib-tool.texi: Likewise.
80598         * doc/inet_ntoa.texi: Likewise.
80599         * doc/visibility.texi: Likewise.
80600
80601         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
80602         * doc/quote.texi: Add copyright notice.
80603
80604         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
80605         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
80606         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
80607         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
80608         is now obsolete, and give a pointer to the Sun list.
80609         Add copyright notice.
80610
80611 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80612
80613         * config/srclistvars.sh: Add copyright notice.
80614
80615 2006-08-14  Eric Blake  <ebb9@byu.net>
80616
80617         Import the following change from libc:
80618
80619         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
80620
80621         Upstream bug 2997.
80622         * lib/misc/error.c: Add space between program name and message if file
80623         name is missing.
80624
80625 2006-08-12  Karl Berry  <karl@gnu.org>
80626
80627         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
80628         remove, these originate in gnulib now.
80629
80630 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80631
80632         * doc/Makefile (standards.info standards.html standards.dvi):
80633         Also depend on make-stds.texi.
80634
80635 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80636
80637         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
80638         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
80639
80640         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
80641         in wchar_t.  Problem reported by Eric Blake.
80642
80643         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
80644         LEN is smaller than SIZE.  Suggested by Bruno Haible.
80645         Also, help the compiler to keep LEN in a register.
80646
80647 2006-08-11  Eric Blake  <ebb9@byu.net>
80648
80649         * users.txt: Sort.  Add tar.
80650
80651 2006-08-11  Bruno Haible  <bruno@clisp.org>
80652
80653         * users.txt: New file.
80654
80655 2006-08-11  Bruno Haible  <bruno@clisp.org>
80656
80657         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
80658         before <wchar.h>. Needed for OSF/1 and BSD/OS.
80659
80660 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80661
80662         * modules/snprintf (Depends-on): Remove minmax.
80663         (Maintainer): Add self and Bruno.
80664
80665 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80666
80667         * lib/.cppi-disable: Add snprintf.h, socket_.h.
80668         * lib/snprintf.c: Include <errno.h> and <limits.h>.
80669         (EOVERFLOW): Define if the system does not.
80670         Do not include "minmax.h"; it wasn't used.
80671         (snprintf): Don't assume size_t promotes to an unsigned type.
80672         Fix bug when generated string was too long for the buffer: the
80673         buffer's contents are supposed to be the initial prefix of the
80674         output.  Don't assume vasnprintf returns EOVERFLOW if the size
80675         exceeds INT_MAX; do the check ourselves.
80676
80677         Import the following changes from libc:
80678
80679         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
80680
80681         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
80682         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
80683         set wc to the byte which couldn't be converted.
80684         (re_string_reconstruct): Don't clear valid_raw_len before calling
80685         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
80686         tip_context using re_string_context_at.
80687
80688         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
80689
80690         * lib/posix/regex.h: g++ still cannot handled [restrict].
80691
80692         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
80693
80694         * lib/posix/regex.h: Remove special handling for VMS.
80695
80696 2006-08-10  Jim Meyering  <jim@meyering.net>
80697
80698         * modules/same-inode: New module.
80699         * modules/dev-ino: New module.
80700         * modules/cycle-check: Depend on these modules, rather than simply
80701         including their .h files.
80702         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
80703         required via m4/cycle-check.m4.
80704         * modules/same: Depend on new same-inode module, rather than
80705         including same-inode.h.
80706         * modules/chdir-safer: New file.
80707
80708         * modules/chown (Depends-on): Add stat-macros.
80709
80710 2006-08-10  Jim Meyering  <jim@meyering.net>
80711
80712         * m4/cycle-check.m4: New file.
80713         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
80714         * m4/dev-ino.m4, m4/same-inode.m4: New files.
80715
80716 2006-08-10  Eric Blake  <ebb9@byu.net>
80717
80718         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
80719         in from original proposal.
80720
80721 2006-08-10  Eric Blake  <ebb9@byu.net>
80722         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80723
80724         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
80725         namespace.
80726
80727 2006-08-10  Bruno Haible  <bruno@clisp.org>
80728
80729         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
80730         as well.
80731
80732 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80733
80734         Sync from coreutils.
80735
80736         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
80737
80738         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
80739         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
80740
80741 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80742
80743         * modules/restrict: Remove; no longer needed now that we assume
80744         Autoconf 2.59 or later.
80745         * MODULES.html.sh: Remove 'restrict'.
80746         * modules/argp (Depends-on): Remove 'restrict'.
80747         * modules/base64 (Depends-on): Likewise.
80748         * modules/gc (Depends-on): Likewise.
80749         * modules/getaddrinfo (Depends-on): Likewise.
80750         * modules/glob (Depends-on): Likewise.
80751         * modules/inet_ntop (Depends-on): Likewise.
80752         * modules/inet_pton (Depends-on): Likewise.
80753         * modules/memxor (Depends-on): Likewise.
80754         * modules/regex (Depends-on): Likewise.
80755         * modules/strtok_r (Depends-on): Likewise.
80756         * modules/time_r (Depends-on): Likewise.
80757
80758 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80759
80760         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
80761         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
80762         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80763         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
80764         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
80765         * m4/memxor.m4 (gl_MEMXOR): Likewise.
80766         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
80767         gl_C_RESTRICT replaced by AC_C_RESTRICT.
80768
80769         Merge from coreutils.
80770         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
80771         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
80772         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
80773         * m4/time_r.m4 (gl_TIME_R): Likewise.
80774
80775 2006-08-09  Karl Berry  <karl@gnu.org>
80776
80777         * config/srclist.txt: no more gettext-tools, per Bruno.
80778
80779 2006-08-08  Eric Blake  <ebb9@byu.net>
80780
80781         * modules/verror: New module.
80782         * MODULES.html.sh: Document it.
80783
80784 2006-08-08  Eric Blake  <ebb9@byu.net>
80785
80786         * lib/verror.h, lib/verror.c: New files.
80787
80788 2006-08-08  Eric Blake  <ebb9@byu.net>
80789
80790         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
80791         verror_at_line output complies with GNU Coding Standards even when
80792         file is NULL.
80793
80794 2006-08-07  Bruno Haible  <bruno@clisp.org>
80795
80796         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
80797         versions of AIX.
80798         Reported by Ralf Wildenhues.
80799
80800 2006-08-07  Bruno Haible  <bruno@clisp.org>
80801
80802         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
80803         in an AC_DEFUN. Needed so that the autoconf snippets can use
80804         AC_REQUIRE.
80805
80806 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80807
80808         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80809         Initialize pkgdata_DATA.
80810         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
80811         overriding it.
80812
80813 2006-08-06  Eric Blake  <ebb9@byu.net>
80814
80815         * lib/error.h: Fold in some upstream changes from glibc.
80816         * lib/error.c: Likewise.
80817
80818 2006-08-04  Bruno Haible  <bruno@clisp.org>
80819
80820         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80821         Make the mostlyclean-local rule depend on mostlyclean-generic.
80822         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
80823
80824 2006-07-31  Bruno Haible  <bruno@clisp.org>
80825
80826         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
80827         <stdlib.h>, <string.h>.
80828
80829 2006-07-30  Bruno Haible  <bruno@clisp.org>
80830
80831         * modules/readlink (License): Change to LGPL.
80832
80833 2006-07-30  Bruno Haible  <bruno@clisp.org>
80834
80835         * modules/javaversion (Makefile.am): Distribute javaversion.java and
80836         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
80837         set PKGDATADIR to point to it.
80838
80839 2006-07-30  Bruno Haible  <bruno@clisp.org>
80840
80841         * modules/csharpexec (configure.ac): Comment out macro invocation.
80842         * modules/javaexec (configure.ac): Likewise.
80843         * modules/javacomp-script (configure.ac): Likewise.
80844
80845         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
80846
80847 2006-07-30  Bruno Haible  <bruno@clisp.org>
80848
80849         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
80850         linked-list.
80851
80852 2006-07-30  Bruno Haible  <bruno@clisp.org>
80853
80854         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
80855
80856 2006-07-30  Bruno Haible  <bruno@clisp.org>
80857
80858         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80859         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
80860         get removed.
80861
80862 2006-07-29  Bruno Haible  <bruno@clisp.org>
80863
80864         Make it possible for gnulib-tool to work with locally modified or
80865         augmented gnulib repositories.
80866         * gnulib-tool (func_usage): Document --local-dir option.
80867         (local_gnulib_dir): New variable.
80868         Handle --local-dir option.
80869         (func_lookup_file): New function.
80870         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
80871         (func_get_description, func_get_filelist, func_get_description,
80872         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
80873         func_get_automake_snippet, func_get_include_directive,
80874         func_get_license, func_get_maintainer): Use func_lookup_file.
80875         (func_import, func_create_testdir): Use func_lookup_file.
80876
80877 2006-07-29  Bruno Haible  <bruno@clisp.org>
80878
80879         * modules/setenv (Depends-on): Add unistd.
80880
80881 2006-07-29  Bruno Haible  <bruno@clisp.org>
80882
80883         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
80884
80885 2006-07-29  Bruno Haible  <bruno@clisp.org>
80886
80887         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
80888
80889 2006-07-29  Bruno Haible  <bruno@clisp.org>
80890
80891         * gnulib-tool (import, update): If there is no Makefile.am, look at
80892         aclocal.m4, instead of bailing out.
80893
80894 2006-07-29  Bruno Haible  <bruno@clisp.org>
80895
80896         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
80897         Categorize the options by when they are useful.
80898
80899 2006-07-29  Bruno Haible  <bruno@clisp.org>
80900
80901         * gnulib-tool (func_usage): Document option --no-libtool.
80902         Handle option --no-libtool.
80903         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
80904         for changed semantics of $libtool variable.
80905         (func_import): Likewise. If libtool is not used, show this through
80906         an option --no-libtool.
80907         (func_create_testdir): Update.
80908
80909 2006-07-29  Bruno Haible  <bruno@clisp.org>
80910
80911         * gnulib-tool (func_import): Extend error message about missing
80912         --doc-base.
80913
80914 2006-07-29  Bruno Haible  <bruno@clisp.org>
80915
80916         * gnulib-tool (func_import): Don't create the $docbase directory if
80917         there is no file to store there.
80918
80919 2006-07-29  Bruno Haible  <bruno@clisp.org>
80920
80921         * gnulib-tool (autoconf_minversion): If a --dir option is given and
80922         relevant, look for configure.ac there, not in the current directory.
80923         Also use a simple search for AC_PREREQ, not "autoconf --trace".
80924
80925 2006-07-29  Bruno Haible  <bruno@clisp.org>
80926
80927         * gnulib-tool (SORT): New variable.
80928         (func_usage): Undocument --assume-autoconf option.
80929         Remove --assume-autoconf option handling.
80930         (autoconf_minversion): Determine from the contents of configure.ac.
80931         (func_import): Remove autoconf_minversion handling.
80932         Suggested by Eric Blake.
80933
80934 2006-07-29  Bruno Haible  <bruno@clisp.org>
80935
80936         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
80937
80938 2006-07-29  Bruno Haible  <bruno@clisp.org>
80939
80940         * config/srclist.txt (*setenv.[ch]): Remove rules.
80941
80942 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80943
80944         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
80945
80946 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80947
80948         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
80949         arpa/inet.h.
80950
80951 2006-07-28  Simon Josefsson  <jas@extundo.com>
80952
80953         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
80954         * modules/inet_pton (Depends-on): Likewise.
80955
80956 2006-07-28  Simon Josefsson  <jas@extundo.com>
80957
80958         * m4/netinet_in_h.m4: New file.
80959
80960 2006-07-28  Simon Josefsson  <jas@extundo.com>
80961
80962         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
80963         #include's.
80964
80965 2006-07-28  Simon Josefsson  <jas@extundo.com>
80966
80967         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
80968         #include's.
80969
80970 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
80971
80972         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
80973         setgid on directories only if they set these bits.
80974         * lib/modechange.h: Remove obsolete comment about masks.
80975
80976 2006-07-28  Eric Blake  <ebb9@byu.net>
80977
80978         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
80979         macro expansion.
80980
80981 2006-07-28  Bruno Haible  <bruno@clisp.org>
80982
80983         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
80984
80985 2006-07-28  Bruno Haible  <bruno@clisp.org>
80986
80987         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
80988
80989 2006-07-28  Bruno Haible  <bruno@clisp.org>
80990
80991         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
80992         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
80993         Define fallbacks.
80994         Avoids link error on FreeBSD 4.x.
80995         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80996
80997         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
80998         encoding.
80999         * lib/mbswidth.c (iswcntrl): Likewise.
81000
81001 2006-07-27  Bruno Haible  <bruno@clisp.org>
81002
81003         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
81004         test.
81005
81006 2006-07-27  Bruno Haible  <bruno@clisp.org>
81007
81008         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
81009         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
81010         defined.
81011
81012 2006-07-26  Eric Blake  <ebb9@byu.net>
81013
81014         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
81015
81016 2006-07-26  Eric Blake  <ebb9@byu.net>
81017
81018         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
81019         like mingw that lack mkstemp.
81020         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
81021         avoid compilation warning on mingw.
81022
81023 2006-07-26  Bruno Haible  <bruno@clisp.org>
81024
81025         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
81026         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
81027         INT_FAST*_MIN, INTPTR_MIN.
81028
81029 2006-07-25  Bruno Haible  <bruno@clisp.org>
81030
81031         * modules/version-etc (Depends-on): Add stdarg.
81032
81033 2006-07-25  Bruno Haible  <bruno@clisp.org>
81034
81035         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
81036         complex commands.
81037
81038 2006-07-25  Bruno Haible  <bruno@clisp.org>
81039
81040         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
81041         defined in <stdarg.h> or config.h.
81042
81043 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81044
81045         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
81046         (gl_STDIO_SAFER): Remove.
81047
81048 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81049
81050         * MODULES.html.sh (File stream based Input/Output):
81051         Add fopen-safer, tmpfile-safer; remove stdio-safer.
81052         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
81053         * modules/fopen-safer, modules/tmpfile-safer: New files.
81054         * modules/stdio-safer: Remove.
81055
81056 2006-07-24  Bruno Haible  <bruno@clisp.org>
81057
81058         * modules/tmpdir: New file.
81059         * MODULES.html.sh (File system functions): Add it.
81060
81061 2006-07-24  Bruno Haible  <bruno@clisp.org>
81062
81063         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
81064         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
81065
81066 2006-07-24  Bruno Haible  <bruno@clisp.org>
81067
81068         * modules/clean-temp: New file.
81069
81070 2006-07-24  Bruno Haible  <bruno@clisp.org>
81071
81072         * m4/tmpdir.m4: New file, from GNU gettext.
81073
81074 2006-07-24  Bruno Haible  <bruno@clisp.org>
81075
81076         * lib/tmpdir.h: New file, from GNU gettext.
81077         * lib/tmpdir.c: New file, from GNU gettext.
81078
81079 2006-07-24  Bruno Haible  <bruno@clisp.org>
81080
81081         * lib/clean-temp.h: New file, from GNU gettext.
81082         * lib/clean-temp.c: New file, from GNU gettext.
81083
81084 2006-07-23  Eric Blake  <ebb9@byu.net>
81085
81086         * modules/stdio-safer (Files): Add tmpfile-safer.c.
81087         (Depends-on): Add binary-io.
81088
81089 2006-07-23  Eric Blake  <ebb9@byu.net>
81090
81091         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
81092
81093 2006-07-23  Eric Blake  <ebb9@byu.net>
81094
81095         * lib/tmpfile-safer.c: New file.
81096         * lib/stdio-safer.h (fopen_safer): Add prototype.
81097         * lib/stdio--.h (tmpfile): Make safer.
81098
81099 2006-07-23  Bruno Haible  <bruno@clisp.org>
81100
81101         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
81102         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
81103         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
81104         gl_linked_remove_at): Use it.
81105
81106 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81107         and Simon Josefsson <jas@extundo.com>
81108
81109         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
81110
81111         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
81112
81113 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81114
81115         * modules/close-stream: New file.
81116         * modules/closeout (Description): Make it clear that it exits
81117         with a diagnostic on error.
81118         (Depends-on): Add close-stream.  Remove fpending, stdbool.
81119         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
81120
81121 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81122
81123         * m4/close-stream.m4: New file.
81124
81125 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81126
81127         * lib/close-stream.c, lib/close-stream.h: New files.
81128
81129 2006-07-22  Bruno Haible  <bruno@clisp.org>
81130
81131         Merge from GNU gettext 0.15.
81132
81133         2006-05-01  Bruno Haible  <bruno@clisp.org>
81134
81135                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
81136
81137         2006-07-22  Bruno Haible  <bruno@clisp.org>
81138
81139                 * modules/javaversion: New file.
81140                 * MODULES.html.sh (Java): Add javaversion.
81141
81142         2006-03-12  Bruno Haible  <bruno@clisp.org>
81143
81144                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
81145
81146         2005-12-04  Bruno Haible  <bruno@clisp.org>
81147
81148                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
81149                 (untested).
81150
81151         2006-06-21  Bruno Haible  <bruno@clisp.org>
81152
81153                 Avoid warnings from recent versions of mcs.
81154                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
81155                 -o, -L, -r any more. Use options documented since mcs-1.0
81156                 instead. Similarly for -g.
81157
81158         2005-12-04  Bruno Haible  <bruno@clisp.org>
81159
81160                 * build-aux/csharpcomp.sh.in: Suffix for resources is
81161                 .resources, not .resource.
81162
81163         2005-07-09  Bruno Haible  <bruno@clisp.org>
81164
81165                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
81166                 add a .dll suffix.
81167                 Reported by Mark Junker <mjscod@gmx.de>.
81168
81169         2006-07-22  Bruno Haible  <bruno@clisp.org>
81170
81171                 * modules/gettext: Upgrade to gettext-0.15.
81172                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
81173                 m4/visibility.m4.
81174                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
81175
81176 2006-07-22  Bruno Haible  <bruno@clisp.org>
81177
81178         Merge from GNU gettext 0.15.
81179
81180         2006-03-25  Bruno Haible  <bruno@clisp.org>
81181
81182                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
81183
81184         2006-07-21  Bruno Haible  <bruno@clisp.org>
81185
81186                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
81187                 "1.1".
81188
81189         2006-05-09  Bruno Haible  <bruno@clisp.org>
81190
81191                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
81192                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
81193                 for the conftestver execution.
81194
81195         2006-05-01  Bruno Haible  <bruno@clisp.org>
81196
81197                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
81198                 optional target-version argument. Verify that the compiler
81199                 groks source of the specified source-version, or add -source
81200                 option as necessary. Verify that the compiler produces
81201                 bytecode in the specified target-version, or add -target and
81202                 -source options as necessary. Make the result of the test
81203                 available as variable CONF_JAVAC. Also log error output in
81204                 config.log.
81205
81206         2006-03-11  Bruno Haible  <bruno@clisp.org>
81207
81208                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
81209
81210         2006-05-09  Bruno Haible  <bruno@clisp.org>
81211
81212                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
81213                 CLASSPATH_SEPARATOR to a semicolon.
81214
81215         2006-03-12  Bruno Haible  <bruno@clisp.org>
81216
81217                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
81218                 available as variable CONF_JAVA, for subsequent autoconf
81219                 tests. Also log error output in config.log.
81220
81221         2006-07-19  Bruno Haible  <bruno@clisp.org>
81222
81223                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
81224                 that getline works on glibc2 systems. Needed to avoid trouble
81225                 in relocatable.c.
81226                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
81227
81228         2005-12-04  Bruno Haible  <bruno@clisp.org>
81229
81230                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
81231                 launcher (untested).
81232
81233         2005-12-04  Bruno Haible  <bruno@clisp.org>
81234
81235                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
81236
81237         2006-07-22  Bruno Haible  <bruno@clisp.org>
81238
81239                 * gettext.m4: Update from GNU gettext-0.15.
81240                 * nls.m4: Likewise.
81241                 * po.m4: Likewise.
81242                 * inttypes-pri.m4: Likewise.
81243                 * inttypes-h.m4: Renamed from inttypes.m4.
81244                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
81245
81246 2006-07-22  Bruno Haible  <bruno@clisp.org>
81247
81248         Merge from GNU gettext 0.15.
81249
81250         2005-07-05  Bruno Haible  <bruno@clisp.org>
81251
81252                 * printf-args.c (printf_fetchargs): Work around broken
81253                 definition of wint_t on mingw.
81254
81255         2005-02-12  Bruno Haible  <bruno@clisp.org>
81256
81257                 * xallocsa.h: Add extern "C" for C++.
81258
81259         2006-05-17  Bruno Haible  <bruno@clisp.org>
81260
81261                 Cygwin portability.
81262                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
81263
81264         2006-04-30  Bruno Haible  <bruno@clisp.org>
81265
81266                 * progreloc.c: Include <mach-o/dyld.h> if available.
81267                 (find_executable): Use _NSGetExecutablePath when possible.
81268
81269         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
81270
81271                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
81272                 function.
81273
81274         2005-12-29  Bruno Haible  <bruno@clisp.org>
81275
81276                 * progreloc.c (set_program_name_and_installdir): Fix
81277                 compilation error.
81278
81279         2005-12-04  Bruno Haible  <bruno@clisp.org>
81280
81281                 Cygwin portability.
81282                 * progreloc.c: Include <windows.h> also on Cygwin.
81283                 (find_executable): Add support for Cygwin.
81284                 (set_program_name_and_installdir): Handle also platforms with
81285                 nonempty EXEEXT.
81286
81287         2006-07-11  Bruno Haible  <bruno@clisp.org>
81288
81289                 * javacomp.c: Fix a comment.
81290                 Reported by Jim Meyering.
81291
81292         2006-04-30  Bruno Haible  <bruno@clisp.org>
81293
81294                 * javacomp.h (compile_java_class): Add source_version,
81295                 target_version arguments.
81296                 * javacomp.c: Rewritten to choose only a compiler that
81297                 respects the specified source_version and target_version.
81298
81299         2006-06-27  Bruno Haible  <bruno@clisp.org>
81300
81301                 Assume correct S_ISDIR macro.
81302                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
81303
81304         2006-07-22  Bruno Haible  <bruno@clisp.org>
81305
81306                 * javaversion.h: New file, from GNU gettext.
81307                 * javaversion.c: New file, from GNU gettext.
81308                 * javaversion.java: New file, from GNU gettext.
81309                 * javaversion.class: New file, from GNU gettext.
81310
81311         2006-05-17  Bruno Haible  <bruno@clisp.org>
81312
81313                 Cygwin portability.
81314                 * javaexec.c (execute_java_class): Test for jview program
81315                 also on Cygwin.
81316
81317         2006-04-09  Bruno Haible  <bruno@clisp.org>
81318
81319                 * fatal-signal.c: Don't include string.h.
81320                 (at_fatal_signal): Use a copying loop instead of memcpy.
81321
81322         2005-12-04  Bruno Haible  <bruno@clisp.org>
81323
81324                 * csharpexec.c: Add support for 'clix' launcher (untested).
81325                 (execute_csharp_using_sscli): New function.
81326                 (execute_csharp_program): Call it.
81327
81328         2006-06-21  Bruno Haible  <bruno@clisp.org>
81329
81330                 Avoid warnings from recent versions of mcs.
81331                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
81332                 -o, -L, -r any more. Use options documented since mcs-1.0
81333                 instead. Similarly for -g.
81334
81335         2005-07-09  Bruno Haible  <bruno@clisp.org>
81336
81337                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
81338                 add a .dll suffix.
81339                 Reported by Mark Junker <mjscod@gmx.de>.
81340
81341         2006-06-17  Bruno Haible  <bruno@clisp.org>
81342
81343                 * config.charset: Update for NetBSD 3.0.
81344
81345         2006-05-17  Bruno Haible  <bruno@clisp.org>
81346
81347                 Cygwin portability.
81348                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
81349
81350         2006-05-16  Bruno Haible  <bruno@clisp.org>
81351
81352                 * localcharset.c [CYGWIN]: Include <windows.h>.
81353                 (get_charset_aliases): For Cygwin, return the same CPxxx
81354                 aliases list as under WIN32.
81355                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
81356                 the environment variables. Fall back to GetACP().
81357
81358         2006-04-05  Bruno Haible  <bruno@clisp.org>
81359
81360                 * config.charset: Update Juan Manuel Guerrero's address.
81361
81362         2005-02-12  Bruno Haible  <bruno@clisp.org>
81363
81364                 * allocsa.h: Add extern "C" for C++.
81365
81366         2005-02-10  Bruno Haible  <bruno@clisp.org>
81367
81368                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
81369                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
81370
81371         2006-07-22  Bruno Haible  <bruno@clisp.org>
81372
81373                 * gettext.h: Update to GNU gettext-0.15.
81374
81375 2006-07-22  Bruno Haible  <bruno@clisp.org>
81376
81377         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
81378         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
81379         lib-prefix.m4, longdouble.m4, ssize_t.m4.
81380
81381 2006-07-21  Eric Blake  <ebb9@byu.net>
81382
81383         * modules/stdlib-safer: New file.
81384         * MODULES.html.sh (File stream based Input/Output): Add
81385         stdlib-safer.
81386
81387 2006-07-21  Eric Blake  <ebb9@byu.net>
81388
81389         * lib/stdlib-safer.h: New file from coreutils, required by
81390         stdlib--.h.
81391
81392 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
81393
81394         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
81395
81396 2006-07-20  Bruno Haible  <bruno@clisp.org>
81397
81398         * gnulib-tool: Recognize new option --assume-autoconf.
81399         (autoconf_minversion): New variable.
81400         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
81401
81402 2006-07-20  Bruno Haible  <bruno@clisp.org>
81403
81404         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
81405
81406 2006-07-19  Derek R. Price  <derek@ximbiot.com>
81407
81408         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
81409         Reindent and repaginate.
81410
81411 2006-07-19  Derek Price  <derek@ximbiot.com>
81412
81413         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
81414         Correct grammar.
81415
81416 2006-07-17  Bruno Haible  <bruno@clisp.org>
81417
81418         * modules/list: New file.
81419         * modules/array-list: New file.
81420         * modules/carray-list, modules/carray-list-tests: New files.
81421         * modules/linked-list, modules/linked-list-tests: New files.
81422         * modules/avltree-list, modules/avltree-list-tests: New files.
81423         * modules/rbtree-list, modules/rbtree-list-tests: New files.
81424         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
81425         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
81426         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
81427         * modules/oset: New file.
81428         * modules/array-oset: New file.
81429         * modules/avltree-oset, modules/avltree-oset-tests: New files.
81430         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
81431         * tests/test-carray_list.c: New file.
81432         * tests/test-linked_list.c: New file.
81433         * tests/test-avltree_list.c: New file.
81434         * tests/test-rbtree_list.c: New file.
81435         * tests/test-linkedhash_list.c: New file.
81436         * tests/test-avltreehash_list.c: New file.
81437         * tests/test-rbtreehash_list.c: New file.
81438         * tests/test-avltree_oset.c: New file.
81439         * tests/test-rbtree_oset.c: New file.
81440         * MODULES.html.sh (Container data structures): New section.
81441
81442 2006-07-17  Bruno Haible  <bruno@clisp.org>
81443
81444         * m4/gl_list.m4: New file.
81445
81446 2006-07-17  Bruno Haible  <bruno@clisp.org>
81447
81448         * lib/gl_list.h: New file.
81449         * lib/gl_list.c: New file.
81450         * lib/gl_array_list.h: New file.
81451         * lib/gl_array_list.c: New file.
81452         * lib/gl_carray_list.h: New file.
81453         * lib/gl_carray_list.c: New file.
81454         * lib/gl_linked_list.h: New file.
81455         * lib/gl_linked_list.c: New file.
81456         * lib/gl_anylinked_list1.h: New file.
81457         * lib/gl_anylinked_list2.h: New file.
81458         * lib/gl_avltree_list.h: New file.
81459         * lib/gl_avltree_list.c: New file.
81460         * lib/gl_anyavltree_list1.h: New file.
81461         * lib/gl_anyavltree_list2.h: New file.
81462         * lib/gl_rbtree_list.h: New file.
81463         * lib/gl_rbtree_list.c: New file.
81464         * lib/gl_anyrbtree_list1.h: New file.
81465         * lib/gl_anyrbtree_list2.h: New file.
81466         * lib/gl_anytree_list1.h: New file.
81467         * lib/gl_anytree_list2.h: New file.
81468         * lib/gl_linkedhash_list.h: New file.
81469         * lib/gl_linkedhash_list.c: New file.
81470         * lib/gl_anyhash_list1.h: New file.
81471         * lib/gl_anyhash_list2.h: New file.
81472         * lib/gl_avltreehash_list.h: New file.
81473         * lib/gl_avltreehash_list.c: New file.
81474         * lib/gl_rbtreehash_list.h: New file.
81475         * lib/gl_rbtreehash_list.c: New file.
81476         * lib/gl_anytreehash_list1.h: New file.
81477         * lib/gl_anytreehash_list2.h: New file.
81478
81479         * lib/gl_oset.h: New file.
81480         * lib/gl_oset.c: New file.
81481         * lib/gl_array_oset.h: New file.
81482         * lib/gl_array_oset.c: New file.
81483         * lib/gl_avltree_oset.h: New file.
81484         * lib/gl_avltree_oset.c: New file.
81485         * lib/gl_rbtree_oset.h: New file.
81486         * lib/gl_rbtree_oset.c: New file.
81487         * lib/gl_anytree_oset.h: New file.
81488
81489 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81490
81491         * m4/mkancesdirs.m4: New file.
81492         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
81493         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
81494         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
81495         it.
81496
81497 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81498
81499         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
81500         * lib/mkancesdirs.h: New files.
81501         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
81502         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
81503         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
81504         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
81505         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
81506         callers changed.  Revamp internals significantly, by not
81507         attempting to create directories that are temporarily more
81508         permissive than the final results.  Do not attempt to use
81509         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
81510         This removes some race conditions, fixes some bugs, and simplifies
81511         things.  Use new dirchownmod function to do owner and mode changes.
81512         * lib/mkdir-p.h: Likewise.
81513         * lib/modechange.c (octal_to_mode): New function.
81514         (struct mode_change): New member mentioned.
81515         (make_node_op_equals): New arg mentioned.  All callers changed.
81516         (mode_compile): Keep track of which mode bits the user has explicitly
81517         mentioned.
81518         (mode_adjust): New arg DIR, so that we implement the X op correctly.
81519         New arg PMODE_BITS, to keep track of which mode bits the user
81520         mentioned; it treats S_ISUID and S_ISGID speciall.
81521         All callers changed.
81522         * lib/modechange.h: Likewise.
81523
81524 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81525
81526         * MODULES.html.sh: Add mkancestors.
81527         * modules/mkancesdirs: New module.
81528         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
81529         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
81530         The chdir-safer and afs files are now orphans; I'll remove them
81531         unless someone speaks up.
81532         Add lib/dirchownmod.c, lib/dirchownmod.h.
81533         (Depends-on): Remove alloca, chown, save-cwd, dirname.
81534         Add lchown, mkancesdirs.
81535         (Maintainer): Add self.
81536
81537 2006-07-15  Karl Berry  <karl@gnu.org>
81538
81539         * gnulib-tool: help message wording/arrangement.
81540
81541 2006-07-14  Simon Josefsson  <jas@extundo.com>
81542
81543         * doc/gnulib.texi (Libtool and Windows): New section.
81544
81545 2006-07-12  Simon Josefsson  <jas@extundo.com>
81546
81547         * modules/gendocs (License): Fix license, approved by Karl.
81548
81549 2006-07-12  Eric Blake  <ebb9@byu.net>
81550
81551         * MODULES.html.sh: Add gendocs.
81552
81553 2006-07-11  Eric Blake  <ebb9@byu.net>
81554
81555         * modules/fdl: New module, to install doc/fdl.texi.
81556         * MODULES.html.sh: Add new section for documentation modules.
81557         * gnulib-tool: Avoid space-tab.
81558         (--doc-base): New option, to manage files from doc.
81559
81560 2006-07-11  Eric Blake  <ebb9@byu.net>
81561
81562         * m4/absolute-header.m4: Fix comments to match recent change.
81563
81564 2006-07-11  Eric Blake  <ebb9@byu.net>
81565
81566         * gnulib-tool: List --doc-base before --tests-base.
81567
81568 2006-07-11  Derek R. Price  <derek@ximbiot.com>
81569
81570         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
81571
81572 2006-07-11  Bruno Haible  <bruno@clisp.org>
81573
81574         * README: Mention where to put documentation.
81575
81576 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81577
81578         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
81579
81580 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81581
81582         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
81583         to stdint.m4.
81584
81585 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81586
81587         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
81588         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
81589         "no/such/file/stdint.h" when there is no such file, so that
81590         the resulting C code can be parsed by dodgy compilers.
81591         Problems reported by Bob Proulx.
81592
81593 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81594
81595         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
81596         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81597         macros into the GNU _D_EXACT_NAMLEN.
81598         * lib/savedir.c:  Likewise.
81599         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
81600
81601 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81602         and Paul Eggert  <eggert@cs.ucla.edu>
81603
81604         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
81605         * m4/savedir.m4:
81606         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81607         macros into the GNU _D_EXACT_NAMLEN.
81608
81609 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81610
81611         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
81612         around the absolute name, to work around a problem with the HP-UX
81613         11.23 native C compiler, reported by Bob Proulx.
81614
81615 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81616
81617         * doc/maintain.texi, make-stds.texi: Sync from
81618         <http://savannah.gnu.org/projects/gnustandards>.
81619
81620 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81621
81622         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
81623
81624 2006-07-09  Jim Meyering  <jim@meyering.net>
81625
81626         * m4/glob.m4: Remove a doubled word in a comment.
81627
81628 2006-07-09  Jim Meyering  <jim@meyering.net>
81629
81630         * lib/argp-pv.c: Remove a doubled word in a comment.
81631         * lib/check-version.c (check_version): Likewise.
81632         * lib/javacomp.c (compile_java_class): Likewise.
81633
81634 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81635
81636         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
81637         for the benefit of people using Autoconf 2.60.  If you want to
81638         support older Autoconf versions you can copy m4/onceonly_2_57.m4
81639         (or m4/onceonly.m4, if pre-2.57) manually.
81640
81641 2006-07-08  Jim Meyering  <jim@meyering.net>
81642
81643         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
81644         comment.
81645         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
81646         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
81647         comment.
81648
81649 2006-07-08  Jim Meyering  <jim@meyering.net>
81650
81651         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
81652
81653 2006-07-07  Simon Josefsson  <jas@extundo.com>
81654
81655         * tests/test-crc.c: Change expected crc value, the test vector
81656         were probably computed using the old broken crc.c?
81657
81658 2006-07-06  Simon Josefsson  <jas@extundo.com>
81659
81660         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
81661         now the canonical place for the M4 file).
81662
81663         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
81664         from the sys_socket dependency now.
81665
81666         * modules/inet_pton (Files): Ditto.
81667
81668         * modules/inet_ntop (Files): Ditto.
81669
81670 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81671
81672         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
81673         not gl_PREREQ_GETUSERSHELL.
81674
81675 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81676
81677         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
81678         with only one argument, for Autoconf 2.60.
81679         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
81680         expand to nothing, so add a shell command to avoid syntax error.
81681         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81682
81683 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81684
81685         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
81686
81687 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81688
81689         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
81690         no longer needed.  Check for isblank decl.
81691         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
81692         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
81693         of existence.
81694
81695 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81696
81697         * lib/getloadavg.c: Use __VMS, not VMS.
81698         * lib/getopt.c: Likewise.
81699         * lib/getpagesize.h: Likewise.
81700         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
81701         and probably does not work.
81702
81703 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81704
81705         * lib/.cppi-disable: Add wcwidth.
81706         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
81707         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
81708         (ISGRAPH): Remove.  All uses changed to isgraph.
81709         (FOLD) [!defined _LIBC]: Remove special case.
81710         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
81711         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
81712         HAVE_ISBLANK.
81713         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
81714         case.
81715
81716 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81717
81718         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
81719         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
81720         brackets.  Other minor changes to suppress some compiler
81721         warnings.
81722
81723 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81724         and Paul Eggert  <eggert@cs.ucla.edu>
81725
81726         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
81727         of invoking obsolescent AC_HEADER_DIRENT macro.
81728         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
81729         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
81730         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81731         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
81732         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
81733         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81734         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
81735         * m4/readdir.m4: Remove; no longer needed.
81736
81737 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81738         and Paul Eggert  <eggert@cs.ucla.edu>
81739
81740         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
81741         Don't worry about this obsolete case any more.
81742         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
81743         directories.
81744         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
81745         worry about this obsolete case any more.
81746         * lib/fts.c: Likewise.
81747         * lib/getcwd.c: Likewise.
81748         * lib/glob.h: Likewise.
81749         * lib/savedir.c: Likewise.
81750
81751 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81752
81753         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
81754         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
81755         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
81756         needed.
81757         All uses removed.
81758         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81759         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81760         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
81761         needed.
81762         * m4/getdate.m4 (gl_GETDATE): Likewise.
81763         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81764         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81765         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81766         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81767         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81768         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81769         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
81770         needed.
81771
81772 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81773
81774         * lib/memcasecmp.c: Include <limits.h>.
81775         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
81776         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
81777         Don't assume isdigit succeeds only on '0' through '9'.
81778
81779 2006-07-05  Eric Blake  <ebb9@byu.net>
81780
81781         * modules/getaddrinfo (Depends-on): Add snprintf.
81782
81783 2006-07-05  Eric Blake  <ebb9@byu.net>
81784
81785         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
81786         to avoid 'header present but could not be compiled' on cygwin.
81787
81788 2006-07-05  Eric Blake  <ebb9@byu.net>
81789
81790         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
81791         missing from netdb.h.
81792         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
81793
81794 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81795
81796         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
81797         no longer needed.
81798         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
81799         * m4/getdate.m4 (gl_GETDATE): Likewise.
81800         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81801         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81802         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81803         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81804         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81805
81806 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81807
81808         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
81809         All uses of is_space replaced by isspace.
81810         * lib/exit.h: Don't talk about STDC_HEADERS.
81811         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
81812         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
81813         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
81814         replaced by isprint etc.
81815         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
81816         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81817         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
81818         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
81819         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
81820         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81821
81822 2006-07-05  Bruno Haible  <bruno@clisp.org>
81823
81824         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
81825         the function exists, before testing against AIX.
81826         Reported by Martin Lambers <marlam@marlam.de>.
81827
81828 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81829
81830         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
81831         From Mark D. Baushke.
81832
81833 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81834
81835         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
81836         to the absolute name, not just one, to bypass Sun C 5.8's
81837         "warning: #include of /usr/include/... may be non-portable".
81838
81839 2006-07-04  Eric Blake  <ebb9@byu.net>
81840
81841         * modules/dirname-tests: New test module.
81842         * tests/test-dirname.c: New file, replacing dirname.c
81843         TEST_DIRNAME section that was recently deleted.
81844
81845 2006-07-04  Bruno Haible  <bruno@clisp.org>
81846
81847         Assume ANSI C header files and <ctype.h> functions.
81848         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
81849         (mbsnwidth): Use isprint, iscntrl instead.
81850
81851 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81852
81853         Merge from coreutils.
81854         * MODULES.html.sh: Add xstrtold.
81855         * modules/xstrtold: New file.
81856         * modules/cycle-check (Files): Add lib/same-inode.h.
81857         * modules/dirname (Files): Add m4/double-slash-root.m4.
81858         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
81859         * modules/mkdir-p (Files): Add lib/same-inode.h.
81860         * modules/same (Files): Add lib/same-inode.h.
81861
81862 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81863
81864         * m4/absolute-header.m4: Renamed from full-header-path.m4.
81865         This is to keep the terminology clean; POSIX talks about
81866         "absolute pathnames", not "full pathnames", but the GNU
81867         Coding Standards say to use "path" for something else;
81868         so use "absolute" to keep both sides happy.
81869         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
81870         Set gl_absolute_header, not gl_full_header_path.
81871         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
81872         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
81873         All uses changed.
81874
81875         Merge from coreutils.
81876
81877         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81878
81879         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
81880         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
81881         want to require the building of c-strtod.o.
81882         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
81883         needs -lm directly.
81884         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
81885
81886         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81887
81888         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
81889         --as-needed option if available.  Problem reported by Albert Chin in
81890         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
81891         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
81892         cc merely issues a bunch of annoying warnings for --as-needed
81893         (this problem was reported by Bob Proulx).  Also, try linking with
81894         -lm to detect a bug in binutils 2.16 (this problem was reported
81895         by Ralf Wildenhues).
81896
81897         2006-06-18  Jim Meyering  <jim@meyering.net>
81898
81899         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
81900         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
81901         macro.
81902         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
81903         also check for glibc-2.4's abort-inducing bug.
81904
81905         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
81906         Low-probability clean-up should be to use rmdir to get rid of
81907         the just-created directory, not unlink.
81908
81909         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
81910         configure fail, and request a bug report to inform us about it.
81911         Add a comment that, barring reports to the contrary, in 2007 we'll
81912         assume ftruncate is universally available.
81913
81914         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81915
81916         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
81917
81918         2006-03-12  Jim Meyering  <jim@meyering.net>
81919
81920         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
81921         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
81922         * m4/same.m4 (gl_SAME): Likewise.
81923         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
81924
81925         2006-03-11  Eric Blake  <ebb9@byu.net>
81926
81927         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
81928         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
81929         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
81930         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
81931
81932 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81933
81934         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
81935         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
81936         reported by Mark D. Baushke, one in
81937         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
81938
81939         Merge from coreutils.
81940
81941         * lib/.cppi-disable: Add stdint_.h.
81942         * lib/.cvsignore: Add stdint.h.
81943
81944         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81945
81946         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
81947         both double and long double versions.
81948         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
81949         * lib/xstrtold.c: New file.
81950         * lib/xstrtod.h (xstrtold): New decl.
81951
81952         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81953
81954         * lib/filemode.c (setst): Remove.
81955         (strmode): Rewrite to avoid setst.  This makes the code shorter,
81956         (arguably) clearer, and the generated code is a bit smaller on my
81957         Debian GNU/Linux stable x86 host.
81958
81959         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81960
81961         * lib/filemode.c: Include "filemode.h" first, to test the interface.
81962         Assume that filemode.h includes sys/types.h and sys/stat.h.
81963         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
81964         (ftypelet): Reorder to put common cases first, for efficiency.
81965         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
81966         to do 'M'.
81967         (strmode): Renamed from mode_string, and now stores 12 bytes instead
81968         of 10, for compatibility with FreeBSD.  All callers changed.
81969         (filemodestring): Now stores 12 bytes instead of 10, and sets file
81970         types that can't be deduced solely from st_mode.  First arg is now a
81971         const pointer.
81972         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
81973         (strmode): Renamed from mode_string.
81974         (filemodestring): New decl.
81975         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
81976         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
81977         needed.
81978         (S_ISPORT, S_ISWHT): New macros, if not already defined.
81979
81980         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
81981
81982         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
81983         fsusage.h now does that.  Include fsusage.h first, to test interface.
81984         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
81985         at most one method (the old code could have generated decls that
81986         didn't conform to C89, not that this was ever exercised).
81987         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
81988
81989         2006-03-19  Jim Meyering  <jim@meyering.net>
81990
81991         Work even in a chroot where d_ino values for entries in "/"
81992         don't match the stat.st_ino values for the same names.
81993         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
81994         number, iterate through all entries again, using lstat instead.
81995         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
81996         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
81997
81998         * lib/getcwd.c (__getcwd): Clarify a comment.
81999         Use memcpy in place of a call to strcpy.
82000
82001         2006-03-12  Jim Meyering  <jim@meyering.net>
82002
82003         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
82004         matches that of the current directory (which we're about to chdir ".."
82005         out of), then save the dev-ino of the parent, instead.
82006
82007         * lib/same-inode.h (SAME_INODE): New file/macro.
82008         * lib/chdir-safer.c (SAME_INODE): Remove definition.
82009         Include "same-inode.h", instead.
82010         * lib/same.c: Likewise.
82011         * lib/cycle-check.h: Include "same-inode.h".
82012         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
82013         * lib/cycle-check.c (SAME_INODE): Remove definition.
82014         * lib/root-dev-ino.h: Include "same-inode.h".
82015
82016         2006-03-11  Eric Blake  <ebb9@byu.net>
82017
82018         * lib/same.c (same_name): s/base_name/last_component/
82019         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
82020         * lib/filenamecat.c (file_name_concat): Likewise.
82021
82022         2006-03-11  Eric Blake  <ebb9@byu.net>,
82023                     Paul Eggert  <eggert@cs.ucla.edu>
82024
82025         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
82026         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
82027         drive prefix.
82028         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
82029         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
82030         (last_component): New method.
82031         * lib/dirname.c (dir_len): Determine when drive letters need a
82032         subsequent slash.  Preserve // when it is special.
82033         (dir_name): Don't append dot when drive letter is absolute.
82034         [TEST_DIRNAME]: Move into a full-blown gnulib test.
82035         * lib/basename.c (base_name): New semantics - malloc the result.
82036         Preserve // when it is special.  Preserve relative files that look
82037         like drive letters.
82038         (base_len): Preserve // when it is special.
82039         (last_component): New method, similar to old base_name semantics.
82040         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
82041         base_name.  Strip redundant slashes from ///.
82042
82043 2006-07-03  Jim Meyering  <jim@meyering.net>
82044
82045         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
82046         macro is used before the first cycle_check call.
82047
82048 2006-07-03  Eric Blake  <ebb9@byu.net>
82049
82050         * modules/dirname (Depends-on): Add xstrndup.
82051
82052 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82053
82054         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
82055         test cases, so that config.log is a bit easier to follow.
82056
82057 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82058
82059         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
82060         both are 64 bits, since this seems to be the tradition, and this
82061         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
82062         we ever run into a host that prefers long long to long in this
82063         case, we'll need another configure-time test.  Problem reported by
82064         Jim Meyering.
82065
82066 2006-07-02  Eric Blake  <ebb9@byu.net>
82067
82068         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
82069
82070 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82071
82072         * modules/inttypes (Depends-on): No longer depends on stdint.
82073         * modules/stdint (Description): Say more about assumptions.
82074         Say that the fast types might differ.  Say macros are used.
82075         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
82076         (Makefile.am): Revise list of substituted symbols to match
82077         new stdint.m4.
82078         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
82079         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
82080         * tests/test-stdint.c (verify_same_types)
82081         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
82082         the code conforms to C99/C89.
82083         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
82084         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
82085
82086 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82087
82088         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
82089         but fix a bug, by requiring at least 64 bits.
82090         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
82091         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
82092         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
82093         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
82094
82095         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
82096         changes.  Make 2.59 a prerequisite.  Check and substitute for
82097         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
82098         inttypes.h.  Do not use special include files; just use the
82099         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
82100         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
82101         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
82102         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
82103         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
82104         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
82105         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
82106         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
82107         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
82108         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
82109         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
82110         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
82111         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
82112         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
82113         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
82114         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
82115         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
82116         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
82117         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
82118         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
82119         WINT_MAX.  Check for C99 conformance more strictly, by detecting
82120         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
82121         not check for things that C99 does not require, e.g., int8_t.  If
82122         a test isn't needed unless <stdint.h> isn't working, and is
82123         unlikely to be needed for any other reason, then don't do it
82124         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
82125         size_t, since we assume C89 freestanding at least.  Do not check
82126         for sig_atomic_t, wchar_t, or wint_t, since the code now does
82127         the right thing even if the types are not defined.  Instead use:
82128         (gl_STDINT_TYPE_PROPERTIES): New macro.
82129         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
82130         testing whether <sys/types.h> clashes, as Autoconf does this for
82131         us now.  All uses removed.
82132         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
82133         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
82134         (gl_CHECK_TYPE_SAME):
82135         Remove; no longer needed.
82136         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
82137         exists, since we'll return 0 anyway in that case.
82138         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
82139
82140 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82141
82142         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
82143         possible collision with system files.
82144         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
82145         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
82146         WCHAR_MIN and WCHAR_MAX in this case.
82147         (<stddef.h>): Do not include; no longer needed.
82148         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
82149         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
82150         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
82151         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
82152         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
82153         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
82154         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
82155         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
82156         !defined(__c99))]: Include in this case too, since it's harmless
82157         now.
82158         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
82159         dangerous to do so.
82160         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
82161         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
82162         (_STDINT_MIN, _STDINT_MAX): New macros.
82163         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
82164         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
82165         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
82166         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
82167         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
82168         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
82169         macros, not typedefs; this simplifies things quite a bit.
82170         Use long int for all types narrower than int64_t.
82171         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
82172         Define in terms of long long int or int64_t or long int,
82173         not int64_t or int32_t.  This saves some compile-time testing.
82174         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
82175         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
82176         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
82177         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
82178         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
82179         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
82180         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
82181         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
82182         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
82183         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
82184         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82185         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82186         undef any previous version and define our own version, for
82187         simplicity and consistency with the new macros for types.
82188         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82189         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82190         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
82191         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
82192         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
82193         @WINT_T_SUFFIX@ to keep things simple here.
82194         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
82195         Simplify by assuming typical 8/16/32/64 host, since we're
82196         already doing that elsewhere anyway.
82197         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
82198         and assume long long int is 64 bits if available.  This
82199         speeds up 'configure'.
82200
82201 2006-07-01  Eric Blake  <ebb9@byu.net>
82202
82203         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
82204         Reported by Andreas Buening.
82205
82206 2006-07-01  Eric Blake  <ebb9@byu.net>
82207
82208         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
82209
82210 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
82211
82212         * lib/getaddrinfo.c: fixed typo
82213
82214 2006-06-29  Jim Meyering  <jim@meyering.net>
82215
82216         * modules/strftime (Maintainer): Add my name, since with the
82217         FPRINTFTIME changes strftime.c has forked from glibc.
82218
82219 2006-06-29  Eric Blake  <ebb9@byu.net>
82220
82221         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
82222
82223 2006-06-29  Eric Blake  <ebb9@byu.net>
82224
82225         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
82226
82227 2006-06-29  Eric Blake  <ebb9@byu.net>
82228
82229         * lib/stat_.h: New file.
82230
82231 2006-06-29  Eric Blake  <ebb9@byu.net>
82232
82233         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
82234         unused static function.
82235
82236 2006-06-29  Eric Blake  <ebb9@byu.net>
82237
82238         * doc/functions.texi (Function Portability): Document missing lstat
82239         on mingw.
82240
82241 2006-06-29  Eric Blake  <ebb9@byu.net>
82242
82243         * MODULES.html.sh: Add sys_stat.
82244         * modules/sys_stat: New module.
82245         * modules/mkstemp (Depends-on): Add sys_stat.
82246
82247 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82248
82249         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
82250
82251 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82252
82253         * m4/c-bs-a.m4: Removed.
82254
82255 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82256
82257         * lib/strftime.c: Assume strftime() exists.
82258
82259 2006-06-29  Derek Price  <derek@ximbiot.com>
82260
82261         * modules/c-bs-a: Removed - \a is C89.
82262         * MODULES.html.sh: Remove c-bs-a.
82263
82264 2006-06-29  Bruno Haible  <bruno@clisp.org>
82265
82266         * modules/wcwidth (License): Change to LGPL.
82267
82268 2006-06-28  Simon Josefsson  <jas@extundo.com>
82269
82270         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
82271         on _WIN32.
82272
82273         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
82274         getnameinfo.
82275
82276 2006-06-28  Simon Josefsson  <jas@extundo.com>
82277
82278         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
82279
82280 2006-06-28  Simon Josefsson  <jas@extundo.com>
82281
82282         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
82283         functions there.  It will succeed on Windows XP, but on Windows
82284         2000 and (presumably) earlier, it will fail, and use the internal
82285         re-implementation.
82286         (use_win32_p): New function.
82287         (getaddrinfo): Use strtoul on servname, to support numeric ports.
82288         Support AI_NUMERICSERV to disable getservbyname.
82289         (getnameinfo): New function, only supports
82290         NI_NUMERICHOST|NI_NUMERICSERV for now.
82291
82292         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
82293         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
82294         getnameinfo.
82295
82296 2006-06-28  Eric Blake  <ebb9@byu.net>
82297
82298         * modules/wcwidth: New file.
82299         * modules/mbchar (Depends-on): Add wcwidth.
82300         * modules/mbswidth (Depends-on): Add wcwidth.
82301         * MODULES.html.sh: Add wcwidth.
82302
82303 2006-06-28  Eric Blake  <ebb9@byu.net>
82304
82305         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
82306         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
82307
82308 2006-06-28  Eric Blake  <ebb9@byu.net>
82309
82310         * lib/xvasprintf.h: Fix comments.
82311
82312 2006-06-28  Eric Blake  <ebb9@byu.net>
82313
82314         * lib/mbchar.h (wcwidth): Include wcwidth.h.
82315         * lib/mbswidth.c (wcwidth): Move from here...
82316         * lib/wcwidth.h: ...to this new file.
82317
82318 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82319
82320         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
82321
82322         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
82323         it's obsolete.
82324         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
82325
82326 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82327
82328         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
82329         Autoconf 2.60 says this stuff was obsolete.
82330
82331 2006-06-28  Bruno Haible  <bruno@clisp.org>
82332
82333         * modules/wcwidth (Files): Add m4/wchar_t.m4.
82334
82335 2006-06-28  Bruno Haible  <bruno@clisp.org>
82336
82337         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
82338         gt_TYPE_WCHAR_T.
82339
82340 2006-06-28  Bruno Haible  <bruno@clisp.org>
82341
82342         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
82343         declaration for wcwidth.
82344         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
82345
82346 2006-06-28  Bruno Haible  <bruno@clisp.org>
82347
82348         * lib/mkdtemp.c [MINGW]: Include <io.h>.
82349         (mkdir): Define using _mkdir.
82350
82351 2006-06-28  Bruno Haible  <bruno@clisp.org>
82352
82353         * lib/getaddrinfo.h: Fix POSIX URL.
82354         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
82355         _WIN32.
82356         (use_win32_p): Make static.
82357         (getaddrinfo): Reject service name if it is empty or does not consist
82358         solely of decimal digits, or if its value is > 65535.
82359         (getnameinfo): Remove useless casts.
82360
82361 2006-06-27  Simon Josefsson  <jas@extundo.com>
82362
82363         * modules/sys_select: New file, suggested by Bruno Haible, Paul
82364         Eggert and Martin Lambers.
82365
82366 2006-06-27  Simon Josefsson  <jas@extundo.com>
82367
82368         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
82369         Eggert and Martin Lambers.
82370
82371 2006-06-27  Bruno Haible  <bruno@clisp.org>
82372
82373         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
82374         result to 0, not to empty.
82375         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
82376
82377 2006-06-27  Bruno Haible  <bruno@clisp.org>
82378
82379         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
82380
82381 2006-06-26  Simon Josefsson  <jas@extundo.com>
82382
82383         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
82384         present.
82385
82386 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
82387
82388         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
82389         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
82390         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
82391
82392 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
82393
82394         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
82395
82396 2006-06-26  Bruno Haible  <bruno@clisp.org>
82397
82398         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
82399
82400 2006-06-26  Bruno Haible  <bruno@clisp.org>
82401
82402         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
82403
82404 2006-06-26  Bruno Haible  <bruno@clisp.org>
82405
82406         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
82407         SGI C compiler in pre-C99 mode.
82408         Suggested by Mark D. Baushke and Larry Jones.
82409
82410 2006-06-26  Bruno Haible  <bruno@clisp.org>
82411
82412         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
82413         WCHAR_MAX.
82414         Reported by Mark D. Baushke and Larry Jones.
82415
82416 2006-06-26  Bruno Haible  <bruno@clisp.org>
82417
82418         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
82419         in pre-C99 mode.
82420         Suggested by Mark D. Baushke and Larry Jones.
82421
82422 2006-06-23  Simon Josefsson  <jas@extundo.com>
82423             Bruno Haible  <bruno@clisp.org>
82424
82425         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
82426         Emit mostlyclean-local rule.
82427         (func_emit_tests_Makefile_am): Likewise.
82428         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
82429
82430 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
82431
82432         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
82433
82434 2006-06-23  Bruno Haible  <bruno@clisp.org>
82435
82436         * tests/test-stdint.c: Update to match ISO C 99 Technical
82437         Corrigendum 1.
82438
82439 2006-06-23  Bruno Haible  <bruno@clisp.org>
82440
82441         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
82442
82443 2006-06-23  Bruno Haible  <bruno@clisp.org>
82444
82445         * lib/stdint_.h: Treat IRIX like OpenBSD.
82446
82447 2006-06-23  Bruno Haible  <bruno@clisp.org>
82448
82449         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
82450         ISO C 99 Technical Corrigendum 1.
82451
82452 2006-06-22  Simon Josefsson  <jas@extundo.com>
82453
82454         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
82455         MinGW.
82456
82457 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82458
82459         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
82460         needed.  Some compiler complained about some of them.  Problem reported
82461         by Larry Jones in
82462         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
82463
82464 2006-06-21  Simon Josefsson  <jas@extundo.com>
82465
82466         * tests/test-getaddrinfo.c: New file.
82467
82468         * modules/getaddrinfo-tests: New file.
82469
82470         * MODULES.html.sh: Add inet_pton.
82471
82472         * modules/inet_pton: New file.
82473
82474 2006-06-21  Simon Josefsson  <jas@extundo.com>
82475
82476         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
82477         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
82478         of using the (limited) gnulib implementation on Windows XP.
82479
82480         * m4/inet_pton.m4: New file.
82481
82482 2006-06-21  Simon Josefsson  <jas@extundo.com>
82483
82484         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
82485         variable.
82486
82487         * lib/socket_.h: Don't define WINVER.
82488
82489         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
82490         slightly modified to work in gnulib.
82491
82492 2006-06-21  Simon Josefsson  <jas@extundo.com>
82493
82494         * doc/gnulib.texi (Windows sockets): Add.
82495
82496 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
82497
82498         * lib/read-file.c (fread_file): Start with buffer allocation of
82499         0 bytes rather than 1 byte; this simplifies the code.
82500         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
82501         code to free buffer and save/restore errno.
82502         (internal_read_file): Remove unused local.
82503
82504 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
82505
82506         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
82507         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
82508         Problem reported by Denis Excoffier in
82509         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
82510
82511 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82512
82513         * modules/sys_socket, modules/socklen: Include sys/types since
82514         FreeBSD 4.x's sys/socket.h needs it.
82515
82516 2006-06-19  Simon Josefsson  <jas@extundo.com>
82517
82518         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
82519
82520 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82521
82522         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
82523
82524 2006-06-19  Bruno Haible  <bruno@clisp.org>
82525
82526         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
82527         and FULL_PATH_INTTYPES_H in angle brackets.
82528         Reported by Mark D. Baushke <mdb@gnu.org>.
82529
82530 2006-06-17  Eric Blake  <ebb9@byu.net>
82531
82532         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
82533         errno.
82534
82535 2006-06-17  Bruno Haible  <bruno@clisp.org>
82536
82537         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
82538         <sys/inttypes.h>.
82539
82540 2006-06-17  Bruno Haible  <bruno@clisp.org>
82541
82542         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
82543         whether errno is declared. Assume <errno.h> declares errno.
82544
82545 2006-06-17  Bruno Haible  <bruno@clisp.org>
82546
82547         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
82548
82549 2006-06-17  Bruno Haible  <bruno@clisp.org>
82550
82551         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
82552         problem on Solaris 2.5.1.
82553
82554 2006-06-16  Eric Blake  <ebb9@byu.net>
82555
82556         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
82557         * lib/unicodeio.c [!defined errno]: Likewise.
82558         * lib/strtol.c [!defined errno]: Likewise.
82559         * lib/strtod.c [!defined errno]: Likewise.
82560
82561 2006-06-15  Eric Blake  <ebb9@byu.net>
82562
82563         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
82564
82565 2006-06-15  Eric Blake  <ebb9@byu.net>
82566
82567         * config/srclist.txt (ssize_t.m4): Lose sync.
82568
82569 2006-06-15  Bruno Haible  <bruno@clisp.org>
82570
82571         * modules/stdint (Files): Include m4/full-header-path.m4,
82572         m4/size_max.m4, m4/wchar_t.m4.
82573         (Makefile.am): Many more substitutions.
82574         * modules/stdint-tests: New file.
82575         * tests/test-stdint.c: New file.
82576
82577 2006-06-15  Bruno Haible  <bruno@clisp.org>
82578
82579         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
82580         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
82581         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
82582         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
82583         gl_CHECK_TYPE_SAME): New macros.
82584
82585 2006-06-15  Bruno Haible  <bruno@clisp.org>
82586
82587         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
82588
82589 2006-06-15  Bruno Haible  <bruno@clisp.org>
82590
82591         * lib/stdint_.h: Rewritten to be fully auto-configured.
82592         Fixes bug on HP-UX/IA64.
82593
82594 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
82595
82596         * lib/getdate.y (__attribute__): Don't define if already defined.
82597         Problem reported by Larry Jones.
82598         * lib/utimens.c (__attribute__): Likewise.
82599
82600 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
82601
82602         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
82603         reported by Andreas Schwab.
82604
82605 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82606             Bruno Haible  <bruno@clisp.org>
82607
82608         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
82609         check for the declaration of strnlen and a run test that exposes the
82610         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
82611         rpl_strndup.
82612
82613 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82614             Bruno Haible  <bruno@clisp.org>
82615
82616         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
82617
82618 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82619
82620         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
82621         compile test, for Tru64 4.0D.
82622
82623 2006-05-28  Karl Berry  <karl@gnu.org>
82624
82625         * config/srclist.txt (printf-args.c): lose sync.
82626
82627 2006-05-26  Martin Lambers  <marlam@marlam.de>
82628
82629         * lib/getpass.c: Updates the test for the native W32 API, and adds
82630         missing includes, thus fixing compilation warnings.
82631
82632 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82633
82634         * lib/exclude.c (exclude_fnmatch): New function.
82635         (excluded_file_name): Call exclude_fnmatch.
82636         * lib/exclude.h (excluded_file_name): New prototype
82637
82638 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
82639
82640         * lib/tempname.c (small_open, large_open): New macros.
82641         (__open, __open64) [!_LIBC]: Remove.
82642         (__gen_tempname): Use small_open and large_open instead of __open
82643         and __open64.  This fixes a portability bug on HP-UX 11.11i
82644         reported by Simon Wing-Tang in
82645         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
82646
82647 2006-05-24  Bruno Haible  <bruno@clisp.org>
82648
82649         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
82650         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
82651         Reported by Thorsten Maerz <torte@netztorte.de> via
82652         Aaron Stone <aaron@serendipity.cx>.
82653
82654 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82655
82656         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
82657         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
82658         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
82659         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
82660         not really conditional on the cache.
82661         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
82662
82663 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82664
82665         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
82666         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
82667         (my_usleep): Don't mishandle maximum value.
82668
82669 2006-05-19  Jim Meyering  <jim@meyering.net>
82670
82671         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
82672
82673 2006-05-17  Bruno Haible  <bruno@clisp.org>
82674
82675         Cygwin portability.
82676         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
82677
82678 2006-05-17  Bruno Haible  <bruno@clisp.org>
82679
82680         * lib/stdint_.h: Fix recognition of Cygwin.
82681
82682 2006-05-15  Bruno Haible  <bruno@clisp.org>
82683
82684         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
82685         on libtool patch by Ralf Wildenhues.
82686
82687 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82688
82689         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
82690         test for C99 conformance; (bool) 0.5 is an integer constant
82691         expression, but (bool) -0.5 is not.  Problem reported by Fedor
82692         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
82693
82694 2006-05-11  Simon Josefsson  <jas@extundo.com>
82695
82696         * m4/xvasprintf.m4: Fix obvious typo.
82697
82698 2006-05-11  Jim Meyering  <jim@meyering.net>
82699
82700         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
82701         James Lemley.
82702
82703 2006-05-10  Simon Josefsson  <jas@extundo.com>
82704
82705         * lib/md4.c: Typo fix, update copyright years.
82706         (K1, K2): Don't use L because it turn computations into 64-bit on
82707         64-bit platforms.
82708
82709 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
82710
82711         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
82712         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
82713         unwanted sign propagation, e.g., on hosts with 64-bit int.
82714         There still are some problems with reeelly weird theoretical hosts
82715         (e.g., 33-bit int) but it's not worth worrying about now.
82716         * lib/sha1.c (rol): Likewise.
82717         (K1, K2, K3, K4): Remove unnecessary L suffix.
82718
82719 2006-05-10  Bruno Haible  <bruno@clisp.org>
82720
82721         * lib/des.c: Cast to avoid warnings.
82722
82723 2006-05-09  Bruno Haible  <bruno@clisp.org>
82724
82725         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
82726         (Depends-on): Depend also on xsize, stdarg.
82727         (configure.ac): Add gl_XVASPRINTF.
82728
82729 2006-05-09  Bruno Haible  <bruno@clisp.org>
82730
82731         * m4/xvasprintf.m4: New file.
82732
82733 2006-05-09  Bruno Haible  <bruno@clisp.org>
82734
82735         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
82736         (EOVERFLOW): Define fallback value.
82737         (xstrcat): New function.
82738         (xvasprintf): Recognize the special case of a string concatenation.
82739
82740 2006-05-08  Eric Blake  <ebb9@byu.net>
82741
82742         * gnulib-tool (func_version): Base copyright year on CVS date.
82743         (func_emit_copyright_notice): New function.
82744         (func_emit_lib_Makefile_am): Use it.
82745         (func_emit_tests_Makefile_am): Likewise.
82746         (func_import): Likewise.
82747
82748 2006-05-08  Bruno Haible  <bruno@clisp.org>
82749
82750         * modules/stdarg: New file.
82751         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
82752
82753 2006-05-08  Bruno Haible  <bruno@clisp.org>
82754
82755         * m4/stdarg.m4: New file, from GNU gettext.
82756
82757 2006-05-08  Bruno Haible  <bruno@clisp.org>
82758
82759         * config/srclist.txt (build-aux/config.rpath): different from latest
82760         release.
82761
82762 2006-05-08  Bruno Haible  <bruno@clisp.org>
82763
82764         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
82765
82766 2006-05-05  Jim Meyering  <jim@meyering.net>
82767
82768         * m4/warning.m4: New file, derived from bison's file by the same name.
82769
82770 2006-05-03  Bruno Haible  <bruno@clisp.org>
82771
82772         * lib/stdint_.h: Shorter URL.
82773         * lib/inttypes.h: Likewise.
82774
82775 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82776
82777         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
82778
82779 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82780
82781         * lib/verify.h: Document the internals better.  Most of this change
82782         was written by Bruno Haible.
82783
82784 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82785
82786         * doc/verify.texi: New file, partly based on a proposal by
82787         Bruno Haible.
82788
82789 2006-05-02  Bruno Haible  <bruno@clisp.org>
82790
82791         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
82792         test from here...
82793         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
82794
82795 2006-04-29  Bruno Haible  <bruno@clisp.org>
82796
82797         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
82798         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
82799
82800 2006-04-29  Bruno Haible  <bruno@clisp.org>
82801
82802         * gnulib-tool: Make --update option actually work.
82803
82804 2006-04-29  Bruno Haible  <bruno@clisp.org>
82805
82806         * doc/gcd.texi: New file.
82807         * doc/gnulib.texi: Include it.
82808
82809 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
82810
82811         * lib/getdate.y (get_date): When adding relative date, start with the
82812         initial time, not with the result of the first mktime call.
82813
82814 2006-04-25  Bruno Haible  <bruno@clisp.org>
82815
82816         * gnulib-tool (func_import): Output the include directives in three
82817         blocks, sorted separately.
82818         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82819
82820 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82821
82822         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
82823         to define main with arguments, for C++.  Reported by Eric Blake.
82824         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
82825         Prefer 'int main ()' to 'int main (void)', for C++.
82826         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
82827         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
82828         for 'main', for C99 and C++.
82829
82830 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82831
82832         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
82833         Don't assume that exit status -1 is valid.
82834         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82835         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
82836         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
82837         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
82838         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
82839         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
82840         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
82841         functions can be used without declaring them, or that you can
82842         exit with status -1.
82843         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
82844
82845 2006-04-24  Karl Berry  <karl@gnu.org>
82846
82847         * config/srclist.txt (longdouble.m4): sync lost.
82848
82849 2006-04-24  Eric Blake  <ebb9@byu.net>
82850
82851         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
82852
82853 2006-04-24  Bruno Haible  <bruno@clisp.org>
82854
82855         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
82856         poll() implementation in AIX.
82857         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82858
82859 2006-04-24  Bruno Haible  <bruno@clisp.org>
82860
82861         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
82862         assigned exactly once.
82863
82864 2006-04-23  Claudio Fontana  <claudio@gnu.org>
82865             Bruno Haible  <bruno@clisp.org>
82866
82867         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
82868         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
82869         for AM_CPPFLAGS.
82870
82871 2006-04-23  Bruno Haible  <bruno@clisp.org>
82872
82873         * modules/copy-file: Depend on unistd.
82874         * modules/execute: Likewise.
82875         * modules/fatal-signal: Likewise.
82876         * modules/findprog: Likewise.
82877         * modules/mkdtemp : Likewise.
82878         * modules/pipe: Likewise.
82879         * modules/wait-process: Likewise.
82880
82881 2006-04-23  Bruno Haible  <bruno@clisp.org>
82882
82883         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
82884         condition was already detected.
82885         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82886
82887 2006-04-23  Bruno Haible  <bruno@clisp.org>
82888
82889         * lib/copy-file.c: Include <unistd.h> unconditionally.
82890         * lib/execute.c: Likewise.
82891         * lib/fatal-signal.c: Likewise.
82892         * lib/findprog.c: Likewise.
82893         * lib/mkdtemp.c: Likewise.
82894         * lib/pipe.h: Likewise.
82895         * lib/pipe.c: Likewise.
82896         * lib/wait-process.h: Likewise.
82897
82898 2006-04-23  Bruno Haible  <bruno@clisp.org>
82899
82900         * gnulib-tool (func_usage): Fix --import description. Document
82901         --update.
82902         (func_import): Create temporary file in a temporary directory, if
82903         --dry-run is specified. Silence errors from 'grep' when there are no
82904         m4 files in $m4dir.
82905         (func_create_testdir): Silence errors from 'grep' when there are no
82906         m4 files in $m4dir.
82907         Reported by Karl Berry <karl@freefriends.org>.
82908
82909 2006-04-20  Bruno Haible  <bruno@clisp.org>
82910
82911         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
82912         one argument, so that the code will be portable to Autoconf 2.60.
82913         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
82914         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
82915         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
82916
82917 2006-04-19  Derek Price  <derek@ximbiot.com>
82918             Eric Blake  <ebb9@byu.net>
82919
82920         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
82921         rather than "/full/path.h".  Update comment to match.  Shorten &
82922         generalize m4_translit call via AS_TR_CPP.
82923
82924 2006-04-19  Derek Price  <derek@ximbiot.com>
82925             Eric Blake  <ebb9@byu.net>
82926
82927         * lib/inttypes.h: Correct grammar in comment.
82928
82929 2006-04-18  Derek Price  <derek@ximbiot.com>
82930             Paul Eggert  <eggert@cs.ucla.edu>
82931
82932         * modules/inttypes: New file.
82933         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
82934
82935 2006-04-18  Derek Price  <derek@ximbiot.com>
82936             Paul Eggert  <eggert@cs.ucla.edu>
82937
82938         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
82939         New files.
82940
82941 2006-04-18  Derek Price  <derek@ximbiot.com>
82942             Paul Eggert  <eggert@cs.ucla.edu>
82943
82944         * lib/inttypes.h: New file.
82945         * lib/strtoimax.c: Assume <inttypes.h>.
82946
82947 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
82948
82949         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
82950         isn't mounted.  Problem reported by Kir Kolyshkin.
82951
82952 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82953
82954         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
82955         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
82956         Derek R. Price.
82957         * lib/regex.h (RE_DUP_MAX): Update comment to match current
82958         implementation.
82959
82960 2006-04-12  Eric Blake  <ebb9@byu.net>
82961
82962         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
82963         is now done automatically by the corresponding Autoconf macro.
82964
82965 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
82966
82967         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
82968         time_r.h.
82969
82970 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82971
82972         Merge regex changes from libc, removing some of our
82973         POSIX-conformance changes that were rejected and redoing them in a
82974         less-intrusive way.
82975
82976         * lib/regcomp.c (re_compile_internal, init_dfa):
82977         Length arg is now size_t, not Idx.  All uses changed.
82978         (peek_token): Forward decl now says internal_function.
82979         (__re_error_msgid, __re_error_msgid_idx):
82980         Now static rather than extern with attribute_hidden.
82981         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
82982         For some reason libc prefers K&R style defns for external functions.
82983         (regerror) [!defined _LIBC]: Likewise.
82984         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
82985         (seek_collating_symbol_entry, lookup_collation_sequence_value):
82986         (build_range_exp, build_collating_symbol):
82987         Use K&R-style defn.
82988         (re_compile_fastmap): Use '\0' to memset, not 0.
82989         (utf8_sb_map): Make the calculations more obvious.
82990         (init_dfa, parse_bracket_exp, build_charclass_op):
82991         Call calloc and cast result, as glibc does.
82992         (init_word_char, fetch_token, peek_token, peek_token_bracket):
82993         (build_range_exp, build_collating_symbol):
82994         Now internal functions.
82995
82996         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
82997
82998         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
82999         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
83000         Don't depend on VMS; depend on __VMS instead, for POSIX
83001         namespace cleanness.
83002         (regoff_t): Define to ssize_t, not long int.
83003
83004         Remove the REG_ macros named below.  Instead, make the old names
83005         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
83006         __USE_GNU_REGEX.
83007         (REG_BACKSLASH_ESCAPE_IN_LISTS):
83008         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
83009         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
83010         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
83011         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
83012         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
83013         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
83014         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
83015         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
83016         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
83017         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
83018         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
83019         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
83020         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
83021         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
83022         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
83023         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
83024         (REG_NREGS):
83025         Remove.  All uses replaced by the old RE_* names.
83026         (RE_BACKSLASH_ESCAPE_IN_LISTS):
83027         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
83028         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
83029         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
83030         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
83031         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
83032         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
83033         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
83034         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
83035         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
83036         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
83037         Don't bother having these macros be independent of each others'
83038         values, since they no longer exist in the POSIX name space.
83039
83040         Rename the following member names back to their old names,
83041         unless !__USE_GNU_REGEX.  All uses changed back.
83042         (buffer): Renamed from re_buffer.
83043         (allocated): Renamed from re_allocated.
83044         (used): Renamed from re_used.
83045         (syntax): Renamed from re_syntax.
83046         (fastmap): Renamed from re_fastmap.
83047         (translate): Renamed from re_translate.
83048         (can_be_null): Renamed from re_can_be_null.
83049         (regs_allocated): Renamed from re_regs_allocated.
83050         (fastmap_accurate): Renamed from re_fastmap_accurate.
83051         (no_sub): Renamed from re_no_sub.
83052         (not_bol): Renamed from re_not_bol.
83053         (not_eol): Renamed from re_not_eol.
83054         (newline_anchor): Renamed from re_newline_anchor.
83055         (num_regs): Renamed from rm_num_regs.
83056         (start): Renamed from rm_start.
83057         (end): Renamed from rm_end.
83058
83059         (free_state): Move up a bit.
83060
83061         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
83062         #define to be empty.
83063         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
83064         when that is what is intended.
83065         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
83066         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
83067         (MAX): New macro.
83068         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
83069         All uses changed back to re_malloc, etc.  It's now the caller's
83070         responsibility to check for overflow; all callers changed.
83071         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
83072         (re_x2nrealloc): Remove.
83073         (free_state): Remove decl.
83074
83075         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
83076         (re_set_registers, re_exec):
83077         Use K&R-style defn.
83078
83079         2006-01-31  Roland McGrath  <roland@redhat.com>
83080
83081         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
83082         Reported by Mike Frysinger <vapier@gentoo.org>.
83083
83084         2006-01-15  Andreas Jaeger  <aj@suse.de>
83085
83086         [BZ #1950]
83087         * lib/regex_internal.c (re_string_reconstruct): Adjust for
83088         build_wcs_upper_buffer change.
83089         (build_wcs_upper_buffer): Change return type.
83090
83091         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
83092
83093         * lib/regex_internal.h: Include <stdint.h> if available.
83094
83095         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
83096
83097         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
83098
83099         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
83100
83101         * lib/regcomp.c: Adjust for changed secondary hash function.
83102
83103         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
83104
83105         * lib/regex.h: Pretty printing.
83106         Clean up namespace a bit.
83107
83108         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
83109
83110         * lib/regexec.c (update_cur_sifted_state, check_arrival,
83111         check_arrival_add_next_nodes): Avoid using uninitialized variable.
83112
83113         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83114                     Ulrich Drepper  <drepper@redhat.com>
83115
83116         [BZ #1302]
83117         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
83118         changed.
83119         (bitset_word_t): Renamed from bitset_word.  All uses changed.
83120
83121         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
83122
83123         [BZ #281]
83124         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
83125         * lib/regcomp.c: Remove unnecessary uses of
83126         unsigned RE_TRANSLATE_TYPE.
83127         * lib/regex_internal.h: Likewise.
83128         * lib/regex_internal.c: Likewise.
83129         * lib/regexec.c: Likewise.
83130         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
83131
83132         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
83133
83134         * lib/regexec.c (find_recover_state): Remove unnecessary
83135         initialization.
83136         (transit_state_bkref): Make DFA a const pointer.
83137         (get_subexp): Likewise.
83138         (check_arrival): Likewise.
83139         (update_cur_sifted_state): Likewise.
83140         (re_search_internal): Likewise.
83141         (prune_impossible_nodes): Likewise.
83142         (acquire_init_state_context): Likewise.
83143         (proceed_next_node): Likewise.
83144         (set_regs): Likewise.
83145         (free_fail_stack_return): Likewise.
83146         (check_arrival_expand_ecl): Mark DFA parameter as const.
83147         (check_arrival_expand_ecl_sub): Likewise.
83148         (check_subexp_limits): Likewise.
83149         (sub_epsilon_src_nodes):  Likewise.
83150         (add_epsilon_src_nodes):  Likewise.
83151         (merge_state_array): Likewise.
83152         (update_regs): Likewise.
83153         (build_trtable): Likewise.
83154         (sift_states_backward): Mark MCTX parameter as const.
83155         (build_sifted_states): Likewise.
83156         (update_cur_sifted_state): Likewise.
83157         (sift_states_mkref): Likewise.
83158         (check_arrival_expand_ecl): Mark eclosure as const.
83159         (check_dst_limits_calc_pos_1): Likewise.
83160         * lib/regex_internal.h (re_match_context_t): Make dfa a const
83161         pointer.
83162
83163         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
83164
83165         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
83166         (transit_state_sb): Likewise.
83167         (transit_state_mb): Likewise.
83168         (sift_states_iter_mb): Likewise.
83169         (check_arrival_add_next_nodes): Likewise.
83170         (check_node_accept_bytes): Change first parameter to pointer-to-const.
83171         [_LIBC] (re_search_2_stub): Use mempcpy.
83172
83173         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
83174         mbrtowc for very simple UTF-8 case.
83175
83176         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
83177         a pointer-to-const.
83178         (re_acquire_state_context): Likewise.
83179         * lib/regex_internal.h: Adjust prototypes.
83180
83181         * lib/regex.c: Prevent using C++ compilers.
83182
83183         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
83184         (re_acquire_state_context): Likewise.
83185
83186 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83187
83188         * modules/regex (Depends-on): Add ssize_t.
83189
83190 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83191
83192         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
83193         translation table.
83194
83195 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83196
83197         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
83198
83199 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
83200             Bruno Haible  <bruno@clisp.org>
83201
83202         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
83203         <sys/types.h> and <inttypes.h>.
83204
83205 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83206
83207         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
83208         `__error_t_defined', so argp.h will not typedef the former.
83209
83210 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
83211
83212         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
83213         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
83214         glibc names.  Even if glibc is changed to conform to POSIX, the
83215         traditional names will be available anyway, since regex depends on
83216         the extensions module.  Also, fix a longstanding typo in the
83217         implementation of Spencer ERE test #75 from grep 2.3.  Problems
83218         reported by Emanuele Giaquinta.  Also, change sense of cached
83219         variable, so that the message makes sense.
83220
83221 2006-03-24  Simon Josefsson  <jas@extundo.com>
83222
83223         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
83224         including some doc fixes.
83225         (base64_encode_alloc): Fix +1 bug on allocation failures.
83226
83227 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83228
83229         * lib/base64.c (base64_encode): Do not read past end of array with
83230         unsanitized input on systems with CHAR_BIT > 8.
83231
83232 2006-03-24  Eric Blake  <ebb9@byu.net>
83233
83234         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
83235
83236 2006-03-22  Karl Berry  <karl@gnu.org>
83237
83238         * config/srclist.txt (*setenv.[ch]): get from coreutils.
83239         * config/srclistvars.sh (COREUTILS): new var.
83240
83241 2006-03-17  Jim Meyering  <jim@meyering.net>
83242
83243         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
83244         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
83245
83246 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83247
83248         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
83249         no longer needs it.  Instead, check that regoff_t is as least
83250         as wide as ptrdiff_t.
83251
83252         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
83253         so that our regex.h stays compatible with the installed regex.
83254         This is helpful for installers who configure --without-included-regex.
83255         Problem reported by Emanuele Giaquinta.
83256
83257 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83258
83259         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
83260         Typedef to long int, not to off_, as POSIX will likely change
83261         in that direction.
83262
83263 2006-03-15  Eric Blake  <ebb9@byu.net>
83264
83265         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
83266
83267 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83268
83269         * lib/argp-help.c (validate_uparams): Fix typo
83270         * lib/argp-parse.c (argp_default_options): Consistently begin help
83271         messages with a lowercase letter.
83272
83273 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
83274
83275         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
83276         overrun buffers and shouldn't be used (much as gets shouldn't be
83277         used).
83278         * lib/time_r.c (asctime_r, ctime_r): Likewise.
83279
83280 2006-03-08  Simon Josefsson  <jas@extundo.com>
83281
83282         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
83283         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83284
83285 2006-03-08  Simon Josefsson  <jas@extundo.com>
83286
83287         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
83288         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83289
83290 2006-03-08  Simon Josefsson  <jas@extundo.com>
83291
83292         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
83293         signal that configure disabled the device.
83294
83295 2006-03-08  Simon Josefsson  <jas@extundo.com>
83296
83297         * build-aux/maint.mk: Fix refresh-po, to handle no translated
83298         languages.
83299
83300 2006-03-07  Simon Josefsson  <jas@extundo.com>
83301
83302         * modules/getopt (Depends-on): Add unistd.
83303
83304         * modules/unistd: New file.
83305
83306 2006-03-07  Simon Josefsson  <jas@extundo.com>
83307
83308         * modules/gc-random: New file.
83309
83310 2006-03-07  Simon Josefsson  <jas@extundo.com>
83311
83312         * m4/unistd_h.m4: New file.
83313
83314 2006-03-07  Simon Josefsson  <jas@extundo.com>
83315
83316         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
83317         test to be side-effect free by storing the result in the cache
83318         variable gl_cv_lib_readline, and moving the assignment of
83319         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
83320         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83321
83322 2006-03-07  Simon Josefsson  <jas@extundo.com>
83323
83324         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
83325         error on missing devices (the functions will return an error).
83326
83327         * m4/gc.m4: Move random stuff to gc-random.m4
83328
83329 2006-03-07  Simon Josefsson  <jas@extundo.com>
83330
83331         * lib/unistd_.h: New file.
83332
83333 2006-03-07  Simon Josefsson  <jas@extundo.com>
83334
83335         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
83336
83337 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83338
83339         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
83340         Problem reported by Juan Manuel Guerrero.
83341
83342 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83343
83344         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
83345         the unistd module.
83346         * lib/getlogin_r.c: Likewise.
83347         * lib/getlogin_r.h: Likewise.
83348         * lib/glob.c: Likewise.
83349         * lib/pagealign_alloc.c: Likewise.
83350         * lib/unistd_.h: Remove; no longer needed.
83351
83352 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83353
83354         * MODULES.html.sh (Support for systems lacking POSIX:2001):
83355         Add unistd.
83356         * modules/c-stack (Depends-on): Add unistd.
83357         * modules/getlogin_r: Likewise.
83358         * modules/glob: Likewise.
83359         * modules/pagealign_alloc: Likewise.
83360         * modules/unistd (Files): Remove lib/unistd_.h.
83361         (EXTRA_DIST): Remove.
83362         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
83363         need unistd_.h.
83364         (MOSTLYCLEANFILES): Remove unistd.h-t.
83365
83366 2006-03-03  Simon Josefsson  <jas@extundo.com>
83367
83368         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
83369
83370 2006-03-03  Simon Josefsson  <jas@extundo.com>
83371
83372         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
83373         libidn and bison.
83374
83375 2006-03-03  Simon Josefsson  <jas@extundo.com>
83376
83377         * build-aux/maint.mk: Add indent target.
83378
83379 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
83380
83381         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
83382         our replacement poll.h in any case, to avoid a differing
83383         declaration from a system header.  Seen on AIX.
83384
83385 2006-03-01  Simon Josefsson  <jas@extundo.com>
83386
83387         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
83388         <kasal@ucw.cz>.
83389
83390 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83391
83392         * modules/gettime (Depends-on): Add extensions module.
83393         * modules/nanosleep (Depends-on): Likewise.
83394         * modules/settime (Depends-on): Likewise.
83395
83396 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83397
83398         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
83399         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
83400         pedantically.
83401         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83402         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
83403
83404         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
83405         not "==".  Reported by Ralf Wildenhues.
83406
83407 2006-03-01  Karl Berry  <karl@gnu.org>
83408
83409         * doc/Copyright/request-*: new files, synced from gnuorg.
83410
83411 2006-03-01  Karl Berry  <karl@gnu.org>
83412
83413         * config/srclist.txt (Copyright/*): new entries.
83414
83415 2006-02-28  Simon Josefsson  <jas@extundo.com>
83416
83417         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
83418
83419 2006-02-27  Simon Josefsson  <jas@extundo.com>
83420
83421         * lib/base64.h: Indent #define's.  From Jim Meyering
83422         <jim@meyering.net>.
83423
83424 2006-02-27  Jim Meyering  <jim@meyering.net>
83425
83426         Revert the change of 2006-02-24, so these files can continue
83427         to be sync'd from gettext.
83428         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
83429         of `config.h'.
83430
83431 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83432
83433         * modules/intprops: New file.
83434         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
83435         Add intprops.
83436         * modules/getloadavg (Files): Remove lib/intprops.h.
83437         (Depends-on): Add intprops.
83438         * modules/human: Likewise.
83439         * modules/inttostr: Likewise.
83440         * modules/openat: Likewise.
83441         * modules/sig2str: Likewise.
83442         * modules/userspec: Likewise.
83443         * modules/utimecmp: Likewise.
83444         * modules/xnanosleep: Likewise.
83445         * modules/xstrtol: Likewise.
83446
83447 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
83448
83449         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
83450         * modules/lock-tests (TESTS): Use $(EXEEXT).
83451         * modules/tls-tests: Likewise.
83452         * modules/argp-tests: Likewise.
83453         (check_PROGRAMS): New var, replacing...
83454         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
83455
83456 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83457
83458         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
83459         `config.h'.
83460
83461 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
83462
83463         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
83464
83465 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83466
83467         Sync from coreutils.
83468         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
83469         gl_CHDIR_SAFER.
83470
83471 2006-02-22  Jim Meyering  <jim@meyering.net>
83472
83473         Sync from coreutils.
83474         * m4/chdir-safer.m4: New file.
83475
83476 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
83477
83478         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
83479         AT_FDCWD exceeds INT_MAX.
83480         * lib/openat.h (AT_FDCWD): Likewise.
83481
83482 2006-02-17  Eric Blake  <address@hidden>
83483
83484         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
83485
83486 2006-02-16  Simon Josefsson  <jas@extundo.com>
83487
83488         * modules/getaddrinfo (Depends-on): Add sys_socket.
83489
83490 2006-02-15  Simon Josefsson  <jas@extundo.com>
83491
83492         * build-aux/maint.mk: Add dsyntax-check rule.
83493
83494 2006-02-15  Eric Blake  <ebb9@byu.net>
83495
83496         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
83497         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
83498         'present but cannot compile' warnings on cygwin.
83499         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
83500         use ws2tcpip.h if sys/socket.h works.
83501         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
83502         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
83503
83504 2006-02-14  Simon Josefsson  <jas@extundo.com>
83505
83506         * modules/maintainer-makefile (Files): Rename.
83507
83508         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
83509         and (the local) Makefile.cfg to maint-cfg.mk.
83510
83511         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
83512         to the latter.
83513
83514         * modules/maintainer-makefile: New module.
83515
83516         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
83517         severaly stripped to make it possible to build it up from scratch
83518         with reliable tests.
83519
83520         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
83521         fixes to permit overriding the default actions when configure and
83522         makefile are not available.
83523
83524 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
83525
83526         Sync from coreutils.
83527         * modules/lstat (Depends-on): Don't depend on xalloc.
83528         (License): Change from GPL to LGPL, since this is now simply a
83529         replacement for a libc function.
83530
83531 2006-02-14  Jim Meyering  <jim@meyering.net>
83532
83533         Sync from coreutils.
83534
83535         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
83536         failure on deficient systems, and simplify gnulib lgpl dependencies.
83537         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
83538         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
83539
83540         * lib/xalloc-die.c: Remove unused definition of N_.
83541
83542 2006-02-14  Jim Meyering  <jim@meyering.net>
83543
83544         Sync from coreutils.
83545         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
83546         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
83547         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
83548         double-quote uses of that variable, to accommodate the rare case in
83549         which getmntent is available in none of the libraries checked.  This
83550         happens at least on FreeBSD 5.0.
83551
83552 2006-02-13  Simon Josefsson  <jas@extundo.com>
83553
83554         * gnulib-tool (Usage): Fix --import, from
83555         karl@freefriends.org (Karl Berry).
83556
83557 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83558
83559         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
83560
83561 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
83562
83563         * lib/argp-namefrob.h: Restore changes accidentally lost during the
83564         "autoupdate" on 2005-12-12.
83565
83566 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83567
83568         * modules/closeout (Depends-on): Remove atexit.
83569
83570 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83571
83572         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
83573         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
83574
83575 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
83576
83577         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
83578         __EXTENSIONS__ if this causes compilation to fail.  Problem
83579         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
83580         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
83581
83582 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
83583
83584         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
83585         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
83586         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
83587         All uses changed.
83588
83589 2006-01-26  Simon Josefsson  <jas@extundo.com>
83590
83591         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
83592         prototype is visible on mingw32.
83593
83594         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
83595         for mingw32.
83596
83597         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
83598         mingw32).
83599
83600 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
83601
83602         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
83603         attempt to open for write; this always fails, at least on POSIX
83604         hosts.  This reinstates the 2006-01-09 change, which was
83605         inadvertently removed.
83606
83607 2006-01-26  Bruno Haible  <bruno@clisp.org>
83608
83609         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
83610         Reported by Paul Eggert.
83611
83612 2006-01-26  Bruno Haible  <bruno@clisp.org>
83613             Paul Eggert  <eggert@cs.ucla.edu>
83614
83615         * lib/stdbool_.h (_Bool)
83616         [(! (defined __cplusplus || defined __BEOS__)
83617           && !defined __GNUC__
83618           && !(defined __HP_cc || defined __xlc__
83619                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
83620                || defined __sgi))]:
83621         #define to signed char in these cases too; this simplifies
83622         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
83623         etc., separately) and makes it more conservative.
83624
83625 2006-01-25  Simon Josefsson  <jas@extundo.com>
83626
83627         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
83628         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
83629         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
83630
83631 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83632
83633         * lib/argp-namefrob.h: Bugfix. Remove stray #
83634
83635 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
83636
83637         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
83638         so that we test the test.
83639         Check for yet another HP-UX cc bug involving *bool |= bool.
83640
83641 2006-01-25  Karl Berry  <karl@gnu.org>
83642
83643         * config/srclist.txt (vasnprintf.c): sync lost.
83644
83645 2006-01-25  Jim Meyering  <jim@meyering.net>
83646
83647         Sync from the stable (b5) branch of coreutils:
83648
83649         * lib/fts.c (fts_children): Don't let close() clobber errno from
83650         failed fchdir().
83651
83652         * lib/fts.c (fts_stat): When following a symlink-to-directory,
83653         don't necessarily interpret stat-fails+lstat-succeeds as indicating
83654         a dangling symlink.  That can also happen at least for ELOOP.
83655         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
83656         FYI, this bug predates the inclusion of fts.c in coreutils.
83657
83658         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
83659         in their own block, so pre-c99 compilers don't object.
83660
83661         Avoid the double-free (first in fts_read, second in fts_close) that
83662         would occur when an `active' directory is made inaccessible (e.g.,
83663         via chmod a-x) during a traversal.
83664         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83665         before returning.  Reproduce this failure by
83666         mkdir -p a/b; cd a; chmod a-x . b
83667         Reported by Stavros Passas.
83668
83669 2006-01-25  Jim Meyering  <jim@meyering.net>
83670
83671         * lib/fileblocks.c: Remove more useless parentheses.
83672         * lib/readutmp.h: Likewise.
83673
83674 2006-01-25  Bruno Haible  <bruno@clisp.org>
83675
83676         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
83677         warnings.
83678         Reported by Paul Eggert.
83679
83680 2006-01-25  Bruno Haible  <bruno@clisp.org>
83681
83682         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
83683         rid of a trap command. For Solaris sh.
83684         Reported by Mark D. Baushke <mdb@gnu.org>.
83685
83686 2006-01-24  Simon Josefsson  <jas@extundo.com>
83687
83688         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
83689         Bruno.
83690
83691 2006-01-24  Karl Berry  <karl@gnu.org>
83692
83693         * config/srclist.txt (argp-namefrob.h): sync lost.
83694
83695 2006-01-24  Jim Meyering  <jim@meyering.net>
83696
83697         * modules/openat (Files): Add lib/intprops.h.
83698         From Mark D. Baushke.
83699
83700 2006-01-24  Jim Meyering  <jim@meyering.net>
83701
83702         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
83703         Reported by Mark D. Baushke.
83704
83705 2006-01-24  Jim Meyering  <jim@meyering.net>
83706
83707         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
83708
83709 2006-01-24  Bruno Haible  <bruno@clisp.org>
83710
83711         * modules/strnlen (Maintainer): Change from glibc to all.
83712
83713 2006-01-24  Bruno Haible  <bruno@clisp.org>
83714
83715         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
83716         Patch by Paul Eggert.
83717
83718 2006-01-24  Bruno Haible  <bruno@clisp.org>
83719
83720         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
83721         already has it.
83722         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
83723         2005-11-26.
83724
83725         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
83726         'signed char' to avoid problems with the built-in _Bool type.
83727         Reported by Paul Eggert on 2005-11-26.
83728
83729 2006-01-24  Bruno Haible  <bruno@clisp.org>
83730
83731         * gnulib-tool (func_import): Avoid constructing complicated sed
83732         expressions inside backquote.
83733         Report and solution by Mark D. Baushke <mdb@gnu.org>.
83734
83735 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
83736
83737         These changes imported from libc.
83738         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
83739         test and two separate function calls.
83740         * lib/strndup.c (__strndup): Add libc_hidden_def.
83741
83742 2006-01-23  Simon Josefsson  <jas@extundo.com>
83743
83744         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
83745         Remove the test_*_SOURCES variable: automake infers it by default.
83746         * modules/tls-tests: Likewise.
83747
83748 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83749
83750         Work around porting bugs reported by Dieter in
83751         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
83752         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
83753         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
83754         Include "getopt.h" first, to check interface.
83755         (getenv): Declare only if defined HAVE_DECL_GETENV &&
83756         !HAVE_DECL_GETENV.
83757         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
83758         (__strndup): Revert to K&R-style function dfns, the glibc style.
83759         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
83760         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
83761         Include strnlen.h first, to get prototype properly.
83762         (strnlen): Renamed from __strnlen.
83763         Remove weak alias.
83764
83765 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83766
83767         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
83768
83769 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83770
83771         * config/srclist.txt: Adjust to reflect glibc reorganization.
83772         This affects only comments.
83773
83774 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83775
83776          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
83777          Reported by Bruce Korb <bkorb@gnu.org>.
83778
83779 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
83780
83781         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
83782         to pacify gcc -Wswitch-default.
83783
83784 2006-01-22  Bruno Haible  <bruno@clisp.org>
83785
83786         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
83787         temporary buffer for sprintf, take into account the precision also
83788         for 'd', 'i', 'u', 'o', 'x', 'X'.
83789
83790 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83791
83792         * modules/argp-tests: New module
83793         * tests/test-argp.c: New file
83794         * tests/test-argp-2.sh: New file
83795
83796 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83797
83798         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
83799         (__argp_base_name): Removed
83800         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
83801         typo.
83802         (__argp_base_name): Provide macro definition or extern declaration
83803         depending on the configuration
83804
83805 2006-01-20  Simon Josefsson  <jas@extundo.com>
83806
83807         * modules/inet_ntop (Depends-on): Depend on sys_socket.
83808
83809 2006-01-20  Simon Josefsson  <jas@extundo.com>
83810
83811         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
83812
83813 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83814
83815         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
83816         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
83817         Suggested by Bruno Haible.
83818
83819 2006-01-20  Karl Berry  <karl@gnu.org>
83820
83821         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
83822         until changes propagate, I guess.
83823
83824 2006-01-19  Simon Josefsson  <jas@extundo.com>
83825
83826         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
83827
83828 2006-01-19  Simon Josefsson  <jas@extundo.com>
83829
83830         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
83831
83832 2006-01-19  Simon Josefsson  <jas@extundo.com>
83833
83834         * gnulib-tool: Set check_PROGRAMS.
83835
83836         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83837         modules/des-tests, modules/gc-arcfour-tests,
83838         modules/gc-arctwo-tests, modules/gc-des-tests,
83839         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83840         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83841         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83842         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83843         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83844         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
83845         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
83846         test_*_SOURCES.
83847
83848 2006-01-18  Simon Josefsson  <jas@extundo.com>
83849
83850         * modules/socklen (Depends-on): Depend on sys_socket.
83851
83852 2006-01-18  Simon Josefsson  <jas@extundo.com>
83853
83854         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83855         modules/des-tests, modules/gc-arcfour-tests,
83856         modules/gc-arctwo-tests, modules/gc-des-tests,
83857         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83858         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83859         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83860         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83861         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83862         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
83863         $(EXEEXT) to automake TESTS variable, for mingw32.
83864
83865 2006-01-17  Simon Josefsson  <jas@extundo.com>
83866
83867         * modules/socklen (Include): Need sys/socket.h.
83868
83869 2006-01-17  Bruno Haible  <bruno@clisp.org>
83870
83871         * modules/ssize_t (Include): Add <sys/types.h>.
83872
83873 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
83874
83875         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
83876         it's not portable and it doesn't work with cross-compiles.
83877         Problem reported by Bruno Haible.  Fix missing-$ typo in
83878         'test "gl_cv_ignore_unused_libraries" ...' that prevented
83879         -zignore from being used with Sun's C compiler.
83880
83881 2006-01-12  Simon Josefsson  <jas@extundo.com>
83882
83883         * lib/base64.c: Fix warning, reported by Bruno Haible
83884         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
83885
83886 2006-01-12  Bruno Haible  <bruno@clisp.org>
83887
83888         * modules/ldd: New file.
83889         * build-aux/ldd.sh.in: New file.
83890         * MODULES.html.sh (Support for building libraries and executables): Add
83891         ldd.
83892
83893 2006-01-12  Bruno Haible  <bruno@clisp.org>
83894
83895         * m4/ldd.m4: New file.
83896
83897 2006-01-12  Bruno Haible  <bruno@clisp.org>
83898
83899         * gnulib-tool (func_import, func_create_testdir): Don't go into an
83900         endless loop while replacing $auxdir with build-aux.
83901
83902 2006-01-11  Simon Josefsson  <jas@extundo.com>
83903
83904         * lib/stdint_.h (SIZE_MAX): Add missing (.
83905
83906 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
83907
83908         Sync from coreutils.
83909         * lib/md5.c: Fix commentary typos.
83910         (alignof, UNALIGNED_P): No need for a GCC-specific version.
83911         * lib/md5.h (__attribute__): Remove; unused.
83912         * lib/sha1.c: Fix commentary to match md5 better.
83913         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
83914         so that we don't need to worry about alignment.  All uses changed.
83915         This merges the 2005-10-28 md5 change into sha1.
83916
83917 2006-01-11  Jim Meyering  <jim@meyering.net>
83918
83919         Sync from coreutils.
83920         * lib/md5.c (OP): Fix spacing.
83921
83922 2006-01-11  Bruno Haible  <bruno@clisp.org>
83923
83924         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83925         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
83926         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
83927
83928 2006-01-11  Bruno Haible  <bruno@clisp.org>
83929
83930         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83931         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
83932         the "early" section as well.
83933
83934 2006-01-11  Bruno Haible  <bruno@clisp.org>
83935
83936         Avoid "ar: no archive members specified" error on MacOS X.
83937         * gnulib-tool (func_modules_add_dummy): New function.
83938         (func_import, func_create_testdir): Invoke it.
83939
83940 2006-01-11  Bruno Haible  <bruno@clisp.org>
83941
83942         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
83943         with $auxdir in AC_CONFIG_FILES statements.
83944
83945 2006-01-11  Bruno Haible  <bruno@clisp.org>
83946
83947         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
83948         Initialize also noinst_HEADERS to empty.
83949
83950 2006-01-11  Bruno Haible  <bruno@clisp.org>
83951
83952         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
83953         variables.
83954         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
83955         autoreconf.
83956
83957 2006-01-11  Bruno Haible  <bruno@clisp.org>
83958
83959         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
83960         overridable by the user.
83961         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83962
83963 2006-01-10  Simon Josefsson  <jas@extundo.com>
83964
83965         * modules/sys_socket: New file.
83966
83967 2006-01-10  Simon Josefsson  <jas@extundo.com>
83968
83969         * m4/sys_socket_h.m4: New file.
83970
83971 2006-01-10  Simon Josefsson  <jas@extundo.com>
83972
83973         * lib/socket_.h: New file.
83974
83975 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83976
83977         * modules/readutmp (Maintainer): Add myself.
83978
83979 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83980
83981         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
83982         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
83983         People who are still concerned with buggy memcmp implementations
83984         can invoke gl_FUNC_MEMCMP themselves.
83985
83986 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83987
83988         * lib/regex_internal.h (BITSET_WORD_BITS):
83989         Work around a bug in 64-bit PGC (before version 6.1-2), where the
83990         preprocessor mishandles large unsigned values as if they were signed.
83991         Problem reported by Claudio Fontana in
83992         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
83993
83994 2006-01-10  Jim Meyering  <jim@meyering.net>
83995
83996         Avoid the double-free (first in fts_read, second in fts_close) that
83997         would occur when an `active' directory is made inaccessible (e.g.,
83998         via chmod a-x) during a traversal.
83999         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
84000         before returning.  Reproduce this failure by
84001         mkdir -p a/b; cd a; chmod a-x . b
84002         Reported by Stavros Passas.
84003
84004         Sync from coreutils.
84005         * lib/sha1.c: Tweak grammar in a comment.
84006
84007 2006-01-10  Jim Meyering  <jim@meyering.net>
84008
84009         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
84010         Patch by Joerg Sonnenberger.
84011
84012 2006-01-10  Bruno Haible  <bruno@clisp.org>
84013
84014         * modules/readutmp: Depend on module free.
84015         * modules/strtok_r: Depend on module restrict.
84016
84017 2006-01-10  Bruno Haible  <bruno@clisp.org>
84018
84019         * modules/gettext (configure.ac): Add an invocation of
84020         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
84021
84022 2006-01-10  Bruno Haible  <bruno@clisp.org>
84023
84024         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
84025         Reported by Werner Lemberg <wl@gnu.org>.
84026
84027 2006-01-10  Bruno Haible  <bruno@clisp.org>
84028
84029         * lib/localcharset.c: Update from GNU gettext.
84030
84031 2006-01-10  Bruno Haible  <bruno@clisp.org>
84032
84033         * lib/argp.h (__const): Remove macro. Use const instead.
84034         * lib/argp-fmtstream.h (__const): Likewise.
84035         * lib/glob_.h (__const): Remove macro.
84036         * lib/glob-libc.h: Use const instead of __const.
84037
84038 2006-01-10  Bruno Haible  <bruno@clisp.org>
84039
84040         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
84041         variable.
84042         Needed to avoid an automake error regarding the 'gettext' module.
84043
84044 2006-01-09  Simon Josefsson  <jas@extundo.com>
84045
84046         * modules/inet_ntop (Depends-on): Add restrict.
84047
84048 2006-01-09  Simon Josefsson  <jas@extundo.com>
84049
84050         * modules/gc-rijndael-tests (License): Put under LGPL.
84051
84052         * modules/gc-des-tests (License): Likewise.
84053
84054         * modules/gc-arcfour-tests (License): Likewise.
84055
84056         * modules/gc-arctwo-tests (License): Likewise.
84057
84058         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
84059
84060         * modules/gc-hmac-sha1-tests (Files): Likewise.
84061
84062         * modules/gc-hmac-md5-tests (License): Likewise.
84063
84064         * modules/gc-sha1-tests (License): Likewise.
84065
84066         * modules/gc-md5-tests (License): Likewise.
84067
84068         * modules/gc-md4-tests (License): Likewise.
84069
84070         * modules/gc-md2-tests (License): Likewise.
84071
84072         * modules/gc-tests (License): Likewise.
84073
84074         * modules/des-tests (License): Likewise.
84075
84076         * modules/md4-tests (License): Likewise.
84077
84078         * modules/md2-tests (License): Likewise.
84079
84080 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84081
84082         Sync from coreutils:
84083
84084         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
84085         * modules/lib-ignore: New file.
84086         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
84087         chdir-safer.m4, lchmod.m4.
84088         * modules/openat: Add mkdirat.c, openat-priv.h.
84089
84090 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84091
84092         Sync from coreutils.
84093         * m4/lib-ignore.m4: New file.
84094         * m4/lchmod.m4: New file.
84095
84096 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84097
84098         Sync from coreutils.
84099         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
84100         for write access: POSIX says that must fail.
84101         * lib/fts.c (diropen): Likewise.
84102         * lib/save-cwd.c (save_cwd): Likewise.
84103         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
84104         well, for minor improvements on hosts that lack O_DIRECTORY.
84105         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
84106         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
84107         Fall back on chown if open failed with EACCES.
84108
84109         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
84110         Report an error at compile-time if only a 1-second nominal clock
84111         resolution is found.
84112
84113         * lib/lchmod.h: New file.
84114         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
84115         (make_dir_parents): Use lchown rather than chown, and
84116         lchmod rather than chmod.
84117
84118         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
84119         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
84120         "proc" reported by n0dalus.
84121
84122         * lib/mountlist.c: Include <limits.h>.
84123         (dev_from_mount_options)
84124         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
84125         New function.  It no longer assumes "dev=" has the System V meaning
84126         on Linux (since it doesn't).  It also parses "dev=" more carefully.
84127         (read_file_system_list)
84128         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
84129         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
84130         dev= in that case.
84131
84132         * lib/posixtm.h (PDS_PRE_2000): New macro.
84133         * lib/posixtm.c (year): Arg is now syntax_bits rather than
84134         allow_century.  All usages changed.  Reject dates outside the range
84135         1969-1999 if PDS_PRE_2000 is used.
84136
84137 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84138
84139         Sync from coreutils.
84140         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
84141         (Time of day items): Mention the possibility of leap seconds.
84142         Problem reported by Dr. David Alan Gilbert.
84143
84144 2006-01-09  Jim Meyering  <jim@meyering.net>
84145
84146         Sync from coreutils.
84147
84148         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
84149
84150         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
84151
84152         * lib/modechange.c (mode_compile): Reject an invalid mode string
84153         that starts with an octal digit.  From Andreas Gruenbacher.
84154
84155         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
84156         and dup to open_safer and dup_safer, respectively.
84157         (openat_permissive): Fix typo in comment.
84158
84159         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
84160         "gettext.h"; either no longer needed or are guaranteed by openat.h.
84161         (_): Remove; no longer needed.
84162         (openat): Renamed from rpl_openat; no need for rpl_openat
84163         since openat.h renames openat for us.
84164         Replace most of the body with a call to openat_permissive,
84165         to avoid duplicate code.
84166         Port to (probably hypothetical) environments were mode_t is
84167         wider than int.
84168         (openat_permissive): Require mode arg, so that we can check
84169         types better.  Put it just after flags.  Change cwd failure
84170         indicator from pointer-to-bool to pointer-to-errno-value.
84171         All callers changed.
84172         Invoke openat_save_fail and/or openat_restore_fail if
84173         cwd_errno is null, so that openat can call us.
84174         (openat_permissive, fdopendir, fstatat, unlinkat):
84175         Simplify errno handling to avoid some duplicate code,
84176         as it's OK to set errno on success.
84177         * lib/openat.h: Revamp code so that function macros depend on
84178         __OPENAT_PREFIX only, not also on AT_FDCWD.
84179         (openat_ro): Remove.  Caller changed to use openat_permissive.
84180         (openat_permissive): Now a macro, if not a function.
84181         (openat_restore_fail, openat_save_fail): Now always functions,
84182         since mkdirat needs them even if __OPENAT_PREFIX is defined.
84183
84184         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
84185         and openat.c.
84186         * lib/mkdirat.c: Include openat-priv.h.
84187         Remove definitions of macros defined therein.
84188         * lib/openat.c: Likewise.
84189
84190         * lib/mkdirat.c (mkdirat): New file and function.
84191         * lib/openat.h (mkdirat): Declare.
84192
84193         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
84194
84195         * lib/openat.h (openat_permissive): Declare.
84196         (openat_ro): Define.
84197
84198         * lib/openat.c (EXPECTED_ERRNO): New macro.
84199         (openat_permissive): New function -- used in remove.c rewrite.
84200         (all functions): Set errno just before returning, only if there
84201         was an actual failure.
84202         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
84203
84204         Emulate openat-family functions using Linux's procfs, if possible.
84205         Idea and some code based on Ulrich Drepper's glibc changes.
84206
84207         * lib/openat.c: (BUILD_PROC_NAME): New macro.
84208         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
84209         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
84210         before falling back on save_cwd and restore_cwd.
84211         (fdopendir, fstatat, unlinkat): Likewise.
84212
84213         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
84214         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
84215
84216         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
84217         as second argument to va_arg.  Otherwise, some versions of gcc
84218         warn that `if this code is reached, the program will abort'.
84219
84220 2006-01-09  Jim Meyering  <jim@meyering.net>
84221
84222         Sync from coreutils.
84223         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
84224         Require openat-priv.h.
84225
84226 2006-01-09  Bruno Haible  <bruno@clisp.org>
84227
84228         * modules/strnlen (Include): Use strnlen.h.
84229
84230 2006-01-09  Bruno Haible  <bruno@clisp.org>
84231
84232         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
84233
84234 2006-01-09  Bruno Haible  <bruno@clisp.org>
84235
84236         * lib/sysexit_.h (EX_OK): New macro.
84237         Suggested by Martin Lambers <marlam@marlam.de>.
84238
84239 2006-01-09  Bruno Haible  <bruno@clisp.org>
84240
84241         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
84242         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
84243
84244 2006-01-09  Bruno Haible  <bruno@clisp.org>
84245
84246         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
84247         numbers.
84248
84249 2006-01-09  Bruno Haible  <bruno@clisp.org>
84250
84251         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
84252         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
84253         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
84254         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
84255
84256 2006-01-09  Bruno Haible  <bruno@clisp.org>
84257
84258         * build-aux/javacomp.sh.in: New file, moved from lib/.
84259         * modules/javacomp-script (Files): Update.
84260         (configure.ac): Add AC_CONFIG_FILES invocation.
84261         (EXTRA_DIST): Remove variable.
84262
84263         * build-aux/javaexec.sh.in: New file, moved from lib/.
84264         * modules/javaexec (Files): Update.
84265         (configure.ac): Add AC_CONFIG_FILES invocation.
84266         (EXTRA_DIST): Remove javaexec.sh.in.
84267
84268         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
84269         * modules/csharpcomp-script (Files): Update.
84270         (configure.ac): Add AC_CONFIG_FILES invocation.
84271         (EXTRA_DIST): Remove variable.
84272
84273         * build-aux/csharpexec.sh.in: New file, moved from lib/.
84274         * modules/csharpexec (Files): Update.
84275         (configure.ac): Add AC_CONFIG_FILES invocation.
84276         (EXTRA_DIST): Remove csharpexec.sh.in.
84277
84278 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84279
84280         Sync from coreutils.
84281
84282         Add POSIX ACL support
84283         * lib/acl.h (copy_acl, set_acl): Add declarations.
84284         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
84285         systems other than Linux.
84286         (chmod_or_fchmod): New function: use fchmod when possible,
84287         and chmod otherwise.
84288         (file_has_acl): Add a POSIX ACL implementation, with a
84289         Linux-specific subcase.
84290         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
84291         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
84292         acls are unsupported.
84293         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
84294         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
84295         are unsupported.
84296
84297 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84298
84299         Sync from coreutils.
84300         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
84301
84302 2006-01-07  Bruno Haible  <bruno@clisp.org>
84303
84304         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
84305         gl_EARLY.
84306
84307 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84308
84309         * lib/strftime.c (tzname): Don't declare if it is already #defined.
84310         Problem reported for Mingw by Mark Junker.
84311
84312 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84313
84314         * README: Gnulib normally doesn't generate a tarball.
84315
84316 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
84317
84318         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
84319         long int, not int, for nanosecond counts, so that people who are
84320         used to POSIX struct timespec won't be surprised.  Reported by Jim
84321         Meyering.
84322
84323 2005-12-28  Bruno Haible  <bruno@clisp.org>
84324
84325         * build-aux/config.rpath: Update from GNU gettext.
84326
84327 2005-12-16  Jim Meyering  <jim@meyering.net>
84328
84329         * modules/fprintftime: New module.
84330         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
84331
84332 2005-12-16  Jim Meyering  <jim@meyering.net>
84333
84334         * m4/fprintftime.m4: New file.
84335
84336 2005-12-16  Jim Meyering  <jim@meyering.net>
84337
84338         * lib/fprintftime.c, lib/fprintftime.h: New files.
84339
84340 2005-12-15  Simon Josefsson  <jas@extundo.com>
84341
84342         * modules/socklen (configure.ac): Fix M4 macro name, to align with
84343         new m4/socklen.m4.
84344
84345 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84346
84347         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
84348         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
84349
84350 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84351
84352         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
84353         * lib/argp-help.c (fill_in_uparams): Check if the constructed
84354         struct uparams is valid. Fall back to the default values if it is
84355         not.
84356
84357 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84358
84359         * modules/argp (Files): Add argp-pin.c
84360         (Depends-on): dirname
84361         (lib_SOURCES): Add argp-pin.c
84362
84363 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84364
84365         * m4/argp.m4:  Check if program_invocation_name and
84366         program_invocation_short_name are declared and define appropriate
84367         macros if they are not.
84368
84369 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84370
84371         * lib/argp-help.c (__argp_base_name): New function
84372         (__argp_short_program_name): Rewrite using __argp_base_name
84373         * lib/argp-namefrob.h: Define program_invocation_name and
84374         program_invocation_short_name if requested
84375         (__argp_base_name): Add prototype
84376         * lib/argp-parse.c (argp_def): Use gettext wrappers
84377         (argp_default_parser): Use __argp_base_name
84378         * lib/argp-pin.c: New file. Defines program_invocation_name and
84379         program_invocation_short_name on systems that lack them.
84380
84381 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84382
84383         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
84384         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84385         porting problem reported by Georg Schwarz in
84386         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84387
84388 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84389
84390         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
84391         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84392         porting problem reported by Georg Schwarz in
84393         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84394
84395 2005-12-05  Bruno Haible  <bruno@clisp.org>
84396
84397         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
84398         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
84399         Reported by Mark Junker <mjscod@gmx.de>.
84400
84401 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
84402
84403         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
84404         Use implementation from Albert Chin, with some
84405         comments/corrections by Stepan Kasal and myself.
84406
84407 2005-12-02  Bruno Haible  <bruno@clisp.org>
84408
84409         * gnulib-tool (func_import): Accept GPLed build tool modules when
84410         --lgpl is given.
84411         * modules/csharpcomp-script: New file.
84412         * modules/csharpcomp: Depend on it.
84413         * modules/javacomp-script: New file.
84414         * modules/javacomp: Depend on it.
84415         Suggested by Simon Josefsson.
84416
84417 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
84418
84419         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
84420         statement, to work around an HP-UX 10.20 compiler bug reported by
84421         Peter O'Gorman.
84422
84423 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84424
84425         * modules/savedir (Depends-on): Add openat.
84426
84427 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84428
84429         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
84430         (uintmax_t) [defined uintmax_t]: Do not declare.
84431         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
84432         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
84433         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
84434         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
84435         sake of portability to weird hosts that C allows (though we don't
84436         know of any practical examples).
84437
84438         * lib/savedir.h (fdsavedir): New decl.
84439         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
84440         contains most of the former guts of savedir.
84441         (savedir): Use savedirstream.
84442         Include "openat.h".
84443
84444 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84445
84446         * modules/obstack (Files): Add m4/ulonglong.m4.
84447         Problem reported by Davide Angelocola.
84448
84449 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
84450
84451         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
84452         coreutils no longer futzes with rounding modes.
84453
84454 2005-11-14  Jim Meyering  <jim@meyering.net>
84455
84456         * lib/mkstemp-safer.c: Include <config.h>, required for possible
84457         replacement of mkstemp.
84458
84459 2005-11-10  Simon Josefsson  <jas@extundo.com>
84460
84461         * lib/readline.c: Remove EOL.
84462
84463 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84464
84465         * modules/gethrxtime (Depends-on): Add gettime.
84466
84467 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84468
84469         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
84470         or gettimeofday; no longer needed.
84471
84472 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84473
84474         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
84475         time business.
84476         (gethrxtime) [! (HAVE_NANOUPTIME
84477         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
84478         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
84479         our own approximation.
84480
84481 2005-11-08  Eric Blake  <ebb9@byu.net>
84482
84483         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84484
84485 2005-11-08  Eric Blake  <ebb9@byu.net>
84486
84487         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84488
84489 2005-11-04  Bruno Haible  <bruno@clisp.org>
84490
84491         * gnulib-tool: Implement --update mode.
84492
84493 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84494
84495         Fix porting problem reported by Theodoros V. Kalamatianos.
84496         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
84497         Don't assume that futimes failing means we must fail.
84498
84499 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84500
84501         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
84502         variables to suggest the intended function of the PATH_MAX check.
84503
84504 2005-10-30  Kean Johnston  <jkj@sco.com>
84505
84506         Trivial changes to support SCO systems.
84507         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
84508         as PATH_MAX.
84509         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
84510         where __ptr is null when no I/O is pending.
84511
84512 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84513
84514         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
84515         leave errno alone.  Problem reported by Dmitry V. Levin.
84516
84517 2005-10-28  Simon Josefsson  <jas@extundo.com>
84518
84519         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
84520         Test more.
84521
84522         * tests/test-gc-md2.c, tests/test-md2.c: New files.
84523
84524         * modules/md2, modules/md2-tests: New files.
84525
84526 2005-10-28  Simon Josefsson  <jas@extundo.com>
84527
84528         * m4/inet_ntop.m4: More tests.
84529
84530         * m4/gc-md2.m4, md2.m4: New file.
84531
84532 2005-10-28  Simon Josefsson  <jas@extundo.com>
84533
84534         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
84535         "restrict" keywords, as per POSIX.  Protect the function
84536         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
84537         Don't use K&R prototypes.  Check the sprintf return values.
84538         Re-define EAFNOSUPPORT if not present.  Indent.
84539
84540         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
84541         suggested by Bruno Haible <bruno@clisp.org>.
84542
84543         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
84544
84545         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
84546
84547         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
84548         libgcrypt).
84549
84550         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
84551
84552         * lib/md2.h, lib/md2.c: New files.
84553
84554 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
84555
84556         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
84557         errno alone.  Problem reported by Frederic Jolliton.
84558
84559 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
84560
84561         * modules/verify (License): Change from GPL to LGPL.  This is a
84562         tiny module and there are apparently near-equivalents that are
84563         under the BSD license.
84564
84565 2005-10-24  Simon Josefsson  <jas@extundo.com>
84566
84567         * modules/sha1: Relicense to LGPL.
84568
84569 2005-10-24  Simon Josefsson  <jas@extundo.com>
84570
84571         * lib/md4.h: Shrink buffer size, now that we changed the type.
84572
84573 2005-10-23  Simon Josefsson  <jas@extundo.com>
84574
84575         * gnulib-tool (func_import): Fix --tests-base.
84576
84577 2005-10-22  Simon Josefsson  <jas@extundo.com>
84578
84579         * modules/arcfour (Depends-on): Need stdint.
84580
84581 2005-10-22  Simon Josefsson  <jas@extundo.com>
84582
84583         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
84584         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
84585
84586 2005-10-22  Simon Josefsson  <jas@extundo.com>
84587
84588         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
84589         suggested by Bruno Haible <bruno@clisp.org>.
84590
84591 2005-10-22  Simon Josefsson  <jas@extundo.com>
84592
84593         * lib/crc.h: Include stddef.h, for size_t.
84594
84595 2005-10-22  Simon Josefsson  <jas@extundo.com>
84596
84597         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
84598         arcfour_context struct (simplify test vector testing in GNU
84599         Shishi).
84600
84601 2005-10-21  Simon Josefsson  <jas@extundo.com>
84602
84603         * modules/des, modules/des-tests: New files.
84604
84605         * modules/gc-des, modules/gc-des-tests: New files.
84606
84607         * tests/test-des.c, tests/test-gc-des.c: New file.
84608
84609 2005-10-21  Simon Josefsson  <jas@extundo.com>
84610
84611         * modules/arctwo, modules/arctwo-tests: New files.
84612
84613         * tests/test-arctwo.c: New file.
84614
84615         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
84616
84617         * tests/test-gc-arctwo.c: New file.
84618
84619 2005-10-21  Simon Josefsson  <jas@extundo.com>
84620
84621         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
84622         Bruno Haible <bruno@clisp.org>.
84623
84624         * m4/gc-des.m4: New file.
84625
84626 2005-10-21  Simon Josefsson  <jas@extundo.com>
84627
84628         * m4/arctwo.m4: New file.
84629
84630         * m4/gc-arctwo.m4: New file.
84631
84632 2005-10-21  Simon Josefsson  <jas@extundo.com>
84633
84634         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
84635         block.
84636
84637 2005-10-21  Simon Josefsson  <jas@extundo.com>
84638
84639         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
84640         <bruno@clisp.org>.
84641
84642         * lib/hmac-sha1.c (hmac_sha1): Likewise.
84643
84644         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
84645         Bruno Haible <bruno@clisp.org>.
84646
84647         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
84648         <bruno@clisp.org>.
84649
84650 2005-10-21  Simon Josefsson  <jas@extundo.com>
84651
84652         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
84653
84654 2005-10-21  Simon Josefsson  <jas@extundo.com>
84655
84656         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
84657
84658 2005-10-21  Simon Josefsson  <jas@extundo.com>
84659
84660         * lib/des.h, lib/des.c: New files.
84661
84662         * lib/gc-gnulib.c: Support DES.c
84663
84664 2005-10-21  Simon Josefsson  <jas@extundo.com>
84665
84666         * lib/arctwo.h, lib/arctwo.c: New files.
84667
84668         * lib/gc-gnulib.c: Support ARCTWO.
84669
84670 2005-10-21  Simon Josefsson  <jas@extundo.com>
84671
84672         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
84673         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84674
84675 2005-10-21  Simon Josefsson  <jas@extundo.com>
84676
84677         * gnulib-tool (func_import, func_create_testdir): Define automake
84678         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
84679         Makefile.am snippet),
84680         suggested by Bruno Haible <bruno@clisp.org>.
84681
84682         * modules/gc (Makefile.am): Use it.
84683
84684 2005-10-21  Bruno Haible  <bruno@clisp.org>
84685
84686         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
84687         patch.
84688
84689 2005-10-19  Simon Josefsson  <jas@extundo.com>
84690
84691         * tests/test-gc-rijndael.c: New file.
84692
84693         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
84694
84695 2005-10-19  Simon Josefsson  <jas@extundo.com>
84696
84697         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
84698         interface too.
84699
84700 2005-10-19  Simon Josefsson  <jas@extundo.com>
84701
84702         * tests/test-gc-arcfour.c: New file.
84703
84704         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
84705
84706 2005-10-19  Simon Josefsson  <jas@extundo.com>
84707
84708         * modules/gc-md4, modules/gc-md4-tests: New file.
84709
84710         * tests/test-gc-md4.c: New file.
84711
84712 2005-10-19  Simon Josefsson  <jas@extundo.com>
84713
84714         * m4/gc-md4.m4: New file.
84715
84716 2005-10-19  Simon Josefsson  <jas@extundo.com>
84717
84718         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
84719         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
84720         <kasal@ucw.cz>.
84721
84722 2005-10-19  Simon Josefsson  <jas@extundo.com>
84723
84724         * m4/gc-arcfour.m4: New file.
84725
84726         * m4/gc-rijndael.m4: New file.
84727
84728 2005-10-19  Simon Josefsson  <jas@extundo.com>
84729
84730         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
84731
84732 2005-10-19  Simon Josefsson  <jas@extundo.com>
84733
84734         * lib/gc-gnulib.c: Support ARCFOUR.
84735
84736 2005-10-19  Simon Josefsson  <jas@extundo.com>
84737
84738         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
84739         support.
84740
84741         * lib/gc.h: Add ECB enum type.
84742
84743         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
84744
84745 2005-10-18  Simon Josefsson  <jas@extundo.com>
84746
84747         * tests/test-md5.c: New file.
84748
84749         * modules/md5-tests: New file.
84750
84751 2005-10-18  Simon Josefsson  <jas@extundo.com>
84752
84753         * tests/test-md4.c: New file.
84754
84755         * modules/md4, modules/md4-tests: New files.
84756
84757 2005-10-18  Simon Josefsson  <jas@extundo.com>
84758
84759         * m4/md4.m4: New file.
84760
84761 2005-10-18  Simon Josefsson  <jas@extundo.com>
84762
84763         * lib/md4.h, lib/md4.c: New files, based on md5.?.
84764
84765 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
84766
84767         * gnulib-tool (func_create_testdir): Omit the second check whether
84768         BUILT_SOURCES in nonempty.
84769
84770 2005-10-17  Simon Josefsson  <jas@extundo.com>
84771
84772         * tests/test-rijndael.c: New file.
84773
84774 2005-10-17  Simon Josefsson  <jas@extundo.com>
84775
84776         * modules/sha1: Depend on stdint instead of md5.
84777
84778         * modules/md5: Depend on stdint, remove uint32_t.
84779
84780 2005-10-17  Simon Josefsson  <jas@extundo.com>
84781
84782         * modules/gc-sha1-tests: New file.
84783
84784         * tests/test-gc-sha1.c: New file.
84785
84786 2005-10-17  Simon Josefsson  <jas@extundo.com>
84787
84788         * m4/md5.m4: Remove call to uint32_t.m4.
84789
84790 2005-10-17  Simon Josefsson  <jas@extundo.com>
84791
84792         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
84793
84794         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
84795         md5.h.
84796
84797         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
84798
84799         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
84800
84801 2005-10-17  Simon Josefsson  <jas@extundo.com>
84802
84803         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
84804
84805 2005-10-17  Simon Josefsson  <jas@extundo.com>
84806
84807         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
84808
84809 2005-10-17  Simon Josefsson  <jas@extundo.com>
84810
84811         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
84812
84813         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
84814
84815 2005-10-17  Bruno Haible  <bruno@clisp.org>
84816
84817         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
84818         that it can also be used in a test.
84819
84820 2005-10-16  Bruno Haible  <bruno@clisp.org>
84821
84822         * gnulib-tool (func_emit_tests_Makefile_am): Also define
84823         TESTS_ENVIRONMENT, so that individual tests can augment it.
84824
84825         * gnulib-tool (func_create_testdir): Use an intermediate target for
84826         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
84827         macros, like $(ALLOCA_H), which cannot be passed through the command
84828         line.
84829
84830 2005-10-15  Simon Josefsson  <jas@extundo.com>
84831
84832         * modules/rijndael-tests: New file.
84833
84834         * modules/rijndael: New file.
84835
84836 2005-10-15  Simon Josefsson  <jas@extundo.com>
84837
84838         * m4/rijndael.m4: New file.
84839
84840 2005-10-15  Simon Josefsson  <jas@extundo.com>
84841
84842         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
84843
84844         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
84845
84846 2005-10-14  Simon Josefsson  <jas@extundo.com>
84847
84848         * tests/test-arcfour.c: New file.
84849
84850         * modules/arcfour, modules/arcfour-tests: New files.
84851
84852 2005-10-14  Simon Josefsson  <jas@extundo.com>
84853
84854         * m4/arcfour.m4: New file.
84855
84856 2005-10-14  Simon Josefsson  <jas@extundo.com>
84857
84858         * lib/arcfour.h, lib/arcfour.c: New files.
84859
84860 2005-10-14  Roland McGrath  <roland@redhat.com>
84861
84862         Import from libc.  [BZ #1331]
84863         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
84864         macro argument.
84865         Reported by Matej Vela <vela@debian.org>.
84866
84867 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84868
84869         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
84870         include <wchar.h>; no longer needed.
84871
84872 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84873
84874         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
84875
84876 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
84877         and  Ulrich Drepper  <drepper@redhat.com>
84878
84879         Import from libc.
84880         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
84881         instead of inline stream orientation test and two separate
84882         function calls.  Pay no attention to USE_IN_LIBIO.
84883
84884 2005-10-13  Simon Josefsson  <jas@extundo.com>
84885
84886         * modules/gc-hmac-md5-tests: New file.
84887
84888         * tests/test-gc-hmac-sha1.c: New file.
84889
84890         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
84891
84892         * modules/gc-hmac-md5-tests: New file.
84893
84894         * tests/test-gc-md5.c: New file.
84895
84896         * modules/gc-md5-tests: New file.
84897
84898 2005-10-13  Simon Josefsson  <jas@extundo.com>
84899
84900         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
84901         Move memory allocation outside of loop.
84902
84903 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
84904
84905         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
84906         intermediate directory is in a read-only file system.  Problem
84907         reported by Eric Blake.
84908
84909 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
84910
84911         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
84912
84913 2005-10-12  Simon Josefsson  <jas@extundo.com>
84914
84915         * tests/test-hmac-sha1.c: New file.
84916
84917         * modules/hmac-sha1-tests: New file.
84918
84919         * modules/hmac-sha1: New file.
84920
84921 2005-10-12  Simon Josefsson  <jas@extundo.com>
84922
84923         * modules/gc-sha1: New file.
84924
84925 2005-10-12  Simon Josefsson  <jas@extundo.com>
84926
84927         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
84928
84929         * tests/test-gc-pbkdf2-sha1.c: New file.
84930
84931 2005-10-12  Simon Josefsson  <jas@extundo.com>
84932
84933         * modules/gc-md5, modules/gc-hmac-md5: New files.
84934
84935         * modules/gc (Files): Remove md5, memxor and hmac files.
84936
84937 2005-10-12  Simon Josefsson  <jas@extundo.com>
84938
84939         * m4/gc-pbkdf2-sha1.m4: New file.
84940
84941         * m4/gc-hmac-sha1.m4: New file.
84942
84943         * m4/gc-sha1: New file.
84944
84945         * m4/hmac-sha1.m4: New file.
84946
84947 2005-10-12  Simon Josefsson  <jas@extundo.com>
84948
84949         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
84950
84951         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
84952
84953 2005-10-12  Simon Josefsson  <jas@extundo.com>
84954
84955         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
84956         suggested by Bruno Haible <bruno@clisp.org>.
84957
84958 2005-10-12  Simon Josefsson  <jas@extundo.com>
84959
84960         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
84961
84962 2005-10-12  Simon Josefsson  <jas@extundo.com>
84963
84964         * lib/gc-pbkdf2-sha1.c: New file.
84965
84966         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
84967
84968 2005-10-12  Simon Josefsson  <jas@extundo.com>
84969
84970         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
84971
84972         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
84973
84974 2005-10-12  Simon Josefsson  <jas@extundo.com>
84975
84976         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
84977         GC_USE_HMAC_MD5, respectively.
84978
84979         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
84980         (gc_md5): Fix typo.
84981
84982         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
84983
84984         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
84985
84986         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
84987
84988 2005-10-12  Bruno Haible  <bruno@clisp.org>
84989
84990         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
84991         Reported by Stepan Kasal <kasal@ucw.cz>.
84992
84993 2005-10-11  Simon Josefsson  <jas@extundo.com>
84994
84995         * tests/test-crc.c: New file.
84996
84997         * modules/crc, modules/crc-tests: New files.
84998
84999 2005-10-11  Simon Josefsson  <jas@extundo.com>
85000
85001         * m4/crc.m4: New file.
85002
85003 2005-10-11  Simon Josefsson  <jas@extundo.com>
85004
85005         * lib/gc.h: Add gc_hash and gc_hash_buffer.
85006
85007         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
85008
85009         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
85010
85011 2005-10-11  Simon Josefsson  <jas@extundo.com>
85012
85013         * lib/crc.h, lib/crc.c: New files.
85014
85015         * lib/gc.h (gc_hash_buffer): Add doc.
85016
85017 2005-10-11  Bruno Haible  <bruno@clisp.org>
85018
85019         * modules/c-strcasestr: New file.
85020         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
85021
85022 2005-10-11  Bruno Haible  <bruno@clisp.org>
85023
85024         * modules/c-strcase: New file.
85025         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
85026
85027 2005-10-11  Bruno Haible  <bruno@clisp.org>
85028
85029         * lib/strcasecmp.c: Include limits.h.
85030         (strcasecmp): Avoid integer overflow on exotic platforms.
85031         * lib/strncasecmp.c: Include limits.h.
85032         (strncasecmp): Avoid integer overflow on exotic platforms.
85033         Reported by Paul Eggert.
85034
85035 2005-10-11  Bruno Haible  <bruno@clisp.org>
85036
85037         * lib/c-strcasestr.h: New file, from GNU gettext.
85038         * lib/c-strcasestr.c: New file, from GNU gettext.
85039
85040 2005-10-11  Bruno Haible  <bruno@clisp.org>
85041
85042         * lib/c-strcase.h: New file, from GNU gettext.
85043         * lib/c-strcasecmp.c: New file, from GNU gettext.
85044         * lib/c-strncasecmp.c: New file, from GNU gettext.
85045
85046 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85047
85048         * modules/mempcpy (License): GPL -> LGPL.
85049         * modules/strchrnul (License): Likewise.
85050         * modules/sysexits (License): Likewise.
85051
85052 2005-10-08  Simon Josefsson  <jas@extundo.com>
85053
85054         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
85055
85056 2005-10-07  Simon Josefsson  <jas@extundo.com>
85057
85058         * m4/memxor.m4: Remove gl_C_RESTRICT call.
85059
85060 2005-10-06  Simon Josefsson  <jas@extundo.com>
85061
85062         * tests/test-hmac-md5.c: New file.
85063
85064         * modules/hmac-md5-tests: New file.
85065
85066         * modules/hmac-md5: New file.
85067
85068 2005-10-06  Simon Josefsson  <jas@extundo.com>
85069
85070         * m4/hmac-md5.m4: New file.
85071
85072         * m4/memxor.m4: Require gl_C_RESTRICT.
85073
85074 2005-10-06  Simon Josefsson  <jas@extundo.com>
85075
85076         * lib/memxor.c (memxor): Avoid casts and warnings.
85077
85078 2005-10-06  Simon Josefsson  <jas@extundo.com>
85079
85080         * lib/hmac-md5.c: New file.
85081
85082         * lib/hmac.h: New file.
85083
85084 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85085
85086         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
85087         promotes to int, not unsigned int, to catch the AIX 5.3
85088         compiler bug.
85089
85090 2005-10-05  Simon Josefsson  <jas@extundo.com>
85091
85092         * modules/memxor: New file.
85093
85094         * modules/iconv (Files): Move config.rpath to havelib, it is used
85095         there.
85096
85097         * modules/havelib (Files): Add config.rpath.
85098
85099 2005-10-05  Simon Josefsson  <jas@extundo.com>
85100
85101         * m4/memxor.m4: New file.
85102
85103 2005-10-05  Simon Josefsson  <jas@extundo.com>
85104
85105         * lib/memxor.c (memxor): Fix compiler error.
85106
85107         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
85108         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
85109
85110         * lib/memxor.h, lib/memxor.c: New files.
85111
85112         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
85113         we assume all systems have it, suggested by Jim Meyering
85114         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
85115         any systems lack sys/socket.h; mingw32 is known to lack it, but we
85116         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
85117         same reasons.
85118
85119 2005-10-05  Simon Josefsson  <jas@extundo.com>
85120
85121         * config/srclist.txt: Add glibc bug 1423 for md5.h.
85122
85123 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
85124
85125         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
85126         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
85127         needed, since the source code now assumes these .h files.
85128
85129 2005-10-05  Derek Price  <derek@ximbiot.com>
85130
85131         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
85132
85133 2005-10-05  Bruno Haible  <bruno@clisp.org>
85134
85135         * modules/stdint (License): Change to LGPL.
85136
85137 2005-10-04  Simon Josefsson  <jas@extundo.com>
85138
85139         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
85140         D. Baushke" <mdb@gnu.org>.
85141
85142 2005-10-04  Bruno Haible  <bruno@clisp.org>
85143
85144         * lib/verify.h (verify_true): Provide alternative definition for C++.
85145
85146 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
85147
85148         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
85149         (SSIZE_MAX): New macro, if not already defined.
85150         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
85151         than 2 GiB.
85152
85153 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85154
85155         Sync from coreutils.
85156         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
85157         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
85158         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
85159         ULLONG_MAX doesn't work with 2.7.2.1.
85160
85161 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85162
85163         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
85164         From Ben Pfaff.
85165
85166         * modules/exclude (Depends-on): Depend on verify.
85167         * modules/strtoimax (Depends-on): Likewise.
85168         * modules/utimecmp (Depends-on): Likewise.
85169
85170 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85171
85172         * lib/exclude.c: Include verify.h.
85173         (verify): Remove.  All callers changed to use verify.h's version.
85174         * lib/strtoimax.c: Likewise.
85175         * lib/utimecmp.c: Likewis.e
85176
85177         Sync from coreutils.
85178         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
85179         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
85180         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
85181         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
85182         bother returning ENOSYS if settimeofday or stime fails; just let
85183         them return whatever errno they want to return.
85184         * lib/utimens.c: Include unistd.h, for dup2.
85185         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
85186         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
85187
85188 2005-10-02  Jim Meyering  <jim@meyering.net>
85189
85190         Sync from coreutils.
85191         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
85192         from glibc-2.2.5 that fails for read-only files.
85193
85194 2005-10-02  Jim Meyering  <jim@meyering.net>
85195
85196         Sync from coreutils.
85197         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
85198         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
85199         `#if HAVE_CONFIG_H'.
85200         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
85201         Remove AT_FDCWD test.
85202         Do not consume the fd unless successful.
85203         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
85204         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
85205         block, so that we don't even try to compile it if settimeofday is
85206         available.  This works around a compilation failure on OSF1 V5.1,
85207         due to stime requiring a `long int*' while tv_sec is `int'.
85208
85209 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
85210
85211         Sync from coreutils.
85212         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
85213         against `yes', rather than just testing for nonempty.
85214
85215 2005-10-01  Simon Josefsson  <jas@extundo.com>
85216
85217         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
85218         and Darwin.
85219
85220         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
85221         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
85222         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
85223         freeaddrinfo and gai_strerror are declared by the POSIX headers.
85224         Check if struct addrinfo is declared.
85225
85226 2005-10-01  Simon Josefsson  <jas@extundo.com>
85227
85228         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
85229         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
85230         AI_* and EAI_* definitions.  Protect function declarations.
85231
85232 2005-10-01  Jim Meyering  <jim@meyering.net>
85233
85234         Sync from coreutils.
85235
85236         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
85237         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
85238         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
85239         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85240         in the inet and nsl libraries.  Required on Solaris 5.7.
85241
85242 2005-10-01  Jim Meyering  <jim@meyering.net>
85243
85244         Sync from coreutils.
85245         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85246         in the inet and nsl libraries.  Required on Solaris 5.7.
85247
85248 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
85249
85250         * lib/getdelim.c (getdelim): Remove unused variables.
85251
85252 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
85253
85254         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
85255         so that the code works even with ancient cpp.  Portability problem
85256         with GCC 2.7.2.1 reported by Thomas M.Ott.
85257
85258 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
85259
85260         * modules/regex (Depends-on): Add strcase.
85261
85262         * modules/gethostname (Licence): Change from GPL to LGPL, since
85263         gethostname.c is a trivial implementation of a standard library
85264         function.
85265         * modules/poll (License): Change from GPL to LGPL, since it's
85266         derived from LGPL code.
85267
85268 2005-09-27  Jim Meyering  <jim@meyering.net>
85269
85270         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
85271         HAVE_CONFIG_H.
85272
85273         * lib/intprops.h (signed_type_or_expr__): Define.
85274         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
85275         for unsigned types.
85276
85277 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
85278
85279         * lib/verify.h (verify_expr): Remove, replacing with:
85280         (verify_true): New macro that returns true instead of void.
85281         (verify_type__): Remove.
85282         (verify): Use verify_true rather than verify_type__.
85283
85284 2005-09-26  Bruno Haible  <bruno@clisp.org>
85285
85286         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
85287         is necessary.
85288         (lib_SOURCES): Remove mbchar.c.
85289         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
85290         (Files): Add m4/mbrtowc.m4.
85291         * modules/mbiter: Likewise.
85292         * modules/mbuiter: Likewise.
85293
85294 2005-09-26  Bruno Haible  <bruno@clisp.org>
85295
85296         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
85297         compile mbchar.c if they are not both present.
85298         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
85299         * m4/mbiter.m4 (gl_MBITER): Likewise.
85300         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
85301         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
85302         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
85303
85304 2005-09-25  Jim Meyering  <jim@meyering.net>
85305
85306         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
85307         also uses socklen_t.
85308
85309 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
85310
85311         * lib/utimens.c (ENOSYS): Define if not already defined.
85312         (futimens): Support having a null PATH if the file descriptor
85313         is nonnegative.
85314
85315         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
85316         Remove.
85317         (__attribute): Define to empty unless GCC 3.1 or later.
85318         This works around a core dump on OpenBSD 3.4, which has GCC
85319         2.95.3, which dumps core when given __attribute__(()).  It also
85320         simplifies other tests, since we really don't want to bother with
85321         worrying about which ancient version of GCC supported what.
85322         Original problem reported by Yoann Vandoorselaere, with part of
85323         the fix suggested by Derek Price.
85324
85325 2005-09-24  Jim Meyering  <jim@meyering.net>
85326
85327         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
85328         so we can once again use a positive bitfield width of 1 -- now we
85329         don't have to explain why we were using a bitfield width of 2.
85330
85331 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85332
85333         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
85334         and similarly for the other external symbols.  Problem reported
85335         by James Gallager.
85336
85337         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
85338         bug reported by Jim Meyering.
85339
85340         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
85341         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
85342         not needed, since socklen is a prerequisite module.
85343
85344 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85345
85346         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
85347         Problem reported by Eric Blake.
85348         (getaddrinfo): Initialize se so that it's not garbage.
85349         Redo internal storage allocation so that it doesn't make unportable
85350         assumptions about alignment.
85351         Fix a memory leak.
85352
85353         * lib/utimens.c (futimens): Use futimesat if available.
85354         Prefer it to futimes since it doesn't have the futimes bug.
85355
85356         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
85357         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
85358         Instead, declare a function that returns a pointer to an array,
85359         and use verify_type__ to declare the size of the array.
85360         Problem and germ of a solution reported by Bruno Haible.
85361         (verify_type__): Use 2, not 1, for bitfield size, to avoid
85362         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
85363
85364 2005-09-23  Jim Meyering  <jim@meyering.net>
85365
85366         Sync from coreutils.
85367         Correct build failure (socklen_t not defined) on at least
85368         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
85369         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
85370
85371 2005-09-23  Jim Meyering  <jim@meyering.net>
85372
85373         * modules/getaddrinfo (Depends-on): Add socklen.
85374
85375 2005-09-23  Bruno Haible  <bruno@clisp.org>
85376
85377         * tests/test-verify.c: New file.
85378
85379 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85380
85381         Sync from coreutils.
85382
85383         * modules/argmatch (Depends-on): Add verify.
85384         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
85385         unistd-safer.
85386         * modules/save-cwd (Depends-on): Likewise.
85387
85388         * modules/openat (Files): Add lib/openat-die.c.
85389         (Depends-on): Remove error, exitfail.
85390         Add dirname.
85391
85392         * modules/verify: New file.
85393         * MODULES.html.sh (Diagnostics <assert.h>): New section,
85394         with "verify" module.
85395
85396 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85397
85398         Sync from coreutils.
85399
85400         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
85401         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
85402         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
85403         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
85404         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
85405         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
85406         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
85407         Don't bother checking for string.h, stdlib.h, unistd.h.
85408         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
85409         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
85410         module's job.
85411         * m4/jm-macros.m4 (gl_MACROS): Likewise.
85412         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
85413
85414         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
85415         (gl_GETDATE): Use it.
85416
85417         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
85418
85419 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85420
85421         Sync from coreutils.
85422
85423         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
85424         stat-time.h.
85425         * lib/argmatch.h: Include verify.h
85426         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
85427         (ARGMATCH_ASSERT): Remove; unused.
85428         * lib/canonicalize.c: Assume STDC_HEADERS.
85429         * lib/exclude.c: Include "strcase.h".
85430         * lib/regex_internal.h [!defined _LIBC]: Likewise.
85431         * lib/getusershell.c: Include stdio--.h rather than stdio.h
85432         and stdio-safer.h.
85433         (getusershell): Call fopen, not fopen_safer.
85434         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
85435         Do not include unistd-safer.h.
85436         (save_cwd): Don't call fd_safer; no longer needed
85437         now that we include fcntl--.h.
85438
85439         * lib/getdate.y (relative_time): New type.
85440         (RELATIVE_TIME_0): New constant.
85441         (parser_control): Use relative_time instead of doing it ourselves.
85442         (%union): Add new relative_time rel member.
85443         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
85444         Now typeless.
85445         (relunit, relunit_snumber): Now of type rel.
85446         (zone, rel, relunit, get_date): Adjust to above changes.
85447
85448         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
85449         Do not include unistd-safer.h.
85450         (getloadavg): Don't call fd_safer; no longer needed
85451         now that we include fcntl--.h.
85452
85453         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
85454         (make_dir_parents): Treat ENOSYS like EEXIST.
85455
85456         Improve quality of diagnostics on restore_cwd failure.
85457         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
85458         (make_dir_parents): Last arg is now int * (for errno), not bool *.
85459         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
85460         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
85461         each time through the loop.  Do not diagnose restore_cwd failure;
85462         that is the caller's job (and perhaps the caller does not care).
85463
85464         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
85465         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
85466         If the file already exists but is not a directory, don't bother
85467         to try to make its parents.
85468         Close potential file descriptor leak if we can't chdir("/") (!).
85469         Don't always return true if chdir($PWD) fails; return true only
85470         if the requested action was done successfully (except for the
85471         chdir($PWD)).
85472         Don't log final directory unless we actually made it.
85473         Refactor to avoid duplicate code to fix up permissions.
85474         Don't attempt to fix up parent permissions if chdir($PWD) fails.
85475
85476         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
85477         to make it a bit faster and (I hope) clearer.
85478         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
85479         Fix bug in formats like %2N.
85480
85481         * lib/verify.h: New file.
85482
85483 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85484
85485         Sync from coreutils.
85486         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
85487
85488 2005-09-22  Jim Meyering  <jim@meyering.net>
85489
85490         Sync from coreutils.
85491
85492         * m4/lstat.m4 (gl_FUNC_LSTAT):
85493         Use AC_LIBSOURCES to require lstat.c and lstat.h.
85494         Remove obsolete comment.
85495         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
85496         * m4/xstrtod.m4: Likewise.
85497
85498         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
85499
85500 2005-09-22  Jim Meyering  <jim@meyering.net>
85501
85502         Sync from coreutils.
85503
85504         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
85505
85506         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
85507         the .tm_year member, since otherwise gcc-4.0 would now warn about
85508         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
85509
85510         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
85511         order to avoid an unsuppressible warning from gcc on 64-bit systems.
85512
85513         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
85514         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
85515         when run in a time zone for which daylight savings time is in effect
85516         for the starting date.
85517
85518         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
85519         stop us from restricting permissions of just-created absolute-named
85520         directories.
85521         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
85522         to restore initial working directory.
85523         * lib/mkdir-p.c (make_dir_parents): New parameter:
85524         different_working_dir, to tell caller if/when we change the working
85525         directory and are unable to return to the initial one.
85526         * lib/mkdir-p.h (make_dir_parents): Update prototype.
85527         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
85528         `return false'.  This fixes a bug introduced on 2004-07-30.
85529
85530         * lib/openat.c (fdopendir): Be sure to close the supplied
85531         file descriptor before returning.  This makes our replacement
85532         implementation a little closer to Solaris's, where fdopendir
85533         ties the file descriptor to the returned DIR* pointer.
85534         * lib/openat.c (unlinkat): New function.
85535         * lib/openat.h (unlinkat): Add prototype.
85536         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
85537         (openat_restore_fail): Rename from openat_restore_die.
85538         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
85539
85540         Provide an alternative to exiting immediately upon save_cwd or
85541         restore_cwd failure.  Now, an application can arrange e.g.,
85542         to perform a longjump in that case.
85543         * lib/openat.c: Include dirname.h.
85544         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
85545         (rpl_openat, fdopendir, fstatat): Call openat_save_die
85546         and openat_restore_die rather than calling error directly.
85547         Don't include "error.h" or "exitfail.h"; they're no longer needed.
85548
85549         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
85550         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
85551         define.
85552
85553         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
85554         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
85555                             int utc, int nanoseconds);
85556         Background:
85557         date should not have to allocate a megabyte of virtual memory to
85558         handle a format argument like +%1048575T.  When implemented with
85559         strftime, it must allocate such a buffer, use strftime to fill it
85560         in, print it, then free it.
85561         With fprintftime, it simply prints everything and exits.
85562         With no need for memory allocation, that's one fewer way to fail.
85563         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
85564         optional field width, not before, so we accept %9:z, not %:9z.
85565         (my_strftime): Be sure to use L_('x') for literals.
85566
85567         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
85568         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
85569         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
85570         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
85571         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
85572         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
85573         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
85574         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
85575         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
85576         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
85577         * lib/xgethostname.c, lib/xreadlink.c:
85578         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
85579
85580         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
85581         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
85582         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
85583         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85584         and don't include <sys/file.h>).
85585
85586 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
85587
85588         Sync from coreutils.
85589
85590         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
85591         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
85592         [!LDAV_DONE]: Avoid unused variable warning.
85593
85594 2005-09-21  Bruno Haible  <bruno@clisp.org>
85595
85596         * lib/unicodeio.h (unicode_to_mb): New declaration.
85597
85598 2005-09-20  Derek Price  <derek@ximbiot.com>
85599
85600         * lib/getaddrinfo.c: Don't include <netdb.h> included from
85601         getaddrinfo.h.
85602
85603 2005-09-20  Bruno Haible  <bruno@clisp.org>
85604
85605         * gnulib-tool: Remove trailing slashes from the values specified for
85606         --source-base, --m4-base, --tests-base, --aux-dir.
85607         Suggested by Simon Josefsson <jas@extundo.com>.
85608
85609 2005-09-20  Bruno Haible  <bruno@clisp.org>
85610
85611         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
85612         func_modules_to_filelist, func_import, func_create_testdir): Make all
85613         sorting results locale-independent, so that gnulib-cache.m4 doesn't
85614         change when gnulib-tool is invoked in a different locale.
85615
85616 2005-09-19  Simon Josefsson  <jas@extundo.com>
85617
85618         * m4/socklen.m4: Fix typo.
85619
85620 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85621
85622         Use a consistent style for including <config.h>.
85623         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
85624         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
85625         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
85626         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
85627         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
85628         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
85629         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
85630         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
85631         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
85632         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
85633         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
85634         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
85635         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
85636         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
85637         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
85638         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
85639         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
85640         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
85641         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
85642         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
85643         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
85644         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
85645         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
85646         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
85647         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
85648         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
85649         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
85650         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
85651         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
85652         lib/xstrtoumax.c, lib/yesno.c:
85653         Standardize inclusion of config.h.
85654         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
85655         lib/inttostr.h:  Removed inclusion of config.h from header files.
85656         * lib/inttostr.c:  Adjusted in-tree users.
85657         * lib/timespec.h: Remove superfluous warning to include config.h.
85658         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
85659         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
85660         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
85661         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
85662         config.h with HAVE_CONFIG_H.
85663
85664 2005-09-19  Jim Meyering  <jim@meyering.net>
85665
85666         * modules/pathmax (License): Change to LGPL.
85667
85668 2005-09-19  Derek Price  <derek@ximbiot.com>
85669
85670         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
85671
85672 2005-09-19  Bruno Haible  <bruno@clisp.org>
85673
85674         * gnulib-tool (import): Provide default for --tests-base.
85675
85676 2005-09-19  Bruno Haible  <bruno@clisp.org>
85677
85678         * doc/quote.texi: New file, extracted from gnulib.texi.
85679         * doc/ctime.texi: New file, extracted from gnulib.texi.
85680         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
85681         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
85682         * doc/gnulib.texi: Include them.
85683
85684 2005-09-18  Bruno Haible  <bruno@clisp.org>
85685
85686         Portability fix.
85687         * gnulib-tool (func_readlink): New function.
85688         (func_ln_if_changed): Use it.
85689
85690 2005-09-18  Bruno Haible  <bruno@clisp.org>
85691
85692         * gnulib-tool: Support --with-tests also with --import.
85693         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
85694         (func_import): Use variables $testsbase and $inctests. Emit a
85695         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
85696         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
85697         SUBDIRS += $testsdir.
85698         (func_create_testdir): Update.
85699
85700 2005-09-18  Bruno Haible  <bruno@clisp.org>
85701
85702         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
85703         instead of $dry_run.
85704         (func_cp_if_changed, func_mv_if_changed): Remove functions.
85705         (func_ln_if_changed): Don't handle dry-run here.
85706         (func_import): In dry-run mode, detect more precisely which actions
85707         would be performed, and don't use "...ing" verbs.
85708
85709 2005-09-18  Bruno Haible  <bruno@clisp.org>
85710
85711         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
85712         (func_import): Use join on two temporary files instead of three nested
85713         loops, in order to determine which files are new or old.
85714
85715 2005-09-18  Bruno Haible  <bruno@clisp.org>
85716
85717         * gnulib-tool (func_import): Comment out code that spits out the
85718         new files with --dry-run.
85719
85720 2005-09-18  Bruno Haible  <bruno@clisp.org>
85721
85722         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
85723
85724 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85725
85726         * lib/stat-time.h: New file.
85727         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
85728         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
85729         in a different way.
85730         (timespec_cmp): New function.
85731         * lib/utimecmp.c: Include stat-time.h.
85732         (SYSCALL_RESOLUTION): Depend on whether various struct stat
85733         members exist, not on the obsolescent ST_MTIM_NSEC.
85734         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
85735
85736 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85737
85738         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
85739
85740 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85741
85742         * MODULES.html.sh (File system functions): Add stat-time.
85743         * modules/stat-time: New file.
85744         * modules/timespec (Files): Remove m4/st_mtim.m4; this
85745         is now done in a different way, by the stat-time module.
85746         * modules/utimecmp (Depends-on): Add stat-time.
85747
85748 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
85749
85750         * m4/st_mtim.m4: Remove.  Superseded by...
85751         * m4/stat-time.m4: New file.
85752         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
85753         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
85754
85755 2005-09-15  Derek Price  <derek@ximbiot.com>
85756
85757         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
85758
85759 2005-09-15  Derek Price  <derek@ximbiot.com>
85760
85761         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
85762         * lib/regex_internal.c: Ditto, using this...
85763         (__GNUC_PREREQ): ...new macro.
85764         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
85765         using...
85766         (__GNUC_PREREQ): ...this new macro.
85767
85768         * lib/strstr.h: Include string.h. Define strstr as a macro here.
85769
85770 2005-09-15  Derek Price  <derek@ximbiot.com>
85771             Paul Eggert  <eggert@cs.ucla.edu>
85772
85773         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
85774         changes, consolidating in...
85775         * lib/regex_internal.h: ...this file.
85776
85777 2005-09-13  Jim Meyering  <jim@meyering.net>
85778
85779         * lib/canon-host.c: Filter through gnu indent and reword comments
85780         slightly.
85781         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
85782
85783 2005-09-13  Derek Price  <derek@ximbiot.com>
85784
85785         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
85786         failure.
85787         Reported by Jim Meyering  <jim@meyering.net>.
85788
85789 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85790
85791         * lib/base64.c: Typo.
85792         (base64_encode): Put b64str in initialized data section.
85793
85794 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
85795
85796         Merge glibc and coreutils changes into gnulib, plus a few
85797         extra fixes.
85798         * lib/md5.c: Use #error rather than a string.
85799         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
85800         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
85801         (__attribute__): Define to empty for non recent-GCC.
85802         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
85803         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
85804         Renamed from their non-__ counterparts, with new macros replacing
85805         them if not _LIBC.  Add __THROW attribute.
85806         (rol): Remove.
85807         (struct md5_ctx): Align buffer if using GCC.
85808         * lib/sha1.h (struct sha1_ctx): Likewise.
85809         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
85810         The old name was backwards.
85811         (NOTSWAP): Remove; not used.
85812         (rol): New macro, moved here from md5.h.
85813         (sha1_process_block): Remove a FIXME that doesn't make sense.
85814
85815 2005-09-12  Derek Price  <derek@ximbiot.com>
85816
85817         Return usable errors from canon-host.
85818         * lib/canon-host.h: New file.
85819         * lib/canon-host.c (canon_host): Wrap...
85820         (canon_host_r): ...this new function, which now relies exclusively on
85821         getaddrinfo.
85822         (ch_strerror): New function.
85823         (last_cherror): New global.
85824         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
85825         interface.
85826         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
85827         void *.
85828         (freeaddrinfo): Free ai->ai_canonname when set.
85829
85830 2005-09-12  Derek Price  <derek@ximbiot.com>
85831
85832         Make canon-host require getaddrinfo.
85833         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
85834         AC_LIBSOURCE canon-host.h.  Call...
85835         (gl_PREREQ_CANON_HOST): ...this new function, which requires
85836         gl_GETADDRINFO.
85837         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
85838
85839 2005-09-12  Derek Price  <derek@ximbiot.com>
85840
85841         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
85842         LGPL.
85843         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
85844
85845 2005-09-12  Derek Price  <derek@ximbiot.com>
85846
85847         * lib/gai_strerror.c: Include config.h when available.  Include
85848         getaddrinfo.h before other headers to test interface.
85849         Reported by Larry Jones <lawrence.jones@ugs.com>.
85850
85851 2005-09-12  Derek Price  <derek@ximbiot.com>
85852             Paul Eggert  <eggert@cs.ucla.edu>
85853
85854         * modules/glob (Files): Add glob-libc.h.
85855
85856 2005-09-12  Derek Price  <derek@ximbiot.com>
85857             Paul Eggert  <eggert@cs.ucla.edu>
85858
85859         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
85860         glob_.h, glob-libc.h.
85861         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
85862
85863 2005-09-12  Derek Price  <derek@ximbiot.com>
85864             Paul Eggert  <eggert@cs.ucla.edu>
85865
85866         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
85867         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
85868         protecting things that should be done only in gnulib contexts.
85869         * lib/glob_.h: New file, containing only the glob things needed for
85870         gnulib.
85871         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
85872         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
85873         (glob, globfree, glob_pattern_p): Now defined simply in terms of
85874         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
85875         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
85876         and to respect the namespace rules better.
85877
85878 2005-09-08  Simon Josefsson  <jas@extundo.com>
85879
85880         * modules/socklen: New file.
85881
85882 2005-09-08  Simon Josefsson  <jas@extundo.com>
85883
85884         * m4/socklen.m4: New file.
85885
85886 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85887
85888         * modules/utimens (Files): Add m4/utimbuf.m4, since
85889         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
85890         Reported by Sergey Poznyakoff.
85891
85892 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85893
85894         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
85895         definitions, since that's the preferred style in glibc.
85896         Fix a minor spacing issue, and update copyright notice to match
85897         glibc's.
85898
85899 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85900
85901         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
85902
85903 2005-09-06  Simon Josefsson  <jas@extundo.com>
85904
85905         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
85906         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
85907
85908 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85909
85910         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
85911         warning.
85912
85913 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85914
85915         * config/srclist.txt: Add glibc bug 1302.
85916
85917 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
85918
85919         Change bitset word type from unsigned int to unsigned long int,
85920         as this has better performance on typical 64-bit hosts.
85921         Port bitset code to hosts with unusual word sizes.
85922         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
85923         (build_collating_symbol):
85924         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
85925         argument is a bitset.  This is merely a style issue, but it makes
85926         it clearer that an entire array is expected.
85927         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
85928         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
85929         Port to the case where bitset_word is not the same as unsigned int.
85930         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85931         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
85932         Likewise.
85933         * lib/regexec.c (check_dst_limits_calc_pos_1,
85934         check_subexp_matching_top):
85935         (build_trtable, group_nodes_into_DFAstates):
85936         Likewise.
85937         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
85938         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
85939         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
85940         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
85941         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
85942         * lib/regcomp.c (optimize_subexps, lower_subexp):
85943         Work even if bitset_word has holes in its bitwise representation.
85944         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
85945         * lib/regexec.c (check_dst_limits_calc_pos_1,
85946         check_subexp_matching_top):
85947         Likewise.
85948         * lib/regex_internal.c (re_string_reconstruct):
85949         Don't assume UCHAR_MAX == 255.
85950         * lib/regex_internal.h (bitset_set_all): Likewise.
85951         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
85952         All uses changed.
85953         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
85954         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
85955         All uses changed.
85956         (BITSET_WORD_MAX): New macro.
85957         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
85958         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
85959         (bitset_empty, bitset_copy):
85960         Prefer sizeof (bitset) to multiplying it out ourselves.
85961         (bitset_not_merge): Remove; unused.
85962         (bitset_contain): Return bool, not unsigned int with one bit on.
85963         All callers changed.
85964         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
85965         alignment than re_node_set; do this by defining a new internal
85966         type struct dests_alloc and using it to allocate memory.
85967
85968 2005-09-05  Bruno Haible  <bruno@clisp.org>
85969
85970         * gnulib-tool (func_import): Fix comparison in handling of symbolic
85971         links.
85972
85973 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
85974
85975         * modules/size_max (Makefile.am): Add size_max.h
85976
85977 2005-09-04  Derek Price  <derek@ximbiot.com>
85978
85979         * gnulib-tool (func_import): Fix reversed $symbolic logic.
85980
85981 2005-09-03  Simon Josefsson  <jas@extundo.com>
85982
85983         * gnulib-tool: Fix typo.
85984
85985 2005-09-03  Simon Josefsson  <jas@extundo.com>
85986
85987         * config/srclist.txt: Add glibc bug 1293.
85988
85989 2005-09-03  Derek Price  <derek@ximbiot.com>
85990
85991         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
85992         From Larry Jones <lawrence.jones@ugs.com>.
85993
85994 2005-09-02  Simon Josefsson  <jas@extundo.com>
85995
85996         * modules/socklen: New file.
85997
85998 2005-09-02  Simon Josefsson  <jas@extundo.com>
85999
86000         * modules/havelib: New module.
86001
86002         * modules/gettext, modules/iconv, modules/lock, modules/readline:
86003         Use havelib.
86004
86005 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86006
86007         Check for arithmetic overflow when calculating sizes, to prevent
86008         some buffer-overflow issues.  These patches are conservative, in the
86009         sense that when I couldn't determine whether an overflow was possible,
86010         I inserted a run-time check.
86011         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
86012         macros.
86013         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
86014         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
86015         (re_xnrealloc, re_x2nrealloc): New inline functions.
86016         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
86017         parse_bracket_exp):
86018         (build_equiv_class, build_charclass): Check for arithmetic overflow
86019         in size expression calculations.
86020         * lib/regex_internal.c (re_string_realloc_buffers):
86021         (build_wcs_upper_buffer, re_node_set_add_intersect):
86022         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
86023         (re_dfa_add_node, register_state): Likewise.
86024         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
86025         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
86026         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
86027         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
86028
86029 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86030
86031         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86032         m4/ulonglong.m4.  Problem reported by Martin Lambers.
86033
86034 2005-09-02  Bruno Haible  <bruno@clisp.org>
86035
86036         Support for lib vs. lib64 distinction on biarch platforms.
86037         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
86038         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
86039         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
86040
86041 2005-09-02  Bruno Haible  <bruno@clisp.org>
86042
86043         * gnulib-tool (import): In the other first-use case, provide defaults
86044         as well.
86045
86046 2005-09-02  Bruno Haible  <bruno@clisp.org>
86047
86048         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
86049         patches not yet found in the latest gettext release.
86050
86051 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86052
86053         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
86054         to avoid a collision with bits/local_lim.h in glibc.
86055         All uses changed.  Problem reported by Dmitry V. Levin in
86056         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
86057
86058         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
86059         bugs in int versus size_t comparisons.
86060         (re_string_context_at): Fix bug where the code assumed that
86061         Idx is signed.
86062
86063         Use bool where appropriate.
86064         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
86065         All callers changed.
86066         (calc_eclosure_iter): Likewise, for ROOT arg.
86067         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
86068         (build_charclass_op): Likewise, for NON_MATCH arg.
86069         * lib/regex_internal.c (re_string_allocate, re_string_construct):
86070         (re_string_construct_common): Likewise, for ICASE arg.
86071         * lib/regexec.c (re_search_2_stub, re_search_stub):
86072         Likewise, for RET_LEN arg.
86073         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
86074         (set_regs): Likewise, for FL_BACKTRACK arg.
86075         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
86076         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
86077         (calc_eclosure_iter, parse_bracket_exp):
86078         Use bool for internal variables that are booleans.
86079         * lib/regexec.c (re_search_internal, check_matching,
86080         proceed_next_node):
86081         (set_regs, build_sifted_states, sift_states_bkref):
86082         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
86083         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86084         (find_collation_sequence_value):
86085         Likewise.
86086         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
86087         (re_node_set_compare):
86088         Return bool, not int. All callers changed.
86089         * lib/regexec.c (check_halt_node_context, check_dst_limits):
86090         (build_trtable, check_node_accept): Likewise.
86091         * lib/regex_internal.h: Include stdbool.h.
86092
86093         Fix bugs uncovered when converting to bool.
86094         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
86095         failure instead of charging ahead blindly.
86096         * lib/regex_internal.c (register_state): Likewise.
86097         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
86098         for freeing internal storage.
86099         (group_nodes_into_DFA_states): Use unsigned int, not int, for
86100         bitset pieces used as boolean, to avoid undefined behavior
86101         on hosts that do int overflow checking.
86102
86103 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86104
86105         * config/srclist.txt: Add glibc bugs 1285-1287.
86106
86107 2005-09-01  Jim Meyering  <jim@meyering.net>
86108
86109         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
86110         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
86111         Require gl_STAT_MACROS, too.
86112
86113 2005-09-01  Bruno Haible  <bruno@clisp.org>
86114
86115         * gnulib-tool (import): In the first-use case, provide defaults.
86116
86117 2005-09-01  Bruno Haible  <bruno@clisp.org>
86118
86119         * gnulib-tool (func_import): Remove the .tmp files.
86120
86121 2005-09-01  Bruno Haible  <bruno@clisp.org>
86122
86123         * gnulib-tool (func_import): Fix handling of symbolic links.
86124
86125 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86126
86127         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
86128         old glibc regex code mishandles strings longer than 2**31 bytes.
86129         This patch fixes this when the regex code is used in gnulib
86130         (i.e., outside glibc).
86131
86132         This patch should not affect the use of the regex code inside
86133         glibc.  No doubt this problem also needs to be handled for glibc
86134         as well, but the result will be an incompatible change to the
86135         glibc ABI, and the old ABI will have to be supported too.  That
86136         can be the the subject for another patch.
86137
86138         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
86139         governing whether the rest of this patch is active.  By default,
86140         the macro is disabled and the patch has no effect.
86141         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
86142         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
86143         (struct re_pattern_buffer, re_search, re_search_2, re_match):
86144         (re_match_2, re_set_registers): Use the new types.
86145         * lib/regex_internal.h (Idx, re_hashval_t): New types.
86146         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
86147         New macros.
86148         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
86149         (re_string_context_at, bin_tree_t, re_dfastate_t):
86150         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
86151         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
86152         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
86153         (re_string_char_size_at, re_string_wchar_at):
86154         (re_string_elem_size_at):
86155         Use the new types and macros to port to 64-bit hosts.
86156         Use unsigned types for internal values, so that the code
86157         mostly works even for arrays larger than SSIZE_MAX.
86158         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
86159         (search_duplicated_node, calc_eclosure_iter, fetch_number):
86160         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
86161         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
86162         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
86163         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
86164         (calc_inveclosure, parse_dup_op, build_range_exp):
86165         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
86166         (fetch_number, create_token_tree, mark_opt_subexp):
86167         Likewise.
86168         * lib/regex_internal.c (re_string_construct_common,
86169         create_ci_newstate):
86170         (create_cd_newstate, re_string_allocate, re_string_construct):
86171         (re_string_realloc_buffers, build_wcs_upper_buffer):
86172         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86173         (re_string_reconstruct, re_string_peek_byte_case):
86174         (re_string_fetch_byte_case, re_string_context_at):
86175         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86176         (re_node_set_init_copy, re_node_set_add_intersect):
86177         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86178         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86179         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86180         (re_acquire_state, re_acquire_state_context, register_state):
86181         Likewise.
86182         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
86183         search_cur_bkref_entry):
86184         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
86185         (re_search_internal, re_search_2_stub, re_search_stub)
86186         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
86187         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
86188         (update_cur_sifted_state, check_dst_limits):
86189         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86190         (check_subexp_limits, sift_states_bkref, merge_state_array):
86191         (check_subexp_matching_top, get_subexp, get_subexp_sub):
86192         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
86193         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86194         (expand_bkref_cache, check_node_accept_bytes):
86195         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
86196         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
86197         (acquire_init_state_context, check_halt_node_context):
86198         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
86199         (sift_states_backward, clean_state_log_if_needed):
86200         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
86201         (find_recover_state, transit_state_sb, transit_state_mb):
86202         (transit_state_bkref, build_trtable, match_ctx_clean):
86203         Likewise.
86204         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
86205         to work around an assumption that REG_MISSING is negative.
86206
86207         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
86208         (seek_collating_symbol_entry) [defined _LIBC]:
86209         (lookup_collation_sequence_value) [defined _LIBC]:
86210         (build_range_exp, build_collating_symbol) [defined _LIBC]:
86211         Use prototypes rather than old-style function definitions.
86212         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
86213         (transit_state_sb) [0]:
86214         (find_collation_sequence_value) [defined _LIBC]: Likewise.
86215
86216         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
86217         rm_eo.
86218
86219         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
86220         (optimize_subexps, lower_subexp):
86221         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
86222         since the signed shift might overflow.  Use 1u<<31 instead.
86223         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86224         Likewise.
86225         * lib/regexec.c (check_dst_limits_calc_pos_1,
86226         check_subexp_matching_top): Likewise.
86227
86228         * lib/regcomp.c (optimize_subexps, lower_subexp):
86229         Use CHAR_BIT rather than 8, for clarity.
86230         * lib/regexec.c (check_dst_limits_calc_pos_1):
86231         (check_subexp_matching_top): Likewise.
86232         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
86233         have to worry about portability issues when shifting it left.
86234         Remove no-longer-needed test for table_size > 0.
86235         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
86236         in a word, as the resulting behavior is undefined.
86237         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
86238         in one case, a <= should have been an <, and in another case the
86239         whole test was missing.
86240         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
86241         the standard name CHAR_BIT.
86242         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
86243         this is not true on one's complement and signed-magnitude hosts.
86244
86245         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
86246         next_last_offset.
86247         (struct re_dfa_t): Remove unused member states_alloc.
86248         * lib/regcomp.c (init_dfa): Don't initialize unused members.
86249
86250 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86251
86252         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
86253         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
86254         and large-file glibc and in 32-bit large-file Solaris.
86255
86256 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86257
86258         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
86259         lengths fit in regoff_t; this isn't true if regoff_t is the same
86260         width as size_t.
86261         * lib/regex.c (re_search_internal): 5th arg is LAST_START
86262         (= START + RANGE) instead of RANGE.  This avoids overflow
86263         problems when regoff_t is the same width as size_t.
86264         All callers changed.
86265         (re_search_2_stub): Check for overflow when adding the
86266         sizes of the two strings.
86267         (re_search_stub): Check for overflow when adding START
86268         to RANGE; if it occurs, substitute the extreme value.
86269
86270 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86271
86272         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
86273
86274 2005-08-31  Jim Meyering  <jim@meyering.net>
86275
86276         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
86277         a pointer-to-const.
86278         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
86279         (register_state): Likewise.
86280         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
86281         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86282         (group_nodes_into_DFAstates): Likewise.
86283
86284 2005-08-31  Jim Meyering  <jim@meyering.net>
86285
86286         * check-module: Add a FIXME comment.
86287
86288 2005-08-31  Eric Blake  <ebb9@byu.net>
86289
86290         * modules/unistd-safer (Files): Add unistd--.h.
86291         * modules/stdio-safer (Files): Add stdio--.h.
86292
86293 2005-08-31  Derek Price  <derek@ximbiot.com>
86294
86295         * lib/getdelim.c (getdelim): Return EOF on EOF.
86296         Reported by Larry Jones <lawrence.jones@ugs.com>.
86297
86298 2005-08-31  Bruno Haible  <bruno@clisp.org>
86299
86300         Avoid unnecessary diffs in the generated lib/Makefile.am.
86301         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
86302         the generated files.
86303         (func_import): Don't set cmd.
86304
86305 2005-08-31  Bruno Haible  <bruno@clisp.org>
86306
86307         * lib/strstr.c: Include <stddef.h>, for NULL.
86308         * lib/strcasestr.c: Likewise.
86309         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86310
86311 2005-08-31  Bruno Haible  <bruno@clisp.org>
86312
86313         * gnulib-tool: New option --macro-prefix.
86314         (func_import): Use macro_prefix.
86315         (import): Handle option --macro-prefix.
86316
86317 2005-08-31  Bruno Haible  <bruno@clisp.org>
86318
86319         * gnulib-tool (import): Rename most ac_* variables to cached_*.
86320         Also use new variables cached_lgpl, cached_libtool.
86321
86322 2005-08-31  Bruno Haible  <bruno@clisp.org>
86323
86324         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
86325         always instantiating them.
86326
86327 2005-08-31  Bruno Haible  <bruno@clisp.org>
86328
86329         * gnulib-tool (func_import): Read the previous cached settings
86330         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
86331         earlier added by gnulib but are now dropped. Warn when a gnulib file
86332         overwrites a non-gnulib file.
86333
86334 2005-08-31  Bruno Haible  <bruno@clisp.org>
86335
86336         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
86337         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
86338         projects that don't keep autogenerated files in CVS. Put into
86339         actioncmd only the specified modules, not the transitive closure.
86340
86341 2005-08-31  Bruno Haible  <bruno@clisp.org>
86342
86343         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
86344         Create directories that shall be filled.
86345         (import): Don't look for gl_* macros in configure.ac. Recurse across
86346         all directories containing a gnulib-cache.m4 files, if meaningful.
86347
86348 2005-08-31  Bruno Haible  <bruno@clisp.org>
86349
86350         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
86351         (import): Set seen_libtool when we see gl_LIBTOOL.
86352
86353 2005-08-31  Bruno Haible  <bruno@clisp.org>
86354
86355         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
86356         declaration macro definitions from generated gnulib.m4.
86357
86358 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
86359
86360         * lib/iconvme.h: Add prototype for iconv_alloc.
86361
86362 2005-08-29  Simon Josefsson  <jas@extundo.com>
86363
86364         * lib/iconvme.c: Fix errno.
86365
86366 2005-08-29  Bruno Haible  <bruno@clisp.org>
86367
86368         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
86369         that it works when the directory contains spaces.
86370
86371 2005-08-29  Bruno Haible  <bruno@clisp.org>
86372
86373         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
86374
86375 2005-08-29  Bruno Haible  <bruno@clisp.org>
86376
86377         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
86378         Emit more advice.
86379
86380 2005-08-29  Bruno Haible  <bruno@clisp.org>
86381         and Stepan Kasal  <kasal@ucw.cz>
86382
86383         * check-module: If more parameters are given, check each of them
86384         separately; add more exceptions, as noted by Jim Meyering.
86385         (check_module): New procedure.
86386         (%exempt_header): Now contains all exceptions.
86387
86388 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
86389
86390         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
86391
86392 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86393
86394         * lib/iconvme.c: Split iconv_string into iconv_alloc.
86395
86396 2005-08-28  Bruno Haible  <bruno@clisp.org>
86397
86398         * m4/gnulib-tool.m4: New file.
86399
86400 2005-08-27  Jim Meyering  <jim@meyering.net>
86401
86402         * modules/unistd-safer (Files): Add pipe-safer.c.
86403         * modules/fcntl-safer (Files): Add creat-safer.c.
86404
86405 2005-08-27  Jim Meyering  <jim@meyering.net>
86406
86407         * m4/stdlib-safer.m4: New file.  From coreutils.
86408         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
86409         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
86410         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
86411         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
86412         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
86413
86414 2005-08-27  Jim Meyering  <jim@meyering.net>
86415
86416         * lib/fopen-safer.c: Merge minor changes from coreutils.
86417         * lib/dup-safer.c: Likewise.
86418         * lib/fd-safer.c: Likewise.
86419
86420         Merge from coreutils.
86421         * lib/stdio--.h: New file.
86422         * lib/stdlib--.h: New file.
86423         * lib/mkstemp-safer.c: New file.
86424
86425         GNU tar needs these.
86426         * lib/pipe-safer.c: New file.
86427         * lib/creat-safer.c: New file.
86428         * lib/fcntl--.h (creat): Define to creat_safer.
86429         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
86430         * lib/unistd--.h (pipe): Define to pipe_safer.
86431         * lib/unistd-safer.h: Declare pipe_safer.
86432
86433 2005-08-26  Simon Josefsson  <jas@extundo.com>
86434
86435         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
86436         Haible <bruno@clisp.org>.
86437
86438 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
86439
86440         * lib/regex_internal.h: Remove all references to
86441         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
86442         or better.
86443         (bitset_not, bitset_merge, bitset_not_merge):
86444         (bitset_mask, re_string_allocate, re_string_construct):
86445         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
86446         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
86447         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
86448         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
86449         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86450         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86451         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
86452         (re_acquire_state_context):
86453         Remove unnecessary forward decls.
86454         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
86455         Put __attribute at function definition,
86456         now that the function decl has been removed.
86457         * lib/regex_internal.c (re_string_peek_byte_case):
86458         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
86459         Likewise.
86460
86461 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
86462
86463         * m4/regex.m4: Add AC_PREREQ(2.50).
86464         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
86465
86466 2005-08-25  Simon Josefsson  <jas@extundo.com>
86467
86468         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
86469         __fsetlocking.
86470
86471 2005-08-25  Simon Josefsson  <jas@extundo.com>
86472
86473         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
86474         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
86475         GLIBC specific code.
86476
86477 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86478
86479         Make regex safe for g++.  This fixes one real bug (an "err"
86480         that should have been "*err").  g++ problem reported by
86481         Sam Steingold.
86482         * lib/regex_internal.h (re_calloc): New macro, consistent with
86483         re_malloc etc.  All callers of calloc changed to use re_calloc.
86484         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
86485         not int.  All callers changed.
86486         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
86487         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
86488         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
86489         (find_recover_state): Change "err" to "*err"; this fixes what
86490         appears to be a real bug.
86491         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
86492         versus int.
86493
86494 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86495
86496         * modules/regex (Depends-on): Add malloc, since the code
86497         assumes that !malloc(0) means failure.
86498
86499 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86500
86501         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
86502
86503         alloca modernization/simplification for regex.
86504         * lib/regex.c: Remove portability cruft for alloca.  This no longer
86505         needs to be at the start of the file, and can be moved into
86506         regex_internal.h and simplified.
86507         * lib/regex_internal.h: Include <alloca.h>.
86508         (__libc_use_alloca) [!defined _LIBC]: New macro.
86509         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
86510         now works outside glibc.
86511
86512 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86513
86514         * config/srclist.txt: Add glibc bugs 1241, 1245.
86515
86516 2005-08-25  Jim Meyering  <jim@meyering.net>
86517
86518         * lib/open-safer.c: Include <config.h>.
86519         Otherwise, we'd lose LARGEFILE support in any file using
86520         e.g. "fcntl--.h"
86521
86522 2005-08-25  Bruno Haible  <bruno@clisp.org>
86523
86524         * m4/minmax.m4: Require autoconf 2.52.
86525         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
86526         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
86527         alternatives of translit over the alphabet.
86528         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
86529
86530 2005-08-24  Simon Josefsson  <jas@extundo.com>
86531
86532         * tests/test-getpass.c: New file.
86533
86534 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86535
86536         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
86537         for GNU regex features.
86538
86539 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86540
86541         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
86542         * lib/regex.h (regerror): Likewise.
86543
86544         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
86545         requires this.  (The code never needed it.)
86546
86547         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
86548         All uses of recently-renamed identifiers changed to use the new,
86549         POSIX-compliant names.  The code will build and run just fine
86550         without these changes, but it's better to eat our own dog food
86551         and use the standard-conforming names.
86552
86553         * lib/regex.h: Fix a multitude of POSIX name space violations.
86554         These changes have an effect only for programs that define
86555         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
86556         do not change anything for programs compiled in the normal way.
86557         Also, there is no effect on the ABI.
86558
86559         (_REGEX_SOURCE): New macro.
86560         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
86561         defined and _GNU_SOURCE is not; this fixes a name space violation.
86562
86563         Rename the following macros to obey POSIX requirements.
86564         The old names are still visible as macros if _REGEX_SOURCE is defined.
86565         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
86566         RE_BACKSLASH_ESCAPE_IN_LISTS.
86567         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
86568         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
86569         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
86570         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
86571         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
86572         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
86573         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
86574         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
86575         (REG_INTERVALS): renamed from RE_INTERVALS.
86576         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
86577         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
86578         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
86579         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
86580         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
86581         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
86582         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
86583         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
86584         RE_UNMATCHED_RIGHT_PAREN_ORD.
86585         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
86586         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
86587         (REG_DEBUG): renamed from RE_DEBUG.
86588         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
86589         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
86590         unusual, since we can't clash with the POSIX REG_ICASE.
86591         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
86592         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
86593         (REG_NO_SUB): renamed from RE_NO_SUB.
86594         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
86595         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
86596         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
86597         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
86598         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
86599         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
86600         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
86601         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
86602         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
86603         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
86604         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
86605         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
86606         RE_SYNTAX_POSIX_MINIMAL_BASIC.
86607         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
86608         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
86609         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
86610         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
86611         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
86612         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
86613         (REG_FIXED): Renamed from REGS_FIXED.
86614         (REG_NREGS): Renamed from RE_NREGS.
86615
86616         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
86617         of other REG_* macros, since POSIX says the user is allowed to
86618         #undef these macros selectively.
86619
86620         (reg_errcode_t): Update comment stating what other tables need
86621         to be consistent.
86622
86623         Rename the following enum values to obey POSIX requirements.
86624         The old names are still visible as macros.
86625         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
86626         is not defined, since GNU is supposed to be a superset of POSIX as
86627         much as possible, and since we want reg_errcode_t to be a signed
86628         type for implementation consistency.
86629         (_REG_NOERROR): Renamed from REG_NOERROR.
86630         (_REG_NOMATCH): Renamed from REG_NOMATCH.
86631         (_REG_BADPAT): Renamed from REG_BADPAT.
86632         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
86633         (_REG_ECTYPE): Renamed from REG_ECTYPE.
86634         (_REG_EESCAPE): Renamed from REG_EESCAPE.
86635         (_REG_ESUBREG): Renamed from REG_ESUBREG.
86636         (_REG_EBRACK): Renamed from REG_EBRACK.
86637         (_REG_EPAREN): Renamed from REG_EPAREN.
86638         (_REG_EBRACE): Renamed from REG_EBRACE.
86639         (_REG_BADBR): Renamed from REG_BADBR.
86640         (_REG_ERANGE): Renamed from REG_ERANGE.
86641         (_REG_ESPACE): Renamed from REG_ESPACE.
86642         (_REG_BADRPT): Renamed from REG_BADRPT.
86643         (_REG_EEND): Renamed from REG_EEND.
86644         (_REG_ESIZE): Renamed from REG_ESIZE.
86645         (_REG_ERPAREN): Renamed from REG_ERPAREN.
86646         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
86647         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
86648         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
86649         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
86650
86651         (_REG_RE_NAME, _REG_RM_NAME): New macros.
86652         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
86653         changed.  But support the old name if the new one is not defined
86654         and if _REGEX_SOURCE.
86655
86656         Change the following member names in struct re_pattern_buffer.
86657         The old names are still supported if !_REGEX_SOURCE.
86658         The new names are always supported, regardless of _REGEX_SOURCE.
86659         (re_buffer): Renamed from buffer.
86660         (re_allocated): Renamed from allocated.
86661         (re_used): Renamed from used.
86662         (re_syntax): Renamed from syntax.
86663         (re_fastmap): Renamed from fastmap.
86664         (re_translate): Renamed from translate.
86665         (re_can_be_null): Renamed from can_be_null.
86666         (re_regs_allocated): Renamed from regs_allocated.
86667         (re_fastmap_accurate): Renamed from fastmap_accurate.
86668         (re_no_sub): Renamed from no_sub.
86669         (re_not_bol): Renamed from not_bol.
86670         (re_not_eol): Renamed from not_eol.
86671         (re_newline_anchor): Renamed from newline_anchor.
86672
86673         Change the following member names in struct re_registers.
86674         The old names are still supported if !_REGEX_SOURCE.
86675         The new names are always supported, regardless of _REGEX_SOURCE.
86676         (rm_num_regs): Renamed from num_regs.
86677         (rm_start): Renamed from start.
86678         (rm_end): Renamed from end.
86679
86680         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
86681         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
86682         Prepend __ to parameter names.
86683
86684         Undo yesterday's changes.
86685
86686 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86687
86688         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
86689         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
86690         lib/regex.c.
86691
86692 2005-08-24  Jim Meyering  <jim@meyering.net>
86693
86694         Sync from coreutils.
86695         * m4/fcntl-safer.m4: New file.
86696
86697         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
86698         and object files for this module.
86699
86700 2005-08-24  Jim Meyering  <jim@meyering.net>
86701
86702         Sync from coreutils.
86703         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
86704
86705 2005-08-24  Jim Meyering  <jim@meyering.net>
86706
86707         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
86708         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
86709
86710 2005-08-24  Jim Meyering  <jim@meyering.net>
86711
86712         * modules/fcntl-safer: New module.
86713         * modules/fts (Depends-on): Add fcntl-safer.
86714         * MODULES.html.sh (File descriptor based Input/Output):
86715         Add fcntl-safer.
86716
86717 2005-08-24  Bruno Haible  <bruno@clisp.org>
86718
86719         Support for unit test modules.
86720         * modules/README: Mention tests modules.
86721         * modules/TEMPLATE-TESTS: New file.
86722         * gnulib-tool: New options --extract-tests-module, --with-tests and
86723         --tests-base (unused for the moment).
86724         (testsbase, inctests): New variables.
86725         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
86726         (func_verify_module): Exclude TEMPLATE-TESTS.
86727         (func_verify_nontests_module, func_verify_tests_module): New functions.
86728         (func_get_dependencies): Add implicit dependency for tests modules.
86729         (func_get_tests_module): New function.
86730         (func_modules_transitive_closure): When --with-tests was specified,
86731         include the unit tests as well, unless explicitly avoided.
86732         (func_emit_lib_Makefile_am): Ignore the tests modules here.
86733         (func_emit_tests_Makefile_am): New function.
86734         (func_create_testdir): When --with-tests was specified, emit a
86735         tests/ directory.
86736         * MODULES.html.sh (Future developments): Update.
86737
86738 2005-08-24  Bruno Haible  <bruno@clisp.org>
86739
86740         * modules/tls-tests: New file.
86741         * tests/test-tls.c: New file, from GNU gettext.
86742
86743 2005-08-24  Bruno Haible  <bruno@clisp.org>
86744
86745         * modules/lock-tests: New file.
86746         * tests/test-lock.c: New file, from GNU gettext.
86747
86748 2005-08-24  Bruno Haible  <bruno@clisp.org>
86749
86750         * lib/lock.h: Add multiple inclusion guard.
86751         * lib/tls.h: Add multiple inclusion guard.
86752
86753 2005-08-24  Bruno Haible  <bruno@clisp.org>
86754
86755         * gnulib-tool: Add support for the --aux-dir option to
86756         --create-testdir, --create-megatestdir, --test, --megatest.
86757         (func_create_testdir, func_create_megatestdir): Optionally emit a
86758         AC_CONFIG_AUX_DIR directive.
86759         (create-testdir, create-megatestdir, test, megatest): Provide a
86760         default value for $auxdir.
86761
86762 2005-08-24  Bruno Haible  <bruno@clisp.org>
86763
86764         * gnulib-tool (import): Use compound statement instead of subshell
86765         where possible.
86766
86767 2005-08-24  Bruno Haible  <bruno@clisp.org>
86768
86769         * gnulib-tool (import): Change --aux-dir default to "build-aux".
86770
86771 2005-08-24  Bruno Haible  <bruno@clisp.org>
86772
86773         * gnulib-tool (func_version): Update.
86774
86775 2005-08-24  Bruno Haible  <bruno@clisp.org>
86776
86777         * gnulib-tool (func_import, func_create_testdir,
86778         func_create_megatestdir): Quote all autoconf macro arguments.
86779
86780 2005-08-24  Bruno Haible  <bruno@clisp.org>
86781
86782         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
86783         option --force, because --force causes the aclocal.m4 of each
86784         subdirectory to be newer than the corresponding config.h.in.
86785
86786 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86787
86788         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
86789         All contents moved to gl_REGEX.
86790         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
86791         assume that it does.
86792
86793 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86794
86795         * lib/regex.h (REG_NOSYS)
86796         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
86797         Define, since POSIX requires it as of 2001.
86798         (_REG_ENOSYS)
86799         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
86800         New private symbol, used to keep the enum signed in all cases.
86801         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
86802         Youngman in
86803         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
86804
86805         * lib/regex_internal.c (re_string_skip_chars, register_state):
86806         (calc_state_hash):
86807         Remove forward decls; no longer needed now that we use prototypes.
86808         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
86809         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
86810         (clean_state_log_if_needed): Likewise.
86811
86812 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86813
86814         * config/srclist.txt: Add glibc bugs 1231-1233.
86815
86816 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86817
86818         Fix problems reported by Sam Steingold in
86819         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
86820         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
86821         assumed that reg_errcode_t is a signed type, which is not
86822         necessarily true if _XOPEN_SOURCE is not defined.
86823         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
86824         since some compilers warn about it otherwise.
86825
86826 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86827
86828         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
86829         (init_word_char, create_initial_state, duplicate_node_closure):
86830         (fetch_token, peek_token_bracket, build_range_exp):
86831         (build_collating_symbol): Remove forward decls; no longer needed
86832         now that we use prototypes.
86833
86834         * lib/regcomp.c:
86835         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
86836         (re_compile_fastmap_iter, regcomp, regerror, regfree):
86837         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
86838         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
86839         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
86840         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
86841         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
86842         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
86843         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
86844         (build_range_exp, build_collating_symbol, parse_bracket_exp):
86845         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
86846         (build_charclass, build_charclass_op, fetch_number, create_tree):
86847         (create_token_tree, mark_opt_subexp, duplicate_tree):
86848         Use prototypes rather than old-style definitions.
86849
86850         * lib/regex_internal.c:
86851         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
86852         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
86853         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86854         (re_string_reconstruct, re_string_peek_byte_case):
86855         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
86856         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86857         (re_node_set_init_copy, re_node_set_add_intersect):
86858         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86859         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86860         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86861         (re_acquire_state, re_acquire_state_context, register_state):
86862         (create_ci_newstate, create_cd_newstate, free_state):
86863         Likewise.
86864         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
86865         re_search_2):
86866         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
86867         (re_search_internal, prune_impossible_nodes):
86868         (acquire_init_state_context, check_matching, static):
86869         (check_halt_node_context, check_halt_state_context, proceed_next_node):
86870         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
86871         (update_regs, sift_states_backward, build_sifted_states):
86872         (clean_state_log_if_needed, merge_state_array):
86873         (update_cur_sifted_state, add_epsilon_src_nodes):
86874         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
86875         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
86876         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
86877         (find_recover_state, check_subexp_matching_top, transit_state_mb):
86878         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
86879         (check_arrival, check_arrival_add_next_nodes):
86880         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86881         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86882         (check_node_accept_bytes, check_node_accept, extend_buffers):
86883         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
86884         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
86885         (sift_ctx_init):
86886         Likewise.
86887
86888         * lib/regex_internal.h:
86889         (re_string_allocate, re_string_construct, re_string_reconstruct):
86890         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
86891         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
86892         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
86893         (re_string_context_at, re_string_peek_byte_case):
86894         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
86895         is defined, since we now use prototypes always.
86896
86897         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
86898         C89 or better.  All uses removed.
86899
86900 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86901
86902         * config/srclist.txt: Add glibc bugs 1220-1227.
86903
86904 2005-08-20  Jim Meyering  <jim@meyering.net>
86905
86906         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
86907         of unused local, dfa.
86908
86909 2005-08-20  Bruno Haible  <bruno@clisp.org>
86910
86911         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
86912
86913 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86914
86915         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
86916         (re_node_set_insert_last, re_dfa_add_node):
86917         Rename local variables to avoid GCC shadowing warnings.
86918
86919 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86920
86921         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
86922         [defined lint]: Suppress bogus uninitialized-variable warnings.
86923
86924         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
86925         and let the caller return REG_ESPACE if out of space.  This
86926         removes an uninitialied-variable warning with GCC 4.0.1, and also
86927         avoids taking the address of a local variable.  All callers
86928         changed.
86929
86930 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86931
86932         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
86933         $LIBCSRC/posix/regexec.c.
86934         Add glibc bug 1217 for regcomp.c.
86935
86936 2005-08-19  Jim Meyering  <jim@meyering.net>
86937
86938         * lib/regexec.c (proceed_next_node): Redo local variables to
86939         avoid GCC shadowing warnings.
86940
86941 2005-08-18  Bruno Haible  <bruno@clisp.org>
86942
86943         * lib/strstr.c (strstr): Fix return value in multibyte case.
86944         * lib/strcasestr.c (strcasestr): Likewise.
86945
86946 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86947
86948         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
86949
86950 2005-08-17  Jim Meyering  <jim@meyering.net>
86951
86952         Make the %s format (seconds since the epoch) work for a negative
86953         number and when used with a zero-padded field width, e.g. %015s.
86954
86955         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
86956         label so that it precedes the code to set `digits'.  Otherwise,
86957         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
86958         print `00-22'.  Now, it prints `-0022', as it should.
86959
86960 2005-08-17  Bruno Haible  <bruno@clisp.org>
86961
86962         * modules/strstr (Files): Add m4/mbrtowc.m4.
86963         (Depends-on): Add mbuiter.
86964
86965 2005-08-17  Bruno Haible  <bruno@clisp.org>
86966
86967         * modules/strcasestr: New file.
86968         * MODULES.html.sh (String handling, based on ANSI C 89): Add
86969         strcasestr.
86970
86971 2005-08-17  Bruno Haible  <bruno@clisp.org>
86972
86973         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
86974
86975 2005-08-17  Bruno Haible  <bruno@clisp.org>
86976
86977         * modules/mbuiter: New file.
86978         * MODULES.html.sh (Extended multibyte and wide character utilities):
86979         Add mbuiter.
86980
86981 2005-08-17  Bruno Haible  <bruno@clisp.org>
86982
86983         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
86984         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
86985
86986 2005-08-17  Bruno Haible  <bruno@clisp.org>
86987
86988         * m4/strcasestr.m4: New file.
86989
86990 2005-08-17  Bruno Haible  <bruno@clisp.org>
86991
86992         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
86993         * lib/strstr.c: Completely rewritten, with multibyte locale support.
86994
86995 2005-08-17  Bruno Haible  <bruno@clisp.org>
86996
86997         * lib/strcasestr.h: New file.
86998         * lib/strcasestr.c: New file.
86999
87000 2005-08-17  Bruno Haible  <bruno@clisp.org>
87001
87002         * lib/strcasecmp.c: Use mbuiter.h.
87003
87004 2005-08-17  Bruno Haible  <bruno@clisp.org>
87005
87006         * lib/mbuiter.h: New file.
87007
87008 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
87009
87010         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
87011         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
87012         and gl_GETOPT are both invoked via different paths (as happens
87013         with GNU tar CVS because it uses both argp and getopt), the former
87014         wins.
87015
87016 2005-08-16  Bruno Haible  <bruno@clisp.org>
87017
87018         * modules/tls: New file.
87019         * MODULES.html.sh (Multithreading): Add tls.
87020
87021 2005-08-16  Bruno Haible  <bruno@clisp.org>
87022
87023         * modules/strnlen1: New file.
87024         * MODULES.html.sh (String handling): Add strnlen1.
87025
87026 2005-08-16  Bruno Haible  <bruno@clisp.org>
87027
87028         * modules/strcase (Files): Add m4/mbrtowc.m4.
87029         (Depends-on): Add strnlen1, mbchar.
87030
87031 2005-08-16  Bruno Haible  <bruno@clisp.org>
87032
87033         * modules/mbiter: New file.
87034         * MODULES.html.sh (Extended multibyte and wide character utilities):
87035         Add mbiter.
87036
87037 2005-08-16  Bruno Haible  <bruno@clisp.org>
87038
87039         * modules/mbfile: New file.
87040         * MODULES.html.sh (Extended multibyte and wide character utilities):
87041         Add mbfile.
87042
87043 2005-08-16  Bruno Haible  <bruno@clisp.org>
87044
87045         * modules/mbchar: New file.
87046         * MODULES.html.sh (Extended multibyte and wide character utilities):
87047         New section.
87048
87049 2005-08-16  Bruno Haible  <bruno@clisp.org>
87050
87051         * m4/tls.m4: New file, from GNU gettext.
87052
87053 2005-08-16  Bruno Haible  <bruno@clisp.org>
87054
87055         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
87056         always.
87057         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
87058
87059 2005-08-16  Bruno Haible  <bruno@clisp.org>
87060
87061         * m4/mbiter.m4: New file.
87062
87063 2005-08-16  Bruno Haible  <bruno@clisp.org>
87064
87065         * m4/mbfile.m4: New file.
87066
87067 2005-08-16  Bruno Haible  <bruno@clisp.org>
87068
87069         * m4/mbchar.m4: New file.
87070
87071 2005-08-16  Bruno Haible  <bruno@clisp.org>
87072
87073         * lib/tls.h: New file, from GNU gettext.
87074         * lib/tls.c: New file, from GNU gettext.
87075
87076 2005-08-16  Bruno Haible  <bruno@clisp.org>
87077
87078         * lib/strnlen1.h: New file.
87079         * lib/strnlen1.c: New file.
87080
87081 2005-08-16  Bruno Haible  <bruno@clisp.org>
87082
87083         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
87084         (mbi_init): Update.
87085         (mbi_avail, mbi_advance): Let the iteration end before the terminating
87086         NUL byte, not after it.
87087
87088 2005-08-16  Bruno Haible  <bruno@clisp.org>
87089
87090         * lib/strcase.h (strcasecmp): Add note in comments.
87091         * lib/strncasecmp.c: Use code from strcasecmp.c.
87092         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
87093         (strcasecmp): Work correctly in multibyte locales.
87094
87095 2005-08-16  Bruno Haible  <bruno@clisp.org>
87096
87097         * lib/mbiter.h: New file.
87098
87099 2005-08-16  Bruno Haible  <bruno@clisp.org>
87100
87101         * lib/mbfile.h: New file.
87102
87103 2005-08-16  Bruno Haible  <bruno@clisp.org>
87104
87105         * lib/mbchar.h: New file.
87106         * lib/mbchar.c: New file.
87107
87108 2005-08-16  Bruno Haible  <bruno@clisp.org>
87109
87110         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
87111         the valid ones. Makes the comparison operations transitive:
87112         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
87113         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
87114
87115 2005-08-15  Simon Josefsson  <jas@extundo.com>
87116
87117         * modules/ssize_t (License): Change to 'unlimited'.
87118
87119         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
87120
87121 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
87122
87123         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
87124         Add comments for each pending glibc patch.
87125
87126 2005-08-15  Bruno Haible  <bruno@clisp.org>
87127
87128         * lib/regex.h (__restrict_arr): Don't define to __restrict if
87129         __cplusplus is defined.
87130
87131 2005-08-14  Jim Meyering  <jim@meyering.net>
87132
87133         Sync from coreutils.
87134
87135         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
87136         Use the hash-table-based cycle-detection code not just when
87137         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
87138         Reported by James Youngman in
87139         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
87140         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
87141         FTS_TIGHT_CYCLE_CHECK.
87142         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
87143         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
87144         once again.
87145         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
87146         * lib/fts.c (fd_safer): Remove decl.
87147         Include fcntl--.h rather than unistd-safer.h
87148         (fts_safe_changedir): Don't call fd_safer; no longer needed
87149         now that we include fcntl--.h.
87150
87151 2005-08-12  Simon Josefsson  <jas@extundo.com>
87152
87153         * modules/getndelim2: Use ssize_t module.
87154         * modules/getnline: Likewise.
87155         * modules/safe-read: Likewise.
87156         * modules/xreadlink: Likewise.
87157
87158         * modules/ssize_t: New file.
87159
87160 2005-08-12  Simon Josefsson  <jas@extundo.com>
87161
87162         * m4/readline.m4: Look for termcap, curses or ncurses if required.
87163
87164 2005-08-12  Simon Josefsson  <jas@extundo.com>
87165
87166         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87167         ssize_t.
87168
87169 2005-08-12  Simon Josefsson  <jas@extundo.com>
87170
87171         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
87172         readline, getdelim and check_version.
87173         (Support for systems lacking ISO C 99: Sizes of integer types):
87174         Add size_max.
87175
87176 2005-08-12  Bruno Haible  <bruno@clisp.org>
87177
87178         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
87179
87180 2005-08-11  Simon Josefsson  <jas@extundo.com>
87181
87182         * modules/readline: New file.
87183
87184         * modules/strnlen (Files): Add strnlen.h.
87185
87186 2005-08-11  Simon Josefsson  <jas@extundo.com>
87187
87188         * m4/readline.m4: New file.
87189
87190 2005-08-11  Simon Josefsson  <jas@extundo.com>
87191
87192         * lib/readline.h, readline.c: New file.
87193
87194 2005-08-11  Simon Josefsson  <jas@extundo.com>
87195
87196         * doc/gnulib.texi (Initial import, Finishing touches): Mention
87197         gl_AVOID.
87198
87199 2005-08-11  Bruno Haible  <bruno@clisp.org>
87200
87201         * lib/strnlen.h (strnlen): Change parameter name to match comment.
87202
87203 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
87204
87205         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
87206
87207 2005-08-10  Simon Josefsson  <jas@extundo.com>
87208
87209         * tests/test-iconvme.c: New file.
87210
87211 2005-08-10  Simon Josefsson  <jas@extundo.com>
87212
87213         * m4/strnlen.m4: New file.
87214
87215         * m4/strndup.m4: Don't check for strnlen declaration, done in
87216         strnlen.m4.
87217
87218 2005-08-10  Simon Josefsson  <jas@extundo.com>
87219
87220         * lib/strndup.c: Use strnlen.h.
87221
87222         * lib/strnlen.h: New file.
87223
87224 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
87225
87226         * README: Typos.
87227
87228 2005-08-02  Simon Josefsson  <jas@extundo.com>
87229
87230         * modules/readline: New file.
87231
87232 2005-08-02  Simon Josefsson  <jas@extundo.com>
87233
87234         * modules/getdelim: New file.
87235
87236         * modules/getline: Rewrite, don't use getndelim2.
87237
87238 2005-08-02  Simon Josefsson  <jas@extundo.com>
87239
87240         * m4/getline.m4: Separate out getdelim stuff into separate module.
87241
87242         * m4/getdelim.m4: New file.
87243
87244 2005-08-02  Simon Josefsson  <jas@extundo.com>
87245
87246         * lib/getline.h, getline.c: Rewrite.
87247
87248         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
87249
87250 2005-07-31  Bruno Haible  <bruno@clisp.org>
87251
87252         * lib/lock.h (gl_lock_initializer): New macro.
87253         (gl_lock_define_initialized): Use it.
87254         (gl_rwlock_initializer): New macro.
87255         (gl_rwlock_define_initialized): Use it.
87256         (gl_recursive_lock_initializer): New macro.
87257         (gl_recursive_lock_define_initialized): Use it.
87258
87259 2005-07-30  Karl Berry  <karl@gnu.org>
87260
87261         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
87262         Report from Ben Pfaff, regarding getopt.
87263
87264 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
87265
87266         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
87267         normal way.
87268         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
87269         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
87270         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
87271         (gl_GETOPT): Use the new macros.  Most of the implementation
87272         is moved to the new macros.  This is for programs like Emacs
87273         that don't want all the functionality of gl_GETOPT.
87274
87275 2005-07-26  Bruno Haible  <bruno@clisp.org>
87276
87277         * m4/lock.m4: Update from GNU gettext.
87278
87279 2005-07-26  Bruno Haible  <bruno@clisp.org>
87280
87281         * lib/lock.h: Update from GNU gettext.
87282         * lib/lock.c: Update from GNU gettext.
87283
87284 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
87285
87286         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
87287         obsolescent AC_TRY_RUN.  Include the default includes files, for
87288         'exit'.
87289
87290 2005-07-24  Bruno Haible  <bruno@clisp.org>
87291
87292         * modules/visibility: New file.
87293         * MODULES.html.sh (Misc): Add visibility.
87294
87295 2005-07-24  Bruno Haible  <bruno@clisp.org>
87296
87297         * m4/visibility.m4: New file.
87298
87299 2005-07-24  Bruno Haible  <bruno@clisp.org>
87300
87301         * doc/visibility.texi: New file.
87302
87303 2005-07-22  Bruno Haible  <bruno@clisp.org>
87304
87305         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
87306         $(ALLOCA_H), redundant through BUILT_SOURCES.
87307         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
87308         redundant through BUILT_SOURCES.
87309         * modules/byteswap (Makefile.am): Remove explicit dependency on
87310         $(BYTESWAP_H), redundant through BUILT_SOURCES.
87311         * modules/fnmatch (Makefile.am): Remove explicit dependency on
87312         $(FNMATCH_H), redundant through BUILT_SOURCES.
87313         * modules/getopt (Makefile.am): Remove explicit dependency on
87314         $(GETOPT_H), redundant through BUILT_SOURCES.
87315         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
87316         redundant through BUILT_SOURCES.
87317         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
87318         redundant through BUILT_SOURCES.
87319         * modules/stdbool (Makefile.am): Remove explicit dependency on
87320         $(STDBOOL_H), redundant through BUILT_SOURCES.
87321         * modules/stdint (Makefile.am): Remove explicit dependency on
87322         $(STDINT_H), redundant through BUILT_SOURCES.
87323         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
87324         Remove explicit dependency on $(SYSEXITS_H).
87325         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
87326
87327 2005-07-18  Simon Josefsson  <jas@extundo.com>
87328
87329         * lib/check-version.c (check_version): Accept identical versions too.
87330
87331 2005-07-18  Bruno Haible  <bruno@clisp.org>
87332
87333         * modules/lock: New file.
87334         * MODULES.html.sh (Multithreading): New section.
87335
87336 2005-07-18  Bruno Haible  <bruno@clisp.org>
87337
87338         * m4/lock.m4: New file, from GNU gettext.
87339
87340 2005-07-18  Bruno Haible  <bruno@clisp.org>
87341
87342         * lib/lock.h: New file, from GNU gettext.
87343         * lib/lock.c: New file, from GNU gettext.
87344
87345 2005-07-18  Bruno Haible  <bruno@clisp.org>
87346
87347         * lib/lock.h (gl_once_t): New type.
87348         (gl_once_define, gl_once): New macros.
87349         * lib/lock.c (fresh_once): New variable.
87350         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
87351         functions.
87352
87353 2005-07-16  Simon Josefsson  <jas@extundo.com>
87354
87355         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
87356         workaround, suggested by Bruno.
87357
87358 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87359
87360         * modules/xalloc (Depends-on): Add xalloc-die.
87361         * modules/xvasprintf (Depends-on): Add xalloc-die.
87362
87363 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87364
87365         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
87366         with a minor change.
87367
87368 2005-07-15  Bruno Haible  <bruno@clisp.org>
87369
87370         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
87371         When using lib/poll.c, define poll as rpl_poll.
87372
87373 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
87374
87375         * modules/argp (Depends-on): Remove unlocked-io.
87376
87377 2005-07-14  Derek Price  <derek@ximbiot.com>
87378
87379         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
87380         for glob symlink bug.
87381
87382 2005-07-14  Bruno Haible  <bruno@clisp.org>
87383
87384         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
87385         Instead, test for *_unlocked function declarations directly.
87386
87387 2005-07-11  Simon Josefsson  <jas@extundo.com>
87388
87389         * modules/size_max: New file.
87390
87391         * modules/xsize: Depend on size_max module for size_max.m4.
87392
87393 2005-07-11  Simon Josefsson  <jas@extundo.com>
87394
87395         * lib/size_max.h: New file.
87396
87397 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
87398
87399         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
87400         copyright symbol and the year.
87401         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
87402         (version_etc_va): Use parameterized copyright notice.
87403         Reword to conform to the current GNU coding standards.
87404
87405 2005-07-11  Karl Berry  <karl@gnu.org>
87406
87407         * doc/gnulib.texi (Quoting): new node.
87408         (Initial import): more info, from Patrice.
87409
87410 2005-07-11  Bruno Haible  <bruno@clisp.org>
87411
87412         * gnulib-tool (func_usage): Document option --avoid.
87413         (Command line options): Handle --avoid.
87414         (func_acceptable): New function.
87415         (func_modules_transitive_closure): Use it.
87416
87417 2005-07-11  Bruno Haible  <bruno@clisp.org>
87418
87419         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
87420         Reported by Jim Meyering.
87421
87422 2005-07-10  Bruno Haible  <bruno@clisp.org>
87423
87424         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
87425         Needed when size_t is smaller than 'unsigned int'.
87426         Reported by Paul Eggert.
87427
87428 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87429
87430         * modules/argp (Depends-on): Add unlocked-io
87431
87432 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87433
87434         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
87435         block of defines.
87436
87437 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
87438
87439         * config/srclist.txt: Comment out regcomp.c, since we have a porting
87440         fix now.
87441
87442 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
87443         and Paul Eggert  <eggert@cs.ucla.edu>
87444
87445         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
87446         in wint_t, not wchar_t.  Remove now-unnecessary cast.
87447
87448 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87449
87450         * modules/regex (Files): Add lib/regex_internal.c,
87451         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
87452         (Depends-on): Add extensions.
87453         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
87454
87455 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87456
87457         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
87458         pathconf.
87459         * m4/same.m4 (gl_SAME): Likewise.
87460         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
87461
87462         * m4/regex.m4: Adjust to new libc regex implementation.
87463         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
87464         all the .c and .h parts of (the new) regex.
87465         Quote the m4 stuff better.
87466         Check for RE_ICASE bug of old gnulib.
87467         Check for REG_STARTEND of recent libc.
87468         Rename local variables from jm_* to gl_*.
87469         Quote operand of "test -f".
87470         Say "recent enough" version of libc, not "version 2".
87471         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
87472         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
87473         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
87474         Remove check for btowc, isascii.
87475         Require AM_LANGINFO_CODESET.
87476
87477 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87478
87479         * lib/regex.c, regex.h: Sync from libc.
87480         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
87481         * lib/regexec.c:
87482         New files, synced from libc, except that regex_internal.h
87483         currently has a small porting fix.
87484
87485 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87486
87487         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
87488         regex_internal.c, regexec.c.
87489         Add regex_internal.h too, but as a comment, since the libc version
87490         is currently broken in gnulib mode.
87491
87492 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
87493
87494         Support programs like Emacs that use gnulib but not gettext.
87495         * MODULES.html.sh (Internationalization functions): Add gettext-h.
87496         * modules/gettext-h: New file.
87497         * modules/gettext (Files): Remove lib/gettext.h.
87498         (Depends-on): Add gettext-h.
87499         (Makefile.am): Remove lib_SOURCES.
87500         * modules/argmatch, modules/c-stack, modules/closeout:
87501         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
87502         * modules/execute, modules/file-type, modules/getaddrinfo:
87503         * modules/getopt, modules/human, modules/javacomp:
87504         * modules/javaexec, modules/mkdir-p, modules/obstack:
87505         * modules/openat, modules/pagealign_alloc, modules/pipe:
87506         * modules/quotearg, modules/regex, modules/rpmatch:
87507         * modules/unicodeio, modules/userspec, modules/version-etc:
87508         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
87509         * modules/xsetenv:
87510         Depend on gettext-h, not gettext.
87511
87512 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
87513
87514         * gnulib-tool (func_import): Add support for 'public domain' license.
87515         * modules/alloca, modules/atexit, modules/memmove:
87516         Now public domain, not GPL.
87517         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
87518         * modules/realloc, modules/strerror, modules/strtod:
87519         Now LGPL, not GPL.
87520
87521 2005-07-05  Bruno Haible  <bruno@clisp.org>
87522
87523         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
87524         autoconf CVS. Needed for mingw.
87525
87526 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87527
87528         Remove the dependency of the strftime module on the tzset module.
87529         * modules/strftime (Depends-on): Remove dependency on tzset.
87530
87531 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87532
87533         Remove the dependency of the strftime module on the tzset module.
87534         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
87535         gl_FUNC_TZSET_CLOBBER.
87536
87537 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87538
87539         Remove the dependency of the strftime module on the tzset module.
87540         * lib/strftime.c (my_strftime)
87541         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
87542         Copy the input structure, to work around some of the bug with
87543         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
87544         Solaris releases, you should also use the tzset module, but we won't
87545         require it as a dependency any more since we don't want LGPLed code
87546         to depend on GPLed code.
87547
87548 2005-07-02  Jim Meyering  <jim@meyering.net>
87549
87550         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
87551         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
87552         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
87553         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
87554
87555 2005-07-02  Jim Meyering  <jim@meyering.net>
87556
87557         * lib/backupfile.c (backup_args): Change a `0' to NULL.
87558
87559 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
87560
87561         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
87562         declares only 'struct timespec;' (!).
87563
87564 2005-07-01  Jim Meyering  <jim@meyering.net>
87565
87566         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
87567         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
87568         * lib/save-cwd.c, tempname.c:
87569         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
87570         and don't include <sys/file.h>).
87571
87572 2005-06-29  Jim Meyering  <jim@meyering.net>
87573
87574         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
87575         type name.  Use the variable name instead.
87576         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
87577         Likewise.
87578
87579 2005-06-28  Simon Josefsson  <jas@extundo.com>
87580
87581         * modules/check-version (Files): Add check-version.m4.
87582
87583 2005-06-28  Simon Josefsson  <jas@extundo.com>
87584
87585         * m4/check-version.m4: New file, suggested by Jim Meyering
87586         <jim@meyering.net>.
87587
87588 2005-06-28  Simon Josefsson  <jas@extundo.com>
87589
87590         * lib/check-version.h, lib/check-version.c: New files.
87591
87592 2005-06-28  Simon Josefsson  <jas@extundo.com>
87593
87594         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
87595         collision with global variable.  Better indentation.  Don't
87596         increment buffer pointer beyond buffer end.  Based on comments
87597         from Paul Eggert <eggert@cs.ucla.edu>.
87598
87599         * lib/base64.h: Indent.
87600
87601 2005-06-28  Simon Josefsson  <jas@extundo.com>
87602
87603         * doc/gnulib.texi (Library version handling): New section.
87604
87605 2005-06-28  Jim Meyering  <jim@meyering.net>
87606
87607         * check-module (find_included_lib_files): Hard-code another
87608         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
87609         but modules/fts-lgpl (correctly) does not list those files.
87610
87611         * modules/canonicalize (Files): Add lib/pathmax.h.
87612
87613 2005-06-25  Simon Josefsson  <jas@extundo.com>
87614
87615         * modules/check-version: New file.
87616
87617 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
87618
87619         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
87620         initializer of struct addrinfo, as an indication that we don't
87621         care how many members the structure has.
87622
87623 2005-06-24  Derek Price  <derek@ximbiot.com>
87624         and Bruno Haible  <bruno@clisp.org>
87625
87626         Remove stat module & update lstat.
87627         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
87628         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87629         * m4/stat.m4: Remove this file.
87630
87631 2005-06-24  Derek Price  <derek@ximbiot.com>
87632         and Bruno Haible  <bruno@clisp.org>
87633
87634         Remove stat module & update lstat.
87635         * lib/stat.c: Remove this file...
87636         (slash_aware_lstat): ...moving this content and its support...
87637         * lib/lstat.c (rpl_lstat): ...into here.
87638         * lib/lstat.h: New 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         * config/srclist.txt (libc sources): Remove stat.
87645
87646 2005-06-24  Derek Price  <derek@ximbiot.com>
87647         and Bruno Haible  <bruno@clisp.org>
87648
87649         Remove stat module & update lstat.
87650         * MODULES.html.sh (stat): Remove.
87651         * MODULES.html: Regenerated.
87652         * modules/lstat (Description): Correct function name.
87653         (Files): Add "lstat.h".
87654         (Depends-on): Remove stat, add xalloc, stat-macros.
87655         * modules/stat: Remove this file.
87656         (Include): Add "lstat.h", remove <sys/stat.h>.
87657
87658 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87659
87660         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
87661         (ranged_convert): Don't save conversion in a temporary struct.
87662         This causes a warning with GCC 4.0.0, and anyway in the typical
87663         case it's not worth the extra 100 bytes or so of code.
87664         (ranged_convert, __mktime_internal): When calling a function via a
87665         pointer P, use P () rather than (*P) (), as we now assume C89 or
87666         better.
87667
87668 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87669
87670         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
87671         "who -r" failed to give output.  Problem reported by Tim Waugh.
87672
87673         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
87674         (xcalloc): Use it to avoid needless tests.
87675         Problem reported by Jim Meyering.
87676
87677 2005-06-20  Derek Price  <derek@ximbiot.com>
87678
87679         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
87680         unnecessary for Autoconfs > 2.59c.
87681
87682 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87683
87684         * lib/argp.h (__option_is_short): Check upper limit of
87685         __key. Isprint() requires its argument to have the value
87686         of an unsigned char or EOF.
87687
87688 2005-06-16  Jim Meyering  <jim@meyering.net>
87689
87690         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
87691         when either N or S is zero.
87692
87693 2005-06-16  Derek Price  <derek@ximbiot.com>
87694
87695         * m4/bison.m4: Declare YACC & YFLAGS precious.
87696
87697 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
87698
87699         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
87700         multibyte string or pattern, fall back on unibyte matching.
87701         Problem reported by James Youngman.
87702
87703 2005-06-08  Bruno Haible  <bruno@clisp.org>
87704
87705         * modules/csharpcomp: New file.
87706         * MODULES.html.sh (C#): Add csharpcomp.
87707
87708 2005-06-08  Bruno Haible  <bruno@clisp.org>
87709
87710         * m4/csharpcomp.m4: New file, from GNU gettext.
87711
87712 2005-06-08  Bruno Haible  <bruno@clisp.org>
87713
87714         * lib/csharpcomp.h: New file, from GNU gettext.
87715         * lib/csharpcomp.c: New file, from GNU gettext.
87716         * lib/csharpcomp.sh.in: New file, from GNU gettext.
87717
87718 2005-06-08  Bruno Haible  <bruno@clisp.org>
87719
87720         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
87721         warning on mingw.
87722
87723 2005-06-07  Derek Price  <derek@ximbiot.com>
87724
87725         Sync from CVS.
87726         * lib/glob_.h: Indent nested #ifdef.
87727
87728 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87729
87730         Sync from coreutils.
87731         Use "file name" when talking about file names, instead of "filename"
87732         or "path", as per the GNU coding standards.
87733         * lib/mkdir-p.c: Renamed from makepath.c.
87734         (make_dir_parents): Renamed from make_path.  All callers changed.
87735         * lib/mkdir-p.h: Likewise.  All includers changed.
87736         * lib/filenamecat.c: Renamed from path-concat.c.
87737         (file_name_concat): Renamed from path_concat.  All callers changed.
87738         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
87739         * lib/filenamecat.h: Likewise.  All includers changed.
87740         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
87741         in comments or local variable names.
87742         * lib/basename.c: Likewise.
87743         * lib/canonicalize.c, canonicalize.h: Likewise.
87744         * lib/dirname.c, dirname.h: Likewise.
87745         * lib/euidaccess.c: Likewise.
87746         * lib/exclude.c: Likewise
87747         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
87748         * lib/fsusage.c, fsuage.h: Likewise.
87749         * lib/fts.c, fts_.h: Likewise.
87750         * lib/getcwd.c: Likewise.
87751         * lib/getloadavg.c: Likewise.
87752         * lib/mkstemp.c: Likewise.
87753         * lib/mountlist.c, mountlist.h: Likewise.
87754         * lib/openat.c, openat.h: Likewise.
87755         * lib/readlink-stub.c: Likewise.
87756         * lib/readutmp.c, readutmp.h: Likewise.
87757         * lib/rename.c: Likewise.
87758         * lib/rmdir.c: Likewise.
87759         * lib/same.c: Likewise.
87760         * lib/savedir.c: Likewise.
87761         * lib/stripslash.c: Likewise.
87762         * lib/tempname.c: Likewise.
87763         * lib/xreadlink.c: Likewise.
87764         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
87765         All uses changed.
87766         * lib/exclude.h: Likewise.
87767
87768         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
87769         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87770         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
87771         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87772         * lib/pathmax.h: Include <limits.h> unconditionally, since other
87773         files have been getting away with it for years (MORE/BSD 4.3
87774         is extinct now).
87775         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
87776         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87777
87778         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
87779         Define to 256, not 255, as per modern POSIX.
87780
87781 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87782
87783         Sync from coreutils.
87784         Use "file name" when talking about file names, instead of "filename"
87785         or "path", as per the GNU coding standards.
87786         * MODULES.html.sh: mkdir-p renamed from makepath.
87787         filenamecat renamed from path-concat.
87788         * modules/filenamecat: Renamed from modules/path-concat.
87789         (Files): filenamecat.h and filenamecat.c renamed from
87790         path-concat.h and path-concat.c.
87791         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
87792         (Include): filenamecat.h, not path-concat.h.
87793         * modules/mkdir-p: Renamed from modules/makepath.
87794         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
87795         makepath.c.
87796         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
87797         (Include): mkdir-p.h, not makepath.h.
87798
87799 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87800
87801         Sync from coreutils.
87802         * m4/mkdir-p.m4: Renamed from makepath.m4.
87803         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
87804         Rename files from makepath.c to mkdir-p.c, and from
87805         makepath.h to mkdir-p.h.
87806         * m4/filenamecat.m4: Renamed from path-concat.m4.
87807         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
87808         Rename files from path-concat.c to filenamecat.c,
87809         and from path-concat.h to filenamecat.h.
87810         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
87811         "file name" in local variables or comments.
87812         * m4/rename.m4: Likewise.
87813
87814 2005-06-01  Bruno Haible  <bruno@clisp.org>
87815
87816         * modules/csharpexec: New file.
87817         * MODULES.html.sh (C#): New section.
87818
87819 2005-06-01  Bruno Haible  <bruno@clisp.org>
87820
87821         * m4/csharp.m4: New file, from GNU gettext.
87822         * m4/csharpexec.m4: New file, from GNU gettext.
87823
87824 2005-06-01  Bruno Haible  <bruno@clisp.org>
87825
87826         * lib/csharpexec.h: New file, from GNU gettext.
87827         * lib/csharpexec.c: New file, from GNU gettext.
87828         * lib/csharpexec.sh.in: New file, from GNU gettext.
87829
87830 2005-05-31  Derek Price  <derek@ximbiot.com>
87831             Paul Eggert  <eggert@cs.ucla.edu>
87832
87833         Sync from cvs.
87834         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87835
87836 2005-05-31  Derek Price  <derek@ximbiot.com>
87837             Paul Eggert  <eggert@cs.ucla.edu>
87838
87839         Sync from cvs.
87840         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87841
87842 2005-05-29  Derek Price  <derek@ximbiot.com>
87843
87844         * config/srclist.txt (glob_.h, glob.c): Add these files.
87845
87846 2005-05-29  Derek Price  <derek@ximbiot.com>
87847
87848         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
87849         * modules/glob: New file.
87850         * modules/getlogin_r: Add link to POSIX spec in description.
87851
87852 2005-05-29  Derek Price  <derek@ximbiot.com>
87853             Paul Eggert  <eggert@cs.ucla.edu>
87854
87855         * m4/glob.m4: New file.
87856
87857 2005-05-29  Derek Price  <derek@ximbiot.com>
87858             Paul Eggert  <eggert@cs.ucla.edu>
87859
87860         * lib/glob_.h, lib/glob.c: New files.
87861
87862 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87863
87864         * modules/fts (Files): Remove m4/inttypes-pri.m4.
87865         * modules/fts-lgpl (Depends-on): Remove gettext.
87866
87867 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87868
87869         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
87870         and don't require gt_INTTYPES_PRI.
87871
87872 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87873
87874         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
87875
87876         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
87877         the configuration hassle isn't worth it.
87878         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
87879         (LONGEST_MODIFIER, PRIuMAX): Remove.
87880
87881 2005-05-27  Bruno Haible  <bruno@clisp.org>
87882
87883         * lib/getlogin_r.h: Remove second include of <stddef.h>.
87884
87885 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
87886
87887         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
87888         _POSIX_PTHREAD_SEMANTICS for Solaris.
87889
87890 2005-05-25  Derek Price  <derek@ximbiot.com>
87891
87892         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
87893
87894 2005-05-25  Derek Price  <derek@ximbiot.com>
87895             Paul Eggert  <eggert@cs.ucla.edu>
87896
87897         * modules/getlogin_r, m4/getlogin_r.m4: New files.
87898         * lib/getlogin_r.c, getlogin_r.h: New files.
87899
87900 2005-05-25  Bruno Haible  <bruno@clisp.org>
87901             Derek Price  <derek@ximbiot.com>
87902
87903         * lib/getlogin_r.h: Simplify API documentation.
87904
87905 2005-05-23  Derek Price  <derek@ximbiot.com>
87906
87907         * modules/minmax (Files): Add m4/minmax.m4.
87908         (configure.ac): Add gl_MINMAX.
87909
87910 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
87911
87912         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
87913         so that unistd-safer.h (GPL'ed code) need not be included.
87914
87915 2005-05-22  Bruno Haible  <bruno@clisp.org>
87916
87917         * m4/minmax.m4: New file.
87918         Based on a patch by Derek Price <derek@ximbiot.com>.
87919
87920 2005-05-22  Bruno Haible  <bruno@clisp.org>
87921
87922         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
87923         (INT64_MIN): Fix definition.
87924         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
87925
87926         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
87927         NEED_SIGNED_INT_TYPES.
87928
87929         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
87930         HAVE_SYSTEM_INTTYPES.
87931
87932 2005-05-22  Bruno Haible  <bruno@clisp.org>
87933
87934         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
87935         Also include <sys/param.h> if it defines MIN, MAX.
87936         Based on a patch by Derek Price <derek@ximbiot.com>.
87937
87938 2005-05-21  Jim Meyering  <jim@meyering.net>
87939
87940         * modules/fts (Files): Add m4/inttypes-pri.m4.
87941         (Depends-on): Add lstat and remove gettext.  Alphabetize.
87942
87943 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87944
87945         New fts module.
87946         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
87947         (setup_dir, free_dir): New functions.
87948         (enter_dir, leave_dir): Define trivial
87949         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
87950         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
87951         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
87952         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
87953         Move to fts-cycle.c.
87954         (fts_open): Use setup_dir.
87955         (fts_close): Use free_dir.
87956         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
87957         This adds a label and some gotos, but the alternatives were messier.
87958         Check for memory allocation failure when entering a dir.
87959         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
87960         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
87961         (FTS): New member fts_cycle, that is a union that contains the
87962         old active_dir_ht and cycle_state.  All uses changed to mention
87963         fts_cycle.ht and fts_cycle.state.
87964         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
87965         fts.c, with the following changes:
87966         (setup_dir, free_dir): New functions.
87967         (enter_dir): Now returns bool.  Return true if successful, false
87968         if memory exhausted.  All callers changed.
87969         Do not bother partly cleaning up on
87970         memory allocation failure; that is free_dir's job.
87971         However, free ad if hash_insert fails, to avoid memory leak.
87972         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
87973         fts->fts_options to see which union member to use.
87974
87975 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87976
87977         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
87978         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
87979
87980 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87981
87982         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
87983
87984 2005-05-20  Jim Meyering  <jim@meyering.net>
87985
87986         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
87987         Now a macro, to pacify GCC.
87988
87989 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87990
87991         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
87992         of -1.
87993
87994 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87995
87996         * lib/chown.c (rpl_chown): Return -1 on failure.
87997
87998 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87999
88000         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
88001         Don't check for stddef.h.
88002         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
88003         don't use its results.
88004         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
88005         since we include them unconditionally.  Don't require
88006         AM_STDBOOL_H, since stdbool is a prerequisite.
88007         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
88008         since we assume C89 or better.
88009         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
88010         as we don't use their results.
88011         Don't check for fchdir, memmove, memset, strrchr, as we use
88012         them unconditionally.
88013         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
88014         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
88015
88016 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88017
88018         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
88019         Include <stddef.h> unconditionally, since we assume C89 now.
88020         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
88021         * lib/fts.c: Include fts_.h first, to check interface.
88022         Do not include intprops.h; no longer needed.
88023         Include cycle-check.h and hash.h, since fts_.h no longer does.
88024         Remove unnecessary casts of closedir to void.
88025         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
88026         decide whether to decrement nlinks.
88027         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
88028         (FTS): Use struct hash_table * instead of Hash_table, so that
88029         we no longer need to include hash.h here.
88030
88031 2005-05-18  Jim Meyering  <jim@meyering.net>
88032
88033         * modules/dirfd (License): Change to LGPL.  Most of the code
88034         is already in the public domain.
88035
88036 2005-05-18  Jim Meyering  <jim@meyering.net>
88037
88038         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
88039         Reported by Yoann Vandoorselaere.
88040
88041 2005-05-17  Jim Meyering  <jim@meyering.net>
88042
88043         * m4/fts.m4: New file, from coreutils.
88044
88045 2005-05-17  Jim Meyering  <jim@meyering.net>
88046
88047         * lib/fts.c, lib/fts_.h: New files, from coreutils.
88048
88049 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88050
88051         Sync from coreutils.
88052         * m4/unlinkdir.m4: New file.
88053
88054 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88055
88056         Sync from coreutils.
88057         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
88058         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
88059         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
88060         White space changes only.
88061         * lib/makepath.c (make_path): Port to hosts where leading "//" is
88062         special.
88063         * lib/yesno.c: Include getline.h, not ctype.h.
88064         (yesno): Don't remove leading white space; POSIX doesn't allow it.
88065         Use getline to remove arbitrary restriction on response length.
88066
88067 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88068
88069         * config/srclist-update: Spell out "Street" in FSF postal
88070         mail address; this is the style the FSF seems to prefer.
88071
88072         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
88073         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
88074         this updates FSF postal mail address.
88075
88076         Sync from coreutils.
88077         * modules/unlinkdir: New file.
88078         * modules/yesno (Depends-on): Add getline.
88079         * MODULES.html.sh (File system functions): Add unlinkdir.
88080
88081 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88082
88083         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
88084         lib/strsep.h:
88085         Change the initial comment to refer to GPL, not LGPL.
88086         gnulib-tool will change it to LGPL as needed.
88087
88088         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
88089         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
88090         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
88091         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
88092         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
88093         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
88094         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
88095         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
88096         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
88097         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
88098         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
88099         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
88100         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
88101         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
88102         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
88103         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
88104         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
88105         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
88106         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
88107         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
88108         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
88109         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
88110         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
88111         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
88112         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
88113         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
88114         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
88115         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
88116         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
88117         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
88118         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
88119         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
88120         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
88121         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
88122         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
88123         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
88124         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
88125         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
88126         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
88127         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
88128         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
88129         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
88130         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
88131         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
88132         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
88133         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
88134         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
88135         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
88136         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
88137         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
88138         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88139         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
88140         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
88141         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
88142         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
88143         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
88144         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
88145         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
88146         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
88147         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
88148         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
88149         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
88150         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
88151         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
88152         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
88153         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
88154         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
88155         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
88156         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
88157         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
88158         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
88159         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
88160         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
88161         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
88162         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
88163         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
88164         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
88165         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
88166         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
88167         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
88168         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
88169         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
88170         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
88171         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
88172         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
88173         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
88174         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
88175         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
88176         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
88177         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
88178         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
88179         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
88180         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
88181         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
88182         lib/yesno.c, lib/yesno.h:
88183         Update FSF postal mail address.
88184
88185 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88186
88187         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
88188         tests/test-memmem.c, tests/test-stpncpy.c:
88189         Update FSF postal mail address.
88190
88191 2005-05-13  Bruno Haible  <bruno@clisp.org>
88192
88193         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
88194         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
88195         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
88196         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
88197         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
88198         Add support for 64-bit integers in the MSVC compiler.
88199
88200 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88201
88202         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
88203
88204 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
88205
88206         * gnulib-tool (func_import): Sort and uniquify recommended includes.
88207
88208 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
88209
88210         * doc/getdate.texi (General date syntax): Don't say that date
88211         date --iso-8601=ns generates acceptable dates; it doesn't yet.
88212         Problem reported by Nic Ferrier.
88213
88214 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88215
88216         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
88217         specified in ai_socktype. Fix invalid ai_protocol
88218         check. ai_protocol is usually set to 0 or depending on
88219         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
88220         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
88221         ai_socktype / ai_protocol in the returned addrinfo structure.
88222
88223 2005-05-10  Simon Josefsson  <jas@extundo.com>
88224
88225         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
88226         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88227
88228 2005-05-10  Karl Berry  <karl@gnu.org>
88229
88230         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
88231         (from http://www.gnu.org/licenses).
88232         * doc/COPYING.LIB: also rename to COPYING.LESSER.
88233         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
88234         fdl.texi suffices.
88235
88236 2005-05-10  Karl Berry  <karl@gnu.org>
88237
88238         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
88239         (COPYING.DOC): remove.
88240
88241         * config/srclist-update: new FSF address.
88242
88243 2005-05-10  Derek Price  <derek@ximbiot.com>
88244
88245         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
88246         possible.
88247
88248 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88249             Bruno Haible  <bruno@clisp.org>
88250
88251         * modules/inet_ntop: New file.
88252         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88253         inet_ntop.
88254
88255 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88256             Bruno Haible  <bruno@clisp.org>
88257
88258         * m4/inet_ntop.m4: New file.
88259
88260 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88261             Bruno Haible  <bruno@clisp.org>
88262
88263         * lib/inet_ntop.h: New file.
88264         * lib/inet_ntop.c: New file, from glibc with modifications.
88265
88266 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
88267
88268         * modules/time_r (License): Change to LGPL.
88269         * modules/extensions (License): Change to LGPL.  Actually,
88270         the license is more permissive than that, but currently gnulib-tool
88271         doesn't know how to handle more-permissive licenses.
88272
88273         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
88274         Problem reported by Dave Love.
88275
88276 2005-05-08  Jim Meyering  <jim@meyering.net>
88277
88278         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
88279         blank.
88280
88281 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88282
88283         * modules/argmatch (Depends-on): Add stdbool.
88284         * modules/backupfile (Depends-on): Likewise.
88285         * modules/chdir-long (Depends-on): Likewise.
88286         * modules/closeout (Depends-on): Likewise.
88287         * modules/cycle-check (Depends-on): Likewise.
88288         * modules/dirname (Depends-on): Likewise.
88289         * modules/fnmatch (Depends-on): Likewise.
88290         * modules/fsusage (Depends-on): Likewise.
88291         * modules/fwriteerror (Depends-on): Likewise.
88292         * modules/getcwd (Depends-on): Likewise.
88293         * modules/getloadavg (Depends-on): Likewise.
88294         * modules/hard-locale (Depends-on): Likewise.
88295         * modules/makepath (Depends-on): Likewise.
88296         * modules/mountlist (Depends-on): Likewise.
88297         * modules/nanosleep (Depends-on): Likewise.
88298         * modules/posixtm (Depends-on): Likewise.
88299         * modules/quotearg (Depends-on): Likewise.
88300         * modules/readtokens (Depends-on): Likewise.
88301         * modules/readtokens0 (Depends-on): Likewise.
88302         * modules/readutmp (Depends-on): Likewise.
88303         * modules/save-cwd (Depends-on): Likewise.
88304         * modules/strftime (Depends-on): Likewise.
88305         * modules/userspec (Depends-on): Likewise.
88306         * modules/utimecmp (Depends-on): Likewise.
88307         * modules/xgetcwd (Depends-on): Likewise.
88308         * modules/xnanosleep (Depends-on): Likewise.
88309         * modules/xstrtod (Depends-on): Likewise.
88310         * modules/yesno (Depends-on): Likewise.
88311
88312 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
88313
88314         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
88315         needless checks.
88316
88317 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88318
88319         Merge from coreutils.  Among other things,
88320         add bulletproofing for cases where stdin, stdout, or stderr are closed.
88321         * lib/fd-safer.c: New file.
88322         * lib/fcntl-safer.h, open-safer.c: Remove.
88323         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
88324         * lib/dup-safer.c: Include unistd-safer.h first.
88325         Don't include errno.h.
88326         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
88327         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
88328         * lib/file-type.c: Rely on file-type.h change.
88329         * lib/getloadavg.c: Include unistd-safer.h.
88330         (getloadavg): Use safer open.
88331         * lib/getusershell.c: Include "stdio-safer.h".
88332         (getusershell): Use safer fopen.
88333         * lib/long-options.c (long_options): Use NULL rather than 0.
88334         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
88335         'free'.
88336         * lib/modechange.c: Likewise.
88337         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
88338         (MODE_DONE): New constant.
88339         (struct mode_change): Remove 'next' member.
88340         (make_node_op_equals): New function; like the old one of the
88341         same name, except it allocates an array.
88342         (mode_compile, mode_create_from_ref): Use it.
88343         (mode_compile): Allocate result as an array, not a linked list.
88344         Parse octal string ourself, so that we catch mistakes like "+0".
88345         (mode_adjust): Arg is an array, not a linked list.
88346         * lib/modechange.c: Include stat-macros.h, xalloc.h.
88347         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
88348         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
88349         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
88350         Remove.  This is now stat-macros.h's job.
88351         (talloc): Remove.  All callers replaced by xalloc, so that
88352         our invokers don't have to worry about reporting memory failures.
88353         (make_node_op_equals): Remove.
88354         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88355         New constants.
88356         (struct mode_change): Moved here from modechange.h.
88357         (mode_append_entry): Remove.
88358         (mode_compile): Remove MASKED_OPS arg, since it encouraged
88359         apps to have incorrect behavior.  Use simpler algorithm for head
88360         and tail.  Don't futz with umask; that's now the job of mode_adjust.
88361         Detect more invalid usages rather than having somewhat-random behavior.
88362         Don't insert an "a=" action, as that leads to incorrect behavior.
88363         (mode_compile, mode_create_from_ref): Return NULL on error instead
88364         of an enum, since now there's only one way to have an error.  All
88365         callers changed.
88366         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
88367         at the correct time.  Simplify calculation of "+u" and its ilk.
88368         Don't mishandle "+X".
88369         (mode_free): Remove "register" and localize decls.
88370         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88371         (struct mode_change): Move to modechange.c; callers don't
88372         need to see this stuff.
88373         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
88374         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
88375         (mode_change, mode_adjust): Reflect the new signatures noted above.
88376         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
88377         that might redefine system include files.
88378         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
88379         (my_usleep): Use NULL rather than (void *) 0.
88380         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
88381         Use siginterrupt to specify that system calls should be interrupted.
88382         (rpl_nanosleep): Move initialization of suspended closer to call of
88383         my_usleep.
88384         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
88385         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
88386         (desirable_utmp_entry): New function.
88387         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
88388         using x2nrealloc, to simplify logic.
88389         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
88390         size calculation.  Do not assume utmp file is a regular file.
88391         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
88392         (READ_UTMP_CHECK_PIDS): New constant.
88393         * lib/save-cwd.c: Include unistd-safer.h.
88394         (save_cwd): Use fd_safer.
88395         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
88396         [!_LIBC] Include "stat-macros.h" instead.
88397         * lib/unistd-safer.h (fd_safer): New decl.
88398
88399 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88400
88401         * modules/getloadavg (Depends-on): Add unistd-safer.
88402         * modules/getusershell (Depends-on): Add stdio-safer.
88403         * modules/lstat (Depends-on): Remove xalloc.
88404         * modules/mkstemp (Depends-on): Add stat-macros.
88405         * modules/modechange (Depends-on): Remove xstrtol.
88406         Add stat-macros, xalloc.
88407         * modules/save-cwd (Depends-on): Add unistd-safer.
88408         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
88409         * modules/unistd-safer (Files): Add lib/fd-safer.c
88410         (Makefile.am): Remove lib_SOURCES.
88411
88412         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
88413         Remove fcntl-safer; unistd-safer supersedes it.
88414
88415 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88416
88417         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
88418         AC_HEADER_STAT.
88419         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
88420         (gl_PREREQ_CHOWN): Remove.
88421         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
88422         it.  Don't require AC_HEADER_STAT.
88423         (gl_PREREQ_LSTAT): Remove.
88424         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
88425         Don't require AC_HEADER_STAT.
88426         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
88427         (gl_PREREQ_RMDIR): Remove.
88428         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
88429         mention stat-macros.h or AC_HEADER_STAT, since we'll make
88430         the stat-macros module a prerequisite.
88431         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
88432         * m4/filemode.m4 (gl_FILEMODE): Likewise.
88433         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
88434         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
88435         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
88436         variable names.
88437         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
88438         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
88439         variable prefixes.
88440         * m4/fcntl-safer.m4: Remove.
88441         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
88442         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
88443         Invoke gl_PREREQ_FD_SAFER.
88444         (gl_PREREQ_FD_SAFER): New macro.
88445         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
88446         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
88447         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
88448         Remove duplicate call to AC_LIBOBJ(readutmp).
88449         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
88450
88451         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
88452         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
88453
88454 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88455
88456         * MODULES.html.sh (Misc): Add byteswap.
88457
88458 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88459
88460         * modules/getcwd (Depends-on): Add extensions.
88461         * modules/openat (Depends-on): Likewise.
88462
88463 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88464
88465         * modules/byteswap: New file.
88466
88467 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88468
88469         * m4/byteswap.m4: New file.
88470
88471 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88472
88473         * lib/byteswap_.h: New file.
88474
88475 2005-04-25  Karl Berry  <karl@gnu.org>
88476
88477         * m4/gettext.m4: Update from GNU gettext 0.14.4.
88478
88479 2005-04-25  Albert Chin  <china@thewrittenword.com>
88480
88481         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
88482         Toolkit C bug.
88483
88484 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
88485
88486         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
88487         (func_ln_if_changed): Remove forcibly for no error message
88488         in case file does not exist.
88489
88490 2005-04-19  Simon Josefsson  <jas@extundo.com>
88491
88492         * gnulib-tool (Options): Make --symlink mean --symbolic.
88493
88494 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
88495
88496         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
88497
88498 2005-04-16  Simon Josefsson  <jas@extundo.com>
88499
88500         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
88501
88502 2005-04-15  Simon Josefsson  <jas@extundo.com>
88503
88504         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
88505
88506 2005-04-15  Simon Josefsson  <jas@extundo.com>
88507
88508         * gnulib-tool: Rename --symlink to --symbolic.
88509
88510 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
88511
88512         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
88513         symbolic links to files instead of copying/moving.  Add --aux-dir,
88514         specifying directory relative --dir where auxiliary build tools
88515         are placed.
88516
88517 2005-04-14  Bruno Haible  <bruno@clisp.org>
88518
88519         * modules/allocsa (License): Change to LGPL.
88520         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88521
88522 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
88523
88524         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
88525         that "UTC +1 second" continues to work.  Problem reported
88526         by Dmitry V. Levin.
88527         (relunit_snumber): New rule.
88528         (relunit): Use it.
88529
88530 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
88531
88532         * lib/getdate.y (universal_time_zone_table): New constant.
88533         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
88534         universal_time_zone_table.
88535         (lookup_zone): Prefer universal_time_zone_table to
88536         local_time_zone_table, so that "GMT" time stamps are allowed in
88537         London during the summer.  Problem reported by Ian Abbott.
88538
88539 2005-04-12  Jim Meyering  <jim@meyering.net>
88540
88541         * lib/human.c (humblock): Set *options even when returning due to
88542         xstrtoumax conversion failure.  Thanks to a used-uninitialized
88543         warning from gcc-4.
88544
88545 2005-04-09  Jim Meyering  <jim@meyering.net>
88546
88547         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
88548         -Wuninitialized: initialize tm0.tm_year.
88549
88550 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
88551
88552         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
88553         count, since there's no maximum.  All uses changed.
88554         Add member dsts_seen.
88555         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
88556         not being INT_MAX.
88557         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
88558         Use pc_rels_seen to decide whether a date is absolute.
88559
88560         * lib/getdate.y (number): Don't overwrite year.
88561         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
88562         check.
88563
88564 2005-04-02  Simon Josefsson  <jas@extundo.com>
88565
88566         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
88567         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
88568
88569 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
88570
88571         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
88572         where no absolute path name can be longer than PATH_MAX.
88573
88574 2005-03-27  Jim Meyering  <jim@meyering.net>
88575
88576         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
88577
88578 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
88579
88580         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
88581         "one's complement" -> "ones' complement" in comment, as per Knuth.
88582         "value of type" -> "type or expression" in comment.
88583         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
88584
88585 2005-03-26  Jim Meyering  <jim@meyering.net>
88586
88587         Comment nits.
88588         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
88589         Correct typos: s/or/of/.
88590
88591 2005-03-26  Jim Meyering  <jim@meyering.net>
88592
88593         * modules/check-include-files: Move to ../ and rename to...
88594         * check-module: ...this.
88595
88596 2005-03-25  Jim Meyering  <jim@meyering.net>
88597
88598         * modules/xvasprintf (Files): Add xalloc.h.
88599
88600 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
88601
88602         * modules/gettext (Files): config/config.rpath ->
88603         build-aux/config.rpath
88604         * modules/iconv (Files): Likewise.
88605         Problem reported by Oskar Liljeblad.
88606
88607 2005-03-23  Jim Meyering  <jim@meyering.net>
88608
88609         * modules/check-include-files: New script to check for
88610         missing dependencies, multiple includes, etc.
88611
88612         * modules/c-strtold (Depends-on): Add xalloc.
88613         * modules/c-strtod (Depends-on): Add xalloc.
88614         * modules/hash (Depends-on): Add xalloc.
88615         (Files): Remove lib/xalloc.h.
88616
88617         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
88618         * modules/userspec (Files): Add lib/inttostr.h.
88619
88620 2005-03-23  Jim Meyering  <jim@meyering.net>
88621
88622         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
88623
88624 2005-03-22  Jim Meyering  <jim@meyering.net>
88625
88626         * modules/stat-macros: New module.
88627         * modules/canonicalize, modules/euidaccess, modules/file-type,
88628         * modules/filemode, modules/lchown, modules/makepath,
88629         * modules/rmdir, modules/stat: Depend on new stat-macros module
88630         rather than listing lib/stat-macros.h manually.
88631         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
88632
88633 2005-03-22  Jim Meyering  <jim@meyering.net>
88634
88635         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
88636
88637 2005-03-22  Bruno Haible  <bruno@clisp.org>
88638
88639         * config/srclist.txt: Replace target directory 'config' with
88640         'build-aux'.
88641         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
88642         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
88643         ../build-aux/.
88644
88645 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
88646
88647         * modules/chdir-long (Depends-on): Add mempcpy.
88648
88649         * modules/acl, modules/backupfile, modules/c-strtod,
88650         modules/c-strtold, modules/canon-host, modules/canonicalize,
88651         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
88652         modules/exclude, modules/exitfail, modules/file-type,
88653         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
88654         modules/getdate, modules/getline, modules/getpagesize,
88655         modules/getpass, modules/getugroups, modules/group-member,
88656         modules/hard-locale, modules/hash, modules/human, modules/idcache,
88657         modules/inttostr, modules/long-options, modules/makepath,
88658         modules/md5, modules/memcasecmp, modules/memcoll,
88659         modules/modechange, modules/mountlist, modules/path-concat,
88660         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
88661         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
88662         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
88663         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
88664         modules/strftime, modules/strndup, modules/strverscmp,
88665         modules/timespec, modules/unlocked-io, modules/userspec,
88666         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
88667         modules/yesno:
88668         Remove lib_SOURCES line from Makefile.am section, as this is now
88669         done automatically by the corresponding Autoconf macro.
88670
88671 2005-03-21  Jim Meyering  <jim@meyering.net>
88672
88673         Changes imported from coreutils.
88674
88675         * lib/cycle-check.c: Don't include xalloc.h.
88676
88677         * lib/path-concat.c: Don't include assert.h.
88678         (path_concat): Remove assertion that would have triggered
88679         for ABASE starting with more than one slash.
88680         Reported by Andreas Schwab.
88681
88682         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
88683         properly when ABASE is an absolute file name.
88684         Correct the description of this function.
88685         Include <assert.h>.
88686         Add an assertion and a test driver.
88687         This fixes a bug introduced on 2004-07-02.
88688         Andreas Schwab reported the resulting failure of cp --parents:
88689         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
88690
88691 2005-03-21  Jim Meyering  <jim@meyering.net>
88692
88693         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
88694         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
88695
88696 2005-03-21  Jim Meyering  <jim@meyering.net>
88697         and  Paul Eggert  <eggert@cs.ucla.edu>
88698
88699         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
88700         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
88701         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
88702         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
88703         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
88704         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
88705         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
88706         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
88707         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
88708         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
88709         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
88710         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
88711         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
88712         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
88713         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
88714         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
88715         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
88716         for these modules.
88717
88718 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
88719
88720         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
88721         (which shouldn't happen), generate nothing instead of returning 0
88722         immediately, so that nstrftime (NULL, ...) doesn't return 0.
88723
88724 2005-03-16  Bruno Haible  <bruno@clisp.org>
88725
88726         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
88727         HAVE_LONGLONG_64BIT.
88728
88729 2005-03-16  Bruno Haible  <bruno@clisp.org>
88730
88731         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
88732         HAVE_LONGLONG_64BIT.
88733
88734 2005-03-16  Bruno Haible  <bruno@clisp.org>
88735
88736         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
88737         HAVE_LONGLONG_64BIT.
88738
88739 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88740
88741         * lib/strftime.c (my_strftime): Prepend space to format so that we can
88742         reliably distinguish strftime failure from empty output on POSIX
88743         hosts.
88744
88745 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88746
88747         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
88748         (iconv_string): Don't guess a size-zero buffer, as that might cause
88749         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
88750         result would be 'too large', where 'too large' is (heuristically)
88751         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
88752         overflow concerns.  This will prevent some unwanted malloc failures
88753         when the inputs are very large.
88754
88755 2005-03-15  Karl Berry  <karl@gnu.org>
88756
88757         * config/srclist.txt (config.rpath): from gettext.
88758         * config/config.rpath: update.
88759
88760 2005-03-15  Bruno Haible  <bruno@clisp.org>
88761
88762         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
88763         to 'negate'.
88764
88765         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
88766         variable.
88767
88768         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
88769         results.
88770
88771 2005-03-14  Simon Josefsson  <jas@extundo.com>
88772
88773         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
88774         <fx@gnu.org>.
88775
88776 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
88777
88778         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
88779         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
88780         intprops.h.
88781         * lib/strtol.c: Likewise.
88782
88783 2005-03-14  Jim Meyering  <jim@meyering.net>
88784
88785         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
88786         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
88787         to be nonzero so that we (and caller) can detect the difference
88788         between a valid zero-length expansion and an error return, even
88789         when the underlying strftime fails before writing anything into
88790         that location.
88791
88792 2005-03-14  Bruno Haible  <bruno@clisp.org>
88793
88794         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
88795         Update from GNU gettext 0.14.3.
88796
88797 2005-03-10  Jim Meyering  <jim@meyering.net>
88798
88799         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
88800
88801 2005-03-10  Jim Meyering  <jim@meyering.net>
88802
88803         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
88804         so that this module works on systems without fchdir.
88805
88806 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
88807
88808         Factor int-properties macros into a single file, except for
88809         glibc-related files.
88810         * lib/intprops.h: New file.
88811         * lib/getloadavg.c: Include it instead of limits.h.
88812         (INT_STRLEN_BOUND): Remove.
88813         * lib/human.c: Include intprops.h.
88814         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
88815         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
88816         302/1000.
88817         * lib/inttostr.h: Include intprops.h instead of limits.h.
88818         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
88819         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
88820         for consistency with intprops.h.
88821         (time_t_is_integer, twos_complement_arithmetic): Use them.
88822         * lib/sig2str.h: Include <signal.h>, intprops.h.
88823         (INT_STRLEN_BOUND): Remove.
88824         * lib/strftime.c (TYPE_SIGNED): Remove.
88825         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
88826         * lib/strtol.c: Adjust comments to match intprops.h.
88827         * lib/userspec.c: Include intprops.h.
88828         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
88829         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
88830         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
88831         instead of rolling our own expressions.
88832         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
88833
88834         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
88835         instead of int.
88836         (my_strftime): Do not mishandle years close to INT_MAX, by doing
88837         the right thing even if adding 1900 would overflow.  Similarly
88838         for tm_mon + 1 and tm_yday + 1.
88839         Make %Y always equivalent to %C%y, and similarly for %G and %g.
88840         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
88841         (DO_SIGNED_NUMBER): New macro.
88842         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
88843
88844 2005-03-07  Bruno Haible  <bruno@clisp.org>
88845
88846         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
88847
88848 2005-03-07  Bruno Haible  <bruno@clisp.org>
88849
88850         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
88851
88852 2005-03-04  Derek R. Price  <derek@ximbiot.com>
88853
88854         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
88855         (func_import): Only replace files via --import when they have actually
88856         changed.
88857
88858 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88859
88860         * m4/mmap-anon.m4: New file.
88861         * m4/pagealign_alloc.m4: New file.
88862
88863 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88864             Bruno Haible  <bruno@clisp.org>
88865
88866         * modules/pagealign_alloc: New file.
88867         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
88868
88869 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88870             Bruno Haible  <bruno@clisp.org>
88871
88872         * lib/pagealign_alloc.h: New file.
88873         * lib/pagealign_alloc.c: New file.
88874
88875 2005-03-03  Bruno Haible  <bruno@clisp.org>
88876
88877         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
88878         Use an all-permissive copyright notice, recommended by RMS.
88879
88880 2005-03-02  Bruno Haible  <bruno@clisp.org>
88881
88882         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
88883         of AIX, the replacement has to be done only after <string.h> is
88884         included, therefore not in config.h. stpncpy.h does the replacement,
88885         and stpncpy.c uses it.
88886
88887 2005-03-02  Bruno Haible  <bruno@clisp.org>
88888
88889         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
88890         stpncpy.c uses it.
88891
88892 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88893
88894         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
88895         The workaround isn't strictly needed for POSIX conformance, and
88896         it's too much of a pain to configure and maintain.  We'll ask
88897         people to fix their kernels instead.
88898         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
88899         (NANOSLEEP_BUG_WORKAROUND): Remove.
88900         (xnanosleep): Remove the workaround.
88901
88902 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88903
88904         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
88905         Reported by Derek Price.
88906         (Include): Add "timespec.h".
88907
88908         * modules/xnanosleep (Depends-on): Remove gethrxtime.
88909
88910 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88911
88912         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
88913         to detect nanosleep bug.
88914
88915 2005-03-01  Bruno Haible  <bruno@clisp.org>
88916
88917         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
88918
88919 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
88920
88921         * modules/gethrxtime: New file.
88922         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
88923         (Depends-on): Add gethrxtime.
88924         (configure.ac): Add gl_XNANOSLEEP.
88925         (Makefile.am): Remove lib_SOURCES line.
88926
88927 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88928
88929         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
88930         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
88931
88932 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88933
88934         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
88935         * lib/timespec.h (gettime): Return void, since it always
88936         succeeds now.  All uses changed.
88937         * lib/gettime.c (gettime): Likewise.
88938         [HAVE_NANOTIME]: Prefer nanotime.
88939         Assume gettimeofday succeeds, as POSIX requires.
88940         Assime time () succeeds, since other code already does.
88941         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
88942         (timespec_subtract): Remove.
88943         (NANOSLEEP_BUG_WORKAROUND): New constant.
88944         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
88945         things considerably.  Use it only on GNU/Linux hosts, since the
88946         workaround shouldn't be needed elsewhere.
88947
88948 2005-02-24  Bruno Haible  <bruno@clisp.org>
88949
88950         * modules/gettext (Files): Add m4/glibc2.m4.
88951
88952 2005-02-24  Bruno Haible  <bruno@clisp.org>
88953
88954         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
88955         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
88956         * m4/progtest.m4:
88957         Update from GNU gettext 0.14.2.
88958         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
88959
88960 2005-02-24  Bruno Haible  <bruno@clisp.org>
88961
88962         * lib/localcharset.c: Update from GNU gettext 0.14.2.
88963         * lib/config.charset: Update from GNU gettext 0.14.2.
88964
88965 2005-02-24  Bruno Haible  <bruno@clisp.org>
88966
88967         * lib/gettext.h: Update from GNU gettext 0.14.2.
88968
88969 2005-02-23  Simon Josefsson  <jas@extundo.com>
88970
88971         * m4/iconvme.m4: New file.
88972
88973 2005-02-23  Jim Meyering  <jim@meyering.net>
88974
88975         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
88976         change.
88977         Thanks to Bruno Haible for catching it.
88978
88979 2005-02-22  Simon Josefsson  <jas@extundo.com>
88980
88981         * modules/iconvme: New file.
88982
88983         * MODULES.html.sh: Add iconvme.
88984
88985 2005-02-22  Simon Josefsson  <jas@extundo.com>
88986
88987         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
88988
88989 2005-02-22  Simon Josefsson  <jas@extundo.com>
88990
88991         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
88992
88993 2005-02-22  Jim Meyering  <jim@meyering.net>
88994
88995         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
88996         s/ifndef/ifdef/.
88997
88998 2005-02-20  Neil Conway  <neilc@samurai.com>
88999
89000         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
89001         returned by OSX/Darwin if the specified buffer is not large
89002         enough for the hostname.
89003
89004 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89005
89006         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
89007         pass it to _help, otherwise the latter coredumps trying to
89008         dereference state.root_argp.
89009
89010 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89011
89012         * modules/chdir-long (Depends-on): Add memrchr.
89013         * modules/memrchr (Files): Add lib/memrchr.h.
89014         (Include): "memrchr.h".
89015
89016 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89017
89018         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
89019
89020 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89021
89022         * lib/memrchr.h: New file.
89023         * lib/chdir-long.c: Include it.
89024         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
89025         Don't bother including stddef.h.
89026
89027 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
89028
89029         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
89030         inclusion.
89031         Include <sys/types.h>, for dev_t.
89032         (ME_DUMMY, ME_REMOTE): Move from here....
89033         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
89034         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
89035         Dmitry V. Levin.
89036         Include mountlist.h first, to test the interface.
89037
89038 2005-01-29  Bruno Haible  <bruno@clisp.org>
89039
89040         * lib/progname.c (program_name): Initialize.
89041         Needed when linking statically on MacOS X.
89042
89043 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89044
89045         Sync from coreutils.
89046         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
89047         (Depends-on): Add c-strtod.
89048         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
89049
89050 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89051
89052         Sync from coreutils.
89053         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
89054
89055         Remove files that are specific to coreutils.
89056         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
89057
89058 2005-01-28  Bruno Haible  <bruno@clisp.org>
89059
89060         * modules/javacomp: New file.
89061         * MODULES.html.sh (Java): Add javacomp.
89062
89063 2005-01-28  Bruno Haible  <bruno@clisp.org>
89064
89065         * m4/javacomp.m4: New file, from GNU gettext.
89066
89067 2005-01-28  Bruno Haible  <bruno@clisp.org>
89068
89069         * lib/javacomp.sh.in: New file, from GNU gettext.
89070         * lib/javacomp.h: New file, from GNU gettext.
89071         * lib/javacomp.c: New file, from GNU gettext.
89072
89073 2005-01-26  Simon Josefsson  <jas@extundo.com>
89074
89075         * lib/gai_strerror.c: Use GPL in header.
89076
89077 2005-01-26  Bruno Haible  <bruno@clisp.org>
89078
89079         * modules/javaexec: New file.
89080         * MODULES.html.sh (Java): Add javaexec.
89081
89082 2005-01-26  Bruno Haible  <bruno@clisp.org>
89083
89084         * m4/javaexec.m4: New file, from GNU gettext.
89085
89086 2005-01-26  Bruno Haible  <bruno@clisp.org>
89087
89088         * lib/javaexec.sh.in: New file, from GNU gettext.
89089         * lib/javaexec.h: New file, from GNU gettext.
89090         * lib/javaexec.c: New file, from GNU gettext.
89091
89092 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89093
89094         * modules/lchown (Depends-on): Remove lchown.h
89095
89096 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89097
89098         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
89099         must be defined if the header file was not found, in order
89100         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
89101
89102 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89103
89104         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
89105         initializers for struct pentry_state.
89106         (__argp_error): Check return value of __asprintf
89107         (__argp_failure): Translate error message
89108
89109         * lib/argp-parse.c: Removed braces around the expansion of N_()
89110
89111 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
89112
89113         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
89114         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
89115         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
89116         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
89117         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
89118         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
89119         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
89120         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
89121         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
89122         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
89123         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
89124         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
89125         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
89126         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
89127         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
89128         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
89129         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
89130         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
89131         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
89132         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
89133         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
89134         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
89135         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
89136         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
89137         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
89138         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
89139         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
89140         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
89141         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
89142         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
89143         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
89144         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
89145         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
89146         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
89147         xstrtol.m4, xstrtoumax.m4, yesno.m4:
89148         Use an all-permissive copyright notice, recommended by RMS.
89149
89150 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
89151
89152         * modules/chdir-long (Depends-on): Remove mempcpy.
89153
89154 2005-01-21  Jim Meyering  <jim@meyering.net>
89155
89156         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
89157         same value as for Solaris 9.
89158
89159         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
89160         component length.  This included changing the parameter to be
89161         of type `char *' rather than `char const *'.
89162         * lib/chdir-long.h (chdir_long): Update prototype.
89163
89164         * lib/openat.c (fdopendir, fstatat): New functions.
89165         * lib/openat.h: Include headers required for use of DIR and struct
89166         stat.
89167         [AT_SYMLINK_NOFOLLOW]: Define.
89168         (fdopendir, fstatat): Add prototypes.
89169
89170 2005-01-21  Bruno Haible  <bruno@clisp.org>
89171
89172         * modules/classpath: New file.
89173         * MODULES.html.sh (Java): Add classpath.
89174
89175 2005-01-21  Bruno Haible  <bruno@clisp.org>
89176
89177         * lib/classpath.h: New file, from GNU gettext.
89178         * lib/classpath.c: New file, from GNU gettext.
89179
89180 2005-01-20  Simon Josefsson  <jas@extundo.com>
89181
89182         * modules/version-etc-fsf: New file.
89183
89184 2005-01-20  Simon Josefsson  <jas@extundo.com>
89185
89186         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
89187         * lib/version-etc.c: Remove version_etc_copyright.
89188         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
89189         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
89190
89191 2005-01-20  Simon Josefsson  <jas@extundo.com>
89192
89193         * lib/base64.h (isbase64): Add.
89194
89195         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
89196         using a unsigned prototype, don't inline.
89197         (base64_decode): Use it.
89198
89199 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89200
89201         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
89202         it.
89203
89204 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89205
89206         * lib/save-cwd.c (save_cwd): Remove code to support the case
89207         where fchdir is missing or flaky.
89208
89209 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89210
89211         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
89212
89213 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
89214
89215         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
89216         AC_LIBSOURCES now does this.
89217         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
89218         with new ullong_max module.
89219
89220 2005-01-19  Bruno Haible  <bruno@clisp.org>
89221
89222         * modules/sh-quote: New file.
89223         * MODULES.html.sh (Executing programs): Add sh-quote.
89224
89225 2005-01-19  Bruno Haible  <bruno@clisp.org>
89226
89227         * lib/sh-quote.h: New file, from GNU gettext.
89228         * lib/sh-quote.c: New file, from GNU gettext.
89229
89230 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89231
89232         Merge from coreutils.
89233         * m4/ullong_max.m4: New file.
89234         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
89235         (gl_MACROS): Assume localeconv exists.
89236
89237 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89238
89239         Merge changes from coreutils, as described below in several
89240         changelogs dated today.
89241
89242         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
89243         (O_DIRECTORY): Remove; not needed here, since "." must be
89244         a directory.  All uses removed.
89245         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
89246         universal on Suns, and we also need to test for IRIX.
89247         Revamp code to use 'if' rather than '#if'.
89248         Avoid unnecessary comparison of cwd->desc to 0.
89249
89250         * lib/utimens.c (futimens): Robustify the previous patch, by checking
89251         for known valid error numbers rather than observed invalid ones.
89252
89253 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89254
89255         * modules/ullong_max: New file.
89256
89257         * modules/chdir-long, modules/openat: New files.
89258         * modules/save-cwd (Depends-on): Depend on chdir-long.
89259         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
89260
89261 2005-01-18  Jim Meyering  <jim@meyering.net>
89262
89263         Merge from coreutils.
89264         * m4/chdir-long.m4, m4/openat.m4: New files.
89265         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
89266         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
89267         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
89268         is sane and DOES follow symlinks.  Besides, testing 20 different
89269         systems found no broken chown implementations.
89270         Prompted by a change in rsync's copy of this macro.
89271         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
89272
89273         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
89274
89275         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
89276         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
89277         NULL-means-set-to-current-time semantics.
89278         Remove temporary file immediately, rather than waiting
89279         for configure's at-exit trap code to do it.
89280
89281 2005-01-18  Jim Meyering  <jim@meyering.net>
89282
89283         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89284
89285         * lib/utimens.c (futimens): Account for the fact that futimes
89286         can also fail with errno == ENOSYS or errno == ENOENT.
89287         Patch from Dmitry V. Levin.
89288
89289         Change the name of the robust chdir function from chdir to chdir_long.
89290         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
89291         (restore_cwd): Use chdir_long, not chdir.
89292         * lib/chdir-long.c: Renamed from chdir.c.
89293         * lib/chdir-long.h: Renamed from chdir.h.
89294         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
89295         Hurd.
89296
89297 2005-01-18  Bruno Haible  <bruno@clisp.org>
89298
89299         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
89300         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
89301         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
89302         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
89303         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
89304         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
89305         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
89306         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
89307         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
89308         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
89309         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
89310         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
89311         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
89312         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
89313         Use an all-permissive copyright notice, recommended by RMS.
89314
89315 2005-01-18  Bob Proulx  <bob@proulx.com>
89316
89317         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
89318         simplify offsetof() macro construct to avoid compile failure with
89319         native HP-UX 11.0 ANSI C compiler.
89320
89321 2005-01-17  Bruno Haible  <bruno@clisp.org>
89322
89323         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
89324         redundant because stpncpy.m4 takes care of it.
89325
89326 2005-01-17  Bruno Haible  <bruno@clisp.org>
89327
89328         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
89329
89330 2005-01-17  Bruno Haible  <bruno@clisp.org>
89331
89332         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
89333         used.
89334
89335 2005-01-17  Bruno Haible  <bruno@clisp.org>
89336
89337         * lib/fwriteerror.h (fwriteerror): Change specification to include
89338         fclose.
89339         * lib/fwriteerror.c: Include <stdbool.h>.
89340         (fwriteerror): At the end, close the file stream. Record whether
89341         stdout was already closed.
89342
89343 2005-01-17  Bruno Haible  <bruno@clisp.org>
89344
89345         * lib/execute.c (environ): Declare if needed.
89346         * lib/pipe.c (environ): Likewise.
89347         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
89348
89349 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89350
89351         * modules/argp: Depend on vsnprintf
89352
89353 2005-01-10  Jim Meyering  <jim@meyering.net>
89354
89355         * modules/closeout (Depends-on): Add atexit.
89356
89357 2005-01-06  Bruno Haible  <bruno@clisp.org>
89358
89359         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
89360
89361 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
89362
89363         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
89364         definitions to be after all include files, to avoid collisions.
89365         Problem reported by Bob Proulx.
89366
89367 2005-01-04  Jim Meyering  <jim@meyering.net>
89368
89369         Changes imported from coreutils.
89370         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
89371         as the mkstemp template, use a temporary directory and an
89372         8.3-friendly template to avoid trouble on systems like DJGPP.
89373         Reported by Juan M. Guerrero via Stepan Kasal.
89374         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
89375         close. Remove the temporary directory right away, rather than waiting
89376         for configure's at-exit trap code to do it.
89377         Suggestion from Stepan Kasal.
89378
89379 2005-01-01  Simon Josefsson  <jas@extundo.com>
89380
89381         * gnulib-tool: Print #include directives when --import'ing.
89382
89383 2004-12-28  Simon Josefsson  <jas@extundo.com>
89384
89385         * tests/test-base64.c: Include required header files.  Remove
89386         unused variables.
89387
89388 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89389
89390         * modules/error (Depends-on): Remove gettext.
89391
89392 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89393
89394         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
89395         not needed.  This removes a dependency on the gettext module.
89396         [defined _LIBC]: Do not include <libintl.h>; not needed.
89397
89398 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89399
89400         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
89401         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
89402
89403 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89404
89405         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
89406         HAVE_DECL_STRTOLD.
89407
89408 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89409
89410         * modules/getdate (Depends-on): Remove alloca-opt.
89411
89412 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89413
89414         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
89415
89416 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89417
89418         * lib/argp-parse.c: Include <stddef.h>.
89419         (alignof, alignto): New macros.
89420         (parser_init): Don't assume that void * is aligned sufficiently
89421         for struct option.
89422
89423         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
89424         need to extend the stack.
89425         (YYINITDEPTH): New macro, so that the initial stack isn't overly
89426         large.
89427
89428 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89429
89430         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
89431
89432 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89433
89434         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
89435         (2004-10-24) change.  Apparently this was a false alarm.
89436
89437         * modules/getdate: Depend on alloca-opt, not alloca.
89438
89439 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89440
89441         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
89442         Remove now-obsolete comment about AIX.
89443         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
89444         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
89445         (YYMAXDEPTH): New macro.
89446
89447 2004-12-18  Simon Josefsson  <jas@extundo.com>
89448
89449         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
89450
89451 2004-12-18  Bruno Haible  <bruno@clisp.org>
89452
89453         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
89454
89455 2004-12-18  Bruno Haible  <bruno@clisp.org>
89456
89457         * lib/fatal-signal.c (fatal_signals): Make non-const.
89458         (init_fatal_signals): New function.
89459         (uninstall_handlers, install_handlers): Ignore signals that were set to
89460         SIG_IGN.
89461         (at_fatal_signal): Call init_fatal_signals.
89462         (init_fatal_signal_set): Likewise. Ignore signals that were set to
89463         SIG_IGN.
89464         Reported by Paul Eggert.
89465
89466 2004-12-18  Bruno Haible  <bruno@clisp.org>
89467
89468         * doc/alloca.texi: New file.
89469         * doc/alloca-opt.texi: New file.
89470
89471 2004-12-17  Jim Meyering  <jim@meyering.net>
89472
89473         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
89474         Otherwise, install-sh could exit with improper exit status when
89475         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
89476
89477 2004-12-16  Simon Josefsson  <jas@extundo.com>
89478
89479         * tests/test-base64.c: Add license.
89480
89481 2004-12-15  Stepan Kasal  <address@hidden>
89482
89483         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
89484
89485 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
89486
89487         * modules/getcwd (Files): Add m4/d-ino.m4.
89488         Suggested by Mark D. Baushke.
89489
89490 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89491
89492         * lib/getdate.y (textint): New member "negative".
89493         (time_zone_hhmm): New function.
89494         Expect 14 shift-reduce conflicts, not 13.
89495         (o_colon_minutes): New rule.
89496         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
89497         (yylex): Set the "negative" member of signed numbers.
89498
89499 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89500
89501         * doc/getdate.texi (Time of day items, Time zone items):
89502         Describe new formats +00:00, UTC+00:00.
89503
89504 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
89505
89506         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
89507         spurious "-l"s.  Problem reported by Stepan Kasal.
89508
89509 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
89510
89511         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
89512         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
89513
89514 2004-12-04  Simon Josefsson  <jas@extundo.com>
89515
89516         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
89517         Vandoorselaere <yoann@prelude-ids.org>.
89518
89519 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89520
89521         Changes imported from coreutils.
89522         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
89523         exist.
89524         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
89525
89526 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89527
89528         Changes imported from coreutils.
89529         * lib/hard-locale.c: Assume <locale.h> exists.
89530         Include "strdup.h".
89531         (GLIBC_VERSION): New macro.
89532         (hard_locale): Assume setlocale exists.
89533         Rewrite to avoid #ifdef.
89534         Use strdup rather than malloc + strcpy.
89535         * lib/human.c: Assume <locale.h> exists.
89536         (human_readable): Assume localeconv exists.
89537
89538 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89539
89540         * modules/hard-locale (Depends-on): Add strdup.
89541
89542 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
89543
89544         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
89545         convert T2, not T.  (Imported from libc.)
89546
89547 2004-11-30  Simon Josefsson  <jas@extundo.com>
89548
89549         * modules/restrict (License): Change to LGPL.
89550
89551 2004-11-30  Simon Josefsson  <jas@extundo.com>
89552
89553         * m4/restrict.m4: Add copyright and copying conditions.
89554
89555 2004-11-30  Simon Josefsson  <jas@extundo.com>
89556
89557         * m4/base64.m4: New file.
89558
89559 2004-11-30  Simon Josefsson  <jas@extundo.com>
89560
89561         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
89562         base64.
89563
89564         * tests/test-base64.c: New file.
89565
89566         * modules/base64: New file.
89567
89568 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89569
89570         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
89571         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
89572
89573         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
89574
89575 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89576
89577         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
89578         (__getcwd.c): Don't restore errno; glibc doesn't.
89579         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
89580         first, falling back to our code only if its results look suspicious.
89581         Ensure that the resulting buffer is only as large as necessary.
89582
89583         * lib/readutmp.c: Include readutmp.h first.
89584         Include <errno.h>, since readutmp.h no longer does that.
89585         * lib/readutmp.h: Don't include <errno.h>,
89586         <sys/param.h>, <time.h>; not needed to establish interface.
89587         (errno): Remove decl.
89588         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
89589         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
89590         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
89591
89592 2004-11-28  Simon Josefsson  <jas@extundo.com>
89593
89594         * lib/base64.h, base64.c: New file.
89595
89596 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
89597
89598         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
89599
89600 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
89601
89602         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
89603         (Depends-on): Remove pathmax, same.  Add mempcpy.
89604         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
89605         (Makefile.am): Append getcwd.h to lib_SOURCES.
89606         (Include): Add getcwd.h.
89607         (Maintainer): Change from Jim Meyering to "all, glibc",
89608         since getdate now uses intended-for-glibc code.
89609         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
89610         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
89611
89612 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89613
89614         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
89615         HP's ANSI C compiler.
89616         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
89617         Declaring int functions causes warnings on some modern systems and
89618         shouldn't be needed to compile on ancient ones.
89619         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
89620         defined.
89621
89622         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
89623         with the following changes.
89624         (__set_errno): Parenthesize properly.
89625         Include <stdbool.h>.
89626         (MIN, MAX, MATCHING_INO): New macros.
89627         (__getcwd): Define with prototype, not K&R form.
89628         Use heuristics to allocate default buffer on stack if possible.
89629         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
89630         behavior, and to avoid the PATH_MAX limit when computing
89631         ../../../../...
89632         Use MATCHING_INO to compare inode number to file.
89633         Check for arithmetic overflow in size calculations.
89634         Fix bug in reallocation of dot array that caused getcwd to fail
89635         on directories nested deeper than 75.
89636         Be more careful about saving errno on error.
89637         Do not use realloc; use only free+malloc, as this is a bit
89638         more flexible and avoids a needless copy operation.
89639         Do not inspect st_dev and st_ino for symbolic links; POSIX
89640         doesn't specify the latter.
89641         Check for closedir errors.
89642         Avoid needless casts.
89643         Use "#ifdef weak_alias" around weak_alias, to be like other
89644         glibc code.
89645         The following changes to getcwd.c have effect only when used in
89646         gnulib; they have no effect inside glibc proper.
89647         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
89648         as alloca isn't used.
89649         (alloca, __alloca): Likewise.
89650         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
89651         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89652         unconditionally, as gnulib assumes C89 or better.
89653         Do not include <sys/param.h>.
89654         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
89655         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
89656         better.
89657         (NULL) [!defined NULL]: Remove; we assume C89 or better.
89658         Include <dirent.h> in a way that is compatible with modern Autoconf.
89659         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
89660         New macros, if not already defined.
89661         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
89662         Use "_LIBC", not "defined _LIBC", for consistency.
89663         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
89664         a mempcpy module.
89665         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
89666         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
89667         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
89668         credit only to Jim Meyering and adjust the copyright dates.
89669         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
89670         <stdlib.h>, <unistd.h>, "pathmax.h".
89671         Instead, include "xgetcwd.h" (first) and "getcwd.h".
89672         (INITIAL_BUFFER_SIZE): Remove.
89673         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
89674
89675 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89676
89677         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
89678         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
89679         Use the _ONCE methods, for efficiency.
89680         Check for fcntl.h.  In test program, include <errno.h>
89681         and <fcntl.h> if available.  Remove old K&R cruft from
89682         test program.  Check for common errors in GNU/Linux,
89683         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
89684         don't do AC_LIBOBJ, as that's getcwd.m4's job.
89685         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
89686         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
89687         name accordingly.
89688         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
89689         accommodate new getcwd.c.
89690         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
89691         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
89692         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
89693         that's all we need now.
89694
89695 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89696
89697         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
89698         argp-parse.c depends on getopt internals, that means we should
89699         always use our getopt, to be on the safe side.
89700         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
89701         order not to spoil the result of an eventual previous invocation
89702         of gl_GETOPT_SUBSTITUTE.
89703
89704 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89705
89706         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
89707         redefinition warnings. To avoid them, include the defines
89708         in `#if !defined __need_getopt ... #endif'. The only place
89709         where __getopt_argv_const is used is in definitions
89710         of getopt_long and getopt_long_only below, which are as well
89711         protected by `#ifndef __need_getopt'.
89712         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
89713         __need_getopt after including <stdio.h> and <unistd.h> These
89714         headers might have defined it.
89715
89716 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89717
89718         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
89719
89720 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89721
89722         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
89723         (futimens): New function, which uses futimes if available.
89724         (futimens, utimens): Support timespec==NULL, with same semantics
89725         as utime and utimens.
89726         * lib/utimens.h (futimens): New decl.
89727
89728 2004-11-23  Jim Meyering  <jim@meyering.net>
89729
89730         * lib/getopt_.h: Remove trailing blanks.
89731
89732 2004-11-23  Jim Meyering  <jim@meyering.net>
89733
89734         * lib/__fpending.c: Add comment.
89735
89736 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
89737
89738         * modules/canonicalize (Depends-on): Add xreadlink.
89739         Problem reported by James Youngman.
89740
89741 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89742
89743         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
89744         New macros.
89745         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
89746         optopt): Use them instead of invoking ## directly; otherwise, the
89747         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
89748
89749 2004-11-19  Bruno Haible  <bruno@clisp.org>
89750
89751         * lib/strtok_r.c: Move comments from here...
89752         * lib/strtok_r.h: ... to here.
89753
89754 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89755
89756         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
89757         implementations that mishandle size_t overflow.
89758
89759 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89760
89761         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
89762         might fail.  Problem reported by Yoann Vandoorselaere.
89763         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
89764         implementations that mishandle size_t overflow.
89765
89766 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89767
89768         * modules/canon-host (Depends-on): Add strdup.
89769
89770 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89771
89772         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
89773
89774 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89775
89776         * lib/canon-host.c: Include "strdup.h".
89777         (canon_host): Use getaddrinfo if available, so that IPv6 works.
89778         Use strdup instead of malloc/strcpy to duplicate strings.
89779
89780         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
89781         (human_space_before_unit): New constant.
89782         * lib/human.c (human_readable): Support it.
89783
89784         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
89785         (xgetcwd): Set errno correctly when failing.
89786         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
89787         the failure is actually due to a PATH_MAX problem.
89788
89789         Further getopt changes to make it more likely that glibc will
89790         buy the changes back.
89791         * lib/getopt.c (POSIXLY_CORRECT): New constant.
89792         (getopt): Use it, so to preserve glibc semantic
89793         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
89794         when compiling for libc.
89795         * lib/getopt_.h (__getopt_argv_const): Bring it back.
89796         (getopt_long, getopt_long_only): Use it.
89797
89798         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89799         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
89800         (getopt): Argv is now char * const *, as per standard.
89801         (_getopt_internal_r, _getopt_internal): Argv is now char **,
89802         not char *__getopt_argv_const *.
89803         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89804         _getopt_long_only_r): Likewise.
89805         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
89806         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89807         _getopt_long_r, _getopt_long_only_r): Likewise.
89808         * lib/getopt_.h (__getopt_argv_const): Remove.
89809         (getopt): Argv is now char * const *, as per standard.
89810
89811         * lib/getdate.y (tORDINAL): New token.
89812         (day, relunit): Allow it for relative times.
89813         (relative_time_table): Use tORDINAL for ordinals.
89814
89815 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89816
89817         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
89818         Document that "second" isn't allowed as an ordinal number.
89819
89820 2004-11-16  Jim Meyering  <jim@meyering.net>
89821
89822         * modules/closeout (Depends-on): Add fpending.
89823
89824 2004-11-15  Jim Meyering  <jim@meyering.net>
89825
89826         * lib/closeout.c: Include "__fpending.h" once again.
89827         Include <stdbool.h>.
89828         (close_stdout): Don't fail just because stdout was closed initially,
89829         since some programs don't write to stdout in the normal course of
89830         operation (other than --version and --help), and we don't want this
89831         function to make e.g. `touch file >&-' fail.
89832         But do fail if it was closed and someone has tried to write to it.
89833         E.g., `printf foo >&-' must fail.
89834
89835 2004-11-13  Jim Meyering  <jim@meyering.net>
89836
89837         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
89838
89839 2004-11-12  Simon Josefsson  <jas@extundo.com>
89840
89841         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
89842         small doc fix is still pending.
89843
89844 2004-11-11  Simon Josefsson  <jas@extundo.com>
89845
89846         * modules/strtok_r: New file.
89847
89848         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89849         strtok_r.
89850
89851 2004-11-11  Simon Josefsson  <jas@extundo.com>
89852
89853         * m4/strtok_r.m4: New file.
89854
89855         * m4/getopt.m4: Replace opterr.
89856
89857 2004-11-11  Simon Josefsson  <jas@extundo.com>
89858
89859         * lib/strtok_r.h, strtok_r.c: New file.
89860
89861 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89862
89863         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
89864         of replacing opterr, getopt, etc.  This should handle the
89865         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
89866
89867 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89868
89869         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
89870         we can stop lying to compilers about the constness of argv when we
89871         are compiled outside glibc.
89872         (getopt, getopt_long, getopt_long_only): Use it.
89873         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89874         _getopt_internal, getopt): Likewise.
89875         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89876         _getopt_long_only_r): Likewise.
89877         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89878         _getopt_long_r, _getopt_long_only_r): Likewise.
89879
89880         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
89881         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
89882         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
89883         the other external symbols.
89884         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
89885         declaration, since the above renaming now works around collisions.
89886
89887 2004-11-11  Jim Meyering  <jim@meyering.net>
89888
89889         * lib/linebreak.c: Remove trailing blanks.
89890         * lib/alloca_.h: Likewise.
89891         * lib/acosl.c: Likewise.
89892         * lib/euidaccess.c: Likewise.
89893         * lib/allocsa.h: Likewise.
89894
89895 2004-11-10  Simon Josefsson  <jas@extundo.com>
89896
89897         * m4/getaddrinfo.m4: New file.
89898
89899 2004-11-10  Simon Josefsson  <jas@extundo.com>
89900
89901         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
89902
89903 2004-11-10  Simon Josefsson  <jas@extundo.com>
89904
89905         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89906         getaddrinfo.
89907
89908         * modules/getaddrinfo: New file.
89909
89910 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89911
89912         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
89913
89914 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89915
89916         * lib/mktime.c (SHR): New macro, which is a portable
89917         substitute for >> that should work even on Crays.
89918         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
89919         Problem reported by Mark D. Baushke in
89920         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
89921         * lib/getdate.y (SHR): Likewise.
89922         (tm_diff): Use it.
89923         * lib/strftime.c (SHR): Likewise.
89924         (tm_diff): Use it.
89925         * lib/quotearg.c (struct quoting_options): Use unsigned int for
89926         quote_these_too, so that right shifts are well defined.  All uses
89927         changed.
89928
89929 2004-11-10  Jim Meyering  <jim@meyering.net>
89930
89931         Ensure that no close failure goes unreported.
89932         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
89933         return early when it seems there's nothing to flush.
89934         Don't include __fpending.h.
89935
89936 2004-11-10  Jim Meyering  <jim@meyering.net>
89937
89938         * modules/closeout (Depends-on): Remove fpending.
89939
89940 2004-11-10  Jim Meyering  <jim@meyering.net>
89941
89942         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
89943
89944 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89945
89946         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
89947         gl_FUNC_STRFTIME.
89948         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
89949         and AC_REQUIRE when possible, to avoid duplicate checks.
89950         Check for <wchar.h>.
89951
89952 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89953
89954         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
89955
89956 2004-11-09  Bruno Haible  <bruno@clisp.org>
89957
89958         * m4/sockpfaf.m4: New file.
89959
89960 2004-11-05  Bruno Haible  <bruno@clisp.org>
89961
89962         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
89963         Reported by Mark D. Baushke <mdb@cvshome.org>.
89964
89965 2004-11-04  Bruno Haible  <bruno@clisp.org>
89966
89967         2004-09-11  Bruno Haible  <bruno@clisp.org>
89968                 * allocsa.valgrind: New file.
89969         2004-02-06  Bruno Haible  <bruno@clisp.org>
89970                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
89971                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
89972                 Reported by Christopher Seip <chris.seip@hp.com>.
89973
89974 2004-11-04  Bruno Haible  <bruno@clisp.org>
89975
89976         * modules/allocsa (Files): Add lib/allocsa.valgrind.
89977         (Makefile.am): Distribute it.
89978
89979 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
89980
89981         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
89982         with errno == ERANGE if the buffer is too small.
89983         Problem reported by Mark D. Baushke.
89984
89985 2004-11-03  Albert Chin  <china@thewrittenword.com>
89986             Paul Eggert  <eggert@cs.ucla.edu>
89987
89988         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
89989         equivalent, substitute $ac_type for equivalent type rather than
89990         blindly using uint32_t *always* which won't work if uint32_t is not
89991         available.  Define _UINT32_T to work around typedef of uint32_t if
89992         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
89993         2.5.1.
89994
89995 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89996
89997         * m4/jm-macros.m4: Sync from coreutils.
89998         (gl_MACROS): Check for mbrlen, for pathchk.
89999         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
90000
90001 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90002
90003         * lib/xreadlink.c (MAXSIZE): New macro.
90004         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
90005         size does not exceed MAXSIZE.  Avoid cast.
90006         As suggested by Mark D. Baushke in
90007         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
90008         if readlink fails with buffer size just under MAXSIZE, try again
90009         with MAXSIZE.
90010
90011 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90012
90013         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
90014
90015 2004-11-02  Derek R. Price  <derek@ximbiot.com>
90016         and  Paul Eggert  <eggert@cs.ucla.edu>
90017
90018         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
90019         (get_date): Overparenthesize to avoid GCC warning.
90020
90021 2004-11-02  Bruno Haible  <bruno@clisp.org>
90022
90023         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
90024         returns void.
90025
90026 2004-11-02  Bruno Haible  <bruno@clisp.org>
90027
90028         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
90029         function returns void.
90030
90031 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90032
90033         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
90034         fflush_unlocked, flockfile, funlockfile, funlockfile,
90035         fputs_unlocked, putc_unlocked.
90036
90037 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90038
90039         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90040         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
90041         already declared.
90042
90043 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90044
90045         * modules/getdate (Files): Add doc/getdate.texi.
90046         (Depends-on): Add setenv, xalloc.
90047
90048 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90049
90050         * lib/getdate.y: Add support for TZ="foo" within a date string.
90051         Fix some bugs near time_t boundaries.  Reject dates with
90052         out-of-range components, e.g., "Sept 31".
90053         Include <stdlib.h>, "setenv.h", "xalloc.h".
90054         (ISDIGIT_LOCALE): Remove; unused.
90055         Note that the TZ and time functions used here are not reentrant.
90056         (mktime_ok, get_tz): New functions.
90057         (TZBUFSIZE): New constant.
90058         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
90059         This requires that we sometimes generate our own TZ="XXX..." setting.
90060
90061 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90062
90063         * doc/getdate.texi: New file, from coreutils with modifications for
90064         the new TZ parsing.
90065
90066 2004-10-27  Derek R. Price  <derek@ximbiot.com>
90067
90068         * lib/mktime.c (not_equal_tm): Remove redundant check.
90069
90070 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90071
90072         * modules/regex (lib_SOURCES): Add regex.c.
90073         Reported by James Youngman in
90074         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
90075
90076 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90077
90078         * lib/getdate.y: Use Bison 1.875 features, and some minor
90079         code cleanups.  This change does not affect semantics.
90080         Don't include <stdlib.h>; no longer needed.
90081         Don't include unlocked-io.h; only the "#if TEST" code uses
90082         stdio, and performance isn't crucial there.
90083         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
90084         Bison 1.875 features as described below.
90085         All uses of "PC." replaced by "pc->".
90086         (YYSTYPE): Add a forward declaration.
90087         (yylex, yyerror): Use full prototypes in forward decls.
90088         Use "%pure-parser" rather than obsolescent "%pure_parser".
90089         Use %parse-param and %lex-param instead of obsolescent
90090         YYPARSE_PARAM and YYLEX_PARAM.
90091         (meridian_table, month_and_day_table, time_units_table,
90092         relative_time_table, time_zone_table, military_table,
90093         lookup_zone, lookup_word, get_date):
90094         Use NULL instead of 0 where appropriate.
90095         (to_hour): Avoid abort (), to avoid a dependency on
90096         stdlib.h.
90097         (yyerror, yylex): Now accepts parser_control * arg.
90098         (main) [TEST]: Use '\0' rather than 0 for char.
90099
90100 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90101
90102         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
90103
90104 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90105
90106         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
90107         It's now the caller's responsibility to handle the case where
90108         !HAVE_GETPAGESIZE && !defined getpagesize.
90109
90110         * lib/mktime.c (leapyear): Arg is long int, not int.
90111
90112 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
90113
90114         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
90115
90116 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
90117
90118         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
90119         missing.  Problem reported by James Youngman.
90120
90121 2004-10-16  Simon Josefsson  <jas@extundo.com>
90122
90123         * gnulib-tool: Fix comments.  Fix parse problem.
90124         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
90125
90126 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
90127
90128         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
90129         implementation of getopt_long.  Problem reported by Alexander Taler in:
90130         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
90131
90132 2004-10-15  Bruno Haible  <bruno@clisp.org>
90133
90134         * gnulib-tool: Untabify. Initialize supplied_libname.
90135         (func_usage): More homogenous output.
90136         (func_modules_transitive_closure, func_modules_to_filelist,
90137         func_emit_lib_Makefile_am): New functions.
90138         (func_import): New function, extracted from big case statement. Use
90139         func_get_license, func_modules_transitive_closure,
90140         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
90141         opt_lgpl. Don't use test -a, as it's not portable.
90142         (func_create_testdir): Use func_modules_transitive_closure,
90143         func_modules_to_filelist, func_emit_lib_Makefile_am.
90144
90145 2004-10-15  Bruno Haible  <bruno@clisp.org>
90146
90147         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
90148
90149 2004-10-15  Bruno Haible  <bruno@clisp.org>
90150
90151         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
90152         the portions belonging to each module.
90153         Suggested by Derek Robert Price <derek@ximbiot.com>.
90154
90155 2004-10-12  Simon Josefsson  <jas@extundo.com>
90156
90157         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90158         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
90159         to real functions.
90160
90161 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90162
90163         * modules/vsnprintf: New file.
90164
90165 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90166
90167         * m4/vsnprintf.m4: New file.
90168
90169 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90170
90171         * lib/vsnprintf.h: New file.
90172         * lib/vsnprintf.c: New file.
90173
90174 2004-10-11  Bruno Haible  <bruno@clisp.org>
90175
90176         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
90177         vsnprintf.
90178
90179 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
90180
90181         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
90182
90183 2004-10-07  Bruno Haible  <bruno@clisp.org>
90184
90185         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
90186         fits into the provided buffer.
90187
90188 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
90189
90190         * lib/diacrit.c, diacrit.h: Add GPL notice.
90191
90192         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
90193         notice.
90194         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
90195         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
90196         This avoids a potential constant-folding bug.
90197
90198 2004-10-05  Bruno Haible  <bruno@clisp.org>
90199
90200         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
90201         for the declaration of strsep.
90202
90203 2004-10-05  Bruno Haible  <bruno@clisp.org>
90204
90205         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
90206
90207 2004-10-04  Simon Josefsson  <jas@extundo.com>
90208
90209         * modules/memmem: New file.
90210         * tests/test-memmem.c: New file.
90211         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
90212
90213 2004-10-04  Simon Josefsson  <jas@extundo.com>
90214
90215         * m4/memmem.m4: New file.
90216
90217 2004-10-04  Simon Josefsson  <jas@extundo.com>
90218
90219         * lib/memmem.h: New file.
90220         * lib/memmem.c: New file, taken from glibc.
90221
90222 2004-10-04  Simon Josefsson  <jas@extundo.com>
90223
90224         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
90225         '#ifdef USE_UNLOCKED_IO'.
90226
90227 2004-10-04  Simon Josefsson  <jas@extundo.com>
90228
90229         * config/srclist.txt: Add memmem from glibc.
90230
90231 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90232
90233         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
90234
90235         * modules/argmatch, modules/argp, modules/closeout, modules/error,
90236         modules/exclude, modules/getdate, modules/getline,
90237         modules/getndelim2, modules/getpass, modules/getpass-gnu,
90238         modules/getusershell, modules/linebuffer, modules/md5,
90239         modules/mountlist, modules/posixtm, modules/readtokens,
90240         modules/readutmp, modules/regex, modules/sha1,
90241         modules/version-etc, modules/yesno:
90242         Remove dependency on unlocked-io.
90243
90244 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90245
90246         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
90247
90248         * m4/unlocked-io.m4: Add copyright notice.
90249         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
90250
90251 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90252
90253         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
90254         * lib/xmalloc.c (xmemdup): Likewise.
90255         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
90256         XFREE): Remove these long-obsolescent macros.
90257         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
90258         * lib/xstrdup.c: Remove.
90259
90260         * lib/regex.c (re_comp): Cast gettext return value to char *,
90261         Problem reported by Martin Neitzel via Mark D. Baushke.
90262
90263 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90264
90265         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
90266         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
90267         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
90268         regex.c, sha1.c, version-etc.c, yesno.c:
90269         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
90270         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
90271         the includer's responsibility.
90272
90273         Sync from coreutils.
90274
90275         * lib/modechange.c (mode_compile): Don't decrement a pointer that
90276         points to the start of a string, as the C Standard says the
90277         resulting behavior is undefined.
90278
90279         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
90280         simple -> simple_backups, numbered_existing ->
90281         numbered_existing_backups, numbered -> numbered_backups
90282         to avoid shadowing problems.  All uses changed.
90283         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
90284         * lib/backupfile.c (check_extension, numbered_backup):
90285         Rename locals to avoid shadowing 'basename'.
90286         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
90287         once.
90288
90289         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
90290         * lib/.cvsignore: Add getopt.h.
90291
90292 2004-10-04  Bruno Haible  <bruno@clisp.org>
90293
90294         * modules/README: New file.
90295         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
90296         not a module.
90297
90298 2004-10-02  Jim Meyering  <jim@meyering.net>
90299
90300         * lib/dirfd.h, getpagesize.h: Add copyright notice.
90301
90302 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90303
90304         * modules/strsep: New file.
90305
90306 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90307
90308         * m4/strsep.m4: New file.
90309
90310 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90311
90312         * lib/strsep.h: New file.
90313         * lib/strsep.c: New file.
90314
90315 2004-10-01  Simon Josefsson  <jas@extundo.com>
90316
90317         * lib/snprintf.c (snprintf): Handle size==0.
90318
90319 2004-10-01  Simon Josefsson  <jas@extundo.com>
90320             Bruno Haible  <bruno@clisp.org>
90321
90322         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
90323         (snprintf): Declare 'args'.
90324
90325 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
90326
90327         * lib/snprintf.c: Remove comments as to why each header is needed.
90328
90329 2004-10-01  Bruno Haible  <bruno@clisp.org>
90330
90331         * MODULES.html.sh: Add strsep.
90332
90333 2004-09-30  Simon Josefsson  <jas@extundo.com>
90334
90335         * modules/snprintf: New file.
90336
90337 2004-09-30  Simon Josefsson  <jas@extundo.com>
90338
90339         * m4/snprintf.m4: New file.
90340
90341 2004-09-30  Simon Josefsson  <jas@extundo.com>
90342
90343         * lib/snprintf.h, lib/snprintf.c: New files.
90344
90345 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
90346
90347         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
90348         (hol_entry_help): Never translate an empty string.
90349         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
90350         * lib/argp.h (OPTION_NO_TRANS): New option.
90351
90352 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90353
90354         * modules/argp (Maintainer): Replace Simon Josefsson
90355         by Sergey Poznyakoff.
90356
90357 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90358
90359         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
90360         changes merged back into glibc.
90361
90362 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90363
90364         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
90365
90366 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
90367
90368         * lib/xvasprintf.c: Include xalloc.h.
90369         (xvasprintf): Use xalloc_die, not xmalloc_die.
90370
90371 2004-09-29  Bruno Haible  <bruno@clisp.org>
90372
90373         * modules/alloca-opt: New file, derived from modules/alloca.
90374         * modules/allocsa: Depend on alloca-opt instead of alloca.
90375         * modules/setenv: Likewise.
90376         * modules/vasnprintf: Likewise.
90377         * MODULES.html.sh: Add alloca-opt.
90378
90379 2004-09-28  Simon Josefsson  <jas@extundo.com>
90380
90381         * gnulib-tool: New parameter --lgpl, to asseert that modules are
90382         LGPL, and to replace license template from GPL to LGPL.
90383
90384 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90385
90386         * modules/dummy: Change license to LGPL.
90387
90388 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90389
90390         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
90391
90392 2004-09-24  Simon Josefsson  <jas@extundo.com>
90393
90394         * modules/minmax (License): Change from GPL to LGPL.
90395
90396 2004-09-23  Simon Josefsson  <jas@extundo.com>
90397
90398         * gnulib-tool (--import): Typo.
90399
90400 2004-09-23  Simon Josefsson  <jas@extundo.com>
90401
90402         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
90403
90404 2004-09-22  Bruno Haible  <bruno@clisp.org>
90405
90406         * modules/*: Add 'License' field.
90407         * gnulib-tool: Accept --extract-license option.
90408         (func_get_license): New function.
90409
90410 2004-09-21  Bruno Haible  <bruno@clisp.org>
90411
90412         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
90413         Reported by Simon Josefsson.
90414
90415 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90416
90417         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
90418         gl_AC_TYPE_LONG_LONG.
90419
90420 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90421
90422         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
90423
90424 2004-09-18  Simon Josefsson  <jas@extundo.com>
90425         and  Paul Eggert  <eggert@cs.ucla.edu>
90426
90427         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
90428         calls with autoreconf.  Define GL_LIB.
90429
90430 2004-09-14  Karl Berry  <karl@gnu.org>
90431
90432         * config/srclist.txt: unsync setenv.c, sigh.
90433
90434 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90435
90436         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
90437         Problem reported by Bruno Haible in:
90438         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
90439
90440 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90441
90442         * config/srclist.txt: Comment out argp-pvh.c.
90443
90444 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
90445
90446         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
90447         in case some system header has #define'd it.  Problem reported by
90448         Soeren D. Schulze in
90449         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
90450
90451 2004-09-09  Karl Berry  <karl@gnu.org>
90452
90453         * regex.[ch]: delete from the root.  These were supposed to be
90454                 synced with emacs cvs, but this has not happened for about
90455                 a year, and anyway nothing else uses emacs regex.[ch].
90456                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
90457                 lib/regex[.ch] is untouched.
90458
90459 2004-09-09  Bruno Haible  <bruno@clisp.org>
90460
90461         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
90462
90463 2004-09-09  Bruno Haible  <bruno@clisp.org>
90464
90465         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
90466         modifications.
90467         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
90468
90469 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90470
90471         * modules/xvasprintf: New file.
90472         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
90473
90474 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90475
90476         * lib/xvasprintf.h: New file.
90477         * lib/xvasprintf.c: New file.
90478         * lib/xasprintf.c: New file.
90479
90480 2004-09-08  Bruno Haible  <bruno@clisp.org>
90481
90482         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
90483
90484 2004-09-08  Bruno Haible  <bruno@clisp.org>
90485
90486         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
90487         length is > INT_MAX.
90488         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
90489         more.
90490
90491 2004-09-08  Bruno Haible  <bruno@clisp.org>
90492
90493         * lib/stdint_.h: New file, taken from GNU clisp.
90494
90495 2004-09-08  Bruno Haible  <bruno@clisp.org>
90496             Oskar Liljeblad  <oskar@osk.mine.nu>
90497
90498         * modules/stdint: New file.
90499         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
90500
90501 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90502
90503         Import from coreutils.
90504         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
90505         strings on unbounded length.  alloca's performance benefits aren't
90506         that important here.
90507         (V_STRDUP): Remove.
90508         (parse_with_separator): New function, with most of the internals
90509         of the old parse_user_spec.  Allow user to omit both user and group,
90510         for compatibility with FreeBSD.
90511         Clone only the user name, not the entire spec.
90512         Do not set *uid, *gid unless entirely successful.
90513         Avoid memory leak in some failing cases.
90514         Fix regression for USER.GROUP reported by Dmitry V. Levin in
90515         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
90516         (parse_user_spec): Rewrite to use parse_with_separator.
90517
90518 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90519
90520         * modules/userspec: Don't depend on alloca.
90521
90522 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90523
90524         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
90525
90526 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
90527
90528         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
90529         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
90530         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
90531
90532 2004-08-16  Simon Josefsson  <jas@extundo.com>
90533
90534         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
90535         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
90536         Add --dry-run for --import.
90537         Let user provided command line parameters override configure.ac
90538         settings.
90539
90540 2004-08-12  Simon Josefsson  <jas@extundo.com>
90541
90542         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
90543         as discussed with Paul Eggert in threads rooted at
90544         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
90545         and
90546         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
90547         Before, the test was empty, and relied on ELIDE_CODE in source
90548         code.)
90549         (gl_PREREQ_GETOPT): New macro.
90550         (gl_GETOPT): Use them.
90551
90552 2004-08-12  Simon Josefsson  <jas@extundo.com>
90553
90554         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
90555         * lib/getopt_.h: Renamed from getopt.h.
90556
90557 2004-08-12  Simon Josefsson  <jas@extundo.com>
90558
90559         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
90560         Change default library name from libfoo to libgnu.
90561         Now, if you have a configure.ac that says:
90562                 gl_SOURCE_BASE(gl)
90563                 gl_M4_BASE(gl/m4)
90564                 gl_MODULES(error getopt etcetera)
90565                 gl_INIT
90566         you can import all you need by running:
90567                 ../gnulib/gnulib-tool --import
90568
90569         * modules/getopt (Files): Rename getopt.h to getopt_.h.
90570         (Makefile.am): Rewrite, use logic from argz.
90571         (Include): Use <getopt.h> instead of "getopt.h".
90572
90573 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90574
90575         * modules/argp (Files): Add m4/unlocked-io.m4.
90576         (Depends-on): Add extensions.
90577
90578 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90579
90580         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
90581         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
90582         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
90583         Check for program_invocation_name, program_invocation_short_name,
90584         flockfile, funlockfile, features.h, _getopt_long_only_r.
90585
90586 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90587
90588         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
90589         its complicated substitute.
90590         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
90591         and program_invocation_name.
90592         (__argp_basename) [!_LIBC]: Remove; the only use was
90593         replaced by its body.
90594         (__argp_short_program_name): Change condition from
90595         !defined __argp_short_program_name to
90596         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
90597         to match argp-namefrob.h.
90598         (__argp_failure): Don't assume strerror_r returns char *.
90599         * lib/argp-parse.c (N_): Define unconditionally.
90600         (argp_default_options): Fill out initializers with 0 to avoid
90601         gcc warnings.
90602
90603 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90604
90605         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
90606         getopt1.c.
90607
90608 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90609
90610         Merge from coreutils.
90611
90612         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
90613
90614         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
90615         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
90616
90617 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90618
90619         Merge from coreutils.
90620
90621         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
90622         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
90623         for Reliant Unix 5.43.
90624
90625         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
90626         (union fooround): Use uintmax_t, not long int.
90627         The rest is a merge from libc:
90628         [defined _LIBC]: Include <shlib-compat.h>.
90629         (_obstack) [defined _LIBC]: Remove after 2.3.4.
90630
90631         * lib/settime.c (settime): Recode to avoid warning with
90632         Sun Forte C 6U2.
90633
90634         * lib/strverscmp.c: Convert to UTF-8.
90635
90636 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90637
90638         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
90639         m4/uintmax_t.m4.
90640
90641 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90642
90643         * modules/xalloc-die: New file.
90644         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
90645
90646         * modules/md5 (Files): Add m4/uint32_t.m4.
90647         * modules/sha1: Renamed from modules/sha.
90648         (Files):
90649         Rename lib/sha.h to lib/sha1.h.
90650         Rename lib/sha.c to lib/sha1.c.
90651         Rename m4/sha.m4 to m4/sha1.m4.
90652         (lib_SOURCES): Likewise.
90653         (configure.ac): Rename gl_SHA to gl_SHA1.
90654         (Include): sha.h -> sha1.h.
90655
90656 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90657
90658         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
90659         * m4/sha1.m4: Renamed from sha.m4.
90660         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
90661
90662 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90663
90664         * lib/obstack.h (obstack_empty_p):
90665         Don't assume that chunk->contents is suitably aligned.
90666         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
90667         Likewise. Problem reported by Benno in
90668         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
90669
90670         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
90671         readable.  This could be improved further but it'd take some work.
90672
90673 2004-08-08  Simon Josefsson  <jas@extundo.com>
90674
90675         * modules/xgethostname (Depends-on): Remove exit and error (not
90676         used).
90677
90678         * modules/getpass-gnu: Add getpass.h.
90679         (Depends-on): Add stdbool.
90680         * modules/getpass: Add getpass.h.
90681
90682 2004-08-08  Simon Josefsson  <jas@extundo.com>
90683
90684         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
90685         Check getpass declaration.
90686
90687 2004-08-08  Simon Josefsson  <jas@extundo.com>
90688
90689         * lib/xgethostname.c: Don't include error.h (not used).
90690
90691         * lib/getpass.h: Add.
90692         * lib/getpass.c: Include getpass.h first.
90693
90694 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
90695
90696         * lib/xalloc-die.c: New file.
90697         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
90698         All uses removed.
90699         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
90700         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
90701         xalloc-die.c.
90702         (_, N_, xalloc_die): Move to xalloc-die.c.
90703         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
90704         so that we needn't mess with xalloc_msg_memory_exhausted.
90705
90706         * lib/sha1.h: Renamed from sha.h.
90707         (SHA1_H): Renamed from _SHA_H.
90708         (sha1_ctx): Renamed from sha_ctx.
90709         (sha1_init_ctx): Renamed from sha_init_ctx.
90710         (sha1_process_block): Renamed from sha_process_block.
90711         (sha1_process_bytes): Renamed from sha_process_bytes.
90712         (sha1_finish_ctx): Renamed from sha_finish_ctx.
90713         (sha1_read_ctx): Renamed from sha_read_ctx.
90714         (sha1_stream): Renamed from sha_stream.
90715         (sha1_buffer): Renamed from sha_buffer.
90716         * lib/sha1.c: Likewise; renamed from sha.c.
90717         Do not include <sys/types.h>.
90718         Include <stddef.h> rather than <stdlib.h>.
90719
90720 2004-08-08  Bruno Haible  <bruno@clisp.org>
90721
90722         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
90723         FILESYSTEM_PREFIX_LEN.
90724         * lib/progreloc.c: Likewise.
90725         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
90726
90727 2004-08-06  Simon Josefsson  <jas@extundo.com>
90728
90729         * modules/progname (Depends-on): Don't depend on stdbool.
90730
90731 2004-08-06  Simon Josefsson  <jas@extundo.com>
90732
90733         * modules/getsubopt: New file.
90734         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90735         getsubopt.
90736
90737 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90738
90739         More merge from coreutils.
90740
90741         * m4/utimens.m4, m4/utimecmp.m4: New files.
90742         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
90743         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
90744         prereq.m4, sha.m4: Import changes from coreutils.
90745
90746 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90747
90748         More merge from coreutils.
90749         * modules/raise, modules/readtokens0, modules/utimens:
90750         * modules/utimecmp, module/xnanosleep: New files.
90751         * modules/strftime: Add lib/strftime.h.
90752         Change include from <time.h> to "strftime.h".
90753         * modules/yesno: Add lib/yesno.h.
90754         * modules/backupfile: Remove lib/addext.c.
90755         * modules/euidaccess: Add stat-macros.h.
90756         * modules/canonicalize, modules/euidaccess,
90757         modules/filemode, modules/lchown, modules/makepath,
90758         modules/rmdir, modules/stat: Likewise.
90759
90760 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90761
90762         Merge from tar.
90763         * lib/argp-help.c (make_hol, hol_append): Don't assume that
90764         SIZE_MAX is a valid preprocessor constant.
90765         (__argp_basename): Change from "#ifndef _LIBC"
90766         to "#ifndef __argp_short_program_name", so that
90767         we don't compile these functions for tar.
90768
90769         More merges from coreutils.
90770         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
90771         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
90772         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
90773         * lib/addext.c: Remove; no longer needed.
90774         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
90775         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
90776         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
90777         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
90778         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
90779         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
90780         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
90781         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
90782         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
90783         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
90784         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
90785         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
90786         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
90787         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
90788         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
90789         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
90790         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
90791         Import changes from coreutils.
90792
90793 2004-08-05  Simon Josefsson  <jas@extundo.com>
90794
90795         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
90796
90797 2004-08-05  Simon Josefsson  <jas@extundo.com>
90798
90799         * m4/getsubopt.m4: New file.
90800
90801 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90802
90803         Merge from coreutils.
90804
90805         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
90806         * m4/getcwd-path-max.m4: New files.
90807
90808         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
90809         FILESYSTEM_PREFIX_LEN ->
90810         FILE_SYSTEM_PREFIX_LEN.
90811         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
90812         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
90813         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
90814         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
90815
90816         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
90817         prerequisite modules now handle the DOS stuff.
90818         Don't check for unistd.h.
90819
90820 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90821
90822         Merge from coreutils.
90823
90824         * lib/.gdb-history: Remove; this doesn't belong here.
90825
90826         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
90827         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
90828         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
90829         * lib/getcwd.c: New files.
90830
90831         * lib/dirname.h: Include <stdbool.h>.
90832         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
90833         for consistency with POSIX terminology.  All uses changed.
90834         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
90835         (strip_trailing_slashes): Use bool for booleans.
90836         * lib/stripslash.c (strip_trailing_slashes): Likewise.
90837
90838         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
90839         sometimes returns a positive errno value even when it succeeds.
90840         (print_errno_message) [!LIBC]: Fall back on strerror if
90841         __strerror_r fails.
90842
90843         * lib/path-concat.c (mempcpy): Don't define if a system header defines
90844         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
90845         (longest_relative_suffix): New function.
90846         (path_concat): Use it.  Assume first argument is not NULL.
90847         Port to DOS.  Omit redundant separators.
90848         Report an error instead of returning NULL.
90849         Use mempcpy instead of memcpy.
90850         (xpath_concat): Remove: not declared or used.
90851
90852         * lib/same.h: Include <stdbool.h>
90853         (same_name): Return bool, not int.
90854         * lib/same.c (same_name): Likewise.
90855         (errno): Don't declare; we assume C89 or better now.
90856
90857         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
90858         if not already defined.
90859
90860         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
90861         * lib/dup-safer.c (errno): Likewise.
90862
90863 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90864
90865         Merge from coreutils.
90866         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
90867         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
90868         * modules/path-concat: Don't depend on strdup.
90869
90870 2004-08-03  Simon Josefsson  <jas@extundo.com>
90871
90872         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
90873         * lib/progname.h: Don't include stdbool.h.
90874
90875 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90876
90877         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
90878         * MODULES.html.sh (func_all_modules): Remove fatal.
90879
90880 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90881
90882         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
90883
90884 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90885
90886         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
90887         working.
90888
90889 2004-08-02  Simon Josefsson  <jas@extundo.com>
90890
90891         * lib/getsubopt.h: New file, with comments from Bruno Haible.
90892         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
90893         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
90894
90895 2004-08-01  Simon Josefsson  <jas@extundo.com>
90896
90897         * lib/xgetdomainname.c: Include stdlib.h, for free().
90898
90899 2004-07-19  Bruno Haible  <bruno@clisp.org>
90900
90901         * MODULES.html.sh (func_all_modules): Add dummy.
90902
90903 2004-07-16  Simon Josefsson  <jas@extundo.com>
90904
90905         * modules/dummy: New file.
90906
90907 2004-07-16  Simon Josefsson  <jas@extundo.com>
90908
90909         * lib/dummy.c: New file.
90910
90911 2004-07-16  Bruno Haible  <bruno@clisp.org>
90912
90913         * lib/backupfile.h: Add extern "C" for C++.
90914         * lib/closeout.h: Likewise.
90915         * lib/copy-file.h: Likewise.
90916         * lib/findprog.h: Likewise.
90917         * lib/full-write.h: Likewise.
90918         * lib/pathname.h: Likewise.
90919         * lib/progname.h: Likewise.
90920         * lib/stpcpy.h: Likewise.
90921         * lib/stpncpy.h: Likewise.
90922         * lib/strcase.h: Likewise.
90923         * lib/strstr.h: Likewise.
90924         * lib/xalloc.h: Likewise.
90925
90926         * lib/mbswidth.h: Add extern "C" for C++.
90927         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
90928
90929 2004-07-13  Robert Millan  <robertmh@gnu.org>
90930
90931         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
90932
90933 2004-07-09  Simon Josefsson  <jas@extundo.com>
90934
90935         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
90936         failed without this.)
90937
90938 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90939
90940         * modules/chown (Files): Add lib/fchown-stub.c, since
90941         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
90942
90943 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90944
90945         * lib/fchown-stub.c: New file.
90946
90947 2004-06-24  Jim Meyering  <jim@meyering.net>
90948
90949         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
90950
90951 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90952
90953         * modules/argz: Omit "#include".
90954
90955         * MODULES.html.sh (func_all_modules): Add calloc, to match
90956         2004-06-01 addition of calloc module.
90957
90958 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90959
90960         * m4/argz.m4: New file, which is autoupdated from libtool.
90961
90962 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90963
90964         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
90965         libtool.
90966
90967 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90968
90969         * config/srclist-update: Don't insist on "USA." before the
90970         close-comment, as libtool omits the period and puts the */ on a
90971         separate line.
90972         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
90973         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
90974
90975 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
90976
90977         * modules/argz: New file.
90978         * MODULES.html.sh (func_all_modules): Add argz.
90979
90980 2004-06-12  Jim Meyering  <jim@meyering.net>
90981         and  Paul Eggert  <eggert@cs.ucla.edu>
90982
90983         * modules/hash (Files): Add lib/xalloc.h.
90984         * modules/pipe (Depends-on): Add wait-process.
90985         * modules/stat (Depends-on): Add xalloc.
90986         * modules/userspec (Files): Add lib/userspec.h.
90987         * modules/xstrto
90988
90989         Upgrade from gettext-0.13.
90990         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
90991         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
90992         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
90993
90994 2004-06-10  Jim Meyering  <jim@meyering.net>
90995
90996         * lib/calloc.c: New file.
90997
90998 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
90999
91000         * lib/getdate.y (yylex): Allow space between sign and number.
91001         Problem reported by Dan Jacobson.
91002
91003 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91004
91005         Merge from coreutils CVS.
91006
91007         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
91008         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
91009         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
91010         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
91011         xstrtol.m4: Fix copyright date and/or serial number.
91012
91013         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
91014         See if we need an fchown replacement.
91015         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
91016         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
91017         and use the replacement function if we detect either defect.
91018
91019         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
91020         gl_UTIMECMP.
91021
91022 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91023         and  Jim Meyering  <jim@meyering.net>
91024
91025         Merge from coreutils CVS.
91026
91027         * lib/stat-macros.h: New file, with contents from file-type.h
91028         and coreutils' system.h.
91029         * lib/file-type.c: Include "stat-macros.h".
91030         * lib/file-type.h (file_type): Move all macro definitions to new file,
91031         stat-macros.h.
91032
91033         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
91034         Wrap old code with this conditional.
91035         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
91036         function that does not dereference symlinks.
91037         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
91038
91039         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
91040         dependency problems.
91041         (xreadlink): Accept new arg SIZE, for efficiency.
91042         All decls and uses changed.
91043         * lib/xreadlink.h: Include <stddef.h>, for size_t.
91044
91045         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
91046         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
91047
91048         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
91049         sysexits.h.
91050
91051 2004-06-01  Jim Meyering  <jim@meyering.net>
91052
91053         * m4/calloc.m4: New file.
91054
91055 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
91056
91057         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
91058         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
91059         Also, fix a typo in a diagnostic.
91060
91061 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91062
91063         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
91064         or AC_FUNC_REALLOC.
91065
91066 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91067
91068         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
91069         macros to be defined.
91070         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
91071         the allocator returns NULL because the requested size is zero.
91072
91073 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
91074
91075         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
91076         var.  Add comment explaining why libc still defines it.  This
91077         merges the following patch from glibc:
91078         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
91079
91080 2004-05-20  Andreas Schwab  <schwab@suse.de>
91081
91082         * m4/free.m4: Replace free if it not known to work, not the other
91083         way round.
91084
91085 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
91086
91087         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
91088         present in glibc since revision 1.1 of this file.
91089         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
91090         obstack_alignment_mask, obstack_alloc, obstack_base,
91091         obstack_blank, obstack_blank_fast, obstack_chunk_size,
91092         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
91093         obstack_grow0, obstack_init, obstack_int_grow,
91094         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
91095         obstack_next_free, obstack_object_size, obstack_ptr_grow,
91096         obstack_ptr_grow_fast, obstack_room): Remove declarations of
91097         nonexistent functions.
91098
91099 2004-05-18  Karl Berry  <karl@gnu.org>
91100
91101         * config/srclist.txt: break link for vasnprintf.c.
91102
91103 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91104
91105         Port obstack to the AS/400, where pointers are 16 bytes wide and
91106         you cannot cast an integer to a valid pointer.  This patch is
91107         currently waiting to be integrated into glibc; see
91108         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
91109
91110         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
91111         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
91112         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
91113         (struct obstack): temp member is now a union of a pointer and
91114         an integer, instead of an integer.  All integer uses changed.
91115         This does not affect the physical layout of struct obstack,
91116         except on hosts (like the AS/400) where the size or alignment of
91117         void * is greater than that of ptrdiff_t.
91118         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
91119         __STDC__)]: Store temporary in pointer member of union, not
91120         integer member.
91121         * lib/obstack.c: Include <stddef.h>, for offsetof.
91122         (struct fooalign): Remove; it doesn't need a name.
91123         (union fooround): Change double to long double, and add void *.
91124         (DEFAULT_ALIGNMENT): Use offsetof to compute.
91125         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
91126         not a macro.  Hence the values are always int; so remove all
91127         casts-to-int in uses.
91128
91129 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91130
91131         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
91132         we can get this patch merged into glibc.
91133
91134 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91135             Paul Eggert  <eggert@cs.ucla.edu>
91136
91137         * m4/argp: Depend on alloca.
91138
91139 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91140             Paul Eggert  <eggert@cs.ucla.edu>
91141
91142         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
91143         freecoding.
91144
91145 2004-05-17  Bruno Haible  <bruno@clisp.org>
91146
91147         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
91148         precision that consists of a '.' followed by an empty digit string.
91149         Patch by Tor Lillqvist <tml@iki.fi>.
91150
91151 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91152
91153         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
91154         for backward compatibility with older code.  We need our own
91155         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
91156         it under some other name, and our alloca.h will define it.
91157
91158 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91159             Derek Price  <derek@ximbiot.com>
91160
91161         * lib/alloca.c: Include <alloca.h>, to get our interface.
91162         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
91163         include <alloca.h> first.  Use C89 prototype for alloca; this
91164         requires including <stddef.h> for size_t.  Use extern "C" if C++.
91165         Use #elif for simplicity, since we can assume C89 now.
91166         Don't try to source the system alloca.h since it will not be found
91167         and to prevent recursively including its replacement.
91168         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
91169         * lib/regex.c: Likewise.
91170
91171 2004-05-16  Derek Price  <derek@ximbiot.com>
91172             Paul Eggert  <eggert@cs.ucla.edu>
91173
91174         getline cleanup.  This changes the getndelim2 API: both order of
91175         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
91176         no delimiter).
91177
91178         * lib/getline.c: Don't include stddef.h or stdio.h, since our
91179         interface does that.
91180         (getline): Always use getdelim, so that we don't have two
91181         copies of this code.
91182         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
91183         if available.
91184         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
91185         (GETNDELIM2_MAXIMUM): New macro.
91186         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
91187         instead of the old practice of delim2==0.  All callers changed.
91188         Return -1 on overflow, instead of returning junk.
91189         Do not set *linesize unless allocation succeeds.
91190         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
91191         that we include sys/types.h.
91192         * lib/getnline.h: Likewise.
91193         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
91194         (getndelim2): Reorder arguments.
91195         * lib/getnline.c (getnline, getndelim):
91196         Don't discard the NMAX argument.
91197         (getnline): Invoke getndelim, to avoid code duplication.
91198         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
91199         of (size_t) -1 by callers of the getnline family.
91200
91201 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91202
91203         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
91204         Check for gettimeofday.
91205         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
91206         Check for settimeofday, stime.
91207
91208 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91209
91210         * lib/nanosleep.c (suspended): Change its type from int to
91211         sig_atomic_t volatile.
91212         (first_call): Make it private to rpl_nanosleep, and have it
91213         be zero initially as that's a bit faster.
91214         (my_usleep): Round up fractional times instead of truncating them,
91215         as this is the usual meaning for 'sleep'.
91216
91217         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
91218         doesn't work.
91219         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
91220         (ENOSYS): Define if not defined.
91221         (settime): Fall back on stime if it exists and settimeofday fails.
91222         But don't bother with fallbacks if a method fails with errno == EPERM.
91223
91224 2004-05-11  Jim Meyering  <jim@meyering.net>
91225
91226         Prior to this change, the save_cwd caller required read access to the
91227         current directory on most systems (ones with the fchdir function).
91228
91229         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
91230         fails, try write-only, and finally, resort to using xgetcwd.
91231
91232 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
91233
91234         * lib/obstack.c, obstack.h: Import changes from libc.
91235
91236 2004-04-28  Bruno Haible  <bruno@clisp.org>
91237
91238         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
91239         also implicitly appends .exe to executables.
91240         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
91241         accepts Windows pathnames.
91242         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91243         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91244         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91245         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91246         Reported by Derek Robert Price <derek@ximbiot.com>.
91247
91248 2004-04-21  Karl Berry  <karl@gnu.org>
91249
91250         * config/srclist.txt (localcharset.c): break sync.
91251
91252 2004-04-20  Paul Eggert  <eggert@twinsun.com>
91253
91254         * m4/host-os.m4: Add a copyright notice.
91255
91256 2004-04-20  Jim Meyering  <jim@meyering.net>
91257
91258         Change UTILS_ to gl_ in AC_DEFINE'd names.
91259         Change utils_- and jm_-prefixed variables, too.
91260         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
91261         UTILS_FUNC_MKDIR_TRAILING_SLASH.
91262         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
91263
91264         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
91265         Don't emit trailing blanks.
91266         Also rename jm_-prefixed variables to have gl_ prefix.
91267
91268         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
91269         Also rename jm_-prefixed variables to have gl_ prefix.
91270
91271         * m4/jm-macros.m4: Reflect the renamings.
91272         * m4/prereq.m4: Likewise.
91273
91274 2004-04-20  Jim Meyering  <jim@meyering.net>
91275
91276         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
91277         memory.
91278
91279 2004-04-20  Jim Meyering  <jim@meyering.net>
91280             Bruno Haible  <bruno@clisp.org>
91281
91282         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
91283         memory when realloc fails.
91284
91285 2004-04-19  Jim Meyering  <jim@meyering.net>
91286
91287         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
91288         now that readutmp.c may call `free (0)'.
91289
91290 2004-04-19  Bruno Haible  <bruno@clisp.org>
91291
91292         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
91293         * m4/inttypes_h.m4: Likewise.
91294         * m4/stdint_h.m4: Likewise.
91295         * m4/intmax_t.m4: Likewise.
91296         * m4/uintmax_t.m4: Likewise.
91297
91298 2004-04-18  Jim Meyering  <jim@meyering.net>
91299
91300         * m4/prereq.m4: Don't forbid jm_ prefix.
91301
91302         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
91303         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
91304         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
91305         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
91306         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
91307         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
91308         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
91309         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
91310         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
91311         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
91312         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
91313         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
91314         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
91315         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
91316         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
91317         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
91318         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
91319         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
91320         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
91321
91322 2004-04-18  Jim Meyering  <jim@meyering.net>
91323
91324         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
91325         failure, don't leak memory and do call END_UTMP_ENT.
91326
91327 2004-04-16  Jim Meyering  <jim@meyering.net>
91328
91329         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
91330         coreutils' stat program.
91331         (gl_PREREQ): Don't require jm_PREREQ_STAT.
91332
91333 2004-04-11  Paul Eggert  <eggert@twinsun.com>
91334
91335         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
91336         C89.
91337         (CHAR_BIT): Remove, since we assume C89.
91338         Include <stdint.h> if available, as per current Autoconf CVS advice.
91339
91340 2004-03-31  Jim Meyering  <jim@meyering.net>
91341
91342         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
91343         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
91344         * m4/xalloc.m4: Likewise.
91345
91346 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91347
91348         Merge from coreutils.
91349
91350         * m4/inttostr.m4: New file.
91351         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
91352         Require AM_STDBOOL_H and gl_TIMESPEC instead.
91353         Require gl_CLOCK_TIME.
91354         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
91355
91356 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91357
91358         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
91359         not bool, to be more consistent with Unix conventions.
91360         Suggested by Bruno Haible.
91361
91362         Merge from coreutils.
91363
91364         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
91365         * lib/umaxtostr.c: New files.
91366
91367         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
91368         the usual <time.h> dance.
91369         (get_date): Change signature to support fractional time stamps.
91370         All callers changed.
91371         * lib/getdate.y: Include "getdate.h" first, as we can now
91372         assume C89 and don't need to worry about 'const'.
91373         Similarly, include "unlocked-io.h" near start, not in middle.
91374         Include <limits.h>.
91375         (textint.value): Use long int rather than int.
91376         (textint.digits): Use size_t rather than int.
91377         (BILLION, LOG10_BILLION): New constants.
91378         (parser_control): New member rel_ns.  Members day_ordinal,
91379         time_zone, month, day, hour, minutes, rel_year, rel_month,
91380         rel_day, rel_hour, rel_minutes, rel_seconds
91381         are now long int, not int.  Member seconds is now struct timespec,
91382         not int.  New member timespec_seen.  Members dates_seen, days_seen,
91383         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
91384         not int.
91385         (%union.intval): Now long int, not int.
91386         New member timespec.
91387         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
91388         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
91389         (spec): Now is a timespec or an item list.
91390         (timespec, items): New nonterminals.
91391         (time, rel, relunit, number, get_date):
91392         Add support for fractional seconds.
91393         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
91394         (gmtime, localtime, mktime): Remove decls; not needed with C89.
91395         (to_hour): First arg is now long int, not int.
91396         (to_year): Returns long int, not int.
91397         Don't treat year -70 like 70.
91398         (tm_diff): Returns long int, not int.
91399         (lookup_word): Use bool instead of int when appropriate.
91400         (yylex): Use size_t for count, not int.
91401         Detect overflow when parsing large integer constants.
91402         Add support for fractions.
91403         (get_date): Make pointers 'const' if possible.
91404         Use more-portable code to detect integer overflow.
91405         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
91406         Don't use ctime; it's not reliable if the year has >4 digits.
91407
91408         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
91409         This is for compatibility with BSD.
91410
91411         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
91412         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
91413         From coreutils' system.h.
91414
91415         * lib/userspec.c: Don't include "posixver.h".
91416         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
91417         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
91418         compatible extension.  Simplify code by removing a boolean int
91419         that was always nonzero if a string was nonnull.
91420
91421 2004-03-30  Jim Meyering  <jim@meyering.net>
91422
91423         Merge from coreutils.
91424
91425         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
91426         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
91427         on some systems one must include <grp.h> before it.
91428         Reported by Christian Krackowizer.
91429
91430 2004-03-30  Jim Meyering  <jim@meyering.net>
91431
91432         Merge from coreutils.
91433
91434         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
91435
91436         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
91437         an empty input stream.
91438
91439         * lib/readtokens.c: Include <stdbool.h>.
91440         (readtoken): Use `size_t' rather than int/long.
91441         All callers adjusted.
91442         Use `bool' rather than `int' where appropriate.
91443         Use memset rather than an explicit loop.
91444         Use x2nrealloc rather than xrealloc.
91445         Allow the use of `\0' as a delimiter.
91446         (readtokens): Likewise.
91447         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
91448
91449 2004-03-30  Jim Meyering  <jim@meyering.net>
91450
91451         * m4/realloc.m4: Remove file, since now it does no more than
91452         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
91453         the `configure.ac' section of module/realloc.
91454         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
91455
91456 2004-03-30  Bruno Haible  <bruno@clisp.org>
91457
91458         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
91459         nonnull.
91460
91461 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91462
91463         Merge changes to getloadavg.c from coreutils and Emacs.
91464
91465         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
91466         Define to an expression, not to the empty string.
91467         Include cloexec.h and xalloc.h.
91468         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
91469         Use set_cloexec_flag rather than rolling our own.
91470         * lib/cloexec.c, lib/cloexec.h: New files.
91471
91472 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91473
91474         * m4/cloexec.m4: New file.
91475
91476 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91477
91478         * lib/getopt.h: Sync with libc CVS.
91479
91480 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91481             Bruno Haible  <bruno@clisp.org>
91482
91483         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
91484         mbswidth.
91485
91486 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91487             Bruno Haible  <bruno@clisp.org>
91488
91489         * lib/mbswidth.h: Include <wchar.h> only if
91490         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
91491         <wchar.h>.
91492         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
91493
91494 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91495
91496         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
91497         Sync with libc CVS.
91498         * lib/getopt_int.h: New file, also synced from libc.
91499
91500 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91501
91502         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
91503         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
91504         Bring back getopt.c, getopt.h, getopt1.c.
91505
91506 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91507
91508         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
91509         All uses changed.  Check for sa_sigaction member; this fixes
91510         a bug first reported by Jason Andrade in
91511         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91512
91513 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91514
91515         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
91516         '#if' expressions.  Unlike the code it replaces, it does not
91517         depend on (defined _SC_PAGESIZE).  However, it does depend on
91518         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
91519         first reported by Jason Andrade in
91520         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91521
91522 2004-02-25  Simon Josefsson  <jas@extundo.com>
91523
91524         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
91525
91526 2004-02-25  Simon Josefsson  <jas@extundo.com>
91527
91528         * lib/strdup.h: New file.
91529         * lib/strdup.c: Include it.
91530         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
91531         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
91532
91533 2004-02-23  Karl Berry  <karl@gnu.org>
91534
91535         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
91536         (from fencepost.gnu.org:/gd/gnuorg).
91537
91538 2004-02-23  Karl Berry  <karl@gnu.org>
91539
91540         * config/srclistvars.sh (GNUORG) [karl]: redefine.
91541         * config/srclist.txt: add maintain/standards documents.
91542
91543 2004-02-18  Bruno Haible  <bruno@clisp.org>
91544
91545         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
91546         Reported by Derek Robert Price <derek@ximbiot.com>.
91547
91548 2004-02-16  Karl Berry  <karl@gnu.org>
91549
91550         * config/mkinstalldirs, install-sh: update from automake.
91551
91552 2004-02-06  Karl Berry  <karl@gnu.org>
91553
91554         * m4/po.m4: update from gettext 0.14.1.
91555
91556 2004-02-06  Karl Berry  <karl@gnu.org>
91557
91558         * lib/config.charset: update from gettext 0.14.1.
91559
91560 2004-02-05  Paul Eggert  <eggert@twinsun.com>
91561
91562         Add comments and code, prompted by suggestions from Bruno Haible
91563         for sh-quote.
91564         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
91565         describing the enum quoting_style values.
91566         * lib/quotearg.c (quotearg_alloc): New function.
91567         (quotearg_buffer_restyled): Treat lone { and } as special.
91568         Treat = as special.  Work around bug with older shells
91569         that "see" a '\' that is really the 2nd byte of a multibyte char.
91570         Quote empty string with shell_quoting_style.
91571
91572 2004-02-03  Bruno Haible  <bruno@clisp.org>
91573
91574         * m4/pipe.m4: New file, from GNU gettext.
91575
91576 2004-02-03  Bruno Haible  <bruno@clisp.org>
91577
91578         * lib/pipe.h: New file, from GNU gettext.
91579         * lib/pipe.c: New file, from GNU gettext.
91580
91581 2004-01-27  Bruno Haible  <bruno@clisp.org>
91582
91583         * m4/execute.m4: New file, from GNU gettext.
91584
91585 2004-01-27  Bruno Haible  <bruno@clisp.org>
91586
91587         * lib/execute.h: New file, from GNU gettext.
91588         * lib/execute.c: New file, from GNU gettext.
91589         * lib/w32spawn.h: New file, from GNU gettext.
91590
91591 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91592
91593         Merge from diffutils.
91594
91595         * lib/file-type.c (file_type): Add typed memory objects.
91596         * lib/file-type.h (S_TYPEISTMO): New macro.
91597
91598         * lib/c-stack.h (c_stack_action): Remove argv argument.
91599         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
91600         (die): Don't calculate message unless segv_action returns.
91601         (get_stack_location, min_address_from_argv, max_address_from_argv,
91602         volatile stack_base, volatile_stack_size): Remove.
91603         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
91604         that every segmentation violation is a stack overflow.  (Ouch!)
91605         See Debian bug 136249 (still outstanding) for more info about why
91606         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
91607
91608 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91609
91610         Exit-status fix from coreutils.
91611
91612         Use exit_failure consistently in place of EXIT_FAILURE,
91613         so that program exit statuses are consistent on failure.
91614
91615         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
91616         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
91617         * lib/argmatch.h: Comment fix to match the above.
91618         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
91619         Now a macro referring to exit_failure, instead of a separate
91620         variable.  Include "exitfail.h" to get it.
91621         * lib/xstrtol.h: Include "exitfail.h".
91622         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
91623
91624         * lib/long-options.c (parse_long_options): Use prototype
91625         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
91626         for clarity.
91627
91628 2004-01-21  Jim Meyering  <jim@meyering.net>
91629
91630         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
91631         so as not to conflict with a different-sized __mktime_internal
91632         function in GNU libc.
91633         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
91634         Problem building statically-linked `ls' reported by Michael Brunnbauer.
91635
91636 2004-01-20  Karl Berry  <karl@gnu.org>
91637
91638         * config/config.guess: update from config.
91639
91640         * config/srclistvars.sh: GNUWWWLICENSES for karl.
91641
91642 2004-01-20  Bruno Haible  <bruno@clisp.org>
91643
91644         Safer stack allocation.
91645         * lib/setenv.c: Include allocsa.h.
91646         (alloca): Remove fallback definition.
91647         (freea): Remove macro.
91648         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
91649         instead of freea.
91650
91651 2004-01-20  Bruno Haible  <bruno@clisp.org>
91652
91653         * m4/eealloc.m4: New file, from GNU gettext.
91654
91655 2004-01-20  Bruno Haible  <bruno@clisp.org>
91656
91657         * m4/allocsa.m4: New file, from GNU gettext.
91658
91659 2004-01-20  Bruno Haible  <bruno@clisp.org>
91660
91661         * lib/xallocsa.h: New file, from GNU gettext.
91662         * lib/xallocsa.c: New file, from GNU gettext.
91663
91664 2004-01-20  Bruno Haible  <bruno@clisp.org>
91665
91666         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
91667
91668 2004-01-20  Bruno Haible  <bruno@clisp.org>
91669
91670         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
91671         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
91672         specially.
91673
91674 2004-01-20  Bruno Haible  <bruno@clisp.org>
91675
91676         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
91677         patch.
91678
91679 2004-01-20  Bruno Haible  <bruno@clisp.org>
91680
91681         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
91682
91683 2004-01-20  Bruno Haible  <bruno@clisp.org>
91684
91685         * lib/eealloc.h: New file.
91686
91687 2004-01-20  Bruno Haible  <bruno@clisp.org>
91688
91689         * lib/binary-io.h: Avoid warnings on Cygwin.
91690
91691 2004-01-20  Bruno Haible  <bruno@clisp.org>
91692
91693         * lib/allocsa.h: New file, from GNU gettext.
91694         * lib/allocsa.c: New file, from GNU gettext.
91695
91696 2004-01-18  Karl Berry  <karl@gnu.org>
91697
91698         * doc/gpl.texi, doc/lgpl.texi: new files.
91699
91700 2004-01-18  Karl Berry  <karl@gnu.org>
91701
91702         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
91703         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
91704
91705 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91706
91707         Merge from coreutils.
91708
91709         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
91710         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
91711         (gl_DEFAULT_POSIX2_VERSION): Move
91712         the documentation from 'configure' into 'config.hin',
91713         so that 'configure --help' isn't burdened by it and
91714         we don't have to worry about its formatting there.
91715         Reword the documentation so that it's more succinct
91716         and can be run together into a single paragraph.
91717         * m4/same.m4 (gl_SAME): Check for pathconf.
91718
91719 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91720
91721         Merge from coreutils.
91722
91723         * lib/posixver.c: Include posixver.h.
91724
91725         * lib/same.c: Include <stdbool.h>, <limits.h>.
91726         (_POSIX_NAME_MAX): Define if not defined.
91727         (MIN): New macro.
91728         (same_name): If file names are silently truncated, report
91729         that the file names are the same if they are the same after
91730         the silent truncation.
91731
91732         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
91733         conversion function.
91734         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
91735         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
91736         longer needed.
91737
91738 2004-01-15  Jim Meyering  <jim@meyering.net>
91739
91740         Merge from coreutils.
91741
91742         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
91743         if no library is required.
91744         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
91745         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
91746         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
91747         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
91748         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
91749         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
91750         value, $ac_cv_search_crypt, if it's "none required".
91751         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
91752         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
91753         not gl_FUNC_GETLOADAVG.
91754         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
91755         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
91756
91757 2004-01-15  Jim Meyering  <jim@meyering.net>
91758
91759         Merge from coreutils.
91760
91761         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
91762         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
91763         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
91764
91765         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
91766         optional configure-time default.
91767
91768         * lib/version-etc.c (version_etc_copyright): Update copyright date.
91769
91770         * lib/xreadlink.c (xreadlink): Correct outdated comment.
91771
91772 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
91773
91774         Merge from coreutils.
91775
91776         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
91777         value, $ac_cv_search_nanosleep, if it's "none required".
91778
91779 2004-01-14  Paul Eggert  <eggert@twinsun.com>
91780
91781         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
91782         with like-named macro in fnmatch.c.
91783         (EXT): Use an internal constant instead.
91784
91785         Merge fnmatch patches from glibc.
91786         * lib/fnmatch.c (mbsinit): Remove define.
91787         Add libc_hidden_ver (__fnmatch, fnmatch).
91788         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
91789         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
91790
91791 2004-01-14  Karl Berry  <karl@gnu.org>
91792
91793         * config/install-sh: update from automake.
91794
91795 2004-01-13  Karl Berry  <karl@gnu.org>
91796
91797         * config/install-sh: update from automake.
91798
91799 2004-01-09  Karl Berry  <karl@gnu.org>
91800
91801         * config/install-sh: update from automake.
91802
91803 2004-01-05  Karl Berry  <karl@gnu.org>
91804
91805         * config/config.{sub,guess}: update from config.
91806
91807 2003-12-31  Karl Berry  <karl@gnu.org>
91808
91809         * config/depcomp: update from automake.
91810
91811 2003-12-14  Karl Berry  <karl@gnu.org>
91812
91813         * lib/config.charset: update from gettext-runtime.
91814
91815 2003-12-03  Paul Eggert  <eggert@twinsun.com>
91816
91817         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
91818         Bug reported by Alfred M. Szmidt.
91819
91820 2003-12-03  Bruno Haible  <bruno@clisp.org>
91821
91822         * m4/gettext.m4: Upgrade from gettext-0.13.
91823         * m4/po.m4: Upgrade from gettext-0.13.
91824         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
91825         * m4/intmax.m4: New file, from gettext-0.13.
91826         * m4/printf-posix.m4: New file, from gettext-0.13.
91827
91828 2003-11-29  Karl Berry  <karl@gnu.org>
91829
91830         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
91831
91832 2003-11-25  Paul Eggert  <eggert@twinsun.com>
91833             Bruno Haible  <bruno@clisp.org>
91834
91835         * lib/printf-parse.h: Don't include sys/types.h.
91836         (ARG_NONE): New macro.
91837         (char_directive): Change type of *arg_index fields to size_t.
91838         * lib/printf-parse.c: Don't include sys/types.h.
91839         (SSIZE_MAX): Remove macro.
91840         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
91841         Remove unnecessary overflow check.
91842         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
91843         fields.
91844
91845 2003-11-25  Bruno Haible  <bruno@clisp.org>
91846
91847         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
91848
91849 2003-11-25  Bruno Haible  <bruno@clisp.org>
91850
91851         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
91852         gt_TYPE_SSIZE_T.
91853
91854 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91855
91856         * modules/alloca: Remove dependency on xalloc.
91857
91858 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91859
91860         * lib/alloca.c: Remove dependency on xalloc module.
91861         (xalloc_die): Remove.
91862         (memory_full) [!defined emacs]: New macro.
91863         [!defined emacs]: Don't include xalloc.h.
91864         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
91865         address arithmetic overflows.  Change datatypes a bit to avoid
91866         unnecessary casts.
91867
91868 2003-11-22  Jim Meyering  <jim@meyering.net>
91869
91870         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
91871         s/size/size_t/.
91872
91873 2003-11-21  Karl Berry  <karl@gnu.org>
91874
91875         * config/config.{sub,guess}: update from config.
91876
91877 2003-11-18  Karl Berry  <karl@gnu.org>
91878
91879         * config/config.{sub,guess}: update from config.
91880
91881         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
91882
91883 2003-11-17  Paul Eggert  <eggert@twinsun.com>
91884
91885         * README: Mention that S+T cannot overflow if S is the size of
91886         an existing object and T is sufficiently small.
91887
91888 2003-11-17  Jim Meyering  <jim@meyering.net>
91889
91890         On systems without utime and without a utimes function capable of
91891         dealing with a NULL struct utimbuf* argument, this utime replacement
91892         could -- in unusual circumstances -- leak a file descriptor.
91893         * lib/utime.c: Include <unistd.h> and <errno.h>.
91894         (utime_null): Be sure to close `fd' and to preserve errno.
91895         Reported by Geoff Collyer via Arnold Robbins.
91896
91897 2003-11-17  Bruno Haible  <bruno@clisp.org>
91898
91899         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
91900         (Depends-on): Add xsize.
91901
91902 2003-11-17  Bruno Haible  <bruno@clisp.org>
91903
91904         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
91905
91906 2003-11-17  Bruno Haible  <bruno@clisp.org>
91907
91908         * lib/vasnprintf.c (alloca): Remove fallback definition.
91909         (freea): Remove definition.
91910         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
91911         Reported by Paul Eggert.
91912
91913 2003-11-16  Paul Eggert  <eggert@twinsun.com>
91914             Bruno Haible  <bruno@clisp.org>
91915
91916         Protect against address arithmetic overflow.
91917         * lib/printf-args.h: Include stddef.h.
91918         (arguments): Change type of field 'count' to size_t.
91919         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
91920         'unsigned int' where appropriate.
91921         * lib/printf-parse.h: Include sys/types.h.
91922         (char_directive): Change type of *arg_index fields to ssize_t.
91923         (char_directives): Change type of fields 'count', max_*_length to
91924         size_t.
91925         * lib/printf-parse.c: Include sys/types.h and xsize.h.
91926         (SSIZE_MAX): Define fallback value.
91927         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
91928         instead of 'int' where appropriate. Check a_allocated, d_allocated
91929         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
91930         * lib/vasnprintf.c: Include xsize.h.
91931         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
91932         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
91933         overflow. Avoid wraparound when converting a width or precision from
91934         decimal to binary.
91935
91936 2003-11-16  Bruno Haible  <bruno@clisp.org>
91937
91938         Update from GNU gettext.
91939         * lib/printf-parse.c: Generalize to it can be compiled for wide
91940         strings.
91941         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
91942         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
91943         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
91944         SNPRINTF): New macros.
91945         Don't include <alloca.h> if the file is used inside libintl.
91946         (local_wcslen): New function, for Solaris 2.5.1.
91947         (VASNPRINTF): Use it instead of wcslen.
91948
91949 2003-11-16  Bruno Haible  <bruno@clisp.org>
91950
91951         * lib/xsize.h (xmax): New function.
91952         (xsum, xsum3, xsum4): Declare as "pure" functions.
91953
91954 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91955
91956         * modules/xalloc (Files): Undo latest change, since xalloc.h
91957         no longer needs SIZE_MAX or PTRDIFF_MAX.
91958
91959 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91960
91961         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
91962         gl_PTRDIFF_MAX.
91963
91964 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91965
91966         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
91967         "return", to pacify some unknown compiler.  Problem reported
91968         by Joerg Schilling.
91969
91970 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91971
91972         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
91973         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
91974         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
91975         heuristic is just as accurate as far as we know, and it removes a
91976         dependency on size_max.m4 and ptrdiff_max.m4.
91977
91978 2003-11-11  Bruno Haible  <bruno@clisp.org>
91979
91980         * modules/xsize (Files): Add m4/size_max.m4.
91981         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
91982
91983 2003-11-11  Bruno Haible  <bruno@clisp.org>
91984
91985         * m4/size_max.m4: New file.
91986         * m4/ptrdiff_max.m4: New file.
91987         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
91988         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
91989         (gl_XALLOC): Invoke it.
91990
91991 2003-11-11  Bruno Haible  <bruno@clisp.org>
91992
91993         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
91994         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
91995         defined.
91996
91997 2003-11-10  Paul Eggert  <eggert@twinsun.com>
91998
91999         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
92000         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
92001         rejected some allocations of exactly SIZE_MAX - 2 bytes.
92002         From Bruno Haible.
92003         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
92004         not (size_t) -1, since it's defined here.
92005
92006 2003-11-09  Karl Berry  <karl@gnu.org>
92007
92008         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
92009
92010 2003-11-06  Paul Eggert  <eggert@twinsun.com>
92011
92012         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
92013         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
92014         Reject sizes of exactly SIZE_MAX bytes.
92015         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
92016         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
92017
92018 2003-11-05  Bruno Haible  <bruno@clisp.org>
92019
92020         * lib/xsize.h: Include limits.h, to avoid a possible collision with
92021         SIZE_MAX defined in <limits.h> on Solaris.
92022
92023 2003-11-04  Jim Meyering  <jim@meyering.net>
92024
92025         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
92026         variable names, rather than @VAR@.
92027         * modules/poll: Likewise.
92028
92029 2003-11-04  Bruno Haible  <bruno@clisp.org>
92030
92031         * modules/xsize: New file.
92032         * modules/linebreak: Depend on xsize.
92033         * MODULES.html.sh (func_all_modules): Add xsize.
92034
92035 2003-11-04  Bruno Haible  <bruno@clisp.org>
92036
92037         * m4/xsize.m4: New file.
92038
92039 2003-11-04  Bruno Haible  <bruno@clisp.org>
92040
92041         * lib/xsize.h: New file.
92042         * lib/linebreak.c: Include xsize.h.
92043         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
92044         argument for overflow.
92045         Suggested by Paul Eggert.
92046
92047 2003-11-03  Karl Berry  <karl@gnu.org>
92048
92049         * config/config.{guess,sub}: update from config.
92050
92051 2003-11-03  Jim Meyering  <jim@meyering.net>
92052
92053         * modules/userspec (lib_SOURCES): Add userspec.h.
92054         (Include): Add "userspec.h".
92055         Improve description.
92056
92057 2003-11-03  Jim Meyering  <jim@meyering.net>
92058
92059         * lib/userspec.c: Include "userspec.h".
92060         * lib/userspec.h: New file.
92061
92062 2003-11-03  Bruno Haible  <bruno@clisp.org>
92063
92064         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
92065
92066 2003-11-03  Bruno Haible  <bruno@clisp.org>
92067
92068         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
92069         available, to avoid (extremely rare) race condition.
92070         Suggested by Paul Eggert.
92071
92072 2003-11-02  Karl Berry  <karl@gnu.org>
92073
92074         * config/srclist.txt (vasprintf.c): sync broken, sigh.
92075
92076 2003-10-31  Paul Eggert  <eggert@twinsun.com>
92077
92078         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
92079         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
92080         (read_filesystem_list): Set and use me_type_malloced.
92081         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
92082         whatever the type happens to be), for brevity and consistency.
92083         Check for size calculation overflow on Alphas running OSF/1.
92084
92085 2003-10-31  Jim Meyering  <jim@meyering.net>
92086
92087         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
92088
92089         * lib/linebuffer.c: Include <string.h> for declaration of memset.
92090
92091 2003-10-30  Paul Eggert  <eggert@twinsun.com>
92092             Bruno Haible  <bruno@clisp.org>
92093
92094         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
92095         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
92096
92097 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
92098
92099         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
92100         netbsd*-gnu*.  Suggested by Robert Millan.
92101
92102 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92103
92104         * modules/group-member: Depend on stdbool.
92105
92106 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92107
92108         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
92109
92110 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92111
92112         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
92113         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
92114         after the 'gnu' in these cases.  This fixes some bugs in the
92115         previous change, and is based on suggestions by Robert Millan.
92116
92117 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92118
92119         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
92120         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
92121         no longer needed.
92122         * lib/quotearg.c (quotearg_n_options): Use it.
92123         * lib/group-member.c: Include <stdbool.h>.
92124         (free_group_info): Arg is now const *; don't free arg.
92125         (get_group_info): Now returns bool and accepts struct group_info *,
92126         rather than returning a malloc'ed struct group_info *.
92127         All uses changed.  Check for overflow in internal size calculation.
92128
92129         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
92130         rather than xmalloc/xrealloc.
92131         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
92132         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
92133         conformance bug: the old code used a pointer after freeing the
92134         storage that it addressed.
92135         * lib/hash.c (hash_initialize): Simplify the code by using
92136         xalloc_oversized rather than doing it by hand.
92137         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
92138         the buffer preserved.  Use free and xmalloc instead.
92139         * lib/quotearg.c (quotearg_n_options): Likewise.
92140         Use a simpler test for size overflow.  Don't use xalloc_oversized
92141         because unsigned int might be wider than size_t (!); this suggests
92142         that we should switch from unsigned int to size_t for slot numbers.
92143
92144 2003-10-28  Paul Eggert  <eggert@twinsun.com>
92145
92146         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
92147         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
92148         NetBSD kernels.  Requested by Richard Stallman.
92149
92150 2003-10-27  Paul Eggert  <eggert@twinsun.com>
92151
92152         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
92153         to allocate the returned structure.  Do not allocate a subarray,
92154         as x2nrealloc will do that.
92155         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
92156         instead of xnrealloc.
92157         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
92158
92159 2003-10-27  Bruno Haible  <bruno@clisp.org>
92160
92161         * lib/stdbool_.h: Better support for BeOS.
92162
92163 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92164
92165         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
92166         now uses inline.
92167
92168 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92169
92170         * lib/xalloc.h (xalloc_oversized): New static inline function, for
92171         callers that want to do their own size-overflow checking.  Include
92172         <stdbool.h>, since xalloc_oversized returns bool.
92173         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
92174         to use xalloc_oversized.
92175
92176         Add two functions x2realloc, x2nrealloc, for programs that grow
92177         arrays dynamically by doubling their sizes.
92178         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
92179         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
92180         New functions.
92181
92182         Port to C99 semantics for 'inline' of external functions.
92183         Bug reported by Bruno Haible.
92184         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
92185         with the old contents of xnmalloc.
92186         (xnmalloc, xmalloc): Use it.
92187         (xnrealloc_inline): New static inline function,
92188         with the old contents of xnrealloc.
92189         (xnrealloc, xrealloc): Use it.
92190
92191         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
92192         that.
92193
92194 2003-10-26  Karl Berry  <karl@gnu.org>
92195
92196         * config/srclist.txt (COPYING.DOC): no longer available from
92197         /gd/gnuorg; don't know where the ultimate source is.
92198
92199 2003-10-25  Paul Eggert  <eggert@twinsun.com>
92200
92201         Fix several address-calculation bugs in the hash modules,
92202         plus some minor code cleanup.
92203
92204         * lib/hash.h: Include <stdbool.h>, for bool.
92205         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
92206         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
92207         hash_get_n_entries, hash_get_max_bucket_length,
92208         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
92209         hash_rehash): Use size_t rather than unsigned.
92210         * lib/hash.c (struct hash_table, hash_get_n_buckets,
92211         hash_get_n_buckets_used, hash_get_n_entries,
92212         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
92213         hash_get_entries, hash_do_for_each, hash_string, is_prime,
92214         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
92215         Likewise.
92216         (SIZE_MAX): Define if not defined.
92217         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
92218         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
92219         hash_print):
92220         Use const * when possible.
92221         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
92222         (check_tuning): Fix bug: if tuning parameters were very close to
92223         0 or 1, rounding errors could have caused subscript violations.
92224         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
92225         (hash_initialize): Add 'fail:' label
92226         to free table and return NULL, and use it to simplify code.
92227         Use calloc rather than clearing the storage ourself.
92228         (hash_initialize, hash_rehash): Check for arithmetic overflow in
92229         buffer size calculations.
92230         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
92231         Include <stddef.h>, for size_t.
92232         * lib/hash-pjw.c (hash_pjw): Likewise.
92233         Switch to method described by Bruno Haible.
92234         Include <limits.h>, for CHAR_BIT.
92235         (SIZE_BITS): New macro.
92236
92237 2003-10-23  Paul Eggert  <eggert@twinsun.com>
92238
92239         * m4/getline.m4 (AM_FUNC_GETLINE):
92240         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
92241         hosts.  Problem reported by Derek Robert Price in
92242         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
92243         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
92244         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
92245
92246 2003-10-21  Paul Eggert  <eggert@twinsun.com>
92247
92248         * lib/getndelim2.c (getndelim2): When size calculation overflows,
92249         ceiling the allocation at NMAX bytes rather than silently
92250         discarding input bytes before NMAX is reached.  This makes
92251         a difference only if NMAX exceeds SIZE_MAX / 2.
92252
92253         * lib/obstack.c: Merge from glibc.
92254         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
92255         Add libc_hidden_def (_obstack_newchunk).
92256         (_obstack_free) [! defined _LIBC]: Remove.
92257         [defined _LIBC]: Make a strong alias from obstack_free, rather than
92258         a clone of the function body.
92259         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
92260         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
92261
92262         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
92263         glibc.
92264         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
92265         arg to memcpy.
92266
92267         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
92268         (obstack_ptr_grow_fast, obstack_int_grow_fast):
92269         Don't use lvalue casts, as GCC plans to remove support for them
92270         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
92271         was also present in the non-GCC version, indicating that this
92272         code had always been buggy and had never been widely used.
92273         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
92274         Use the fast variant of each macro, rather than copying the
92275         definiens of the fast variant; that way, we'll be more likely to
92276         catch future bugs in the fast variants.
92277
92278 2003-10-20  Bruno Haible  <bruno@clisp.org>
92279
92280         * modules/wait-process: New file.
92281         * MODULES.html.sh (func_all_modules): Add wait-process.
92282
92283 2003-10-20  Bruno Haible  <bruno@clisp.org>
92284
92285         * m4/wait-process.m4: New file.
92286
92287 2003-10-20  Bruno Haible  <bruno@clisp.org>
92288
92289         * lib/wait-process.h: New file, from GNU gettext.
92290         * lib/wait-process.c: New file, from GNU gettext.
92291
92292 2003-10-19  Jim Meyering  <jim@meyering.net>
92293
92294         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
92295         HPUX 10.20.
92296
92297 2003-10-18  Karl Berry  <karl@gnu.org>
92298
92299         * config/config.guess: update from config.
92300
92301 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92302
92303         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
92304         (getgroups): First arg is int, not size_t.
92305         Don't let 'free' mangle errno.
92306
92307 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92308
92309         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
92310
92311 2003-10-16  Karl Berry  <karl@gnu.org>
92312
92313         * config/config.{guess,sub}: update from config.
92314
92315 2003-10-16  Jim Meyering  <jim@meyering.net>
92316
92317         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
92318         memcpy.
92319
92320 2003-10-15  Paul Eggert  <eggert@twinsun.com>
92321
92322         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
92323         (SIZE_MAX): Remove.
92324         (new_exclude, add_exclude_file): Initial size no longer needs to
92325         be a power of 2.
92326         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
92327         our own address arithmetic overflow checking.
92328
92329         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
92330         (fnmatch): Do not alloca more than 2000 wide characters;
92331         instead, use malloc for large buffers.
92332         Check for address arithmetic overflow, and return -1
92333         with errno set to ENOMEM in that case.
92334         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
92335         (NEW_PATTERN): Do not alloca more than 8000 bytes;
92336         instead, return -1.  Check for address arithmetic overflow.
92337
92338 2003-10-14  Paul Eggert  <eggert@twinsun.com>
92339
92340         Handle invalid suffixes and overflow independently, so that
92341         callers can treat them independently as needed.  Fix some bugs in
92342         suffix handling, e.g., "100k@" was not diagnosed as an invalid
92343         suffix for a human-readable blocksize.  The major caller-visible
92344         change is the addition of a new
92345         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
92346         that both overflow and suffix chars were found.
92347
92348         * lib/human.c (humblock): Don't check separately for invalid suffix
92349         char; that is xstrtoumax's job (now that its bug is fixed).
92350         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
92351         INTMAX_MAX]: New macros.
92352         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
92353         TYPE_MAXIMUM): New macros.
92354         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
92355         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
92356         if overflow occurs, as it's what __strtol does and it's more useful
92357         in practice.
92358         (__xstrtol): If __strtol reports some error other than ERANGE,
92359         reflect it to the caller as LONGINT_INVALID.  If it reports
92360         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
92361         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
92362         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
92363         value.
92364         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
92365         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
92366         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
92367         [defined UINTMAX_MAX]: New macros.
92368
92369 2003-10-14  Bruno Haible  <bruno@clisp.org>
92370
92371         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
92372
92373 2003-10-14  Bruno Haible  <bruno@clisp.org>
92374
92375         * m4/sig_atomic_t: New file, from GNU gettext.
92376         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
92377
92378 2003-10-14  Bruno Haible  <bruno@clisp.org>
92379
92380         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
92381         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
92382         Also use volatile where needed.
92383
92384 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92385
92386         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
92387         Change maintainer from Bruno Haible to 'all'.
92388
92389 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92390
92391         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
92392
92393 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92394
92395         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
92396         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
92397         and define in terms of the other primitives.
92398         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
92399         (SIZE_MAX): Define if not already defined.
92400         (array_size_overflow): New function.
92401         (xalloc_die): Abort instead of exiting if 'error' returns.
92402         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
92403         (xmalloc, xrealloc): Use them.
92404         (xcalloc): Check for address arithmetic overflow.
92405         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
92406         a bit faster than strcpy.
92407
92408 2003-10-10  Simon Josefsson  <jas@extundo.com>
92409
92410         * modules/argp (Depends-on): Add restrict and strcase.
92411
92412 2003-10-10  Simon Josefsson  <jas@extundo.com>
92413
92414         * m4/argp.m4: Add AC_C_INLINE.
92415
92416 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92417
92418         Merge getpass from libc, plus a few fixes.
92419
92420         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
92421         Include <stdbool.h>.
92422         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
92423         __fsetlocking to empty.
92424         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
92425         do include <bits/libc-lock.h>.
92426         Do not include <fcntl.h>; not needed.
92427         [_LIBC]: Include <wchar.h>.
92428         (NOTCANCEL_MODE): New macro.
92429         (flockfile, funlockfile) [_LIBC]: New macros.
92430         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
92431         [!_LIBC]: New macros.
92432         (call_fclose): New function.
92433         (getpass): Use it.  Save tty stream separately; this simplifies the
92434         code and makes it more reliable if stdin happens to equal stdout.
92435         Invoke __fsetlocking on tty.
92436         Handle thread cancellation if needed.
92437         Namespace cleanup (use __tcgetattr, __getline).
92438         Use bool for Booleans.
92439         [USE_IN_LIBIO]: Handle wide streams.
92440         [!_LIBC]: Unconditionally do the fseek, since we don't know what
92441         stream might go where.
92442
92443         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
92444         doesn't have to include <stdio.h> before us.
92445         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
92446         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
92447         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
92448         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
92449         if not declared, so that we can use getpass.c code from libc without
92450         rewriting it.
92451         (flockfile, ftrylockfile, funlockfile): New macros.
92452
92453 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92454
92455         * modules/getpass: Depend on stdbool.
92456
92457 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92458
92459         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
92460
92461 2003-10-07  Karl Berry  <karl@gnu.org>
92462
92463         * config/config.{guess,sub}: update from config.
92464
92465 2003-10-06  Jim Meyering  <jim@meyering.net>
92466             Bruno Haible  <bruno@clisp.org>
92467
92468         This lets translators provide better translations for the
92469         "Written by ..." part of --version output.
92470         * lib/version-etc.h: Include stdarg.h.
92471         (version_etc_copyright): Declare as readonly.
92472         (version_etc): Make this function variadic with a NULL-terminated list
92473         of author name strings.
92474         (version_etc_va): New declaration.
92475         * lib/version-etc.c: Include stdarg.h, stdlib.h.
92476         (version_etc_copyright): Declare as readonly.
92477         (version_etc_va): New function. Provide a different translatable string
92478         for each possible number of authors < 10. Abbreviate when there are 10
92479         authors or more.
92480         (version_etc): Make this function variadic. Call version_etc_va.
92481         Suggestion from Gary V. Vaughan.
92482
92483         * lib/long-options.h (parse_long_options): Change prototype: the
92484         authors string is moved to the end and becomes variadic.
92485         * lib/long-options.c: Include stdarg.h.
92486         (parse_long_options): Make this function variadic, too.
92487         Call version_etc_va, not version_etc.
92488
92489 2003-10-06  Bruno Haible  <bruno@clisp.org>
92490
92491         * modules/version-etc-2: Remove file.
92492         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
92493
92494 2003-10-06  Bruno Haible  <bruno@clisp.org>
92495
92496         * modules/fatal-signal: New file.
92497         * MODULES.html.sh (func_all_modules): Add fatal-signal.
92498
92499 2003-10-06  Bruno Haible  <bruno@clisp.org>
92500
92501         * m4/fatal-signal.m4: New file.
92502         * m4/signalblocking.m4: New file, from GNU gettext.
92503
92504 2003-10-06  Bruno Haible  <bruno@clisp.org>
92505
92506         * lib/version-etc-2.h: Remove file.
92507         * lib/version-etc-2.c: Remove file.
92508
92509 2003-10-06  Bruno Haible  <bruno@clisp.org>
92510
92511         * lib/fatal-signal.h: New file, from GNU gettext.
92512         * lib/fatal-signal.c: New file, from GNU gettext.
92513
92514 2003-10-05  Paul Eggert  <eggert@twinsun.com>
92515
92516         * README: Rework advice for preventing empty .o files.
92517         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
92518         not <sys/types.h>.
92519
92520 2003-10-04  Karl Berry  <karl@gnu.org>
92521
92522         * lib/argp*: update from libc.
92523
92524 2003-10-04  Karl Berry  <karl@gnu.org>
92525
92526         * config/config.{guess,sub}: update from config.
92527
92528 2003-10-02  Bruno Haible  <bruno@clisp.org>
92529
92530         * modules/lchown (Include): Add lchown.h.
92531         * modules/time_r (Include): Use "..." syntax.
92532         * modules/xgetdomainname (Include): Add xgetdomainname.h.
92533
92534 2003-10-01  Simon Josefsson  <jas@extundo.com>
92535
92536         * MODULES.html.sh (func_all_modules): Move gethostname from section
92537         'based on' to section 'lacking' POSIX:2001.
92538
92539 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
92540
92541         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
92542         to output mode on the same stream.
92543
92544 2003-09-29  Paul Eggert  <eggert@twinsun.com>
92545
92546         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
92547         Fix arg typo in previous patch.
92548
92549 2003-09-28  Jim Meyering  <jim@meyering.net>
92550
92551         * lib/error.c: Correct cpp indentation.
92552
92553 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92554
92555         * modules/free: New file.
92556
92557 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92558
92559         * m4/free.m4: New file.
92560
92561 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92562
92563         * lib/minmax.h (MIN, MAX)
92564         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
92565         Omit the special code that used __typeof__, since we worry that
92566         it could be more trouble than it's worth.  See:
92567         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
92568         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
92569
92570         * lib/free.c: New file.
92571
92572 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
92573
92574         Trivial fixes to Makefile.am parts of module listings.
92575         * modules/strstr: Append strstr.h to lib_SOURCES.
92576         * modules/strcase: Likewise, for strcase.h.
92577
92578 2003-09-27  Karl Berry  <karl@gnu.org>
92579
92580         * config/mkinstalldirs: update from automake.
92581
92582 2003-09-26  Paul Eggert  <eggert@twinsun.com>
92583
92584         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
92585         (error_tail): Do not loop, reallocating temporary buffer, since
92586         the output cannot contain more wide characters than the input
92587         contains bytes, the size must be big enough already.  This avoids
92588         one potential size overflow calculation.  Check for size overflow
92589         when calculating temporary buffer size.  Free temporary buffer
92590         when done, if it was allocated with malloc; this plugs a memory
92591         leak.  Remove casts from void * to pointers, that are no longer
92592         needed now that we're assuming C89 or better.
92593
92594         Merge error changes from glibc.
92595
92596         * lib/error.c, error.h: Update copyright notice header to match glibc.
92597         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
92598         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
92599         Disable cancellation while printing error.
92600         * lib/error.h: Prepend __ to parameter names.
92601
92602 2003-09-26  Jim Meyering  <jim@meyering.net>
92603
92604         * lib/error.c (error_tail): Move some declarations
92605         into inner scope where the local variables are used.
92606
92607 2003-09-26  Bruno Haible  <bruno@clisp.org>
92608
92609         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
92610         stpncpy().
92611         Don't define stpncpy through config.h; it's now done through stpncpy.h.
92612
92613 2003-09-26  Bruno Haible  <bruno@clisp.org>
92614
92615         * lib/stpncpy.h (gnu_stpncpy): New declaration.
92616         (stpncpy): Define as alias for gnu_stpncpy.
92617         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
92618
92619 2003-09-25  Simon Josefsson  <jas@extundo.com>
92620
92621         * lib/xgetdomainname.h: New file.
92622         * lib/xgetdomainname.c: New file.
92623
92624 2003-09-25  Simon Josefsson  <jas@extundo.com>
92625             Bruno Haible  <bruno@clisp.org>
92626
92627         * modules/getdomainname: New file.
92628         * modules/xgetdomainname: New file.
92629         * MODULES.html.sh (func_all_modules): Add getdomainname,
92630         xgetdomainname.
92631
92632 2003-09-25  Simon Josefsson  <jas@extundo.com>
92633             Bruno Haible  <bruno@clisp.org>
92634
92635         * m4/getdomainname.m4: New file.
92636
92637 2003-09-25  Simon Josefsson  <jas@extundo.com>
92638             Bruno Haible  <bruno@clisp.org>
92639
92640         * lib/getdomainname.h: New file.
92641         * lib/getdomainname.c: New file.
92642
92643 2003-09-25  Karl Berry  <karl@gnu.org>
92644
92645         * lib/argp-fmtstream.c, argp-help.c: update from libc.
92646
92647 2003-09-25  Karl Berry  <karl@gnu.org>
92648
92649         * config/install-sh: update from automake.
92650
92651 2003-09-25  Bruno Haible  <bruno@clisp.org>
92652
92653         * modules/version-etc-2: New file, from modules/version-etc with
92654         modifications.
92655         * MODULES.html.sh (func_all_modules): Add version-etc-2.
92656
92657 2003-09-25  Bruno Haible  <bruno@clisp.org>
92658
92659         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
92660         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
92661
92662 2003-09-24  Simon Josefsson  <jas@extundo.com>
92663
92664         * modules/xgethostname: Add xgethostname.h.
92665
92666 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92667
92668         * lib/linebuffer.c (freebuffer): Don't free the argument, just
92669         the buffer associated with the argument.  Bug reported by
92670         Simon Josefsson.
92671
92672 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92673
92674         * README: Document assumptions that 'int' is at least 32 bits
92675         wide, that integer arithmetic is 2's complement without overflow,
92676         that there are no holes in integer values, that adding sizes of
92677         two nonoverlapping objects can't overflow, and that all-bits-zero
92678         yields scalar zero.  Fix spelling and capitalization typos.
92679
92680 2003-09-19  Karl Berry  <karl@gnu.org>
92681
92682         * lib/argp.h: update from libc.
92683
92684 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92685
92686         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
92687         to avoid spurious warnings like "AC_RUN_IFELSE was called before
92688         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
92689
92690 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92691
92692         * gnulib-tool: Use "test -h", not "test -L", for portability
92693         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
92694         (tags_regexp): Remove, since \| doesn't conform to POSIX.
92695         (sed_extract_prog): Issue s commands one-by-one, rather than
92696         using \| in one s command.
92697
92698 2003-09-16  Paul Eggert  <eggert@twinsun.com>
92699
92700         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
92701         input error, instead of returning NULL the next time we are called
92702         (and therefore losing track of errno).
92703
92704 2003-09-16  Bruno Haible  <bruno@clisp.org>
92705
92706         * gnulib-tool (func_create_testdir): Warn about duplicated
92707         dependencies.
92708
92709 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92710
92711         * modules/argmatch, modules/fatal, modules/obstack,
92712         modules/xalloc, modules/xgethostname: Sort dependencies by
92713         importance, not alphabetically.
92714
92715 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92716
92717         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
92718         fails, so that the caller gets the proper errno.
92719
92720         * lib/readutmp.c (read_utmp): Likewise.
92721         Check for fstat error.  Close stream and free storage
92722         when failing.
92723
92724 2003-09-14  Karl Berry  <karl@gnu.org>
92725
92726         * config/srclist.txt (strdup.c): disable for c89 changes.
92727
92728 2003-09-14  Jim Meyering  <jim@meyering.net>
92729
92730         * lib/getloadavg.c: Correct cpp indentation.
92731         * lib/strdup.c: Likewise.
92732         * lib/vasnprintf.c: Likewise.
92733
92734 2003-09-14  Bruno Haible  <bruno@clisp.org>
92735
92736         * modules/fwriteerror: New file.
92737         * MODULES.html.sh (func_all_modules): Add fwriteerror.
92738
92739 2003-09-14  Bruno Haible  <bruno@clisp.org>
92740
92741         * lib/fwriteerror.h: New file.
92742         * lib/fwriteerror.c: New file.
92743
92744 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92745
92746         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
92747         modules/xgethostname, modules/xalloc: Depend on exit.
92748
92749 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92750
92751         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
92752
92753         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
92754         and AC_MINIX, too, so that their extensions are available.
92755
92756         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
92757         This macro has been superseded by gl_BACKUPFILE.
92758
92759         More patches to assume C89 or better.
92760
92761         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
92762
92763         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
92764         unconditionally.
92765         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
92766         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
92767         Include <string.h>, <stdlib.h> unconditionally.
92768         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
92769         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
92770         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
92771         headers or for string.h.
92772         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
92773         or strtoul.
92774
92775         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
92776         headers.
92777         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
92778         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92779         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
92780         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
92781         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92782         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
92783         memcpy, memset.
92784         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
92785         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
92786         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
92787         strtol.
92788         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
92789         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
92790         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
92791         strtoul.
92792
92793 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92794
92795         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
92796         * lib/obstack.c [!defined _LIBC]: Likewise.
92797         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
92798         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
92799         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
92800
92801         More changes to assume C89 or better.
92802
92803         * lib/error.c (error_tail): Assume vprintf.
92804
92805         * lib/argmatch.c (getenv): Remove decl.
92806         * lib/progreloc.c (get_full_program_name): Define via prototype.
92807         * lib/setenv.c (clearenv): Likewise.
92808         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
92809         needed.
92810         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
92811         (malloc, memcpy): Remove decls.
92812         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
92813         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
92814         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92815         (memcpy): Remove macro.
92816         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
92817         (__P): Remove.  All uses removed.
92818         (PTR): Remove.  All uses changed to void *.
92819         (CHAR_BIT, NULL): Remove.
92820         (spaces, zeros, memset_space, memset_zero)
92821         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
92822         Remove.
92823         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
92824         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
92825         Define with prototype.
92826         Remove now-unnecessary prototype decl.
92827         (extra_args_spec): Assume ANSI C.  All uses changed.
92828         (extra_args_spec_iso): Remove.
92829         (my_strftime, emacs_strftimeu): Define via prototype.
92830         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
92831         unconditionally.
92832         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
92833         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
92834         (strtoul, strtol): Remove decls.
92835         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
92836         LONG_MAX): Remove.
92837         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92838         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
92839         (LOCALE_PARAM_PROTO): New macro.
92840         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
92841         (INTERNAL (strtol), strtol): Define with a prototype.
92842         (PARAMS): Remove.  All uses removed.
92843         * lib/tempname.c: Include <string.h> unconditionally.
92844         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
92845         * lib/xgethostname.c (main): Define with a prototype.
92846         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
92847         Include <stdlib.h> unconditionally.
92848         (calloc, malloc, realloc, free): Remove decls.
92849         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
92850         Include <stdlib.h> unconditionally.  Sort include file names.
92851         (strtod): Remove.
92852         (xstrtod): Define with a prototype.
92853         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
92854         (strtol, strtoul): Remove decls.
92855
92856 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92857
92858         More patches to assume C89 or better.
92859         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
92860         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
92861         string.h, memchr, STDC_HEADERS.
92862
92863 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92864
92865         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
92866         Include <stdlib.h>, <string.h> unconditionally.
92867         Remove now-unnecessary cast to char *.
92868         * lib/strnlen.c: Include <string.h> unconditionally.
92869         * lib/yesno.c (yesno): Define with a prototype.
92870
92871 2003-09-11  Bruno Haible  <bruno@clisp.org>
92872
92873         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
92874
92875 2003-09-10  Jim Meyering  <jim@meyering.net>
92876
92877         * lib/error.c: Correct indentation of cpp directives.
92878
92879 2003-09-10  Bruno Haible  <bruno@clisp.org>
92880
92881         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
92882         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
92883         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
92884         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
92885         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
92886         <stdlib.h> and <string.h> checks.
92887         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
92888         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
92889
92890 2003-09-10  Bruno Haible  <bruno@clisp.org>
92891
92892         * lib/strcspn.c: Include <string.h> unconditionally.
92893         * lib/strpbrk.c: Include <string.h> unconditionally.
92894         * lib/strstr.c: Include <string.h> unconditionally.
92895         * lib/unicodeio.c: Include <string.h> unconditionally.
92896         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
92897         * lib/unsetenv.c: Likewise.
92898         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
92899         * lib/yesno.c: Include <stdlib.h> unconditionally.
92900         (rpmatch): Add prototype.
92901
92902 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92903
92904         More patches to assume C89 or better.
92905         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
92906         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
92907         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
92908         or for string.h.
92909         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
92910         stdlib.h.
92911         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
92912         C headers.
92913         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
92914         string.h.
92915         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
92916         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
92917         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
92918         or for string.h.
92919         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
92920         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
92921         C headers.
92922         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
92923         memcpy.
92924         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
92925         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
92926         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
92927         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
92928         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
92929         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
92930         string.h, free.
92931         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
92932         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
92933         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
92934         C headers, or for string.h.
92935         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
92936         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
92937         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
92938         headers, memory.h, stdlib.h, string.h, strings.h.
92939         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
92940         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
92941         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
92942         strchr.
92943         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
92944         headers, memory.h, string.h.
92945         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
92946         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
92947         free.
92948         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
92949         headers.
92950         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
92951         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
92952         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
92953         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
92954         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
92955
92956 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92957
92958         More K&R removal.
92959
92960         * lib/acosl.c (main): Use a prototype.
92961         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
92962         tanl.c: Likewise.
92963
92964         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
92965
92966         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
92967         (getopt, etopt_long, getopt_long_only, _getopt_internal)
92968         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
92969         with a prototype.
92970         * lib/getopt.c (const): Remove macro.
92971         Include <string.h> unconditionally.
92972         (my_index): Remove; all uses changed to strchr.
92973         (strlen): Remove decl.
92974         (exchange): Remove forward decl; no longer needed.
92975         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
92976         Define with prototype.
92977         * lib/getopt1.c (const): Remove macro.
92978         (getopt_long, getopt_long_only, main): Define with prototype.
92979
92980         * lib/getugroups.c: Include <string.h> unconditionally.
92981
92982         * lib/getusershell.c: Include <stdlib.h> unconditionally.
92983         (getusershell, setusershell, endusershell, readname, main):
92984         Define with prototypes.
92985
92986         * lib/group-member.c: Include group-member.h first.
92987         Include <stdlib.h> unconditionally.
92988
92989         * lib/hard-locale.c: Include hard-locale.h first.
92990         Include <stdlib.h>, <string.h> unconditionally.
92991
92992         * lib/hash.c (free, malloc): Remove decls.
92993         Include <stdlib.h> unconditionally.
92994
92995         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
92996         (getenv): Do not declare.
92997
92998         * lib/idcache.c: Include <string.h> unconditionally.
92999
93000         * lib/long-options.c: Include long-options.h first, to test interface.
93001         Include <stdlib.h> unconditionally.
93002
93003         * lib/makepath.c: Include makepath.h first, to test interface.
93004         Include <stdlib.h> and <string.h> unconditionally.
93005
93006         * lib/linebuffer.c: Include <stdlib.h>.
93007         (free): Remove decl.
93008
93009         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
93010         stddef.h. rpl_malloc returns void *, not char *.
93011         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
93012         prototype.
93013
93014         * lib/md5.h: Include <limits.h> unconditionally.
93015         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
93016         (__P): Remove; all uses removed.
93017         * lib/md5.c: Include "md5.h" first.
93018         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
93019         md5_buffer, md5_process_bytes, md5_process_block):
93020         Define with prototypes.
93021         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
93022         * lib/sha.c: Include "sha.h" first.
93023         Include <stdlib.h>, <string.h> unconditionally.
93024
93025         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
93026         * lib/memcmp.c (__ptr_t): Likewise.
93027         * lib/memrchr.c (__ptr_t): Likewise.
93028         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
93029         Include <string.h> unconditionally.
93030         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
93031         * lib/memchr.c: Include <stdlib.h> unconditionally.
93032         * lib/memchr.c (LONG_MAX): Remove.
93033         * lib/memrchr.c (LONG_MAX): Likewise.
93034         * lib/memchr.c (__memchr): Define via a prototype.
93035         * lib/memrchr.c (__memrchr): Likewise.
93036         * lib/memcmp.c (__P): Remove, and remove all uses.
93037         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
93038         Remove forward decls; no longer needed.
93039         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
93040         Use types required by C89 in prototype.
93041
93042         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
93043         * lib/savedir.c: Likewise.
93044         * lib/mkdir.c (free): Remove decl.
93045         * lib/rmdir.c (rmdir): Define with a prototype.
93046         * lib/savedir.c: Include savedir.h first, to test interface.
93047
93048         * lib/mktime.c (STDC_HEADERS): Remove.
93049         Include <stdlib.h>, <string.h> unconditionally.
93050
93051         * lib/modechange.c: Include <stdlib.h> unconditionally.
93052         (malloc): Remove decl.
93053
93054         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
93055         (free): Remove decl.
93056
93057         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
93058         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
93059         (This type really should be intptr_t, but that's a C99ism.)
93060         (_obstack_memcpy): Remove: all uses changed to memcpy.
93061         Include <string.h> unconditionally.
93062         (struct obstack): Assume __STDC__ for types of members
93063         chunkfun, freefun, extra_arg.
93064         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
93065         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
93066         obstack_begin, obstack_specify_allocation,
93067         obstack_specify_allocation_with_arg, obstack_chunkfun,
93068         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
93069         Remove unprototyped decls and the macros that use them.
93070         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
93071         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
93072         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
93073         (defined __STDC__ && __STDC__)]:
93074         Remove nonprototyped code.
93075         Include <stdlib.h> unconditionally.
93076         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
93077         _obstack_allocated_p, _obstack_free, obstack_free,
93078         _obstack_memory_used, print_and_abort):
93079         Define using prototypes.
93080         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
93081         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
93082         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
93083         obstack_next_free, obstack_object_size, obstack_room) [0]:
93084         Remove unused, unprototyped code.
93085
93086         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
93087
93088         * lib/physmem.c (physmem_total, physmem_available, main): Define
93089         with prototypes.
93090
93091         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
93092         (main): Define with a prototype.
93093
93094         * lib/posixver.c (getenv): Remove decl.
93095
93096         * lib/putenv.c (malloc): Returns void *, not char *.
93097         Include <string.h> unconditionally.
93098         (strchr, memcpy, NULL): Do not define.
93099
93100         * lib/readtokens.c: Include readtokens.h first, to test interface.
93101         Include <stdlib.h>, <string.h> unconditionally.
93102         (init_tokenbuffer): Define with a prototype.
93103
93104         * lib/regex.c (PARAMS): Remove.  All uses removed.
93105         All uses of _RE_ARGS removed, too.
93106         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
93107         unconditionally.
93108         (bzero): Assume memset exists.
93109         (memcmp, memcpy, NULL): Remove.
93110         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
93111         char, or assignments to local vars of type signed char.
93112         (init_syntax_once, PREFIX(extract_number_and_incr),
93113         PREFIX(print_partial_compiled_pattern),
93114         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
93115         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
93116         PREFIX(regex_grow_registers), PREFIX(regex_compile),
93117         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
93118         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
93119         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
93120         wcs_compile_range, byte_compile_range, truncate_wchar,
93121         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
93122         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
93123         count_mbs_length, wcs_re_match_2_internal,
93124         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
93125         PREFIX(alt_match_null_string_p),
93126         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
93127         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
93128         regfree, PREFIX(extract_number)): Define with prototype.  Remove
93129         now-unnecessary declaration, if any.
93130         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
93131         regcomp, regexec):
93132         Remove now-unnecessary casts among pointer types.
93133         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
93134
93135         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
93136         (free): Remove decl.
93137
93138         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
93139
93140         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
93141         (free): Remove decl.
93142
93143         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
93144         * lib/xgetcwd.c: Likewise.
93145
93146         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
93147         (free): Remove decl.
93148
93149         * lib/strchrnul.c (strchrnul): Define with a prototype.
93150         Fix bug: c_in was not converted to char before searching.
93151
93152         The following changes are not K&R related:
93153
93154         * lib/group-member.h: Include <sys/types.h>, so that this file is
93155         self-contained.
93156         * lib/makepath.h: Likewise.
93157
93158         * lib/getusershell.c (readname, default_index, line_size, readname):
93159         Use size_t, not int, for sizes.
93160         (readname): If the size overflows, report an error instead of
93161         looping forever.
93162
93163 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93164
93165         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
93166         libc.
93167
93168 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93169
93170         * README: New section: portability guidelines.
93171
93172 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93173
93174         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
93175         C89 spec.
93176
93177 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93178
93179         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
93180
93181 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93182
93183         Assume C89 or better; remove K&R cruft.
93184         A few of these changes were first proposed by Derek Robert Price
93185         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
93186
93187         * lib/addext.c: Include <string.h> unconditionally.
93188         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
93189         Don't declare getenv or malloc.
93190
93191         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
93192         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
93193         (NULL): Remove.
93194         (find_stack_direction, alloca): Use prototypes.
93195
93196         * lib/atexit.c (atexit): Define using a prototype.
93197
93198         * lib/basename.c, dirname.c, stripslash.c:
93199         Include <string.h> unconditionally.
93200
93201         * lib/bcopy.c: Include <stddef.h>.
93202         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
93203
93204         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
93205
93206         * lib/error.h (error, error_at_line, error_print_progname)
93207         [! (defined (__STDC__) && __STDC__)]: Remove decls.
93208         * lib/error.c: Include error.h first, to check interface.
93209         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93210         (VA_START): Remove; all uses changeed to va_start.
93211         (exit, strerror): Remove decls.
93212         (error_print_progname): Prototype uncondionally.
93213         Don't include <errno.h>; no longer needed.
93214         (private_strerror): Remove.
93215         (error_tail): Always define.
93216         (error, error_at_line): Assume C89 or better; always use prototypes.
93217         * lib/fatal.c: Include "fatal.h" first, to test interface.
93218         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93219         (VA_START): Remove; all uses changed to va_start.
93220         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
93221         this case.
93222         (exit): Remove decl.
93223         (fatal): Prototype unconditionally.  Assume va_start works.
93224         Abort at end, to pacify gcc.
93225
93226         * lib/euidaccess.c (main): Define with a prototype.
93227
93228         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
93229
93230         * lib/exitfail.c: Include <stdlib.h> unconditionally.
93231
93232         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
93233         prototypes.
93234         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
93235         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
93236         (getenv): Remove decl.
93237         (fnmatch): Define using a prototype.
93238         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
93239         (FCT): Define using a prototype.
93240
93241         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
93242
93243         * lib/gethostname.c: Include <stddef.h>.
93244         (gethostname): Define with prototype.  Length is size_t, not int.
93245
93246 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93247
93248         Assume C89 or better; remove K&R cruft.
93249         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
93250         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
93251         string.h, getenv, malloc.
93252         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
93253         headers.
93254         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
93255         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
93256         do not check for strerror.
93257         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
93258         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
93259         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
93260         do not check for doprnt or vprintf.
93261         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
93262         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
93263
93264 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93265
93266         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
93267         getversion.c should have been removed then, but was accidentally
93268         preserved.
93269
93270         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
93271         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
93272
93273 2003-09-08  Karl Berry  <karl@gnu.org>
93274
93275         * config/config.sub, config.guess, srclistvars.sh: update from savannah
93276                 config, forget about prep.
93277
93278         * config/depcomp, missing: update from automake.
93279
93280 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93281
93282         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
93283         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93284
93285 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93286
93287         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
93288         copy_tm_result.  Bug reported by Simon Josefsson in
93289         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93290
93291 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93292
93293         * m4/time_r.m4: New file.
93294         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
93295         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
93296         is. Check for timegm declaration.
93297         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
93298         Do not check for gmtime_r.
93299         Replace mktime if __mktime_internal does not exist and if mktime
93300         hasn't been replaced already.
93301
93302 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93303
93304         * lib/time_r.c, lib/time_r.h: New files.
93305
93306         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
93307         __localtime_r.
93308         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
93309         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
93310
93311         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
93312         __gmtime_r.
93313         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
93314         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
93315         Include <time_r.h>.
93316
93317         * lib/timegm.c: Switch to glibc implementation, with the following
93318         changes:
93319         [defined HAVE_CONFIG_H]: Include <config.h>.
93320         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
93321         (__mktime_internal) [!defined _LIBC]: New decl.
93322         (__gmtime_r) [!defined _LIBC]: New macro and function.
93323         (timegm): Use a prototype, since gnulib assumes C89.
93324         Do not bother declaring tmp to be const, as it's not really usefu.
93325         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
93326         (timegm): Declare only if HAVE_DECL_TIMEGM.
93327
93328 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93329
93330         * MODULES.html.sh (func_all_modules): Add time_r.
93331         * modules/time_r: New file.
93332         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
93333         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
93334
93335 2003-09-03  Paul Eggert  <eggert@twinsun.com>
93336
93337         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
93338         Bug reported by Lute Kamstra in
93339         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
93340
93341         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
93342         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
93343         course with correspondingly smaller numbers for tomorrow and
93344         yesterday.  From Tadayoshi Funaba.  Originally installed into
93345         sh-utils on 1999-08-07, but the patch got lost (I guess during the
93346         coreutils merge?).
93347
93348 2003-08-31  Simon Josefsson  <jas@extundo.com>
93349
93350         * modules/timegm: New file.
93351         * MODULES.html.sh (func_all_modules): Add timegm.
93352
93353 2003-08-31  Simon Josefsson  <jas@extundo.com>
93354
93355         * m4/timegm.m4: New file.
93356
93357 2003-08-31  Simon Josefsson  <jas@extundo.com>
93358
93359         * lib/timegm.h: New file.
93360         * lib/timegm.c: New file.  Based on
93361         wget-1.8.2/src/http.c:mktime_from_utc.
93362
93363 2003-08-31  Karl Berry  <karl@gnu.org>
93364
93365         * lib/argp.h: update from libc.
93366
93367 2003-08-28  Bruno Haible  <bruno@clisp.org>
93368
93369         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
93370         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
93371         followed by '#define fnmatch fnmatch_posix' gives an error.
93372
93373 2003-08-28  Bruno Haible  <bruno@clisp.org>
93374
93375         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
93376         warning on QNX, which defines O_BINARY to 000000.
93377
93378 2003-08-27  Jim Meyering  <jim@meyering.net>
93379
93380         * m4/mkstemp.m4: Require that the system mkstemp be able to create
93381         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
93382         would fail after 32.  Reported by Danny Levinson.  Details here:
93383         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
93384
93385 2003-08-24  Bruno Haible  <bruno@clisp.org>
93386
93387         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
93388         MSVC7 <stdio.h> is included later.
93389
93390 2003-08-22  Simon Josefsson  <jas@extundo.com>
93391
93392         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
93393
93394 2003-08-20  Karl Berry  <karl@gnu.org>
93395
93396         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
93397
93398 2003-08-20  Bruno Haible  <bruno@clisp.org>
93399
93400         * modules/progname: New file.
93401         * MODULES.html.sh (func_all_modules): Add progname.
93402
93403 2003-08-20  Bruno Haible  <bruno@clisp.org>
93404
93405         * lib/progname.h: New file, from GNU gettext.
93406         * lib/progname.c: New file, from GNU gettext.
93407         * lib/progreloc.c: New file, from GNU gettext.
93408
93409 2003-08-19  Jim Meyering  <jim@meyering.net>
93410
93411         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
93412         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
93413
93414 2003-08-19  Bruno Haible  <bruno@clisp.org>
93415
93416         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
93417         more.
93418
93419 2003-08-19  Bruno Haible  <bruno@clisp.org>
93420
93421         * lib/xstrdup.c: Assume <string.h> exists.
93422
93423 2003-08-18  Paul Eggert  <eggert@twinsun.com>
93424
93425         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
93426         in makefile rules.
93427
93428 2003-08-18  Jim Meyering  <jim@meyering.net>
93429
93430         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
93431         * m4/lib-ld.m4: Likewise.
93432
93433 2003-08-18  Jim Meyering  <jim@meyering.net>
93434
93435         * lib/setenv.h: Indent nested cpp directive.
93436         * lib/vasnprintf.c: Remove trailing blanks.
93437
93438 2003-08-17  Simon Josefsson  <jas@extundo.com>
93439
93440         * modules/xstrndup: New file.
93441         * MODULES.html.sh (func_all_modules): Add xstrndup.
93442
93443 2003-08-17  Simon Josefsson  <jas@extundo.com>
93444
93445         * modules/argp: Fix autoconf macro name. Add more dependencies.
93446
93447 2003-08-17  Simon Josefsson  <jas@extundo.com>
93448
93449         * m4/xstrndup.m4: New file.
93450
93451 2003-08-17  Simon Josefsson  <jas@extundo.com>
93452
93453         * m4/argp.m4: New file.
93454
93455 2003-08-17  Simon Josefsson  <jas@extundo.com>
93456             Bruno Haible  <bruno@clisp.org>
93457
93458         * lib/xstrndup.h: New file.
93459         * lib/xstrndup.c: New file.
93460
93461 2003-08-17  Bruno Haible  <bruno@clisp.org>
93462
93463         * modules/strndup (Files, Include): Add lib/strndup.h.
93464
93465 2003-08-17  Bruno Haible  <bruno@clisp.org>
93466
93467         * modules/euidaccess (Files): Add lib/euidaccess.h.
93468
93469 2003-08-17  Bruno Haible  <bruno@clisp.org>
93470
93471         * lib/strndup.h: New file.
93472
93473 2003-08-17  Bruno Haible  <bruno@clisp.org>
93474
93475         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
93476         like AC_GNU_SOURCE.
93477         * modules/extensions (configure.ac): Comment out the invocation of
93478         gl_USE_SYSTEM_EXTENSIONS.
93479
93480 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93481
93482         Merges from coreutils, etc.
93483         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
93484         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
93485         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
93486         fixing a typo.
93487         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
93488         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
93489
93490 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93491
93492         Document merge from coreutils.
93493         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
93494         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
93495         * modules/utime: Add m4/utimes-null.m4.
93496
93497 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93498
93499         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
93500         space, undoing this 2003-08-12 change:
93501         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93502
93503 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93504
93505         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
93506         strtoul.c from libc, undoing this 2003-08-12 change:
93507         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93508
93509 2003-08-16  Jim Meyering  <jim@meyering.net>
93510
93511         Merges from coreutils.
93512         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
93513         prefix.  Adjust cache variables similarly.  Create 500 rather than
93514         just 300 files, to exercise bug on Darwin6.5, too.
93515         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
93516         $missing_dir.
93517         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
93518         AM_SYS_POSIX_TERMIOS.
93519         Reported by mkc@mathdogs.com.
93520         Also change use of $am_cv_sys_posix_termios
93521         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
93522         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
93523         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
93524         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
93525         in /proc/mounts until it finds one with matching device number.  This
93526         is unnecessary when the FILE argument *is* a mount point.  No stat call
93527         is necessary in that case.  So, disable the statvfs-testing code on
93528         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
93529         as RedHat bug# 84846.
93530         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93531         to 1MB, so as not to render systems with no stack size limit (e.g.,
93532         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93533         Include <unistd.h>.  On some systems,
93534         it is required for the definition of _SC_PAGESIZE.
93535
93536 2003-08-16  Jim Meyering  <jim@meyering.net>
93537
93538         Merge from coreutils.
93539         * lib/xstrtoimax.c: #else #if -> #elif.
93540         * lib/xstrtoumax.c: Likewise.
93541
93542 2003-08-16  Jim Meyering  <jim@meyering.net>
93543
93544         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
93545         * m4/utimes.m4: Removed.
93546         * m4/utimes-null.m4: Renamed from utimes.m4.
93547
93548         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93549         to 1MB, so as not to render systems with no stack size limit (e.g.,
93550         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93551         Include <unistd.h>.  On some systems,
93552         it is required for the definition of _SC_PAGESIZE.
93553
93554 2003-08-16  Jim Meyering  <jim@meyering.net>
93555         and Paul Eggert  <eggert@cs.ucla.edu>
93556
93557         Merges from coreutils, etc.
93558
93559         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
93560         using the latest version from cvs.  This avoids problems with #line
93561         directives using a vendor (Sun) compiler.
93562         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
93563         Don't set GETGROUPS_LIB here; now it's
93564         done via getgroups.m4's wrapper function.
93565         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
93566         rather than just in sh-util/configure.in, so that the
93567         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
93568         same.
93569         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
93570         AC_FUNC_GETLOADAVG where to find getloadavg.c.
93571         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
93572         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
93573         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
93574         Remove code that is now done by the newly-required macros.
93575         Append $(EXEEXT) to DF_PROG.
93576         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
93577         Do not invoke or require the following here,
93578         since prereq.m4 or some gnulib .m4 now does this for us:
93579         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
93580         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
93581         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
93582         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
93583         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
93584         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
93585         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
93586         AC_FUNC_OBSTACK.
93587         Do not replace the following functions, as this is now the job
93588         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
93589         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
93590         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
93591         atexit getpass, strdup, getpagesize.
93592         Replace 'raise'.
93593         Do not check for the following functions, as this is now the job
93594         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
93595         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
93596         setregid.
93597         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
93598         Check for sys/sysctl.h.
93599         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
93600         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
93601         of checking for ssize_t ourselves.
93602
93603         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
93604         Require every macro that gnulib/modules/* suggests for us.
93605         (jm_PREREQ_ADDEXT): New macro.
93606         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
93607         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
93608
93609         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
93610         (gl_PHYSMEM): Use it.
93611         Also check for `table' function.
93612         Check for new headers and functions.
93613         Add check for sys/sysmp.h.
93614         With suggestions from Kaveh Ghazi.
93615         Ignore headers that are present but cannot be compiled.  This
93616         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
93617         C 5.4.
93618
93619 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93620
93621         Document merge from coreutils.
93622         * modules/userspec: Depend on posixver.
93623         * modules/strftime: Depend on tzset.
93624
93625 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93626
93627         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
93628         rather than tab, after '#' in shell-script copyright notices.
93629         Suggested by Bruno Haible.
93630
93631 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93632
93633         * config/srclist-update: Use three spaces, rather than tab, after '#'
93634         in shell-script copyright notices.  Suggested by Bruno Haible.
93635         Remove unnecessary parenthesization in regular expression.
93636
93637 2003-08-15  Jim Meyering  <jim@meyering.net>
93638
93639         Merge from coreutils.
93640         * lib/xgethostname.c: Include <stdlib.h>.
93641         (xghostname): Don't exit for anything other than memory-related
93642         failure; just return NULL.
93643         * lib/userspec.c: Include "posixver.h".
93644         (parse_user_spec): Accept `.' as a separator only
93645         in pre-POSIX-200112 mode.
93646         * lib/strtoimax.c: Use #elif rather than #else #if.
93647         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
93648         Remove function, now that we can rely on a working tzset function.
93649         [!_LIBC]: Ensure that the required autoconf test has been run.
93650         [!defined _NL_CURRENT && HAVE_STRFTIME]:
93651         Use underlying_strftime for %r.
93652         * lib/sha.c: Merge in some clean-up and optimization changes from
93653         glibc.
93654         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
93655         Ensure that it is a multiple of 64.
93656         Rearrange loop exit tests so as to avoid performing an
93657         additional fread after encountering an error or EOF.
93658         * lib/realloc.c: Update copyright date.
93659
93660 2003-08-15  Jim Meyering  <jim@meyering.net>
93661         and Paul Eggert  <eggert@twinsun.com>
93662
93663         Merge from coreutils.
93664         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
93665         member but strut utmpx does not.  Needed for AIX 4.3.3.
93666         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
93667
93668 2003-08-15  Jim Meyering  <jim@meyering.net>
93669         and Paul Eggert  <eggert@cs.ucla.edu>
93670
93671         Merges from coreutils, etc.
93672         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
93673         Require gl_FUNC_TZSET_CLOBBER.
93674         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
93675         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
93676         members.
93677
93678 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93679
93680         Help the merge from coreutils.
93681         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
93682         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
93683         * m4/tzset.m4: Use it too.
93684
93685 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93686
93687         * modules/tzset: New file.
93688
93689 2003-08-14  Jim Meyering  <jim@meyering.net>
93690
93691         Merges from coreutils.
93692         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
93693         variable names, rather than @FNMATCH_H@.
93694         * modules/alloca: Likewise for $(ALLOCA_H).
93695
93696         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
93697         the three copies of the literal target, `fnmatch.h'.
93698         * modules/alloca (alloca.h): Likewise.
93699
93700 2003-08-14  Jim Meyering  <jim@meyering.net>
93701
93702         Merge from coreutils.
93703         * m4/tzset.m4: New file.
93704         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
93705         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
93706         otherwise, AIX 5.1 systems would end up using the latter.
93707         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
93708         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
93709         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
93710         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
93711
93712 2003-08-14  Jim Meyering  <jim@meyering.net>
93713
93714         Merge from coreutils.
93715         * lib/obstack.h: Whitespace changes.
93716         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
93717         and xcalloc return values.
93718         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
93719         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
93720         hang on OSF/1 5.1 for DIR on both local and remote file systems.
93721         Reported by (and fix confirmed by) Nelson H. F. Beebe.
93722         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93723         error from mntctl.
93724         Use mntctl's return value to drive the entry-processing loop, since
93725         we can't rely on the value of the vmt_length member in the last
93726         entry.  On some systems doing so could result in exhausting
93727         virtual memory.  Based in part on a patch from Mike Jetzer.
93728
93729 2003-08-14  Jim Meyering  <jim@meyering.net>
93730         and Paul Eggert  <eggert@twinsun.com>
93731
93732         Merges from coreutils, plus other fixes.
93733         * lib/physmem.c: Merge in portability changes from gcc/libiberty
93734         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
93735         for credits and details.  Thanks to Kaveh Ghazi for helping
93736         to keep these files in sync.
93737         (ARRAY_SIZE): Define it.
93738         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
93739         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
93740         (memcasecmp): Don't assume size_t fits in unsigned int.
93741         Remove casts and duplicate code.
93742         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
93743         (memcpy): Remove definition.
93744         Merge in some clean-up and optimization changes from glibc.
93745         [BLOCKSIZE]: Move definition to top of file.
93746         Ensure that it is a multiple of 64.
93747         Rearrange loop exit tests so as to avoid performing an
93748         additional fread after encountering an error or EOF.
93749         * lib/md5.h (md5_uintptr): Define.
93750         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
93751         return to the initial working directory.  Preserve errno
93752         for caller.
93753         * lib/idcache.c: Include "xalloc.h".
93754         (xmalloc, xrealloc): Remove decls.
93755         (getuser): Remove casts no longer required in C89.
93756         * lib/human.c: Include stdio.h, for sprintf.
93757         * lib/group-member.c: Include "xalloc.h".
93758         (xmalloc, xrealloc): Remove decls.
93759         (get_group_info): Remove casts no longer required in C89.
93760         * lib/getusershell.c (readname): Remove casts no longer required in
93761         C89.
93762         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
93763         * lib/getline.c: Whitespace fix, from coreutils.
93764
93765 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93766
93767         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
93768         Check for isascii.
93769
93770         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93771         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93772         Undo previous (whitespace-only) change.
93773
93774 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93775
93776         * lib/exclude.c: Include <ctype.h>
93777         (IN_CTYPE_DOMAIN): New macro.
93778         (is_space): New fn.
93779         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
93780         and empty lines.
93781
93782         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93783         Undo previous (whitespace-only) change.
93784
93785 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93786
93787         * config/srclist-update: Change update back to the old behavior,
93788         leaving whitespace alone.  Use one 'sed' command rather than a
93789         pipeline.
93790         (fixlicense): Now a variable, not a function.
93791         (remove_trailing_blanks): Remove.
93792         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
93793         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93794         Undo previous (whitespace-only) change.
93795
93796 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93797
93798         Merge from coreutils.
93799         * modules/euidaccess: Add lib_SOURCES, include for new
93800         file euidaccess.h
93801
93802 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93803
93804         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93805         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93806         Normalize leading white space and remove trailing white space.
93807
93808         Merge from coreutils
93809         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
93810
93811         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
93812         0.12.1.  These files are now being upgraded automatically by
93813         ../config/srclist-update.
93814
93815 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93816
93817         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93818         Normalize leading white space and remove trailing white space.
93819         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
93820         notice, as per ../config/srclist-update.
93821
93822         Merge from coreutils.
93823         * lib/euidaccess.h: New file.
93824         * lib/euidaccess.c: Include it.
93825         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
93826         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
93827         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
93828
93829 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93830
93831         * config/srclist-update: Add copyright notice.
93832         (remove_id_lines, remove_trailing_blanks): New constants.
93833         (fixfile): Use them to normalize spacing a bit in copied files.
93834         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93835         Normalize leading white space and remove trailing white space.
93836
93837         * config/texinfo.tex: Sync with texinfo.
93838
93839         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
93840         strtoul.c from libc, to merge coreutils whitespace changes.
93841
93842         * config/srclist.txt: Get the following m4 files from gettext:
93843         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
93844         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
93845         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
93846         wint_t.m4.
93847
93848 2003-08-12  Karl Berry  <karl@gnu.org>
93849
93850         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
93851         been made.
93852
93853 2003-08-11  Paul Eggert  <eggert@twinsun.com>
93854
93855         * modules/gnu-source, m4/gnu-source.m4:
93856         Remove; we're assuming Autoconf 2.54 or later now.
93857         Suggested by Bruno Haible.
93858         * MODULES.html.sh (func_all_modules): Remove gnu-source.
93859
93860 2003-08-11  Bruno Haible  <bruno@clisp.org>
93861
93862         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
93863
93864 2003-08-11  Bruno Haible  <bruno@clisp.org>
93865
93866         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
93867         (vasnprintf): Use it instead of wcslen.
93868
93869 2003-08-11  Bruno Haible  <bruno@clisp.org>
93870
93871         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
93872         value to ensure that _Bool promotes to int. Use #define for _Bool when
93873         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
93874
93875 2003-08-10  Karl Berry  <karl@gnu.org>
93876
93877         * lib/regex.h: update from libc (whitespace fix).
93878
93879 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93880
93881         Merge some files from coreutils.  These changes were
93882         originally made by Jim Meyering.
93883         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
93884         many older Unixes require this.
93885         * lib/alloca.c (alloca): Remove cast to argument of free;
93886         no longer needed in C89.
93887         * lib/alloca_.h, regex.h: Fix white space to match
93888         what GNU indent does.
93889
93890 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93891
93892         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
93893         apparently Emacs's Unicode mode got confused before my 2003-08-05
93894         checkin.
93895
93896 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93897
93898         * m4/extensions.m4: New file.
93899         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
93900         Require gl_USE_SYSTEM_EXTENSIONS.
93901         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
93902         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
93903
93904 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93905
93906         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
93907         * modules/extensions, modules/gnu-source: New files.
93908         * modules/timespec, modules/unlocked-io: Depend on extensions.
93909
93910 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93911
93912         * modules/restrict: New file.
93913         * MODULES.html.sh (func_all_modules): Add restrict.
93914         * modules/regex: Depend on restrict.
93915
93916 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93917
93918         * m4/restrict.m4: New file.
93919         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
93920
93921 2003-08-07  Bruno Haible  <bruno@clisp.org>
93922
93923         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
93924         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
93925
93926 2003-08-07  Bruno Haible  <bruno@clisp.org>
93927
93928         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
93929         makes the module 'getndelim2' compatible with the module 'getline'.
93930
93931 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93932
93933         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
93934         byte with "\201" to avoid glitches when editing that source file
93935         with multi-gnome-terminal.
93936
93937 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93938
93939         * lib/bumpalloc.h: Remove.
93940
93941 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93942
93943         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
93944         * modules/bumpalloc: Remove.
93945
93946 2003-08-04  Paul Eggert  <eggert@twinsun.com>
93947
93948         * lib/getloadavg.c: Change copyright notice and spacing to conform to
93949         GNU coding style.
93950
93951         Merge from coreutils.
93952         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
93953         1. From glibc.
93954         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
93955         from Karl Berry, implemented by Jim Meyering.
93956         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
93957         from Dmitry V. Levin.
93958         Remove anachronistic cast of xrealloc.
93959         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
93960         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
93961         type. Otherwise, it wouldn't compile with at least /bin/cc on
93962         ymp-cray-unicos9.0.2.X.
93963         Combine two mostly-identical uses of alloca into one.
93964         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
93965
93966 2003-08-04  Dave Love  <d.love@dl.ac.uk>
93967
93968         [From Emacs.]
93969
93970         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
93971         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
93972         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
93973         obsolete NLIST_NAME_UNION.
93974         [__GNU__]: Undef BSD and FSCALE.
93975         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
93976
93977 2003-08-03  Paul Eggert  <eggert@twinsun.com>
93978
93979         * lib/stdbool_.h (_Bool): Make it signed char, instead of
93980         an enum type, so that it's guaranteed to promote to int.  See:
93981         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
93982
93983 2003-08-03  Karl Berry  <karl@gnu.org>
93984
93985         * config/depcomp: update from automake.
93986
93987 2003-07-31  Paul Eggert  <eggert@twinsun.com>
93988
93989         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
93990         (strerror): Don't assume that a printable int fits in 14 bytes.
93991
93992 2003-07-31  Bruno Haible  <bruno@clisp.org>
93993
93994         * modules/getpass-gnu: New file.
93995         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
93996
93997 2003-07-31  Bruno Haible  <bruno@clisp.org>
93998
93999         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
94000
94001 2003-07-24  Karl Berry  <karl@gnu.org>
94002
94003         * config/missing: update from automake.
94004
94005 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
94006             Bruno Haible  <bruno@clisp.org>
94007
94008         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
94009         * lib/getline.c (getline, getdelim): Likewise.
94010         Remove _GNU_SOURCE define; now it's defined in config.h through
94011         m4/getline.m4.
94012
94013 2003-07-23  Karl Berry  <karl@gnu.org>
94014
94015         * config/config.sub: update from prep.
94016
94017 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94018
94019         * modules/xalloc (Depends-on): Add exitfail.
94020         * modules/xmemcoll: Likewise.
94021
94022 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94023
94024         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
94025         over-parenthesization in macros.
94026
94027         Sync with coreutils.
94028
94029         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
94030         required by C99.
94031
94032         Use `exit_failure' for xalloc and xmemcoll instead of their own
94033         private exit-failure variables.
94034         * lib/xalloc.h (xalloc_exit_failure): Remove.
94035         * lib/xmalloc.c: Likewise.  Include exitfail.h.
94036         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
94037         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
94038         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
94039         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
94040
94041 2003-07-20  Jim Meyering  <jim@meyering.net>
94042
94043         * modules/closeout (Depends-on): Add exitfail.
94044         Suggestion from Bruno Haible.
94045
94046 2003-07-19  Karl Berry  <karl@gnu.org>
94047
94048         * config/config.sub: update from prep.
94049
94050 2003-07-18  Paul Eggert  <eggert@twinsun.com>
94051
94052         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
94053         Remove.
94054         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
94055         to test that it can stand by itself.  Include "exitfail.h".
94056         Clients should set exit_failure instead.
94057         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
94058
94059 2003-07-18  Bruno Haible  <bruno@clisp.org>
94060
94061         * modules/getndelim2: New file.
94062         * modules/getline: Share files with module getndelim2.
94063         * modules/getnline: Depend on getndelim2 instead of sharing files with
94064         it. Add getnline.c to lib_SOURCES.
94065         * MODULES.html.sh (func_all_modules): Add getndelim2.
94066
94067 2003-07-18  Bruno Haible  <bruno@clisp.org>
94068
94069         * m4/getndelim2.m4: New file.
94070         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
94071         invoke gl_PREREQ_GETNDELIM2.
94072         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
94073         gl_PREREQ_GETNDELIM2.
94074         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
94075         gl_GETNDELIM2.
94076
94077 2003-07-18  Bruno Haible  <bruno@clisp.org>
94078
94079         * lib/getndelim2.h: New file.
94080         * lib/getndelim2.c: Make into a module of its own. Include config.h,
94081         getndelim2.h.
94082         (getndelim2): Make non-static. Change return type to ssize_t.
94083         * lib/getline.h: Change argument names.
94084         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
94085         * lib/getnline.c: Include getndelim2.h.
94086
94087 2003-07-18  Andreas Schwab  <schwab@suse.de>
94088
94089         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
94090
94091 2003-07-17  Karl Berry  <karl@gnu.org>
94092
94093         * config/config.sub: update from prep.
94094
94095 2003-07-17  Bruno Haible  <bruno@clisp.org>
94096
94097         * modules/getnline: New file.
94098         * modules/getline: Add lib/getndelim2.c to source file list.
94099         * MODULES.html.sh (func_all_modules): Add getnline.
94100
94101 2003-07-17  Bruno Haible  <bruno@clisp.org>
94102
94103         * m4/getnline.m4: New file.
94104
94105 2003-07-17  Bruno Haible  <bruno@clisp.org>
94106
94107         * m4/Makefile.am.in: Remove file.
94108         * m4/Makefile.am: Remove file.
94109         * m4/Makefile.in: Remove file.
94110
94111 2003-07-17  Bruno Haible  <bruno@clisp.org>
94112
94113         * lib/getnline.h: New file.
94114         * lib/getnline.c: New file.
94115         * lib/getndelim2.c: New file, extracted from getline.c.
94116         (getndelim2): Renamed from getdelim2, with added nmax argument.
94117         * lib/getline.c: Include getndelim2.c.
94118         (getdelim2): Moved out to getndelim2.c.
94119         (getline, getdelim): Update.
94120
94121 2003-07-17  Bruno Haible  <bruno@clisp.org>
94122
94123         * lib/Makefile.am: Remove file.
94124         * lib/Makefile.in: Remove file.
94125
94126 2003-07-17  Bruno Haible  <bruno@clisp.org>
94127
94128         * configure.in: Remove file.
94129         * Makefile.in: Remove file.
94130
94131 2003-07-17  Bruno Haible  <bruno@clisp.org>
94132
94133         * MODULES.html.sh: Put the </BODY> right before </HTML>.
94134
94135 2003-07-16  Karl Berry  <karl@gnu.org>
94136
94137         * config/srclist-update: was running fixlicense twice, which caused
94138                 texinfo.tex to be nullified for some reason.  Simplify,
94139                 $gplsrc is no longer needed as far as I can see?
94140
94141 2003-07-16  Jim Meyering  <jim@meyering.net>
94142
94143         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
94144
94145 2003-07-15  Paul Eggert  <eggert@twinsun.com>
94146
94147         * config/srclist.txt: Get the following files from gettext-runtime/intl
94148         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
94149         ref-del.sin.  From Bruno Haible.
94150         * config/srclist-update (fixfile): Change grep pattern again, since the
94151         previous fix didn't work (there was another trailing $).  Use
94152         '[$]' to escape the $s.
94153
94154 2003-07-15  Karl Berry  <karl@gnu.org>
94155
94156         * lib/vasnprintf.c: update from gettext.
94157
94158 2003-07-15  Karl Berry  <karl@gnu.org>
94159
94160         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
94161         gets expanded when surrounded by '$'.
94162
94163 2003-07-15  Jim Meyering  <jim@meyering.net>
94164
94165         * modules/save-cwd: Don't depend on error.  From Derek Price.
94166
94167 2003-07-15  Jim Meyering  <jim@meyering.net>
94168
94169         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
94170
94171 2003-07-14  Simon Josefsson  <jas@extundo.com>
94172
94173         * modules/mempcpy: New file.
94174         * MODULES.html.sh (func_all_modules): Add mempcpy.
94175
94176 2003-07-14  Simon Josefsson  <jas@extundo.com>
94177
94178         * m4/mempcpy.m4: New file.
94179
94180 2003-07-14  Simon Josefsson  <jas@extundo.com>
94181
94182         * lib/mempcpy.h: New file.
94183         * lib/mempcpy.c: New file.
94184
94185 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94186
94187         * modules/getdate, modules/posixtm: Depend on mktime.
94188
94189 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94190
94191         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
94192         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
94193         unicodeio.c, unicodeio.h, unlocked-io.h:
94194         Switch from LGPL to GPL.
94195
94196 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94197
94198         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
94199         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
94200         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
94201         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
94202         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
94203         updated automatically by ../config/srclist-update.  This changes
94204         their license from LPGL to GPL.
94205
94206 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94207
94208         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
94209         assumed to refer to the root of the most recent stable gettext version.
94210         * config/srclistvars.sh: Add defaults for eggert.
94211         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
94212         Match "This program" as well as "The program".  This is needed
94213         for gettext.
94214
94215 2003-07-14  Jim Meyering  <jim@meyering.net>
94216
94217         Don't emit diagnostics.  Let callers do that.
94218         * lib/save-cwd.c: Don't include "error.h".
94219         (save_cwd): Don't call error.  Ensure that errno is valid
94220         when returning nonzero.
94221
94222         * lib/save-cwd.h (restore_cwd): Update prototype.
94223         * lib/save-cwd.c (restore_cwd): Remove two parameters.
94224         Simplify.  Don't call error upon failure.  Let callers do that.
94225         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
94226         when auditing is enabled.  But don't bother updating the #if.
94227
94228 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
94229
94230         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
94231         it breaks C++ compilation.
94232         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
94233
94234 2003-07-10  Simon Josefsson  <jas@extundo.com>
94235
94236         * modules/strchrnul (Makefile.am): Add strchrnul.h.
94237
94238 2003-07-10  Jim Meyering  <jim@meyering.net>
94239
94240         * m4/clock_time.m4: Remove trailing blank.
94241         * m4/intmax_t.m4: Likewise.
94242
94243 2003-07-10  Jim Meyering  <jim@meyering.net>
94244
94245         * lib/vasnprintf.c: Remove trailing blanks.
94246         Make cpp indentation consistent.
94247
94248 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94249
94250         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
94251         posixver.c, strftime.c, strnlen.c, strverscmp.c:
94252         Switch from LGPL to GPL.
94253
94254 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94255
94256         * config/srclist.txt: Sort sublists.  Add
94257         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
94258         that differ from gnulib for one reason or another; we'd like this list
94259         to be smaller but for now let's document what we have.
94260
94261 2003-07-08  Paul Eggert  <eggert@twinsun.com>
94262
94263         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
94264         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
94265         and sweeter "eval x=$x".
94266         * config/srclist.txt: Get lib/argp* from glibc.
94267
94268 2003-07-07  Paul Eggert  <eggert@twinsun.com>
94269
94270         * lib/mktime.c: Fix some boundary cases and remove need for floating
94271         point.
94272
94273         Issue a compile-time diagnostic if time_t is floating point, or if
94274         two's complement arithmetic is not in effect, or if arithmetic
94275         right shift does not propagate the sign.  These assumptions were
94276         all in the original code but they weren't checked.
94277
94278         (TIME_T_MIDPOINT, verify): New macros.
94279         (__isleap): Remove; it has integer overflow problems.
94280         (leapyear): New function, without those problems.
94281         (ydhms_tm_diff): Remove; splitting into two parts.
94282         (ydhms_diff): New function, containing the arithmetic part of
94283         the old ydhms_tm_diff function.  Issue a compile-time
94284         diagnostic if we are not using C99 integer division.
94285         Avoid casts when possible.
94286         (guess_time_tm): New function, containing the checking part of
94287         the old ydhms_tm_diff function.  Return the new value, rather than
94288         the difference between it and the old.  Accept a new argument T
94289         so that *T specifies the old value.  Check for overflow in the result.
94290
94291         (__mktime_internal): Use a time_t offset, not a long int offset.
94292         This undoes the 2003-06-04 change, which is no longer needed now
94293         that we have better overflow checking.
94294         (localtime_offset): Likewise.
94295
94296         (__mktime_internal): Avoid harmful overflow on hosts where time_t
94297         and long are 64-bit but int is only 32-bit.
94298         (ydhms_diff): Use long int to store year1 and yday1.
94299         Issue a compile-time diagnostic if long int is not wide enough.
94300
94301         (__mktime_internal): Use long int to store adjusted year and yday.
94302         Use plain C rather than preprocessor commands, if that doesn't
94303         affect efficiency.
94304         Check for overflow (and try to repair) after each probe
94305         rather than checking only at the very end.  This avoids some bugs
94306         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
94307         does not equal GMT offset at maximum time).
94308         Use integer to check for overflow rather than floating point; this
94309         is more portable to non-IEEE hosts, and is a tad faster.
94310         When we detect that we are oscillating between two values,
94311         don't check whether tm_isdst has the requested value, since
94312         we already know the answer.  When tm_isdst has the wrong value,
94313         use a different heuristic to find the right one, based on the
94314         extreme values actually observed in practice in tz2003a,
94315         rather than the (overly optimistic) "previous 3 calendar quarters".
94316
94317         (not_equal_tm, print_tm, check_result): Use "const T" rather than
94318         "T const" to accommodate glibc style.
94319         (check_result): Use less-confusing report format.  "long" -> "long int.
94320         (main): Likewise.
94321         Don't loop if the iteration overflows time_t.
94322         Allow a negative step in the iteration.
94323
94324 2003-07-06  Karl Berry  <karl@gnu.org>
94325
94326         * config/depcomp: update from automake.
94327         * config/config.sub: update from prep.
94328
94329 2003-07-03  Karl Berry  <karl@gnu.org>
94330
94331         * config/config.guess: update from prep.
94332
94333 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94334
94335         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
94336         xreadlink.c now includes it unconditionally.
94337
94338 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94339
94340         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
94341         having it depend on HAVE_SYS_TYPES_H.
94342
94343 2003-07-01  Bruno Haible  <bruno@clisp.org>
94344
94345         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
94346         <sys/types.h> should be sufficient.
94347         Reported by Paul Eggert.
94348
94349 2003-06-26  Karl Berry  <karl@gnu.org>
94350
94351         * config/depcomp: update from automake.
94352
94353 2003-06-26  Bruno Haible  <bruno@clisp.org>
94354
94355         * modules/human: Depend on module stdbool.
94356
94357 2003-06-25  Bruno Haible  <bruno@clisp.org>
94358
94359         * modules/readlink: New file.
94360         * modules/xreadlink: Depend on it.
94361         * MODULES.html.sh (func_all_modules): Add readlink.
94362
94363 2003-06-25  Bruno Haible  <bruno@clisp.org>
94364
94365         * m4/readlink.m4: New file.
94366
94367 2003-06-25  Bruno Haible  <bruno@clisp.org>
94368
94369         * lib/readlink.c: New file.
94370
94371 2003-06-22  Karl Berry  <karl@gnu.org>
94372
94373         * config/srclist.txt: update mkinstalldirs from automake.
94374         * config/mkinstalldirs: update.
94375
94376 2003-06-22  Bruno Haible  <bruno@clisp.org>
94377
94378         Portability to mingw32.
94379         * m4/ssize_t.m4: New file, from GNU gettext.
94380         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
94381         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
94382
94383 2003-06-22  Bruno Haible  <bruno@clisp.org>
94384
94385         * modules/safe-read: Add m4/ssize_t.m4.
94386         * modules/xreadlink: Add m4/ssize_t.m4.
94387
94388 2003-06-20  Bruno Haible  <bruno@clisp.org>
94389
94390         Assume C89, so PARAMS isn't needed.
94391         * lib/unicodeio.h (PARAMS): Remove.
94392         * lib/unicodeio.c: Don't use PARAMS.
94393
94394 2003-06-18  Karl Berry  <karl@gnu.org>
94395
94396         * config/config.{guess,sub}: update from prep.
94397
94398 2003-06-18  Jim Meyering  <jim@meyering.net>
94399
94400         Merge changes from coreutils.
94401         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
94402         Remove explicit declarations of xmalloc and realloc.
94403         Include xalloc.h.
94404         (read_utmp): Remove anachronistic cast of xmalloc.
94405
94406 2003-06-17  Paul Eggert  <eggert@twinsun.com>
94407
94408         Assume C89, so PARAMS isn't needed.
94409         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
94410         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
94411         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
94412         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
94413         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
94414         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
94415         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
94416         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
94417         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
94418         lib/xstrtod.h, lib/xstrtol.h: Likewise.
94419         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
94420         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
94421         no longer needed. Anyway, config.h should always be included before any
94422         other file.
94423
94424 2003-06-11  Simon Josefsson  <jas@extundo.com>
94425
94426         * modules/sysexits: New file.
94427         * MODULES.html.sh (func_all_modules): Add sysexits.
94428
94429 2003-06-11  Simon Josefsson  <jas@extundo.com>
94430
94431         * lib/sysexit_.h: New file.
94432
94433 2003-06-11  Derek Price  <derek@ximbiot.com>
94434
94435         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
94436         necessary.
94437
94438 2003-06-11  Bruno Haible  <bruno@clisp.org>
94439
94440         * m4/sysexits.m4: New file.
94441
94442 2003-06-10  Simon Josefsson  <jas@extundo.com>
94443
94444         * lib/argp.h: New file, from glibc.
94445         * lib/argp-ba.c: New file, from glibc.
94446         * lib/argp-eexst.c: New file, from glibc.
94447         * lib/argp-fmtstream.c: New file, from glibc.
94448         * lib/argp-fmtstream.h: New file, from glibc.
94449         * lib/argp-fs-xinl.c: New file, from glibc.
94450         * lib/argp-help.c: New file, from glibc.
94451         * lib/argp-namefrob.h: New file, from glibc.
94452         * lib/argp-parse.c: New file, from glibc.
94453         * lib/argp-pv.c: New file, from glibc.
94454         * lib/argp-pvh.c: New file, from glibc.
94455         * lib/argp-xinl.c: New file, from glibc.
94456
94457 2003-06-10  Simon Josefsson  <jas@extundo.com>
94458
94459         * modules/strchrnul: New file.
94460
94461 2003-06-10  Simon Josefsson  <jas@extundo.com>
94462
94463         * modules/argp: New file.
94464
94465 2003-06-10  Simon Josefsson  <jas@extundo.com>
94466
94467         * m4/strchrnul.m4: New file.
94468
94469 2003-06-10  Simon Josefsson  <jas@extundo.com>
94470
94471         * lib/strchrnul.h: New file.
94472         * lib/strchrnul.c: New file.
94473
94474 2003-06-10  Bruno Haible  <bruno@clisp.org>
94475
94476         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
94477
94478 2003-06-07  Karl Berry  <karl@gnu.org>
94479
94480         * config/config.{guess,sub}: update from prep.
94481
94482 2003-06-07  Jim Meyering  <jim@meyering.net>
94483
94484         * modules/strtod: Use $(...) notation, not @...@ for
94485         AC_REPLACE'd variables.
94486         * modules/localcharset: Likewise.
94487
94488 2003-06-07  Jim Meyering  <jim@meyering.net>
94489
94490         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
94491         in place of my name in the copyright comment.
94492         Remove definition and uses of __P.
94493
94494         From coreutils.
94495         * lib/stat.c: Don't declare xmalloc explicitly.
94496         Instead, include "xalloc.h".
94497         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
94498         xrealloc, and xcalloc return values.
94499         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
94500         Improve comment.
94501         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
94502
94503 2003-06-07  Bruno Haible  <bruno@clisp.org>
94504
94505         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
94506         avoid AC_CONFIG_LINKS.
94507         * modules/fnmatch (Makefile.am): Use explicit creation rule for
94508         fnmatch.h, to avoid AC_CONFIG_LINKS.
94509         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
94510
94511 2003-06-07  Bruno Haible  <bruno@clisp.org>
94512
94513         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
94514         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
94515         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94516         directory.
94517         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
94518         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94519         directory.
94520
94521 2003-06-06  Jim Meyering  <jim@meyering.net>
94522
94523         Merge from coreutils.
94524         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
94525         Consolidate declarations and initializations of *_base* locals.
94526
94527         Merge from coreutils.
94528         This avoids a core dump on systems without GNU putenv,
94529         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
94530         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
94531         (unsetenv): New static function, from GNU libc.
94532         (rpl_putenv): Use it.
94533
94534         * lib/modechange.c: Remove trailing blanks.
94535
94536         Merge from coreutils.
94537         * lib/fsusage.c: Remove declaration of statfs.
94538         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
94539
94540         * lib/posixtm.c: Include <stdbool.h> unconditionally.
94541
94542 2003-06-06  Jim Meyering  <jim@meyering.net>
94543
94544         * lib/stdbool_.h: Renamed from stdbool.h.in.
94545
94546 2003-06-06  Jim Meyering  <jim@meyering.net>
94547             Bruno Haible  <bruno@clisp.org>
94548
94549         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
94550         Adjust Makefile.am snippet not to redirect directly to target.
94551         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
94552
94553 2003-06-05  Paul Eggert  <eggert@twinsun.com>
94554
94555         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
94556         mismatch, look in future quarters as well as past.  This fixes a
94557         bug when processing fall-backwards gaps immediately after a long
94558         period of daylight-saving time.
94559
94560         * lib/mktime.c: Assume freestanding C89 or better.
94561         (HAVE_LIMITS_H): Remove.  Assume it's 1.
94562         (__P): Remove; not used.
94563         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
94564         (mktime, not_equal_tm, print_tm, check_result,
94565         main): Use prototypes.  Use const * where appropriate.
94566         (main): Fix typo in testing code that uncovered by above changes.
94567         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
94568
94569 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94570
94571         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
94572         locale.h, localeconv.  This merges changes from coreutils.
94573
94574         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
94575         It can be removed after the next Autoconf is released.
94576         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
94577         needed.
94578
94579 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94580
94581         * lib/mktime.c: Fix Debian bug 177940
94582         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
94583         (localtime_offset): Now long int, not time_t, because we want it
94584         to be guaranteed to be signed.  All uses changed.
94585         (__mktime_internal): If overflow would occur when adding offset,
94586         don't add it.
94587
94588         Merge 'human' changes from coreutils.  Rewrite to support
94589         locale-specific notations like thousands separators.
94590         * lib/human.c: Simplify authorship notice.
94591         Include human.h immediately after config.h.
94592         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
94593         <limits.h>: Do not include, since human.h does.
94594         (SIZE_MAX, UINTMAX_MAX): New macros.
94595         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
94596         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
94597         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
94598         (power_letter): Renamed from suffixes.
94599         (generate_suffix_backwards): Remove.
94600         (adjust_value): Now takes int style (because of human.h changes)
94601         and long double value (for greater precision on some platforms).
94602         (group_number): New function.
94603         (human_readable): Use it.  Use integer options, not enum.
94604         Put the options before the sizes in the arg list.
94605         Support all the new options.
94606         The old human_readable function has been removed;
94607         use inttostr.h instead.
94608         (human_readable, default_block_size, humblock):
94609         Use uintmax_t, not int, for block sizes.
94610         (human_readable_inexact, block_size_types): Remove.
94611         (block_size_opts): New constant.
94612         (human_options): Renamed from human_block_size, with new signature
94613         that allows block sizes up to UINTMAX_MAX.  All callers changed.
94614         * lib/human.h: Add copyright and authorship notice.
94615         Include <limits.h> and <stdbool.h> unconditionally.
94616         (PARAMS): Remove.  All uses removed.
94617         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
94618         (enum human_inexact_style): Remove tag; now a nameless enum.
94619         (human_floor, human_ceiling, human_round_to_even): Now have
94620         values 2, 0, 1 rather than -1, 1, 0.
94621         (human_group_digits, human_suppress_point_zero, human_autoscale,
94622         human_base_1024, human_SI, human_B): New constants.
94623         (human_readable_inexact, human_block_size): Remove.
94624         (human_readable): Size args are now uintmax_t, not int.
94625         (human_options): New decl.
94626
94627         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
94628         unnecessary now that we assume C89 or better.  This change
94629         imported from coreutils.
94630
94631         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94632         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
94633         in the 2003-05-30 sync from glibc.
94634
94635         .h files should stand alone, but we shouldn't include <sys/types.h>
94636         if we can get away with just <stddef.h>.
94637
94638         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
94639         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
94640         rather than <sys/types.h>, as we merely need size_t.
94641         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
94642         to get size_t.
94643         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
94644         Include <stdio.h>, to get FILE.
94645         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
94646         memcasecmp.h has included <stddef.h> and all we need is size_t.
94647         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
94648         our interface, instead of including <sys/types.h>
94649
94650 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94651
94652         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
94653         now, as glibc mktime is buggy on non-glibc systems.
94654
94655 2003-06-03  Karl Berry  <karl@gnu.org>
94656
94657         * config/config.sub: update from prep.
94658
94659 2003-06-02  Paul Eggert  <eggert@twinsun.com>
94660
94661         [from coreutils]
94662         Fix some minor time-related bugs with POSIX time arguments.
94663         Some valid time stamps were being rejected (notably -1, and
94664         time stamps before 1900 on 64-bit hosts).  And some invalid
94665         time stamps were being accepted, e.g. September 31.
94666
94667         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
94668         that we can return (time_t) -1 successfully.
94669         * lib/posixtm.c: Likewise.
94670         [HAVE_STDBOOL_H]: Include <stdbool.h>.
94671         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
94672         (t): Remove static var.
94673         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
94674         of static var.  All uses changed.
94675         (year): Do not reject years before 1900; they can occur with
94676         64-bit time_t.
94677         (posix_time_parse): Do not check for out-of-range components;
94678         that is now the caller's responsibility, since our checks were
94679         only approximations.
94680         (posixtime): Use mktime to check for out-of-range components,
94681         since it knows them exactly.
94682         If mktime returns (time_t) -1, check whether an error actually occurred
94683         by invoking localtime on -1.
94684         (main) [TEST_POSIXTIME]: Check for input data errors, and report
94685         posixtime failures better.
94686         Improve the test data (in comments only).
94687
94688 2003-06-02  Karl Berry  <karl@gnu.org>
94689
94690         * config/mkinstalldirs (version): new variable.
94691         (--version): new option.
94692         (usage): improve message.
94693
94694 2003-05-30  Karl Berry  <karl@gnu.org>
94695
94696         * lib/mktime.c: update from libc.
94697
94698 2003-05-30  Bruno Haible  <bruno@clisp.org>
94699
94700         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
94701         * config/config.rpath: Upgrade to gettext-0.12.1.
94702
94703 2003-05-30  Bruno Haible  <bruno@clisp.org>
94704
94705         * m4/gettext.m4: Upgrade to gettext-0.12.1.
94706         * m4/nls.m4: New file, from gettext-0.12.1.
94707         * m4/po.m4: New file, from gettext-0.12.1.
94708         * m4/progtest.m4: Upgrade to gettext-0.12.1.
94709
94710 2003-05-30  Bruno Haible  <bruno@clisp.org>
94711
94712         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
94713         * lib/localcharset.h: Likewise.
94714         * lib/localcharset.c: Likewise.
94715
94716 2003-05-29  Karl Berry  <karl@gnu.org>
94717
94718         * config/config.rpath: update from gettext.
94719
94720 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94721
94722         Assume the headers required for C89 freestanding compilers.
94723         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
94724         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
94725         * m4/human.m4 (gl_HUMAN): Likewise.
94726         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
94727         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
94728         * m4/userspec.m4 (gl_USERSPEC): Likewise.
94729         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
94730         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94731         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
94732
94733 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94734
94735         Assume the headers required for C89 freestanding compilers.
94736         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
94737         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
94738         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
94739         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
94740         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
94741         define, since <limits.h> is guaranteed to do that.
94742         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
94743         * lib/exclude.c: Include <stdbool.h> unconditionally.
94744         * lib/tempname.c: Include <stddef.h> unconditionally.
94745         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
94746         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
94747         <stddef.h> does that.
94748         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
94749         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
94750         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
94751         needed.
94752         * lib/xstrtol.c: Likewise.
94753         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
94754         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
94755
94756         * lib/addext.c (addext): Use assignment rather than cast, to avoid
94757         warnings on some platforms.
94758
94759         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94760         arbitrarily.
94761
94762 2003-05-26  Jim Meyering  <jim@meyering.net>
94763
94764         Merge in a change from coreutils:
94765         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
94766         that is guaranteed to be `no'.  Use `no_such_member' to indicate
94767         that condition, rather than `-1' which is slightly misleading.
94768         Change the name of the cache variable to have the gl_ prefix.
94769         Prompted by a patch from Richard Dawe for DJGPP.
94770
94771 2003-05-24  Karl Berry  <karl@gnu.org>
94772
94773         * config/config.guess: update from prep.
94774
94775 2003-05-22  Karl Berry  <karl@gnu.org>
94776
94777         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
94778
94779 2003-05-20  Karl Berry  <karl@gnu.org>
94780
94781         * config/config.guess: update from prep.
94782
94783 2003-05-18  Karl Berry  <karl@gnu.org>
94784
94785         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
94786         might actually be set by the user.
94787
94788         * config/depcomp, install-sh, mdate-sh: update from automake.
94789
94790 2003-05-17  Bruno Haible  <bruno@clisp.org>
94791
94792         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
94793         invalid expansion for AC_EGREP_CPP.
94794         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
94795         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
94796         Suggested by Akim Demaille <akim@epita.fr> in
94797         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
94798
94799 2003-05-12  Jim Meyering  <jim@meyering.net>
94800
94801         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
94802         the space-padded-by-default conversion specifiers, %e, %k, %l.
94803
94804 2003-05-12  Bruno Haible  <bruno@clisp.org>
94805
94806         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
94807         the string is longer than 4 KB.
94808
94809 2003-05-11  Karl Berry  <karl@gnu.org>
94810
94811         * config/config.{guess,sub}: update from prep.
94812
94813 2003-05-09  Bruno Haible  <bruno@clisp.org>
94814
94815         * modules/error: Add m4/strerror_r.m4 to file list.
94816
94817 2003-05-03  Bruno Haible  <bruno@clisp.org>
94818
94819         Upgrade to Unicode-4.0.
94820         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
94821         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
94822         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
94823         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
94824         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
94825         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
94826         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
94827         Change width of U+E0100..U+E01EF from 1 to 0.
94828
94829 2003-04-25  Jim Meyering  <jim@meyering.net>
94830
94831         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
94832         of type size_t, not int.
94833
94834 2003-04-25  Bruno Haible  <bruno@clisp.org>
94835
94836         * lib/copy-file.c: Include <stddef.h>, for size_t.
94837
94838 2003-04-21  Paul Eggert  <eggert@twinsun.com>
94839
94840         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
94841         code which expansion is under static control.  Patch imported from
94842         Akim Demaille's patch to Bison; see
94843         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
94844
94845 2003-04-14  Bruno Haible  <bruno@clisp.org>
94846
94847         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
94848
94849 2003-04-11  Jim Meyering  <jim@meyering.net>
94850
94851         Merge changes from Coreutils.
94852
94853         2003-03-22  Jim Meyering  <jim@meyering.net>
94854
94855         * lib/strftime.c (widen): Cast alloca return value to proper type.
94856
94857         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
94858
94859         From GNU libc.
94860         * lib/strftime.c (my_strftime): Handle very large width
94861         specifications for numeric values correctly.  Improve checks for
94862         overflow.
94863
94864         2003-01-19  Jim Meyering  <jim@meyering.net>
94865
94866         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
94867         definitions.
94868         (nl_get_alt_digit) [! defined my_strftime]: Define.
94869         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
94870         _nl_get_alt_digit and _nl_get_walt_digit.
94871
94872         * lib/strftime.c (my_strftime): Merge in locale-related changes from
94873         libc. These changes have no effect outside of _LIBC.
94874
94875 2003-04-10  Bruno Haible  <bruno@clisp.org>
94876
94877         * modules/findprog: New file.
94878         * MODULES.html.sh (func_all_modules): Add it.
94879
94880 2003-04-10  Bruno Haible  <bruno@clisp.org>
94881
94882         * m4/findprog.m4: New file.
94883         * m4/eaccess.m4: New file.
94884
94885 2003-04-10  Bruno Haible  <bruno@clisp.org>
94886
94887         * lib/findprog.h: New file, from GNU gettext.
94888         * lib/findprog.c: New file, from GNU gettext.
94889
94890 2003-04-05  Jim Meyering  <jim@meyering.net>
94891
94892         Merge changes from Coreutils.
94893
94894         * lib/exclude.h (PARAMS): Remove definition and uses.
94895         * lib/exclude.c: Remove uses of `PARAMS'.
94896
94897         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
94898         Add test-cases for DOS filenames. Declare program_name.
94899         (main): Set up program_name.  Patch by Rich Dawe.
94900
94901         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
94902         error from mntctl.
94903         Use mntctl's return value to drive the entry-processing loop, since
94904         we can't rely on the value of the vmt_length member in the last
94905         entry.  On some systems doing so could result in exhausting
94906         virtual memory.  Based in part on a patch from Mike Jetzer.
94907
94908 2003-04-04  Bruno Haible  <bruno@clisp.org>
94909
94910         * modules/linebreak: New file.
94911         * MODULES.html.sh (func_all_modules): Add it.
94912
94913 2003-04-04  Bruno Haible  <bruno@clisp.org>
94914
94915         * m4/linebreak.m4: New file.
94916
94917 2003-04-04  Bruno Haible  <bruno@clisp.org>
94918
94919         * lib/linebreak.h: New file, from GNU gettext.
94920         * lib/linebreak.c: New file, from GNU gettext with slight
94921         modifications.
94922         * lib/lbrkprop.h: New file, from GNU gettext.
94923
94924 2003-04-03  Bruno Haible  <bruno@clisp.org>
94925
94926         * modules/utf8-ucs4: New file.
94927         * modules/utf16-ucs4: New file.
94928         * modules/ucs4-utf8: New file.
94929         * modules/ucs4-utf16: New file.
94930         * MODULES.html.sh (func_all_modules): Add them.
94931
94932 2003-04-03  Bruno Haible  <bruno@clisp.org>
94933
94934         * m4/utf-ucs4.m4: New file.
94935         * m4/ucs4-utf.m4: New file.
94936
94937 2003-04-03  Bruno Haible  <bruno@clisp.org>
94938
94939         * lib/utf8-ucs4.h: New file, from GNU gettext.
94940         * lib/utf16-ucs4.h: New file, from GNU gettext.
94941         * lib/ucs4-utf8.h: New file, from GNU gettext.
94942         * lib/ucs4-utf16.h: New file, from GNU gettext.
94943
94944 2003-04-02  Bruno Haible  <bruno@clisp.org>
94945
94946         * modules/binary-io: New file.
94947         * MODULES.html.sh (func_all_modules): Add it.
94948
94949 2003-04-02  Bruno Haible  <bruno@clisp.org>
94950
94951         * lib/binary-io.h: New file, from GNU gettext.
94952
94953 2003-04-01  Bruno Haible  <bruno@clisp.org>
94954
94955         * modules/pathname: New file.
94956         * MODULES.html.sh (func_all_modules): Add it.
94957
94958 2003-04-01  Bruno Haible  <bruno@clisp.org>
94959
94960         * lib/pathname.h: New file, from GNU gettext.
94961         * lib/concatpath.c: New file, from GNU gettext.
94962
94963 2003-03-30  Bruno Haible  <bruno@clisp.org>
94964
94965         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
94966
94967 2003-03-30  Bruno Haible  <bruno@clisp.org>
94968
94969         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
94970         function chown() doesn't exist.
94971
94972 2003-03-28  Bruno Haible  <bruno@clisp.org>
94973
94974         * modules/copy-file: New file.
94975         * MODULES.html.sh (func_all_modules): Add it.
94976
94977 2003-03-28  Bruno Haible  <bruno@clisp.org>
94978
94979         * m4/copy-file.m4: New file.
94980
94981 2003-03-28  Bruno Haible  <bruno@clisp.org>
94982
94983         * lib/copy-file.h: New file, from GNU gettext.
94984         * lib/copy-file.c: New file, from GNU gettext.
94985
94986 2003-03-18  Jim Meyering  <jim@meyering.net>
94987
94988         * lib/quote.c (quote_n): Fix typo in comment.
94989
94990 2003-03-18  Bruno Haible  <bruno@clisp.org>
94991
94992         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
94993         checking.
94994         * m4/onceonly_2_57.m4: Likewise.
94995
94996 2003-03-17  Bruno Haible  <bruno@clisp.org>
94997
94998         * m4/onceonly.m4: Require autoconf 2.54 or newer.
94999         (m4_quote): Remove macro.
95000         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
95001
95002 2003-03-14  Jim Meyering  <jim@meyering.net>
95003
95004         Merge changes from Coreutils.
95005         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
95006         to be const, in order to avoid warnings.
95007         (obstack_room): Likewise.
95008         (obstack_empty_p): Likewise.
95009
95010 2003-03-14  Bruno Haible  <bruno@clisp.org>
95011
95012         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
95013         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
95014
95015 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95016
95017         Merge changes from Bison.
95018         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
95019         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
95020         when compiling Bison 1.875's `bitset bset = obstack_alloc
95021         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
95022         * lib/hash.c: Include <stdbool.h> unconditionally.
95023
95024 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95025
95026         * m4/onceonly.m4 (m4_quote): New macro.
95027         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
95028         Quote AC_FOREACH variable-expansions properly.
95029
95030 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95031
95032         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
95033
95034 2003-03-09  Paul Eggert  <eggert@twinsun.com>
95035
95036         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
95037         Reported by Bruce Becker; see:
95038         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
95039
95040 2003-03-03  Paul Eggert  <eggert@twinsun.com>
95041             Bruno Haible  <bruno@clisp.org>
95042
95043         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
95044         Reported by John Hughes, see
95045         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
95046
95047 2003-02-20  Bruno Haible  <bruno@clisp.org>
95048
95049         * MODULES.html.sh (func_all_modules): Add poll.
95050
95051 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95052
95053         * modules/poll: New file.
95054
95055 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95056
95057         * lib/poll_.h: New file.
95058         * lib/poll.c: New file.
95059
95060 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95061
95062         * m4/poll.m4: New file.
95063
95064 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95065
95066         * modules/mathl: New file.
95067
95068 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95069
95070         * lib/mathl.h: New file.
95071         * lib/acosl.c: New file.
95072         * lib/asinl.c: New file.
95073         * lib/atanl.c: New file.
95074         * lib/ceill.c: New file.
95075         * lib/cosl.c: New file.
95076         * lib/expl.c: New file.
95077         * lib/floorl.c: New file.
95078         * lib/frexpl.c: New file.
95079         * lib/ldexpl.c: New file.
95080         * lib/logl.c: New file.
95081         * lib/sincosl.c: New file.
95082         * lib/sinl.c: New file.
95083         * lib/sqrtl.c: New file.
95084         * lib/tanl.c: New file.
95085         * lib/trigl.c: New file.
95086         * lib/trigl.h: New file.
95087
95088 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95089
95090         * m4/mathl.m4: New file.
95091
95092 2003-02-18  Bruno Haible  <bruno@clisp.org>
95093
95094         * MODULES.html.sh (func_all_modules): Add mathl.
95095
95096 2003-02-17  Bruno Haible  <bruno@clisp.org>
95097
95098         * modules/mkdtemp: New module.
95099         * MODULES.html.sh (func_all_modules): Add it.
95100
95101 2003-02-17  Bruno Haible  <bruno@clisp.org>
95102
95103         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
95104
95105 2003-02-17  Bruno Haible  <bruno@clisp.org>
95106
95107         * lib/mkdtemp.h: New file, from GNU gettext.
95108         * lib/mkdtemp.c: New file, from GNU gettext.
95109
95110 2003-02-02  Jim Meyering  <jim@meyering.net>
95111
95112         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
95113         e.g. glibc-2.2.93.
95114
95115 2003-01-31  Bruno Haible  <bruno@clisp.org>
95116
95117         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
95118         'rpl_rename'.
95119         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
95120         'rpl_strnlen'.
95121         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
95122         'rpl_strtod'.
95123         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
95124         'rpl_utime'.
95125
95126 2003-01-31  Bruno Haible  <bruno@clisp.org>
95127
95128         * lib/rename.c: #undef rename before defining rpl_rename.
95129         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
95130
95131 2003-01-30  Bruno Haible  <bruno@clisp.org>
95132
95133         * modules/vasnprintf, modules/vasprintf: New modules.
95134         * MODULES.html.sh (func_all_modules): Add them.
95135
95136 2003-01-30  Bruno Haible  <bruno@clisp.org>
95137
95138         * m4/signed.m4: New file, from GNU gettext.
95139         * m4/longdouble.m4: New file, from GNU gettext.
95140         * m4/wchar_t.m4: New file, from GNU gettext.
95141         * m4/wint_t.m4: New file, from GNU gettext.
95142         * m4/vasnprintf.m4: New file.
95143         * m4/vasprintf.m4: New file.
95144
95145 2003-01-30  Bruno Haible  <bruno@clisp.org>
95146
95147         * lib/printf-args.h: New file, from GNU gettext.
95148         * lib/printf-args.c: New file, from GNU gettext.
95149         * lib/printf-parse.h: New file, from GNU gettext.
95150         * lib/printf-parse.c: New file, from GNU gettext.
95151         * lib/vasnprintf.h: New file, from GNU gettext.
95152         * lib/vasnprintf.c: New file, from GNU gettext.
95153         * lib/asnprintf.c: New file, from GNU gettext.
95154         * lib/vasprintf.h: New file, from GNU gettext with modifications.
95155         * lib/vasprintf.c: New file, from GNU gettext.
95156         * lib/asprintf.c: New file, from GNU gettext.
95157
95158 2003-01-29  Bruno Haible  <bruno@clisp.org>
95159
95160         * modules/stpncpy: New module.
95161         * MODULES.html.sh (func_all_modules): Add it.
95162
95163 2003-01-29  Bruno Haible  <bruno@clisp.org>
95164
95165         * m4/stpncpy.m4: New file.
95166
95167 2003-01-29  Bruno Haible  <bruno@clisp.org>
95168
95169         * lib/stpncpy.h: New file, from GNU gettext with modifications.
95170         * lib/stpncpy.c: New file, from GNU gettext with modifications.
95171
95172 2003-01-28  Bruno Haible  <bruno@clisp.org>
95173
95174         * modules/c-ctype: New module.
95175         * MODULES.html.sh (func_all_modules): Add it.
95176
95177 2003-01-28  Bruno Haible  <bruno@clisp.org>
95178
95179         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
95180         Paul Eggert.
95181         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
95182         Paul Eggert.
95183
95184 2003-01-27  Bruno Haible  <bruno@clisp.org>
95185
95186         * modules/xsetenv: New module.
95187         * MODULES.html.sh (func_all_modules): Add it.
95188
95189 2003-01-27  Bruno Haible  <bruno@clisp.org>
95190
95191         * lib/xsetenv.h: New file, from GNU gettext.
95192         * lib/xsetenv.c: New file, from GNU gettext.
95193
95194 2003-01-23  Jim Meyering  <jim@meyering.net>
95195
95196         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
95197         from working on systems without dirfd (at least Irix and OSF1/Tru64).
95198
95199 2003-01-23  Bruno Haible  <bruno@clisp.org>
95200
95201         * modules/minmax: New module.
95202         * MODULES.html.sh (func_all_modules): Add it.
95203
95204 2003-01-23  Bruno Haible  <bruno@clisp.org>
95205
95206         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
95207         Eggert.
95208
95209 2003-01-22  Bruno Haible  <bruno@clisp.org>
95210
95211         * modules/exit: New module.
95212         * MODULES.html.sh (func_all_modules): Add it.
95213
95214 2003-01-22  Bruno Haible  <bruno@clisp.org>
95215
95216         * lib/exit.h: New file, from GNU gettext.
95217
95218 2003-01-19  Bruno Haible  <bruno@clisp.org>
95219
95220         * gnulib-tool: Recognize option --extract-maintainer.
95221         (func_get_maintainer): New function.
95222         * modules/*: Add Maintainer entry.
95223
95224 2003-01-16  Jim Meyering  <jim@meyering.net>
95225
95226         * m4/regex.m4: The `regex' struct is both input and output.
95227         Initialize it before each use.  Patch by Tim Waugh.
95228
95229 2003-01-16  Bruno Haible  <bruno@clisp.org>
95230
95231         * MODULES.html.sh: Add a table of contents. Add the module name as
95232         leftmost column. Add hyperlinks.
95233
95234 2003-01-15  Bruno Haible  <bruno@clisp.org>
95235
95236         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
95237
95238 2003-01-15  Bruno Haible  <bruno@clisp.org>
95239
95240         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
95241         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
95242         suffix.
95243
95244 2003-01-15  Bruno Haible  <bruno@clisp.org>
95245
95246         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
95247
95248 2003-01-15  Bruno Haible  <bruno@clisp.org>
95249
95250         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
95251         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
95252
95253 2003-01-14  Jim Meyering  <jim@meyering.net>
95254
95255         * lib/same.c (same_name): Tweak a comment.
95256
95257 2003-01-14  Bruno Haible  <bruno@clisp.org>
95258
95259         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
95260         when a string comparison is sufficient.
95261
95262 2003-01-14  Bruno Haible  <bruno@clisp.org>
95263
95264         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
95265         'unsigned int'.
95266
95267 2003-01-14  Bruno Haible  <bruno@clisp.org>
95268
95269         * lib/hash-pjw.c: Add comment about low quality of this function.
95270
95271 2003-01-13  Bruno Haible  <bruno@clisp.org>
95272
95273         * modules/stpcpy: Distribute lib/stpcpy.h.
95274         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
95275
95276 2003-01-13  Bruno Haible  <bruno@clisp.org>
95277
95278         * modules/*: Add a description.
95279         * modules/strpbrk: Fix Makefile.am snippet.
95280         * modules/strtoimax: Fix dependencies.
95281         * modules/strtoumax: Likewise.
95282
95283 2003-01-13  Bruno Haible  <bruno@clisp.org>
95284
95285         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
95286         * modules/alloca (Makefile.am): All object files depend on alloca.h.
95287         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
95288
95289 2003-01-13  Bruno Haible  <bruno@clisp.org>
95290
95291         * gnulib-tool (func_create_testdir): Store config/* files in the main
95292         directory.
95293         * config.rpath: Move to ...
95294         * config/config.rpath: ... here.
95295         * modules/gettext: Contains config/config.rpath, not config.rpath.
95296         * modules/iconv: Likewise.
95297
95298 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95299
95300         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95301         to avoid collisions with libcurses and libreadline.
95302
95303         * m4/getstr.m4: Remove.
95304         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
95305
95306 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95307
95308         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95309         to avoid collisions with libcurses and libreadline.
95310
95311         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
95312         * lib/getstr.h, getstr.c: Remove.
95313         * lib/getline.c: Include "getline.h", to check interface.
95314         Move body of old getstr.c here: this defines MIN_CHUNK and
95315         declares getdelim2, which is renamed from getstr.
95316         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
95317
95318         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
95319         All uses changed.
95320         * lib/linebuffer.h: Likewise.
95321         (readline): Remove backward-compatibility macro.
95322
95323 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95324
95325         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95326         to avoid collisions with libcurses and libreadline.
95327         * getstr: Remove.
95328         * MODULES.html.sh: Remove getstr.
95329         * modules/getline: Depend on unlocked-io, not getstr.
95330
95331 2003-01-12  Jim Meyering  <jim@meyering.net>
95332
95333         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
95334
95335 2003-01-10  Bruno Haible  <bruno@clisp.org>
95336
95337         * modules/alloca: Change Makefile.am requirements. Simplify Include
95338         requirements. Add lib/alloca_.h to file list.
95339
95340 2003-01-10  Bruno Haible  <bruno@clisp.org>
95341
95342         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
95343
95344 2003-01-10  Bruno Haible  <bruno@clisp.org>
95345
95346         * lib/alloca_.h: New file.
95347         * lib/getdate.y: Unconditionally include alloca.h.
95348         * lib/makepath.c: Likewise.
95349         * lib/setenv.c: Likewise.
95350         * lib/userspec.c: Likewise.
95351
95352 2003-01-09  Karl Berry  <karl@gnu.org>
95353
95354         * MODULES.html.sh: include `dirname $0` in PATH, to find
95355         gnulib-tool.
95356
95357 2003-01-09  Bruno Haible  <bruno@clisp.org>
95358
95359         * modules/stdbool: Change configure.ac, Makefile.am requirements.
95360         Simplify Include requirements. Add lib/stdbool.h.in to file list.
95361
95362 2003-01-09  Bruno Haible  <bruno@clisp.org>
95363
95364         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
95365
95366 2003-01-09  Bruno Haible  <bruno@clisp.org>
95367
95368         * lib/stdbool.h.in: New file.
95369
95370 2003-01-09  Bruno Haible  <bruno@clisp.org>
95371
95372         * gnulib-tool (func_all_modules): Ignore files ending in ~.
95373         * MODULES.html.sh: Likewise.
95374
95375 2003-01-08  Jim Meyering  <jim@meyering.net>
95376
95377         * lib/full-write.c: Undefine and define-away `const' after inclusion
95378         of errno.h, not before.  Suggestion from Bruno Haible.
95379
95380 2003-01-08  Bruno Haible  <bruno@clisp.org>
95381
95382         * modules/full-read: Depend on full-write.
95383
95384 2003-01-08  Bruno Haible  <bruno@clisp.org>
95385
95386         * lib/safe-read.c: Include specification header first, to ensure its
95387         selfcontainedness.
95388         * lib/full-write.c: Likewise.
95389
95390 2003-01-07  Jim Meyering  <jim@meyering.net>
95391
95392         * lib/full-write.c: Rework so that it may serve to define full_read,
95393         too.
95394         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
95395
95396 2003-01-07  Bruno Haible  <bruno@clisp.org>
95397
95398         * lib/strtoimax.c: Include <stdint.h> as an alternative to
95399         <inttypes.h>.
95400         * lib/xstrtol.h: Likewise.
95401         * lib/xstrtoimax.c: Likewise.
95402         * lib/xstrtoumax.c: Likewise.
95403         * lib/human.h: Likewise.
95404
95405         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
95406         on systems that have <inttypes.h> but not <stdint.h>.
95407
95408 2003-01-07  Bruno Haible  <bruno@clisp.org>
95409
95410         * MODULES.html.sh: Add copyright notice.
95411         (missed_files): Omit CVS directory entries.
95412         (func_module): Make it work with sed-3.02.
95413         * MODULES.txt: Remove file.
95414
95415 2003-01-06  Jim Meyering  <jim@meyering.net>
95416
95417         * lib/version-etc.c: Update year in translatable copyright string.
95418
95419 2003-01-03  Karl Berry  <karl@gnu.org>
95420
95421         * config/config.{guess,sub}: update from prep.
95422
95423 2003-01-02  Karl Berry  <karl@gnu.org>
95424
95425         * doc/COPYING.DOC: belatedly updated to 1.2.
95426
95427 2003-01-01  Karl Berry  <karl@gnu.org>
95428
95429         * gnulib-tool (func_verify_module): report module name $module in
95430         error message, not $1.
95431         * gnulib-tool (create-testdir): don't complain if destdir couldn't
95432         be created, only if it doesn't exist.
95433         * gnulib-tool (last_checkin_date): don't expand the $Date here.
95434
95435 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95436
95437         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
95438
95439 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95440
95441         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
95442         memcmp if strcoll doesn't work.
95443
95444 2002-12-31  Bruno Haible  <bruno@clisp.org>
95445
95446         * lib/utime.c (utime_null): No need to call ftruncate if the file was
95447         nonempty.
95448
95449 2002-12-31  Bruno Haible  <bruno@clisp.org>
95450
95451         * lib/memcoll.c (STRCOLL): New macro.
95452         (memcoll): Use it.
95453
95454 2002-12-31  Bruno Haible  <bruno@clisp.org>
95455
95456         * lib/localcharset.h: New file.
95457         * lib/localcharset.c: Include it.
95458         * lib/unicodeio.c: Likewise.
95459
95460 2002-12-31  Bruno Haible  <bruno@clisp.org>
95461
95462         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
95463         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
95464
95465 2002-12-31  Bruno Haible  <bruno@clisp.org>
95466
95467         * lib/getline.h: Include <stddef.h>, for size_t.
95468
95469         * lib/unicodeio.h: Include <stddef.h>, for size_t.
95470         * lib/unicodeio.c: Don't include <stddef.h>.
95471
95472 2002-12-31  Bruno Haible  <bruno@clisp.org>
95473
95474         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
95475         HAVE_TM_ZONE.
95476
95477 2002-12-24  Karl Berry  <karl@gnu.org>
95478
95479         * config/config.guess: update from prep.
95480
95481 2002-12-24  Bruno Haible  <bruno@clisp.org>
95482
95483         General infrasructure.
95484         * m4/README: Rewritten.
95485         * m4/onceonly.m4: New file.
95486         * m4/onceonly_2_57.m4: New file.
95487
95488         Module atexit.
95489         * m4/atexit.m4: New file.
95490
95491         Module strtod.
95492         * m4/strtod.m4: New file.
95493
95494         Module strtol.
95495         * m4/strtol.m4: New file.
95496
95497         Module strtoul.
95498         * m4/strtoul.m4: New file.
95499
95500         Module memchr.
95501         * m4/memchr.m4: New file.
95502
95503         Module memcmp.
95504         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
95505         (jm_FUNC_MEMCMP): Invoke it.
95506
95507         Module memcpy.
95508         * m4/memcpy.m4: New file.
95509
95510         Module memmove.
95511         * m4/memmove.m4: New file.
95512
95513         Module memset.
95514         * m4/memset.m4: New file.
95515
95516         Module strcspn.
95517         * m4/strcspn.m4: New file.
95518
95519         Module strpbrk.
95520         * m4/strpbrk.m4: New file.
95521
95522         Module strstr.
95523         * m4/strstr.m4: New file.
95524
95525         Module strerror.
95526         * m4/strerror.m4: New file.
95527
95528         Module mktime.
95529         * m4/mktime.m4: Renamed from jm-mktime.m4.
95530         (gl_PREREQ_MKTIME): New macro.
95531         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
95532
95533         Module malloc.
95534         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
95535         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
95536         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
95537
95538         Module realloc.
95539         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
95540         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
95541         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
95542
95543         Module strftime.
95544         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
95545         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
95546         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
95547         gl_TM_GMTOFF.
95548         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
95549
95550         Module xalloc.
95551         * m4/xalloc.m4: New file.
95552
95553         Module alloca.
95554         * m4/alloca.m4: New file.
95555
95556         Module putenv.
95557         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
95558         (jm_FUNC_PUTENV): Invoke it.
95559
95560         Module setenv.
95561         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
95562         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
95563         when invoked twice.
95564         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
95565         gt_FUNC_SETENV.
95566
95567         Module memrchr.
95568         * m4/memrchr.m4: New file.
95569
95570         Module stpcpy.
95571         * m4/stpcpy.m4: New file.
95572
95573         Module strcase.
95574         * m4/strcase.m4: New file.
95575
95576         Module strdup.
95577         * m4/strdup.m4: New file.
95578
95579         Module strnlen.
95580         * m4/strnlen.m4: New file.
95581
95582         Module strndup.
95583         * m4/strndup.m4: New file.
95584
95585         Module xstrtod.
95586         * m4/xstrtod.m4: New file.
95587
95588         Module xstrtol.
95589         * m4/xstrtol.m4: New file.
95590
95591         Module getdate.
95592         * m4/getdate.m4: New file.
95593
95594         Module unlocked-io.
95595         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
95596         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
95597         * m4/jm-glibc-io.m4n: Remove file.
95598
95599         Module long-options.
95600         * m4/long-options.m4: New file.
95601
95602         Module md5.
95603         * m4/md5.m4: New file.
95604
95605         Module sha.
95606         * m4/sha.m4: New file.
95607
95608         Module getstr.
95609         * m4/getstr.m4: New file.
95610
95611         Module getline.
95612         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
95613         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
95614         <sys/types.h>, for size_t. Use the function name gnu_getline, not
95615         simply getline. Infoke gl_PREREQ_GETLINE.
95616
95617         Module obstack.
95618         * m4/obstack.m4: New file.
95619
95620         Module hash.
95621         * m4/hash.m4: New file.
95622
95623         Module readtokens.
95624         * m4/readtokens.m4: New file.
95625
95626         Module strverscmp.
95627         * m4/strverscmp.m4: New file.
95628
95629         Module stdbool.
95630         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
95631         OSF/1.
95632
95633         Module strtoll.
95634         * m4/strtoll.m4: New file.
95635
95636         Module strtoull.
95637         * m4/strtoull.m4: New file.
95638
95639         Module strtoimax.
95640         * m4/strtoimax.m4: New file.
95641
95642         Module strtoumax.
95643         * m4/strtoumax.m4: New file.
95644
95645         Module xstrtoimax.
95646         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
95647         jm_AC_PREREQ_XSTRTOIMAX.
95648         Moved the strtol prerequisites to strtol.m4.
95649         Moved the strtoll prerequisites to strtoll.m4.
95650         Moved the strtoimax prerequisites to strtoimax.m4.
95651
95652         Module xstrtoumax.
95653         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
95654         jm_AC_PREREQ_XSTRTOUMAX.
95655         Moved the strtoul prerequisites to strtoul.m4.
95656         Moved the strtoull prerequisites to strtoull.m4.
95657         Moved the strtoumax prerequisites to strtoumax.m4.
95658
95659         Module chown.
95660         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
95661         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
95662
95663         Module dup2.
95664         * m4/dup2.m4: New file.
95665
95666         Module ftruncate.
95667         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
95668         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
95669
95670         Module getgroups.
95671         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
95672         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
95673
95674         Module gettimeofday.
95675         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
95676         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
95677         gl_PREREQ_GETTIMEOFDAY.
95678
95679         Module mkdir.
95680         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
95681         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
95682
95683         Module mkstemp.
95684         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
95685         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
95686         jm_AC_TYPE_UINTMAX_T.
95687         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
95688
95689         Module stat.
95690         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
95691         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
95692
95693         Module lstat.
95694         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
95695         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
95696
95697         Module timespec.
95698         * m4/timespec.m4 (gl_TIMESPEC): New macro.
95699         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
95700         * m4/st_mtim.m4: Indentation.
95701
95702         Module nanosleep.
95703         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
95704         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
95705         gl_PREREQ_NANOSLEEP.
95706
95707         Module regex.
95708         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
95709         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
95710         (gl_REGEX): New macro.
95711
95712         Module rename.
95713         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
95714         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
95715
95716         Module rmdir.
95717         * m4/rmdir.m4: New file.
95718
95719         Module utime.
95720         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
95721         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
95722         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
95723
95724         Module dirname.
95725         * m4/dirname.m4: New file.
95726
95727         Module getopt.
95728         * m4/getopt.m4: New file.
95729
95730         Module unistd-safer.
95731         * m4/unistd-safer.m4: New file.
95732
95733         Module fnmatch.
95734         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
95735         declaration.
95736         (gl_PREREQ_FNMATCH_EXTRA): New macro.
95737         (gl_FUNC_FNMATCH_POSIX): New macro.
95738         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
95739         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
95740         simply fnmatch.
95741
95742         Module exclude.
95743         * m4/exclude.m4: New file.
95744
95745         Module human.
95746         * m4/human.m4: New file.
95747
95748         Module acl.
95749         * m4/acl.m4: Nop.
95750
95751         Module backupfile.
95752         * m4/backupfile.m4: New file.
95753         * m4/d-ino.m4: Indentation.
95754
95755         Module fsusage.
95756         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
95757         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
95758         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
95759
95760         Module dirfd.
95761         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
95762         requirements.
95763
95764         Module euidaccess.
95765         * m4/euidaccess.m4: New file.
95766
95767         Module file-type.
95768         * m4/file-type.m4: New file.
95769
95770         Module fileblocks.
95771         * m4/fileblocks.m4: New file.
95772
95773         Module filemode.
95774         * m4/filemode.m4: New file.
95775
95776         Module isdir.
95777         * m4/isdir.m4: New file.
95778
95779         Module lchown.
95780         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
95781         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
95782
95783         Module makepath.
95784         * m4/makepath.m4: New file.
95785
95786         Module modechange.
95787         * m4/modechange.m4: New file.
95788
95789         Module mountlist.
95790         * m4/mountlist.m4: New file.
95791         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
95792         Indentation.
95793
95794         Module path-concat.
95795         * m4/path-concat.m4: New file.
95796
95797         Module pathmax.
95798         * m4/pathmax.m4: New file.
95799
95800         Module same.
95801         * m4/same.m4: New file.
95802
95803         Module save-cwd.
95804         * m4/save-cwd.m4: New file.
95805
95806         Module savedir.
95807         * m4/savedir.m4: New file.
95808
95809         Module xgetcwd.
95810         * m4/xgetcwd.m4: New file.
95811         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
95812
95813         Module xreadlink.
95814         * m4/xreadlink.m4: New file.
95815
95816         Module safe-read.
95817         * m4/safe-read.m4: New file.
95818
95819         Module safe-write.
95820         * m4/safe-write.m4: New file.
95821
95822         Module closeout.
95823         * m4/closeout.m4: New file.
95824
95825         Module stdio-safer.
95826         * m4/stdio-safer.m4: New file.
95827
95828         Module getpass.
95829         * m4/getpass.m4: New file.
95830
95831         Module getugroups.
95832         * m4/getugroups.m4: New file.
95833
95834         Module group-member.
95835         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
95836         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
95837
95838         Module idcache.
95839         * m4/idcache.m4: New file.
95840
95841         Module userspec.
95842         * m4/userspec.m4: New file.
95843
95844         Module gettime.
95845         * m4/clock_time.m4: New file.
95846         * m4/gettime.m4: New file.
95847
95848         Module settime.
95849         * m4/settime.m4: New file.
95850
95851         Module posixtm.
95852         * m4/posixtm.m4: New file.
95853
95854         Module gethostname.
95855         * m4/gethostname.m4: New file.
95856
95857         Module canon-host.
95858         * m4/canon-host.m4: New file.
95859
95860         Module gettext.
95861         * m4/codeset.m4: New file, from gettext-0.11.5.
95862         * m4/gettext.m4: New file, from gettext-0.11.5.
95863         * m4/glibc21.m4: New file, from gettext-0.11.5.
95864         * m4/iconv.m4: New file, from gettext-0.11.5.
95865         * m4/intdiv0.m4: New file, from gettext-0.11.5.
95866         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
95867         * m4/inttypes.m4: New file, from gettext-0.11.5.
95868         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
95869         * m4/isc-posix.m4: New file, from gettext-0.11.5.
95870         * m4/lcmessage.m4: New file, from gettext-0.11.5.
95871         * m4/lib-ld.m4: New file, from gettext-0.11.5.
95872         * m4/lib-link.m4: New file, from gettext-0.11.5.
95873         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
95874         * m4/progtest.m4: New file, from gettext-0.11.5.
95875         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
95876         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
95877         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
95878
95879         Module localcharset.
95880         * m4/localcharset.m4: New file.
95881
95882         Module hard-locale.
95883         * m4/hard-locale.m4: New file.
95884
95885         Module mbswidth.
95886         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
95887         onceonly macros.
95888         * m4/mbrtowc.m4: Add comment.
95889
95890         Module memcasecmp.
95891         * m4/memcasecmp.m4: New file.
95892
95893         Module memcoll.
95894         * m4/memcoll.m4: New file.
95895
95896         Module unicodeio.
95897         * m4/unicodeio.m4: New file.
95898
95899         Module rpmatch.
95900         * m4/rpmatch.m4: New file.
95901
95902         Module yesno.
95903         * m4/yesno.m4: New file.
95904
95905         Module exitfail.
95906         * m4/exitfail.m4: New file.
95907
95908         Module c-stack.
95909         * m4/c-stack.m4 (gl_C_STACK): New macro.
95910         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
95911
95912         Module error.
95913         * m4/error.m4 (gl_ERROR): New macro.
95914         (jm_PREREQ_ERROR): Use onceonly macros.
95915
95916         Module fatal.
95917         * m4/fatal.m4: New file.
95918
95919         Module getloadavg.
95920         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
95921         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
95922
95923         Module getpagesize.
95924         * m4/getpagesize.m4: New file.
95925
95926         Module getusershell.
95927         * m4/getusershell.m4: New file.
95928
95929         Module physmem.
95930         * m4/physmem.m4: New file.
95931
95932         Module posixver.
95933         * m4/posixver.m4: New file.
95934
95935         Module quotearg.
95936         * m4/quotearg.m4: New file.
95937
95938         Module quote.
95939         * m4/quote.m4: New file.
95940
95941         Module readutmp.
95942         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
95943
95944         Module sig2str.
95945         * m4/sig2str.m4: New file.
95946
95947         Other.
95948         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
95949         ulonglong.m4.
95950         * m4/intmax_t.m4: New file.
95951         * m4/d-type.m4: Indentation.
95952         * m4/jm-macros.m4: Update.
95953         * m4/prereq.m4 (jm_PREREQ): Update.
95954         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
95955         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
95956         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
95957         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
95958         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
95959         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
95960         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
95961         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
95962         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
95963         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
95964         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
95965         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
95966         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
95967         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
95968         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
95969         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
95970         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
95971         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
95972         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
95973
95974 2002-12-24  Bruno Haible  <bruno@clisp.org>
95975
95976         * MODULES.txt: Update according to m4/ changes.
95977
95978         Module gettext.
95979         * config.rpath: New file, from gettext-0.11.5.
95980
95981         * modules/*: New module descriptions.
95982         * gnulib-tool: New file.
95983         * MODULES.html.sh: New file.
95984
95985 2002-12-21  Karl Berry  <karl@gnu.org>
95986
95987         * doc/fdl.texi: update to version 1.2.
95988
95989 2002-12-19  Karl Berry  <karl@gnu.org>
95990
95991         * config/config.guess: update from prep.
95992
95993 2002-12-18  Bruno Haible  <bruno@clisp.org>
95994
95995         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
95996         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
95997
95998 2002-12-17  Bruno Haible  <bruno@clisp.org>
95999
96000         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
96001         stdlib.h, string.h.
96002
96003 2002-12-17  Bruno Haible  <bruno@clisp.org>
96004
96005         * lib/canon-host.c (strdup): Remove unused declaration.
96006
96007         * lib/fsusage.c: Include full_read.h.
96008         (get_fs_usage): Use full_read instead of safe_read.
96009
96010         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
96011
96012 2002-12-12  Karl Berry  <karl@gnu.org>
96013
96014         * config/config.guess: update from prep.
96015
96016 2002-12-11  Bruno Haible  <bruno@clisp.org>
96017
96018         * m4/setenv.m4: New file, from gettext-0.11.5.
96019
96020 2002-12-11  Bruno Haible  <bruno@clisp.org>
96021
96022         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
96023         not unsetenv().
96024         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
96025         modifications:
96026
96027         2002-12-11  Bruno Haible  <bruno@clisp.org>
96028
96029                 * setenv.c (alloca): Fall back to malloc.
96030                 (freea): New macro.
96031                 (setenv): Use freea() to free memory allocated with alloca().
96032
96033         2002-11-13  Bruno Haible  <bruno@clisp.org>
96034
96035                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
96036                 function declarations.
96037                 * unsetenv.c (unsetenv): Likewise.
96038
96039         2002-03-04  Bruno Haible  <bruno@clisp.org>
96040
96041                 Portability to AIX 4.3.3.
96042                 * unsetenv.c: New file, extracted from setenv.c.
96043                 * setenv.c: Move the unsetenv() function to unsetenv.c.
96044
96045         2001-12-20  Bruno Haible  <bruno@clisp.org>
96046
96047                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
96048                 use malloc instead. For SunOS 4.
96049
96050         2001-12-11  Bruno Haible  <bruno@clisp.org>
96051
96052                 * setenv.c: Declare alloca.
96053                 (compar_fn_t): New typedef.
96054                 (KNOWN_VALUE, STORE_VALUE): Use it.
96055
96056         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
96057         setenv.h.
96058
96059 2002-12-10  Paul Eggert  <eggert@twinsun.com>
96060
96061         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
96062         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
96063         Choose values that are less likely to collide with system fnmatch
96064         options.
96065         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
96066         defined (e.g., a pure POSIX system).
96067         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
96068         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
96069
96070 2002-12-06  Paul Eggert  <eggert@twinsun.com>
96071
96072         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
96073         a pain in practice to deal with generated m4 files.  This change
96074         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
96075
96076         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
96077         and jm-glibc-io.m4, as they are no longer a special case.
96078         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
96079         kludge and the auto-generation stuff.  Check only whether the
96080         functions are declared, not whether they exist, since older hosts
96081         that don't declare the functions can't use the optimization anyway.
96082
96083 2002-12-06  Jim Meyering  <jim@meyering.net>
96084
96085         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
96086
96087         Merge in changes from libc's misc/error.c, in preparation
96088         for the merge of gnulib's changes back into libc.
96089
96090         * lib/error.c (_): Define only if not already defined.
96091         Move definition to follow all #include directives.
96092         Include unlocked-io.h only if !_LIBC.
96093         [_LIBC]: Include <libio/libioP.h>.
96094         [USE_IN_LIBIO]: Include <libio/iolibio.h>
96095         (fflush): Tweak definition to use INTUSE.
96096         (putc): Define.
96097
96098 2002-12-05  Paul Eggert  <eggert@twinsun.com>
96099
96100         * lib/alloca.c [defined emacs]: Include "lisp.h".
96101         (xalloc_die) [defined emacs]: New macro.
96102         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
96103         [! defined emacs]: Include <xalloc.h>.
96104         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
96105         (pointer): Typedef to POINTER_TYPE *.
96106         (malloc): Remove decl; we now always use xmalloc.
96107         (alloca): Use old-style definition, since Emacs needs this.
96108         Check for arithmetic overflow when computing combined size.
96109
96110 2002-12-04  Paul Eggert  <eggert@twinsun.com>
96111
96112         Do not generate unlocked-io.h automatically, since it's easier to
96113         maintain it by hand.
96114
96115         * lib/unlocked-io.h: New file, from GNU diffutils,
96116         but with proper copyright notice and attribution.
96117         * lib/gen-uio: Remove.
96118         * lib/Makefile.am: Add copyright notice.
96119         (libfetish_a_SOURCES): Add unlocked-io.h.
96120         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
96121         (DISTCLEANFILES, io_functions): Remove macros.
96122         (EXTRA_DIST): Remove gen_uio.
96123         (unlocked-io.h): Remove rule.
96124
96125 2002-12-04  Jim Meyering  <jim@meyering.net>
96126
96127         Reflect the fact that stat.c and lstat.c are no longer generated.
96128         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
96129         (DISTCLEANFILES): Likewise.
96130         (EXTRA_DIST): Likewise.
96131         (all_local): Don't depend on stat.c or lstat.c.
96132         (stat.c, lstat.c): Remove rules.
96133         (EXTRA_DIST): Remove xstat.in.
96134
96135         * lib/xstat.in: Remove file.  Contents moved into stat.c.
96136         * lib/stat.c: New file.  Contents mostly from xstat.in.
96137         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
96138         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
96139
96140         * lib/safe-read.c: Rework so that it may serve to define safe_write,
96141         too.
96142         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
96143
96144 2002-12-03  Jim Meyering  <jim@meyering.net>
96145
96146         * lib/safe-read.c, safe-write.c: Change variable names and comments,
96147         but not semantics, to minimize the differences between these two files.
96148         (safe_read): Change comment to mention SAFE_READ_ERROR.
96149
96150         * lib/safe-read.c (IS_EINTR): Define.
96151         (safe_read): Use IS_EINTR in place of in-function cpp directives.
96152
96153 2002-12-02  Jim Meyering  <jim@meyering.net>
96154
96155         * lib/safe-read.c (EINTR): Define.
96156         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96157         (INT_MAX): Provide fallback.
96158         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
96159
96160         * lib/safe-read.h (SAFE_READ_ERROR): Define.
96161
96162 2002-12-02  Bruno Haible  <bruno@clisp.org>
96163
96164         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
96165         Define, taken from safe-read.c.
96166         (INT_MAX): Provide fallback.
96167         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
96168         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
96169
96170         * lib/safe-read.c (EINTR): Remove definition.
96171         (safe_read): Don't use EINTR if it is absent.
96172
96173 2002-12-01  Jim Meyering  <jim@meyering.net>
96174
96175         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
96176         zero.
96177         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
96178
96179 2002-11-27  Paul Eggert  <eggert@twinsun.com>
96180
96181         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
96182         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
96183         with `if (! (value < limit)) abort ();', for readability.
96184
96185 2002-11-26  Karl Berry  <karl@gnu.org>
96186
96187         * lib/strdup.c: copy from libc again, with jim's ok.
96188         * lib/.cppi-disable: re-add strdup.c
96189
96190 2002-11-25  Karl Berry  <karl@gnu.org>
96191
96192         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
96193         instead of "strtol.c".
96194
96195 2002-11-25  Karl Berry  <karl@gnu.org>
96196
96197         * config/install-sh: update from automake for variable quoting, $0 in
96198         error msgs, etc.
96199
96200         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
96201         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
96202         entry.
96203
96204 2002-11-25  Jim Meyering  <jim@meyering.net>
96205
96206         * lib/mktime.c: Sync from libc, now that it has the latest fix.
96207
96208 2002-11-24  Karl Berry  <karl@gnu.org>
96209
96210         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
96211         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
96212
96213 2002-11-24  Jim Meyering  <jim@meyering.net>
96214
96215         Update from coreutils:
96216
96217         * lib/mktime.c: Merge in changes from libc.
96218
96219         Avoid a link-time failure on some Linux systems.
96220         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
96221         (otherwise).
96222         (__mon_yday): Declare with the STATIC attribute.
96223         (__mktime_internal): Likewise.
96224         Based on a report from Greg Schafer.
96225
96226 2002-11-23  Jim Meyering  <jim@meyering.net>
96227
96228         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
96229         Use `unsigned', not `int', as type of index.
96230
96231         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
96232
96233         * lib/fsusage.c: Remove unneeded parentheses around operands of
96234         `defined'.
96235
96236 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96237
96238         * lib/quotearg.h: Allow multiple inclusion by surrounding with
96239         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
96240         so that we can be included first.
96241         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
96242         * lib/quotearg.c: Include quotearg.h immediately after config.h.
96243         No need to include stddef.h or sys/types.h any more.
96244         Surround local include files with "", not "<>".
96245         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
96246         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
96247         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
96248         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
96249         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
96250         (ISPRINT): Remove; no longer needed now that we assume C89.
96251
96252         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
96253         Preserve errno.
96254
96255         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
96256         quotearg_char): Use SIZE_MAX rather than
96257         (size_t) -1 when we are talking about "infinity".
96258
96259         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
96260
96261 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96262
96263         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
96264         hint that one should use `if (! x) abort ();' rather than `assert
96265         (x);', and anyway it's one less thing to worry about configuring.
96266         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
96267         hash_rehash, hash_insert): Use abort rather than assert.
96268
96269 2002-11-22  Bruno Haible  <bruno@clisp.org>
96270
96271         * lib/safe-read.h: Assume C89. Add comments.
96272         (safe_read): Change return type to size_t.
96273         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
96274         byte counts > SSIZE_MAX correctly.
96275         * lib/safe-write.h: New file.
96276         * lib/safe-write.c: New file.
96277         * lib/full-read.h: New file.
96278         * lib/full-read.c: New file.
96279         * lib/full-write.h: Assume C89. Add comments.
96280         * lib/full-write.c: Include safe-write.h.
96281         (full_write): Rewritten to use safe_write.
96282         Suggested by Jim Meyering and Paul Eggert.
96283
96284 2002-11-21  Jim Meyering  <jim@meyering.net>
96285
96286         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
96287
96288         Merge in changes from the coreutils.
96289
96290         2002-09-25  Paul Eggert  <eggert@twinsun.com>
96291         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
96292         <stdint.h>.
96293         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
96294         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
96295         int.  Work more efficiently if X is the same width as uintmax_t.
96296         Do not compare X to -1, to avoid bogus compiler warning.
96297         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
96298         Don't assume that f_frsize and f_bsize are the same type.
96299
96300         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
96301         warning on FreeBSD.
96302
96303         * lib/makepath.c (make_path): Restore umask *before* creating the final
96304         component.
96305         (make_path): Minor reformatting.
96306
96307         * lib/xmalloc.c: Adjust to work with new autoconf macros,
96308         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
96309         HAVE_MALLOC/HAVE_REALLOC.
96310
96311         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
96312         dummy ones.  At least on GNU/Linux systems, `auto' means something
96313         else.
96314         From Michael Stone.
96315
96316 2002-11-21  Bruno Haible  <bruno@clisp.org>
96317
96318         Remove case insensitive option matching.
96319         * lib/argmatch.h (argcasematch): Remove declaration.
96320         (ARGCASEMATCH): Remove macro.
96321         (__xargmatch_internal): Remove case_sensitive argument.
96322         (XARGMATCH): Update.
96323         (XARGCASEMATCH): Remove macro.
96324         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
96325         case_sensitive argument.
96326         (argcasematch): Remove function.
96327         (__xargmatch_internal): Remove case_sensitive argument.
96328         (main): Use XARGMATCH instead of XARGCASEMATCH.
96329
96330         * lib/xmalloc.c: Change compile-time error message. Add comment about
96331         required autoconf version.
96332
96333 2002-11-20  Paul Eggert  <eggert@twinsun.com>
96334
96335         Merge argmatch cleanups from Bison.  Assume C89.
96336
96337         * lib/argmatch.c: Include config.h here, not in argmatch.h.
96338         Include stdlib.h, for EXIT_FAILURE.
96339         Always include <string.h>, since we assume C89.
96340         (EXIT_FAILURE): Remove pre-C89 bug workaround.
96341         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
96342         Include <stddef.h> instead, since it's all we need for size_t.
96343         (PARAMS): Remove.  All uses removed.
96344         (ARRAY_CARDINALITY): Do not bother to #undef.
96345         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
96346         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96347         Remove unnecessary parentheses.
96348         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96349         Insert necessary parentheses.
96350         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
96351         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
96352
96353 2002-11-19  Bruno Haible  <bruno@clisp.org>
96354
96355         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
96356         * lib/mbswidth.h: Include <stddef.h>, for size_t.
96357
96358         * lib/mbswidth.h (PARAMS): Remove macro.
96359         (mbswidth, mbsnwidth): Use ANSI C function declarations.
96360         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
96361
96362         * lib/gcd.h (PARAMS): Remove macro.
96363         (gcd): Use ANSI C function declarations.
96364         * lib/gcd.c (gcd): Likewise.
96365
96366 2002-11-15  Bruno Haible  <bruno@clisp.org>
96367
96368         * lib/strcspn.c: Include <stddef.h>.
96369         (strcspn): Use ANSI C function declaration. Change return type to
96370         size_t. Use NULL.
96371         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
96372         (strpbrk): Use NULL.
96373         * lib/strpbrk.h (PARAMS): Remove macro.
96374         (strpbrk): Use ANSI C function declaration.
96375         * lib/strstr.c: Don't include <sys/types.h>.
96376         * lib/strstr.h (PARAMS): Remove macro.
96377         (strstr): Use ANSI C function declarations.
96378
96379 2002-11-14  Karl Berry  <karl@gnu.org>
96380
96381         * config/mkinstalldirs: `do' on separate line, instead of
96382         `for var; do'.
96383
96384 2002-11-06  Bruno Haible  <bruno@clisp.org>
96385
96386         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
96387         * lib/gcd.c (gcd): Likewise.
96388
96389 2002-11-05  Bruno Haible  <bruno@clisp.org>
96390
96391         * lib/gcd.h: New file, from gettext-0.11.5.
96392         * lib/gcd.c: New file, from gettext-0.11.5.
96393
96394 2002-11-05  Bruno Haible  <bruno@clisp.org>
96395
96396         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96397         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96398         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96399         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96400
96401         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
96402         <libintl.h>.
96403         * lib/makepath.c: Include gettext.h instead of <locale.h> and
96404         <libintl.h>.
96405
96406         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
96407         * lib/human.c: Include gettext.h instead of <libintl.h>.
96408         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
96409         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
96410         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
96411         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
96412         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
96413         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
96414         (textdomain): Remove definition.
96415         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
96416
96417         * lib/long-options.c: Remove include of <libintl.h> and definition of
96418         _.
96419         * lib/same.c: Remove include of <libintl.h> and definition of _.
96420
96421 2002-11-04  Owen Taylor  <otaylor@redhat.com>
96422
96423         * lib/config.charset: A few additions for Solaris.
96424
96425 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96426
96427         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
96428         * lib/localcharset.c (locale_charset): Declare as extern "C".
96429
96430 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96431
96432         * lib/config.charset: msdos in uk_UA uses CP1125.
96433
96434 2002-11-04  Bruno Haible  <bruno@clisp.org>
96435
96436         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
96437         * lib/strcase.h: New file, from GNU gettext-0.11.5.
96438         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
96439         * lib/strstr.h: New file, from GNU gettext-0.11.5.
96440         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
96441
96442 2002-11-04  Bruno Haible  <bruno@clisp.org>
96443
96444         * lib/localcharset.c (locale_charset): Don't return an empty string.
96445
96446 2002-11-04  Bruno Haible  <bruno@clisp.org>
96447
96448         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
96449         aliases.
96450
96451 2002-11-04  Bruno Haible  <bruno@clisp.org>
96452
96453         * lib/config.charset: Update for newest glibc. Add canonical names
96454         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
96455
96456 2002-11-04  Bruno Haible  <bruno@clisp.org>
96457
96458         * lib/config.charset: Add support for NetBSD.
96459
96460 2002-11-04  Bruno Haible  <bruno@clisp.org>
96461
96462         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
96463
96464 2002-11-01  Bruno Haible  <bruno@clisp.org>
96465
96466         * configure.in: Add AC_CONFIG_AUX_DIR call.
96467         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
96468         test/Makefile.
96469         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
96470
96471 2002-09-28  Karl Berry  <karl@gnu.org>
96472
96473         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
96474         installed automake until the next release, since changes have been
96475         made.
96476
96477 2002-09-25  Karl Berry  <karl@gnu.org>
96478
96479         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
96480         * lib/getopt*: copy from libc/posix.
96481         * lib/gettext.h: copy from gettext.
96482         * lib/.cppi-disable: add strdup.c, gettext.h.
96483
96484 2002-09-25  Karl Berry  <karl@gnu.org>
96485
96486         * config/srclist.txt: enable gettext.h check.
96487         * config/config.{guess,sub}: update from prep.
96488         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
96489                 from automake 1.6.3.
96490         See srclist*.
96491
96492 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
96493
96494         * regex.c (PATFETCH): Remove the translating fetch.
96495         (PATFETCH_RAW): Rename to PATFETCH.
96496         (set_image_of_range): New fun.
96497         (SET_RANGE_TABLE_WORK_AREA): Use it.
96498         (regex_compile): Don't translate the pattern chars so eagerly.
96499         Only do it when inserting an `exactn' bytecode or when handling
96500         a char-range.
96501         (mutually_exclusive_p): Avoid empty statement.
96502
96503 2002-07-06  Jim Meyering  <meyering@lucent.com>
96504
96505         * m4/README: Don't mention Makefile.am.in.
96506         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
96507
96508 2002-07-01  Jim Meyering  <meyering@lucent.com>
96509
96510         * lib/c-stack.c: Include sys/time.h.
96511         From Volker Borchert.
96512
96513 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96514
96515         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
96516
96517 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96518
96519         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
96520         New macro.  Use it uniformly instead of
96521         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
96522         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
96523         reported by Vin Shelton.
96524
96525 2002-06-22  Paul Eggert  <eggert@twinsun.com>
96526
96527         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
96528         Do not assume SA_SIGINFO behavior.
96529         Bug reported by Jim Meyering on NetBSD 1.5.2.
96530
96531 2002-06-22  Jim Meyering  <meyering@lucent.com>
96532
96533         * m4/c-stack.m4: New file, from diffutils-2.8.2.
96534         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
96535
96536         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
96537         now that configure.ac uses AC_GNU_SOURCE.
96538         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
96539         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
96540
96541         Update to latest tools.  Suggestions from Paul Eggert.
96542         * m4/stdbool.m4: New file, from diffutils-2.8.2.
96543         * m4/gnu-source.m4: Update from diffutils-2.8.2.
96544         * m4/fnmatch.m4: Likewise.
96545         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
96546         to AC_HEADER_STDBOOL
96547
96548 2002-06-22  Jim Meyering  <meyering@lucent.com>
96549
96550         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
96551         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
96552
96553 2002-06-22  Jim Meyering  <meyering@lucent.com>
96554
96555         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
96556
96557         * lib/exitfail.c, exitfail.h: Likewise.
96558         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
96559
96560         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
96561         of fnmatch.h.
96562         (EXTRA_DIST): Add fnmatch_loop.c.
96563         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
96564
96565         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
96566         * lib/fnmatch.c: Update from diffutils-2.8.2.
96567         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
96568         * lib/fnmatch.h: Remove file.
96569
96570 2002-06-21  Jim Meyering  <meyering@lucent.com>
96571
96572         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
96573         * m4/mbrtowc.m4: Likewise.
96574
96575         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
96576         * m4/mbswidth.m4: Reflect name change:
96577         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
96578         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96579
96580         * m4/lib-link.m4: Update from gettext-0.11.2.
96581         * m4/gettext.m4: Likewise.
96582
96583         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
96584         From Alfred M. Szmidt.
96585
96586 2002-06-18  Paul Eggert  <eggert@twinsun.com>
96587
96588         * lib/file-type.h: Report an error if neither S_ISREG nor
96589         S_IFREG is defined, instead of using a test specific to glibc
96590         2.2.  This should be safe, since POSIX requires S_ISREG and
96591         Unix Version 7 had S_IFREG.  We don't need to check for
96592         <sys/types.h> since we don't use any symbols that it defines.
96593
96594 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
96595
96596         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
96597         $@-t, so that each temporary file name is unique and valid in the first
96598         8 characters, for operation under DOS.
96599
96600 2002-06-15  Paul Eggert  <eggert@twinsun.com>
96601
96602         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
96603
96604 2002-06-15  Jim Meyering  <meyering@lucent.com>
96605
96606         Work even with DJGPP 2.03, which lacks support for symlinks.
96607         From Richard Dawe.
96608         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
96609         is defined.
96610         * lib/lchown.c (S_ISLNK): Likewise.
96611
96612 2002-06-15  Jim Meyering  <meyering@lucent.com>
96613
96614         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
96615         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
96616         have been included before this file.
96617
96618 2002-06-14  Jim Meyering  <meyering@lucent.com>
96619
96620         * lib/file-type.h: Use the version from diffutils-2.8.2.
96621         * lib/file-type.c: Likewise.
96622
96623 2002-06-07  Jim Meyering  <meyering@lucent.com>
96624
96625         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
96626         They're needed at least for NetBSD 1.5.2.
96627         ($statxfs_includes): Include those same headers.
96628         ($statxfs_includes): Include sys/vfs.h if available.
96629         ($statxfs_includes): Likewise for sys/statvfs.h.
96630         Check for the following members in both structs statfs and statvfs:
96631         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
96632
96633 2002-06-01  Jim Meyering  <meyering@lucent.com>
96634
96635         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
96636         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
96637
96638 2002-05-28  Jim Meyering  <meyering@lucent.com>
96639
96640         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
96641         Reported by Volker Borchert.
96642
96643 2002-05-27  Jim Meyering  <meyering@lucent.com>
96644
96645         Fix a problem seen only on nonconforming systems whereby ls.c's
96646         use of localtime, and then of gettimeofday would cause trouble:
96647         the localtime call used to initialize rpl_gettimeofday's save
96648         mechanism would clobber ls's current local time information so
96649         that in any long listing the first file would always be listed
96650         with date 1970-01-01.  Analysis by Volker Borchert.
96651
96652         * lib/gettimeofday.c (localtime): Undefine.
96653         (rpl_localtime): New function.
96654
96655 2002-05-27  Jim Meyering  <meyering@lucent.com>
96656
96657         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
96658         localtime.
96659
96660         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
96661         use the replacement function; it wouldn't resolve at link time.
96662         Reported by Volker Borchert.
96663
96664 2002-05-22  Jim Meyering  <meyering@lucent.com>
96665
96666         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
96667         file-type.h.
96668         * lib/file-type.h: New file.
96669         * lib/file-type.c (file_type): New file/function.  Extracted from
96670         diffutils.
96671
96672 2002-04-30  Jim Meyering  <meyering@lucent.com>
96673
96674         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
96675
96676 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96677
96678         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
96679
96680 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96681
96682         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
96683         Do not check for alloca.h (no longer used) or stdbool.h (was never
96684         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
96685
96686 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96687
96688         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
96689
96690 2002-04-29  Jim Meyering  <meyering@lucent.com>
96691
96692         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
96693         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
96694         Use AC_FUNC_STRNLEN here instead.
96695
96696         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
96697         With autoconf-2.53a, it's part of AC_PROG_CC.
96698
96699 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96700
96701         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
96702         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
96703
96704 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96705
96706         * lib/sig2str.h, lib/sig2str.c: New files.
96707         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
96708
96709 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96710
96711         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
96712         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
96713         of 127, since 64 is the largest conceivable number for ancient
96714         nonstandard hosts.
96715         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
96716
96717 2002-04-28  Jim Meyering  <meyering@lucent.com>
96718
96719         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
96720
96721 2002-04-24  Jim Meyering  <meyering@lucent.com>
96722
96723         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
96724         (jm_PREREQ): Use it.
96725
96726         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
96727         mach/mach.h fcntl.h.
96728         Check for this function: setlocale.
96729
96730 2002-04-24  Jim Meyering  <meyering@lucent.com>
96731
96732         * lib/gettext.h: New file, from Gettext.
96733         * lib/Makefile.am (INCLUDES): Remove -I../intl.
96734         (libfetish_a_SOURCES): Add gettext.h.
96735
96736 2002-04-16  Jim Meyering  <meyering@lucent.com>
96737
96738         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
96739         ut_pid, ut_id, ut_exit.
96740
96741 2002-04-16  Jim Meyering  <meyering@lucent.com>
96742
96743         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
96744         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
96745         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
96746
96747 2002-04-12  Jim Meyering  <meyering@lucent.com>
96748
96749         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
96750         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
96751         existence of the getmntinfo function.  Needed for Darwin 5.3.
96752
96753         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
96754         This is necessary at least on Darwin 5.3.
96755
96756         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
96757         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
96758         strnlen.o in the library, and that makes some versions of ranlib
96759         object.
96760
96761 2002-04-12  Jim Meyering  <meyering@lucent.com>
96762
96763         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
96764
96765 2002-04-09  Jim Meyering  <meyering@lucent.com>
96766
96767         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
96768         to be more precise.  Rather than saying we're checking whether the
96769         function `works', say what we're testing.
96770         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
96771         Reported by Bruno Haible.
96772
96773 2002-03-10  Jim Meyering  <meyering@lucent.com>
96774
96775         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
96776         Suggestion from Santiago Vila.
96777
96778 2002-03-08  Jim Meyering  <meyering@lucent.com>
96779
96780         * lib/rename.c: Mention that this wrapper is needed also on
96781         mips-dec-ultrix4.4 systems.
96782
96783 2002-03-02  Jim Meyering  <meyering@lucent.com>
96784
96785         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
96786         not HAVE_CLOCK_SETTIME.
96787
96788 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96789
96790         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
96791         Check for clock_settime.
96792
96793 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96794
96795         * lib/nanosleep.h: Rename to....
96796         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
96797
96798         * lib/gettime.c: New file.
96799         * lib/settime.c: New file.
96800         * lib/stime.c: Remove.
96801
96802         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
96803         timespec.h.  Remove nanosleep.h.
96804
96805 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96806
96807         * m4/acl.m4: New file.
96808         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
96809         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
96810
96811 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96812
96813         * lib/acl.c, lib/acl.h: New files.
96814         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
96815
96816 2002-02-24  Jim Meyering  <meyering@lucent.com>
96817
96818         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
96819         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
96820         cause trouble.  Reported by Nelson Beebe.
96821
96822 2002-02-23  Paul Eggert  <eggert@twinsun.com>
96823
96824         * lib/path-concat.c (xpath_concat): Reorder code to pacify
96825         compilers that don't know that xalloc_die never returns.
96826
96827 2002-02-20  Jim Meyering  <meyering@lucent.com>
96828
96829         * lib/getdate.c: Regenerate using bison-1.33.
96830
96831 2002-02-17  Jim Meyering  <meyering@lucent.com>
96832
96833         * config/config.guess (main): Don't use `head -1'; it's no longer
96834         portable. Use `sed 1q' instead.
96835
96836 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
96837
96838         * m4/codeset.m4: Upgrade to gettext-0.11.
96839         * m4/gettext.m4: Upgrade to gettext-0.11.
96840         * m4/glibc21.m4: Upgrade to gettext-0.11.
96841         * m4/iconv.m4: Upgrade to gettext-0.11.
96842         * m4/isc-posix.m4: Upgrade to gettext-0.11.
96843         * m4/lcmessage.m4: Upgrade to gettext-0.11.
96844         * m4/lib-ld.m4: New file, from gettext-0.11.
96845         * m4/lib-link.m4: New file, from gettext-0.11.
96846         * m4/lib-prefix.m4: New file, from gettext-0.11.
96847         * m4/progtest.m4: Upgrade to gettext-0.11.
96848
96849 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96850
96851         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
96852         (jm_PREREQ): Use it.
96853
96854 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96855
96856         * lib/posixver.c, lib/posixver.h: New files.
96857         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96858
96859 2002-02-02  Paul Eggert  <eggert@twinsun.com>
96860             Bruno Haible  <bruno@clisp.org>
96861
96862         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
96863         (fwrite_success_callback): New declaration.
96864         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
96865         print_unicode_char. Call failure callback instead of error.
96866         (fwrite_success_callback): New function.
96867         (exit_failure_callback): New function.
96868         (fallback_failure_callback): New function.
96869         (print_unicode_char): Call unicode_to_mb.
96870
96871 2002-01-26  Jim Meyering  <meyering@lucent.com>
96872
96873         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
96874         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
96875
96876 2002-01-26  Jim Meyering  <meyering@lucent.com>
96877
96878         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
96879
96880 2002-01-22  Paul Eggert  <eggert@twinsun.com>
96881
96882         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
96883
96884 2002-01-22  Jim Meyering  <meyering@lucent.com>
96885
96886         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
96887         Otherwise, some versions of automake would omit the rule that makes
96888         Makefile from Makefile.in.
96889
96890 2002-01-21  Paul Eggert  <eggert@twinsun.com>
96891
96892         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
96893         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96894         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
96895         (memcoll): Set errno to zero if there is no error.
96896
96897         * lib/quotearg.c (quotearg_buffer_restyled):
96898         Fix bug with quoting buffers containing NUL when backslashing escapes.
96899         This bug was exposed by the other changes in this patch.
96900         (quotearg_n_options): New arg ARGSIZE.
96901         All callers changed.
96902         (quoting_options_from_style): New function.
96903         (quotearg_n_style): Use it.
96904         (quotearg_n_style_mem): New function.
96905
96906         * lib/quotearg.h (quotearg_n_style_mem): New function.
96907
96908 2002-01-19  Jim Meyering  <meyering@lucent.com>
96909
96910         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
96911         Remove useless quotes: DF_PROG="df".
96912         * m4/strnlen.m4: New file.
96913
96914 2002-01-16  Paul Eggert  <eggert@twinsun.com>
96915
96916         * lib/backupfile.c (ISDIGIT): Comment fix.
96917         * lib/getdate.y (ISDIGIT): Likewise.
96918         * lib/posixtm.c (ISDIGIT, year): Likewise.
96919         * lib/strverscmp.c (ISDIGIT): Likewise.
96920         * lib/userspec.c (ISDIGIT): Likewise.
96921
96922 2002-01-16  Jim Meyering  <meyering@lucent.com>
96923
96924         * lib/getdate.y: Add three semicolons, each just before a closing
96925         brace. Bison (as of version 1.31) no longer papers over that mistake.
96926
96927 2002-01-05  Jim Meyering  <meyering@lucent.com>
96928
96929         * lib/version-etc.c (version_etc_copyright): Update copyright year.
96930
96931 2001-12-19  Paul Eggert  <eggert@twinsun.com>
96932
96933         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
96934         not silently exit merely because the output buffer happens to
96935         have nothing pending.
96936
96937 2001-12-18  Paul Eggert  <eggert@twinsun.com>
96938
96939         See the big note in ../ChangeLog.
96940         * lib/human.c (suffixes): Prefer K to k for 1024.
96941         (generate_suffix_backwards): New function.
96942         (human_readable_inexact): Use it.
96943         * lib/xstrtol.c (__xstrtol): If there is no number but there
96944         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
96945         Accept 'K' as well as 'k'.
96946
96947 2001-12-15  Jim Meyering  <meyering@lucent.com>
96948
96949         * lib/regex.h (__restrict_arr): Update from libc.
96950
96951         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
96952         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
96953         (STREQ): Define.
96954
96955 2001-12-14  Jim Meyering  <meyering@lucent.com>
96956
96957         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
96958         Suggestion from Bruno Haible.
96959
96960 2001-12-10  Jim Meyering  <meyering@lucent.com>
96961
96962         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
96963         xrealloc, Instead, include "xalloc.h".
96964         (initbuffer): Don't cast xmalloc return value to char*.
96965         (readline): Reword comment.
96966         Don't cast xrealloc return value to char*
96967         Return NULL, not 0.
96968
96969 2001-12-09  Jim Meyering  <meyering@lucent.com>
96970
96971         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
96972         about `signed and unsigned type in conditional expression'.
96973         * lib/posixtm.c (posix_time_parse): Likewise.
96974
96975         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
96976
96977         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
96978         to avoid a pedantic warning.
96979
96980         * lib/getstr.c: Don't include assert.h.
96981         (getstr): Remove warning-evoking assertions.
96982         Return -1 if offset parameter is out of bounds.
96983         Change the type of a local from int to size_t.
96984
96985         * lib/strftime.c (my_strftime_localtime_r): Include this function
96986         definition in the `#if ! HAVE_TM_GMTOFF' block.
96987
96988         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
96989         Include xalloc.h instead.
96990
96991 2001-12-02  Jim Meyering  <meyering@lucent.com>
96992
96993         * lib/tempname.c: Don't declare getenv, thus reverting the change of
96994         2001-11-18.  It's no longer necessary, now that stdlib.h is always
96995         included.
96996
96997         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
96998         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
96999
97000 2001-11-30  Akim Demaille  <akim@epita.fr>
97001
97002         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
97003         before being defined.
97004
97005 2001-11-27  Paul Eggert  <eggert@twinsun.com>
97006
97007         * lib/quotearg.h (quotearg_n, quotearg_n_style):
97008         First arg is int, not unsigned.
97009         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
97010         (SIZE_MAX, UINT_MAX): New macros.
97011         (quotearg_n_options): Abort if N is negative.
97012         Avoid overflow check on hosts where size_t is 64 bits and int
97013         is 32 bits, as overflow is impossible there.
97014         Fix off-by-one typo that caused unnecessary reallocation.
97015
97016 2001-11-27  Jim Meyering  <meyering@lucent.com>
97017
97018         * lib/tempname.c: Merge with version from libc.
97019         * lib/regex.c: Likewise.
97020
97021         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
97022         systems for which STDC_HEADERS is 0, it was not included, resulting in
97023         a warning about an integer-to-pointer conversion problem with getenv.
97024         Reported by Volker Borchert.
97025
97026 2001-11-26  Jim Meyering  <meyering@lucent.com>
97027
97028         * lib/gtod.h: Remove file.
97029         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
97030         * lib/gettimeofday.c: Don't include gtod.h.
97031         (GTOD_init): Remove function.
97032         (rpl_gettimeofday): Do its job here instead, rather than aborting.
97033         Suggestion from Volker Borchert.
97034
97035 2001-11-23  Jim Meyering  <meyering@lucent.com>
97036
97037         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
97038         it.
97039         * lib/hash.c (struct hash_table): Define it here instead.
97040
97041 2001-11-22  Jim Meyering  <meyering@lucent.com>
97042
97043         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
97044
97045 2001-11-20  Jim Meyering  <meyering@lucent.com>
97046
97047         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
97048         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
97049
97050 2001-11-19  Jim Meyering  <meyering@lucent.com>
97051
97052         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
97053         directory.  Use "conftestXXXXXX" as the template.
97054         Suggestion from Paul Eggert.
97055
97056         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
97057         immediately, so the test doesn't mistakenly hit the max-open-files
97058         limit.
97059
97060 2001-11-18  Paul Eggert  <eggert@twinsun.com>
97061
97062         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
97063         (TEMPORARIES): New macro.
97064         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
97065         removes an artificial limitation (e.g. HP-UX 10.20, where
97066         TMP_MAX is 17576).
97067
97068 2001-11-18  Jim Meyering  <meyering@lucent.com>
97069
97070         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
97071
97072 2001-11-18  Jim Meyering  <meyering@lucent.com>
97073
97074         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
97075         on SunOS 4.
97076
97077         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
97078         files will be created before anything else.
97079
97080 2001-11-17  Paul Eggert  <eggert@twinsun.com>
97081
97082         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
97083         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
97084
97085 2001-11-17  Jim Meyering  <meyering@lucent.com>
97086
97087         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
97088         Prompted by a report from Bob Proulx.
97089
97090         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
97091         Instead, require UTILS_FUNC_MKSTEMP.
97092
97093 2001-11-17  Jim Meyering  <meyering@lucent.com>
97094
97095         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
97096         Now, that's done as part of AC_FUNC_STRTOD.
97097
97098 2001-11-17  Jim Meyering  <meyering@lucent.com>
97099
97100         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
97101         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
97102         rather than group writable.  Patch by Juan F. Codagnone.
97103
97104         * lib/readtokens.c: Remove explicit declarations of xmalloc and
97105         xrealloc, Instead, include "xalloc.h".
97106
97107         * lib/mountlist.c: Include unlocked-io.h after all system headers.
97108         Remove explicit declarations of xmalloc, xrealloc,
97109         and xstrdup.  Instead, include "xalloc.h".
97110
97111         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
97112         unlocked-io.h.
97113         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
97114         Likewise.
97115         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
97116
97117         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
97118         Reported by Padraig Brady.
97119
97120         * lib/mkstemp.c: #undef mkstemp.
97121         Include config.h.
97122         (rpl_mkstemp): Rename from mkstemp.
97123         Protoize.
97124
97125 2001-11-16  Jim Meyering  <meyering@lucent.com>
97126
97127         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
97128         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
97129         determine the amount of total physical memory, use pstat_getstatic.
97130         HPUX-11 doesn't define _SC_PHYS_PAGES.
97131         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
97132         If sysconf couldn't be used to determine the amount of available
97133         physical memory, use both pstat_getstatic and pstat_getdynamic.
97134         Based on a patch from Bob Proulx.
97135
97136 2001-11-10  Jim Meyering  <meyering@lucent.com>
97137
97138         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
97139         (jm_PREREQ): Use it.
97140
97141 2001-11-09  Jim Meyering  <meyering@lucent.com>
97142
97143         * m4/jm-macros.m4: Require autoconf-2.52f.
97144         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
97145         Use these AC_-prefixed names, not the AM_-prefixed ones.
97146
97147         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
97148
97149 2001-11-05  Jim Meyering  <meyering@lucent.com>
97150
97151         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
97152
97153 2001-11-04  Jim Meyering  <meyering@lucent.com>
97154
97155         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
97156         $DEFS.
97157
97158 2001-11-03  Jim Meyering  <meyering@lucent.com>
97159
97160         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
97161         of AC_DEFUN.
97162
97163         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
97164         know the name of the variable in the macro definition.
97165
97166 2001-11-03  Jim Meyering  <meyering@lucent.com>
97167
97168         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
97169         in argmatch_to_argument call.
97170
97171         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
97172         argument.
97173
97174         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
97175         e.g., a fault due to an attempt to free a NULL pointer.
97176
97177 2001-11-01  Jim Meyering  <meyering@lucent.com>
97178
97179         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
97180         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
97181
97182 2001-11-01  Jim Meyering  <meyering@lucent.com>
97183
97184         * lib/dirfd.c, lib/dirfd.h: New files.
97185         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
97186
97187         * lib/hash.c (hash_print) [TESTING]: Clean up.
97188
97189 2001-10-22  Paul Eggert  <eggert@twinsun.com>
97190
97191         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
97192         to avoid a warning if -Wall.
97193
97194 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
97195
97196         * README: New file
97197         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
97198         (per RMS's instructions, this is now the canonical source)
97199         * lgpl/, gpl/: New directories.
97200
97201 2001-10-21  Paul Eggert  <eggert@twinsun.com>
97202
97203         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
97204
97205 2001-10-21  Jim Meyering  <meyering@lucent.com>
97206
97207         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
97208         this code would end up calling gettext even in packages built
97209         with --disable-nls.
97210         * lib/getopt.c (_): Likewise.
97211         * lib/regex.c (_): Likewise.
97212
97213 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97214
97215         * m4/error.m4 (jm_PREREQ_ERROR):
97216         Do not invoke AC_CHECK_FUNCS with strerror_r, as
97217         AC_FUNC_STRERROR_R does that.
97218         Check for strerror declaration.
97219
97220         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
97221         are supposed to have them these days.
97222         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
97223         Merge changes from latest Autoconf CVS.
97224         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
97225         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
97226         POSIX decided to standardize on the int flavor of strerror_r.
97227
97228 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97229
97230         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
97231         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
97232         Use strerror_r that is only a macro, even if it is not a function.
97233         (strerror): Check for HAVE_DECL_STRERROR before declaring.
97234         (private_strerror): Use prototypes, not old-style function definition.
97235         (print_errno_message): New function.
97236         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
97237         char*-flavored one.
97238         (error_tail, error, error_at_line): Use it.
97239
97240 2001-10-11  Jim Meyering  <meyering@lucent.com>
97241
97242         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
97243         and quote_n (1, ... to avoid clobbering a buffer.
97244
97245 2001-10-05  Jim Meyering  <meyering@lucent.com>
97246
97247         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
97248         hash-pjw.h.
97249         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
97250         * lib/hash-pjw.h: New file.
97251
97252 2001-09-30  Jim Meyering  <meyering@lucent.com>
97253
97254         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
97255         `struct fsstat' has the `f_fstypename' member.
97256         Use that to define FS_TYPE, which is now used to make
97257         the getfsstat link test tighter.
97258
97259 2001-09-30  Jim Meyering  <meyering@lucent.com>
97260
97261         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
97262         Include <sys/ucred.h>, for Apple Darwin.
97263         Include sys/mount.h and sys/fs_types.h only if available.
97264         (FS_TYPE): Define.
97265         (read_filesystem_list): Use FS_TYPE.
97266
97267 2001-09-29  Paul Eggert  <eggert@twinsun.com>
97268
97269         * lib/exclude.c (excluded_filename): 0 -> false, since it's
97270         a boolean context.
97271
97272 2001-09-29  Jim Meyering  <meyering@lucent.com>
97273
97274         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97275         [one-argument getmntent function]): Include stdio.h before mntent.h.
97276         SunOS 4.1.x needs it for the declaration of `FILE'.
97277         Patch by Volker Borchert.
97278
97279         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97280         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
97281         sys/fs_types.h, and make the link-test for getfsstat guard #include
97282         directives with appropriate #if HAVE_*_H tests so that we can
97283         detect getfsstat on Apple Darwin1.3.7 systems.
97284         Reported by Nelson Beebe.
97285         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
97286
97287 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97288
97289         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97290         #defines strtoimax.  Also treat the other strto* functions
97291         like strtoimax.
97292
97293         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97294         Check for strtoul and strtoumax,
97295         as those declarations are made even in the signed case.
97296         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
97297         Likewise, for strtol and strtoimax.
97298
97299 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97300
97301         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97302         #defines strtoimax.  Also treat the other strto* functions
97303         like strtoimax.
97304
97305         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
97306         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
97307         (strtoimax, strtoumax): Do not declare if already defined as a macro.
97308
97309 2001-09-26  Jim Meyering  <meyering@lucent.com>
97310
97311         Most macros in unlocked-io.h had the wrong number of arguments.
97312         * lib/gen-uio: New script.
97313         (USE_UNLOCKED_IO): Define to 1 if not already defined.
97314         * lib/unlocked-io.hin: Remove file.
97315         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
97316         rather than trying to embed it here.
97317         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
97318         Reported by Padraig Brady.
97319
97320 2001-09-25  Volker Borchert  <bt@teknon.de>
97321
97322         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
97323         `result'.
97324
97325 2001-09-24  Jim Meyering  <meyering@lucent.com>
97326
97327         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
97328
97329 2001-09-23  Jim Meyering  <meyering@lucent.com>
97330
97331         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
97332         instead of the mere test for existence of mntent.h.  The latter
97333         would get a false-positive on AIX 3.4 systems.
97334         In the outer getmntent if-block, don't die if neither of the getmntent
97335         tests succeeds.  Instead, just fall through and continue with the
97336         remaining tests.
97337
97338 2001-09-23  Jim Meyering  <meyering@lucent.com>
97339
97340         * lib/mountlist.c: Remove useless parentheses in #if directives.
97341         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
97342         the deprecated MOUNTED symbol is no longer defined in mntent.h.
97343
97344 2001-09-22  Jim Meyering  <meyering@lucent.com>
97345
97346         * m4/gettext.m4: New file.  From gettext.
97347         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
97348         * m4/progtest.m4: Likewise
97349         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
97350         * m4/glibc21.m4: Likewise.
97351
97352         * m4/libintl.m4: Remove.  No longer used.
97353
97354 2001-09-22  Jim Meyering  <meyering@lucent.com>
97355
97356         * lib/localcharset.c: Update from latest gettext.
97357         * lib/config.charset: Likewise.
97358
97359 2001-09-20  Jim Meyering  <meyering@lucent.com>
97360
97361         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
97362         strtoimax.
97363         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
97364         strtoumax.
97365
97366 2001-09-20  Jim Meyering  <meyering@lucent.com>
97367
97368         * lib/xstrtol.c (strtoimax): Guard declaration with
97369         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
97370         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
97371         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
97372         (strtoumax): Likewise, for completeness (it wasn't necessary).
97373
97374 2001-09-17  Paul Eggert  <eggert@twinsun.com>
97375
97376         * lib/strtoimax.c (HAVE_LONG_LONG):
97377         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
97378         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
97379         to work around bug in IBM C compiler.
97380
97381 2001-09-17  Jim Meyering  <meyering@lucent.com>
97382
97383         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
97384         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
97385         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
97386         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
97387         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
97388         whenever the right hand side need not be expanded by the shell.
97389
97390 2001-09-16  Paul Eggert  <eggert@twinsun.com>
97391
97392         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
97393         library.  It's not correct, as some older glibcs are buggy.
97394         fnmatch wasn't fixed until glibc 2.2.
97395
97396         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
97397         special shell magic here.
97398
97399 2001-09-16  Jim Meyering  <meyering@lucent.com>
97400
97401         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
97402         * m4/jm-macros.m4: Require it.
97403
97404 2001-09-16  Jim Meyering  <meyering@lucent.com>
97405
97406         * lib/mkdir.c: New file.
97407
97408 2001-09-15  Jim Meyering  <meyering@lucent.com>
97409
97410         * m4/jm-macros.m4: Check for help2man.
97411
97412 2001-09-11  Jim Meyering  <meyering@lucent.com>
97413
97414         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
97415         The body, by Paul Eggert, was moved here from configure.in.
97416         * m4/jm-macros.m4: Require UTILS_HOST_OS.
97417
97418 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97419
97420         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
97421         (jm_PREREQ): Use it.
97422
97423 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97424
97425         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
97426         Use ssize_t, not int, to store result of readlink.
97427         Check for ssize_t overflow as well as size_t overflow,
97428         as POSIX says the result of readlink is implementation-defined
97429         when ssize_t overflows.
97430         Remove unnecessary cast to char*.
97431         Use free+malloc instead of realloc, as the storage doesn't need
97432         to be preserved and it's clearer and can be more efficient that way.
97433         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
97434         * lib/xreadlink.h (xreadlink): Update prototype.
97435
97436 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97437
97438         * lib/xgetcwd.c: Revert some of the previous change; intead,
97439         fix the HAVE_GETCWD_NULL code to behave more like the
97440         !HAVE_GETCWD_NULL code used to.
97441
97442         Include "xalloc.h".
97443         (xgetcwd): Do not return NULL when memory is exhausted; instead,
97444         invoke xalloc_die.
97445
97446 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97447
97448         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
97449         sys/param.h, as pathmax.h includes them.
97450
97451 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97452
97453         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
97454         (jm_PREREQ_XGETCWD): New macro.
97455
97456         * m4/getcwd.m4: New file.
97457
97458 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97459
97460         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
97461         like the HAVE_GETCWD_NULL code.
97462         Include pathmax.h if not HAVE_GETCWD.
97463         Do not include xalloc.h.
97464         (INITIAL_BUFFER_SIZE): New symbol.
97465         Do not use xmalloc / xrealloc, since the caller is responsible for
97466         handling errors.  Preserve errno around `free' during failure.
97467         Do not overrun buffer when using getwd.
97468
97469 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97470
97471         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
97472         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
97473         getcwd (NULL, 0).
97474
97475 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97476
97477         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
97478         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
97479         spotted by Jim Meyering.
97480
97481 2001-09-03  Jim Meyering  <meyering@lucent.com>
97482
97483         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
97484         failure.
97485
97486 2001-09-02  Jim Meyering  <meyering@lucent.com>
97487
97488         * lib/error.c: Update from GNU libc.
97489
97490 2001-09-01  Jim Meyering  <meyering@lucent.com>
97491
97492         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
97493         Used by df.
97494
97495 2001-09-01  Jim Meyering  <meyering@lucent.com>
97496
97497         * lib/xreadlink.c: New file.
97498         * lib/xreadlink.h: New file.
97499         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
97500         xreadlink.h.
97501
97502         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
97503         doesn't conflict with sparc Solaris 7's definition in
97504         /usr/include/sys/int_types.h.
97505
97506         * lib/exclude.c: Use `""', not `<>' to #include non-system header
97507         files.
97508         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
97509         and strncasecmp as r-values.  Unixware didn't have declarations.
97510
97511 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97512
97513         * lib/xstrtol.h: Add copyright notice.
97514         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
97515         LONGINT_INVALID_SUFFIX_CHAR.
97516
97517 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97518
97519         * lib/xstrtol.c (strtoimax): New decl.
97520
97521 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97522
97523         * lib/xgetcwd.c: Don't include pathmax.h.
97524         Include stdlib.h and unistd.h if available.
97525         Include xalloc.h.
97526         (xmalloc, xstrdup, free): Remove decls.
97527         (xgetcwd): Don't assume sizes fit in unsigned.
97528         Check for overflow when computing sizes.
97529         Simplify reallocation code.
97530
97531 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97532
97533         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
97534         a directory's st_size can have an arbitrary value, so the old
97535         usage could waste an arbitrary amount of memory.  All uses
97536         changed.
97537         * lib/savedir.h: Update prototype.
97538
97539 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97540
97541         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
97542
97543         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
97544         old strtoimax.c.
97545
97546         Also, make the following further changes to make this file's
97547         configuration more similar to that of strtol.c:
97548         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
97549         (strtoumax, uintmax_t, strtoull, strtol): Remove.
97550         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
97551         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
97552         changed to signed values.
97553
97554         And make the following changes as well:
97555         Fix copyright notice, as 1999 was missing.
97556         (verify): New macro.
97557         (strtoimax): Check sizes at compile-time, not run-time.
97558         Prefer strtol to strtoll if both work.
97559         (main): Remove; it was not that useful and was a pain to maintain.
97560
97561         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
97562
97563 2001-08-31  Jim Meyering  <meyering@lucent.com>
97564
97565         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
97566         Use an initial, malloc'd, buffer of length 128 rather than
97567         a statically allocated one of length 1024.
97568
97569 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97570
97571         Simplify code, partly by assuming autoconf 2.52 semantics.
97572
97573         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
97574
97575         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
97576         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
97577         All uses removed.
97578         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
97579         Move AC_REQUIRE to next-to-top level, to avoid confusion.
97580         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
97581         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
97582         jm_AC_HEADER_INTTYPES_H.
97583         * m4/jm-macros.m4 (jm_MACROS): Likewise.
97584
97585         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
97586
97587         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97588         Quote first arg of AC_DEFUN.
97589         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
97590         since they are needed to parse the include file even if we need
97591         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
97592         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
97593         but with opposite signedness.
97594
97595 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97596
97597         Merge 'exclude' changes from tar 1.13.22.
97598         This fixes one or two unlikely storage allocation overflow bugs,
97599         but doesn't change user-visible behavior otherwise.
97600
97601 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97602
97603         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
97604         (jm_PREREQ_EXCLUDE): New macro.
97605
97606 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97607
97608         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
97609         tm to be declared.
97610
97611 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97612
97613         * lib/hash.c: Remove '2001' from copyright notice.
97614
97615 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97616
97617         * lib/full-write.h: New file.
97618         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
97619         * lib/full-write.c: Correct credits, as cccp.c no longer
97620         exists and anyway it was so heavily changed from the old cccp
97621         code as to be unrecognizable.  Include full-write.h.
97622         (full_write): Return size_t, with short writes meaning failure.
97623         All callers changed.  This fixes a bug with large buffers
97624         on 64-bit hosts.
97625         * lib/utime.c: Include full-write.h.
97626
97627 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97628
97629         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
97630         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
97631         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
97632         Include if available.
97633         (<xalloc.h>): Include
97634         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
97635         (verify): New macro.  Use it to verify that EXCLUDE macros do not
97636         collide with FNM macros.
97637         (struct patopts): New struct.
97638         (struct exclude): Use it, as exclude patterns now come with options.
97639         (new_exclude): Support above changes.
97640         (new_exclude, add_exclude_file):
97641         Initial size must now be a power of two to simplify overflow checking.
97642         (free_exclude, fnmatch_no_wildcards): New function.
97643         (excluded_filename): No longer requires options arg, as the options
97644         are determined by add_exclude.  Now returns bool, not int.
97645         (excluded_filename, add_exclude):
97646         Add support for the fancy new exclusion options.
97647         (add_exclude, add_exclude_file): Now takes int options arg.
97648         Check for arithmetic overflow when computing sizes.
97649         (add_exclude_file): xrealloc might modify errno, so don't
97650         realloc until after errno might be used.
97651
97652         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
97653         New macros.
97654         (free_exclude): New decl.
97655         (add_exclude, add_exclude_file): Now takes int options arg.
97656         (excluded_filename): No longer requires options arg, as the options
97657         are determined by add_exclude.  Now returns bool, not int.
97658
97659 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97660
97661         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
97662
97663 2001-08-27  Jim Meyering  <meyering@lucent.com>
97664
97665         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
97666
97667         * lib/version-etc.c (N_): Remove definition.
97668         Revert most of last change.
97669         Instead, simply don't mark the `Copyright...' string for translation.
97670         Based on advice from Paul Eggert.
97671
97672         * lib/strtoxmax.c: Tweak comment.
97673
97674 2001-08-26  Jim Meyering  <meyering@lucent.com>
97675
97676         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
97677
97678         * m4/xstrtoimax.m4: New file.
97679         * m4/xstrtoumax.m4: Add comments explaining why we
97680         AC_REPLACE_FUNCS(strtol).
97681
97682 2001-08-26  Jim Meyering  <meyering@lucent.com>
97683
97684         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
97685         of copyright with `%s' so translators don't get an untranslated
97686         message in 2002.
97687         (COPYRIGHT_YEAR): Define.
97688         (version_etc): Use fprintf rather than fputs.
97689         Suggestion from Ulrich Drepper.
97690
97691         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
97692
97693         * lib/strtoll.c: New file, from GNU libc.
97694         * lib/xstrtoimax.c: New file.
97695
97696         * lib/xstrtol.h: Add xstrtoimax.
97697         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
97698         * lib/strtoimax.c: New file.  Likewise, but first define
97699         STRTOUXMAX_SIGNED.
97700
97701         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
97702         ...
97703         * lib/strtoxmax.c: ... then renamed to this.
97704
97705 2001-08-18  Paul Eggert  <eggert@twinsun.com>
97706
97707         * m4/inttypes.m4: Add AC_PREREQ(2.13).
97708         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
97709         (jm_AC_TYPE_INTMAX_T): New macro.
97710         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
97711
97712         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
97713
97714         * m4/longlong.m4: Renamed from ulonglong.m4.
97715         * m4/inttypes.m4: Renamed from inttypes_h.m4.
97716         * m4/uintmax_t.m4: Removed.
97717
97718 2001-08-13  Paul Eggert  <eggert@twinsun.com>
97719
97720         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
97721         Port to Solaris 8, where 'sed' requires a space after the 'r'
97722         command, and where sh dislikes "$/".  Clean up the spacing a bit.
97723         Redirect output to $tmp just once.
97724
97725 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
97726
97727         * lib/addext.c (<errno.h>): Include.
97728         (errno): Declare if not defined.
97729         (addext): Work correctly when pathconf returns -1 and leaves
97730         errno alone because there is no limit.  Also, work even if
97731         pathconf returns a value greater than SIZE_MAX.
97732
97733 2001-08-12  Jim Meyering  <meyering@lucent.com>
97734
97735         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
97736         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
97737         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
97738         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
97739         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
97740         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
97741         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
97742         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
97743         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
97744         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
97745         utime.m4, utimes.m4, xstrtoumax.m4:
97746         Quote the first argument in each use of AC_DEFUN.
97747
97748 2001-08-12  Jim Meyering  <meyering@lucent.com>
97749
97750         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
97751         Simply `return getcwd (NULL, 0);'.
97752         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
97753         Use 1300 as initial value for length, not PATH_MAX.
97754
97755         * lib/pathmax.h: Clean up cpp syntax.
97756
97757 2001-08-12  Jim Meyering  <meyering@lucent.com>
97758
97759         * lib/gettimeofday.c: New file.
97760         * lib/gtod.h: New file.
97761         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
97762
97763 2001-08-05  Jim Meyering  <meyering@lucent.com>
97764
97765         * m4/jm-macros.m4: Require autoconf-2.52.
97766
97767 2001-08-04  Jim Meyering  <meyering@lucent.com>
97768
97769         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
97770         stmt, to get in sync with glibc.
97771
97772 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97773
97774         The following changes are from gettext 0.10.39 as maintained by
97775         Bruno Haible.
97776
97777         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
97778         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
97779         with inverted sense.  All uses changed.
97780
97781         * lib/mbswidth.c: Don't include <limits.h>.
97782         Include <stdlib.h> and <string.h> unconditionally.
97783         (iswcntrl, mbsinit, ISCNTRL): New macros.
97784         (mbsnwidth): Use K&R style function declarations.
97785         Don't bother checking for MB_LEN_MAX == 1, since the compiler
97786         can optimize it when MB_CUR_MAX == 1.
97787         The width of control characters is zero, not 1.
97788
97789 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97790
97791         The following changes are from gettext 0.10.39 as maintained by
97792         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
97793
97794         * m4/codeset.m4: Upgrade to serial AM1.
97795         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
97796         all uses changed.  Quote first arg of AC_DEFUN.
97797         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
97798
97799         * m4/iconv.m4: Upgrade to serial AM2.
97800         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
97801         Add --with-libconv-prefix.
97802         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
97803         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
97804         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
97805         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
97806         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
97807
97808         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
97809         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
97810         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
97811         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
97812         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
97813         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
97814         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
97815         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
97816         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
97817
97818         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
97819         string.h any more.
97820
97821         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
97822         not the default value.
97823
97824         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
97825         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
97826         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
97827         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
97828         Also check for iswcntrl, used for wcwidth fallback.
97829         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
97830         to Autoconf 2.13.
97831
97832 2001-08-03  Jim Meyering  <meyering@lucent.com>
97833
97834         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
97835         as it was in the original.  Reported by Paul Eggert.
97836
97837 2001-07-16  Jim Meyering  <meyering@lucent.com>
97838
97839         * m4/gettimeofday.m4: New file.
97840         Prompted by a report from Bernhard Baehr.
97841
97842 2001-07-15  Jim Meyering  <meyering@lucent.com>
97843
97844         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
97845         stuff. Now it's in ../Makefile.cfg.
97846
97847 2001-07-15  Jim Meyering  <meyering@lucent.com>
97848
97849         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
97850         (BUILT_SOURCES): Add unlocked-io.h.
97851         (io_functions): Define.
97852         (unlocked-io.h): New rule.
97853         (DISTCLEANFILES): Add unlocked-io.h.
97854         (all-local): Depend on unlocked-io.h, to ensure it is created.
97855
97856         * lib/unlocked-io.hin: New file
97857
97858         * lib/regex.c: Update from glibc.
97859
97860 2001-07-05  Jim Meyering  <meyering@lucent.com>
97861
97862         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
97863         recommendation.
97864         (libfetish_a_SOURCES): Put all .h files here instead.
97865         Remove a thus-exposed (better checks in automake) duplicate and
97866         two unnecessary .h files.
97867
97868 2001-07-04  Jim Meyering  <meyering@lucent.com>
97869
97870         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
97871         that generates jm-glibc-io.m4 so that it doesn't trigger any make
97872         distcheck failure.
97873
97874 2001-07-02  Jim Meyering  <meyering@lucent.com>
97875
97876         The following changes were prompted by suggestions from Bruno Haible.
97877
97878         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
97879         is now generated.
97880         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
97881         definition of EXTRA_DIST.
97882         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
97883         ensure that the generated file is created/updated whenever the list
97884         of $(unlocked_functions) is changed.
97885         (jm-glibc-io.m4): New rule.
97886         (unlocked-io.h): New rule -- currently unused.
97887
97888 2001-06-24  Jim Meyering  <meyering@lucent.com>
97889
97890         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
97891         unmatched right bracket, rather than kludging it with an extra,
97892         falsely-matching quote in a comment.  Patch by Akim Demaille.
97893
97894 2001-06-11  Jim Meyering  <meyering@lucent.com>
97895
97896         * lib/regex.c: Update from GNU libc.
97897
97898 2001-05-27  Jim Meyering  <meyering@lucent.com>
97899
97900         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
97901         Check for ut_type in struct utmp.
97902
97903 2001-05-27  Jim Meyering  <meyering@lucent.com>
97904
97905         * lib/readutmp.h (UT_TYPE): Define.
97906
97907 2001-05-24  Jim Meyering  <meyering@lucent.com>
97908
97909         * lib/argmatch.c: Include "quote.h".
97910         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
97911         quote function.  Reported by Göran Uddeborg.
97912
97913 2001-05-22  Jim Meyering  <meyering@lucent.com>
97914
97915         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
97916         now that we use the package-supplied version unconditionally.
97917         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
97918
97919 2001-05-21  Jim Meyering  <meyering@lucent.com>
97920
97921         * m4/regex.m4: Change a couple backticks to single quotes to avoid
97922         shell syntax errors.
97923
97924 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97925
97926         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
97927
97928 2001-05-20  Paul Eggert  <eggert@twinsun.com>
97929
97930         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
97931         Don't bother to check library strftime, since
97932         we'll be using our own my_strftime function anyway.
97933         Define my_strftime instead of strftime.
97934
97935 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
97936
97937         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
97938         which is not yet declared.
97939
97940 2001-05-15  Jim Meyering  <meyering@lucent.com>
97941
97942         * m4/regex.m4: Use proper quoting so brackets appear in the test
97943         program.
97944         Reported by, and with help from, Bruno Haible.
97945
97946 2001-05-13  Jim Meyering  <meyering@lucent.com>
97947
97948         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
97949         undefined.
97950
97951 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97952
97953         dirname code cleanup.  base_name now behaves more compatibly
97954         with POSIX basename when given file names that have trailing
97955         slashes, and similarly for dir_name.  Add new primitives
97956         base_len and dir_len.  Put the directory-name-related decls
97957         into dirname.h.
97958
97959         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
97960         * lib/backupfile.c (base_name): Likewise.
97961         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
97962         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
97963         * lib/makepath.c (strip_trailing_slashes): Likewise.
97964         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
97965         ISSLASH): Likewise.
97966         * lib/rename.c (strip_trailing_slashes): Likewise.
97967         * lib/same.c (base_name): Likewise.
97968         * lib/stripslash.c (ISSLASH): Likewise.
97969
97970         * lib/addext.c: Include <dirname.h> after size_t is defined.
97971         * lib/backupfile.c: Likewise.
97972
97973         * lib/addext.c (addext): Use base_len to trim redundant
97974         trailing slashes instead of doing it ourselves.
97975         But do not trim the last slash if it is not redundant.
97976
97977         * lib/backupfile.c (find_backup_file_name,
97978         max_backup_version): Use base_len instead of rolling it ourselves.
97979         Handle the case of "" and (on DOS) "C:" correctly.
97980
97981         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
97982         needed. Include <string.h>, <dirname.h>.
97983         (base_name): Allow file names ending in slashes, other than names
97984         that are all slashes.  In this case, return the basename followed
97985         by the slashes.  This is more general, and can be used in places
97986         where the original base_name purposely had an assertion failure.
97987         (base_len): New function.
97988
97989         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
97990         Do not include <assert.h>; no longer needed.
97991         Include xalloc.h.
97992         (memrchr): Remove decl.
97993         (dir_name_r): Remove.
97994         (dir_len): Renamed from dirlen.  All callers changed.
97995         Rewrite in terms of base_name, for simplicity and consistency.
97996         (dir_name): Never return NULL.  All callers changed.
97997         Do not include <stdlib.h> in test program; no longer needed.
97998         return 0; is fine for test program.
97999
98000         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
98001         New macros.
98002         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
98003
98004         * lib/path-concat.c (path_concat): Use base_len to compute
98005         base length, not strlen; this means we cannot rely on memcpy
98006         to null-terminate.
98007
98008         * lib/same.c (STREQ): Remove.
98009         (same_name): Handle the case where the basename ends in trailing '/'.
98010
98011         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
98012         a slash was stripped.  Do not strip the last slash after a
98013         file system prefix.
98014
98015 2001-05-11  Paul Eggert  <eggert@twinsun.com>
98016
98017         * lib/Makefile.am (libfetish_a_SOURCES):
98018         Add strftime.c, since we now compile it on all hosts.
98019
98020         * lib/strftime.c (my_strftime):
98021         Define to nstrftime if emacs, but only if my_strftime is not defined.
98022         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
98023         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
98024         Add one more extra argument: a nanoseconds value.
98025         All uses changed.
98026         (ns): New macro.
98027         (my_strftime function): Add %N format.
98028         (emacs_strftimeu): Renamed from emacs_strftime,
98029         with extra ut argument.
98030
98031 2001-05-09  Paul Eggert  <eggert@twinsun.com>
98032
98033         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
98034
98035 2001-04-21  Jim Meyering  <meyering@lucent.com>
98036
98037         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
98038         doesn't interfere.
98039
98040 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
98041
98042         * m4/ftruncate.m4: Check for chsize.
98043         Link with ftruncate.o unconditionally if ftruncate is missing.
98044         This was required when cross-compiling to i586-mingw32msvc.
98045
98046 2001-04-08  Jim Meyering  <meyering@lucent.com>
98047
98048         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
98049         recomputed; that's necessary when the offset spans a DST transition.
98050         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
98051
98052 2001-04-02  Jim Meyering  <meyering@lucent.com>
98053
98054         * lib/regex.h, regex.c: Update from GNU libc.
98055
98056 2001-03-24  Jim Meyering  <meyering@lucent.com>
98057
98058         * m4/jm-macros.m4: Require autoconf-2.49d.
98059
98060 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
98061
98062         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
98063
98064 2001-03-19  Paul Eggert  <eggert@twinsun.com>
98065
98066         * lib/version-etc.c (version_etc_copyright): Update to 2001.
98067
98068 2001-03-17  Jim Meyering  <meyering@lucent.com>
98069
98070         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
98071         now that the version in autoconf is equivalent.
98072         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
98073
98074         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
98075         Suggestion from Akim Demaille.
98076
98077         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
98078         (jm_PREREQ_TEMPNAME): New function.
98079
98080 2001-03-16  Paul Eggert  <eggert@twinsun.com>
98081
98082         * lib/tempname.c (uint64_t): Define to uintmax_t if
98083         not defined, and if UINT64_MAX is not defined.
98084         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
98085         Reported by John David Anglin.
98086
98087 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
98088
98089         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
98090         resolve alias if codeset is empty.
98091         * lib/config.charset (BeOS): Use wildcard syntax.
98092
98093 2001-03-13  Jim Meyering  <meyering@lucent.com>
98094
98095         * lib/path-concat.c (path_concat)
98096         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
98097         concatenating e.g., `C:' and `foo'.
98098         From Bruno Haible.
98099
98100 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98101
98102         * lib/localcharset.c (locale_charset): Don't use
98103         setlocale(LC_CTYPE,NULL). Don't return NULL.
98104         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
98105
98106 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98107
98108         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
98109         support for DOS/DJGPP.
98110
98111 2001-03-01  Paul Eggert  <eggert@twinsun.com>
98112
98113         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
98114         lacks mkstemp.  Compile our own tempname.c if we compile our own
98115         mkstemp.c, as mkstemp relies on tempname.
98116
98117 2001-03-01  Jim Meyering  <meyering@lucent.com>
98118
98119         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
98120         AH_VERBATIM really does output its argument verbatim.
98121
98122 2001-02-28  Paul Eggert  <eggert@twinsun.com>
98123
98124         * lib/Makefile.am (libfetish_a_SOURCES):
98125         Add dup-safer.c, fopen-safer.c.
98126         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
98127
98128         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
98129         * lib/unistd-safer.h: New files.
98130
98131 2001-02-25  Paul Eggert  <eggert@twinsun.com>
98132
98133         The mkstemp replacement is taken from glibc 2.2.2, with some
98134         portability fixes for use outside glibc, as follows:
98135
98136         * lib/tempname.c (struct_stat64): New macro.
98137         (direxists, __gen_tempname): Use it.
98138         This avoids a portability problem with Solaris 8.
98139
98140         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
98141         (<stddef.h>, <stdint.h>, <string.h>):
98142         Include only if STDC_HEADERS || _LIBC.
98143         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
98144         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
98145         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
98146         (__set_errno): Define this macro if <errno.h> doesn't.
98147         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
98148         Define these macros if <stdio.h> doesn't.
98149         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
98150         Define these macros if <sys/stat.h>
98151         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
98152         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
98153         __xstat64): Define if not _LIBC.
98154         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
98155         (__gen_tempname): Invoke gettimeofday only if
98156         HAVE_GETTIMEOFDAY || _LIBC;
98157         otherwise, fall back on plain "time".
98158         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
98159
98160         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
98161
98162         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
98163
98164 2001-02-18  Paul Eggert  <eggert@twinsun.com>
98165
98166         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
98167
98168 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98169
98170         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
98171         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
98172         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
98173         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
98174
98175 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98176
98177         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
98178         Remove workaround macros for hosts that have mbrtowc but not
98179         mbstate_t, as we now insist on proper declarations for both
98180         before using mbrtowc.
98181
98182 2001-02-17  Jim Meyering  <meyering@lucent.com>
98183
98184         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
98185         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
98186         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
98187         UnixWare 7.1.1.
98188
98189         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
98190         rather than AC_CACHE_VAL.
98191
98192 2001-02-17  Jim Meyering  <meyering@lucent.com>
98193
98194         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
98195         around included file name.
98196
98197         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
98198
98199         * lib/strftime.c: Update from GNU libc (the only changes were to
98200         comments).
98201
98202 2001-02-17  Jim Meyering  <meyering@lucent.com>
98203
98204         * lib/regex.c: Update from libc.
98205
98206 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
98207
98208         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
98209         clash.
98210
98211 2001-02-16  Paul Eggert  <eggert@twinsun.com>
98212
98213         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
98214         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
98215         Reported by Mark Hounschell via Paul Eggert.
98216
98217 2001-02-07  Jim Meyering  <meyering@lucent.com>
98218
98219         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
98220
98221 2001-02-05  Jim Meyering  <meyering@lucent.com>
98222
98223         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
98224         it includes the patch required for `large file' support with at least
98225         HP-UX's 10.20 /bin/cc.
98226
98227 2001-02-03  Jim Meyering  <meyering@lucent.com>
98228
98229         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
98230         AS_IF, now that it works once again (mysteriously).
98231         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98232
98233 2001-01-30  Jim Meyering  <meyering@lucent.com>
98234
98235         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
98236         * m4/chown.m4: Rename conftestchown to conftest.chown.
98237         * m4/rename.m4: s/conftestdir/conftest.d1/ and
98238         s/conftestdir2/conftest.d2/.
98239         * m4/utimes.m4: s/conftestdata/conftest.data/
98240         Inspired by Pavel Roskin's change in autoconf.
98241
98242 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
98243
98244         * lib/config.charset: Update for FreeBSD 4.2.
98245
98246 2001-01-27  Jim Meyering  <meyering@lucent.com>
98247
98248         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
98249         a use of AS_IF.
98250         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98251
98252 2001-01-26  Jim Meyering  <meyering@lucent.com>
98253
98254         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
98255         quotearg.c includes it.
98256
98257 2001-01-26  Jim Meyering  <meyering@lucent.com>
98258
98259         * lib/quotearg.c: Include stddef.h.
98260         * lib/quote.c: Include stddef.h.
98261         Reported by Axel Kittenberger.
98262
98263         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
98264         line in double quotes so that it evokes a better diagnostic.
98265         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
98266         Reported by Axel Kittenberger.
98267
98268 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
98269
98270         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
98271         as if it was a `charset'.
98272
98273 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98274
98275         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
98276         has const.
98277
98278 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98279
98280         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
98281         to avoid a warning.  Add back 'const' to inptr.
98282
98283 2001-01-20  Jim Meyering  <meyering@lucent.com>
98284
98285         Be sure that headers are checked before used in code compiled
98286         for the type checks.
98287         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
98288         In place of that, invoke jm_CHECK_ALL_TYPES.
98289         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
98290         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
98291         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
98292         The check for ssize_t was mistakenly run before the test for unistd.h.
98293
98294         The configure-time check for stdbool.h was missing.
98295         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
98296         (jm_PREREQ_HASH): New function.
98297
98298 2001-01-17  Jim Meyering  <meyering@lucent.com>
98299
98300         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
98301         for autoconf-2.49c.
98302         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
98303
98304 2001-01-16  Jim Meyering  <meyering@lucent.com>
98305
98306         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
98307         From Bruno Haible.
98308
98309 2001-01-14  Jim Meyering  <meyering@lucent.com>
98310
98311         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
98312         foo and bar.  Create conftestdir/ in the script, not in the C code.
98313         Remove directories in the script, not in the C code.
98314         Remove conftestdir{,2} before trying to create the directory.
98315         Make the entire configure script fail if the mkdir fails.
98316
98317 2001-01-14  Jim Meyering  <meyering@lucent.com>
98318
98319         * lib/rename.c: New file.  From Volker Borchert.
98320         Include stdlib.h, string.h or strings.h, and xalloc.h.
98321         Use strip_trailing_slashes rather than open-coding it.
98322
98323 2001-01-03  Paul Eggert  <eggert@twinsun.com>
98324
98325         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
98326
98327 2001-01-03  Jim Meyering  <meyering@lucent.com>
98328
98329         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
98330         of local `inptr' to avoid warning with some system declarations of
98331         iconv.
98332
98333 2001-01-02  Volker Borchert  <bt@teknon.de>
98334
98335         * m4/rename.m4: New file.
98336         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
98337
98338 2001-01-01  Jim Meyering  <meyering@lucent.com>
98339
98340         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
98341         even on systems with utmpx.h.  It's necessary for the declaration of
98342         utmp's ut_user member.  Reported by Andreas Jaeger.
98343
98344         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
98345         available. They are required for the declarations of getgrgid and
98346         getpwuid resp.
98347         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
98348         Reported by Andreas Jaeger.
98349
98350 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
98351
98352         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
98353         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
98354         so `make install' also works in VPATH builds.
98355
98356 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
98357
98358         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
98359         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
98360         can be used in subdirectories.
98361
98362 2000-12-29  Paul Eggert  <eggert@twinsun.com>
98363
98364         * lib/modechange.c: Do not assume that mode_t uses the
98365         traditional octal encoding.  E.g. "chmod 1 FOO" should set
98366         the other-execute bit of FOO even if S_IXOTH != 1.
98367
98368         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
98369         WOTH, XOTH, ALLM): New macros.
98370         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
98371          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
98372         Use them.
98373         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
98374         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
98375         (mode_compile):
98376         No need to use uintmax_t; unsigned long is long enough.
98377         Don't bother to get suffix since we don't use it.
98378
98379 2000-12-26  Jim Meyering  <meyering@lucent.com>
98380
98381         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
98382         better with autoheader.
98383
98384 2000-12-24  Jim Meyering  <meyering@lucent.com>
98385
98386         * lib/hash.c (is_prime): Return explicit boolean values.
98387         (hash_get_first): Return NULL to appease Irix5.6's 89.
98388         Reported by Nelson Beebe.
98389
98390 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
98391
98392         * lib/localcharset.c (locale_charset): Add support for Win32.
98393
98394 2000-12-18  Paul Eggert  <eggert@twinsun.com>
98395
98396         * lib/physmem.h, lib/physmem.c: New files.
98397
98398         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
98399         (noinst_HEADERS): Add physmem.h.
98400
98401         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
98402         't' for compatibility with Solaris 8 sort.
98403
98404 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
98405
98406         * lib/config.charset: Add support for BeOS.
98407
98408 2000-12-17  Jim Meyering  <meyering@lucent.com>
98409
98410         * m4/dos.m4 (jm_AC_DOS): New file and macro.
98411         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
98412
98413 2000-12-16  Jim Meyering  <meyering@lucent.com>
98414
98415         This bug had a serious impact on chown: `chown N:M FILE' (for integer
98416         N and M) would have treated it like `chown N:N FILE'.
98417
98418         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
98419
98420 2000-12-16  Jim Meyering  <meyering@lucent.com>
98421
98422         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
98423         SHELLS_FILE to a file name that's useful on djgpp systems.
98424         Include stdlib.h.
98425         (ADDITIONAL_DEFAULT_SHELLS): Define.
98426         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
98427         Based mostly on a patch from Prashant TR.
98428
98429 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
98430
98431         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
98432         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
98433         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
98434
98435 2000-12-08  Andreas Schwab  <schwab@suse.de>
98436
98437         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
98438         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
98439
98440 2000-12-07  Jim Meyering  <meyering@lucent.com>
98441
98442         * lib/stripslash.c (ISSLASH): Define.
98443         (strip_trailing_slashes): Use ISSLASH rather than comparing against
98444         `/'.
98445         From Prashant TR.
98446
98447         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
98448         (dir_name_r): Declare this function as static.
98449         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
98450         manifest itself on a name containing a mix of slashes and
98451         backslashes.
98452         Make this function work with names starting with a DOS-style
98453         drive letter and colon prefix.
98454         (dir_name): Append `.' if necessary.
98455         Based mostly on patches from Prashant TR and Eli Zaretskii.
98456
98457         * lib/dirname.h (dir_name_r): Remove prototype.
98458
98459 2000-12-06  Paul Eggert  <eggert@twinsun.com>
98460
98461         * m4/off_t-format.m4: Remove this file.
98462         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
98463
98464 2000-12-06  Jim Meyering  <meyering@lucent.com>
98465
98466         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
98467         replacement strtoull, we may well need the replacement strtoul, too.
98468         Check for declarations of strtoul and strtoull.
98469         Check for strtol.  Mainly as a cue to cause automake to include
98470         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
98471         Check for limits.h -- strtol.c needs it.
98472
98473 2000-12-05  Jim Meyering  <meyering@lucent.com>
98474
98475         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
98476
98477 2000-12-04  Jim Meyering  <meyering@lucent.com>
98478
98479         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
98480         Also include memory.h, stdlib.h, unistd.h if appropriate.
98481         Reported by Andreas Jaeger (conflicting declaration of malloc).
98482
98483 2000-12-02  Jim Meyering  <meyering@lucent.com>
98484
98485         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
98486         * m4/jm-macros.m4 (jm_MACROS): require it.
98487
98488 2000-12-02  Jim Meyering  <meyering@lucent.com>
98489
98490         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
98491
98492 2000-12-01  Paul Eggert  <eggert@twinsun.com>
98493
98494         * lib/memrchr.c: Include <config.h> before any system include file.
98495
98496 2000-11-30  Jim Meyering  <meyering@lucent.com>
98497
98498         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
98499
98500 2000-11-30  Jim Meyering  <meyering@lucent.com>
98501
98502         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
98503
98504 2000-11-29  Paul Eggert  <eggert@twinsun.com>
98505
98506         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
98507
98508 2000-11-26  Jim Meyering  <meyering@lucent.com>
98509
98510         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
98511
98512 2000-11-22  Paul Eggert  <eggert@twinsun.com>
98513
98514         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
98515         size of (size_t) -1; it's not portable.
98516
98517 2000-11-17  Jim Meyering  <meyering@lucent.com>
98518
98519         * lib/strstr.c: Update from GNU libc.
98520
98521 2000-11-17  Akim Demaille  <akim@epita.fr>
98522
98523         * lib/obstack.h: Formatting changes.
98524         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
98525         prevent type checking.
98526         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
98527         cast the value to (void *): assigning a `foo *' to a `void *'
98528         variable is valid.
98529         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
98530
98531 2000-11-16  Jim Meyering  <meyering@lucent.com>
98532
98533         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
98534
98535 2000-11-11  Jim Meyering  <meyering@lucent.com>
98536
98537         * lib/error.c: Add a couple #includes, merging from GNU libc version.
98538
98539 2000-11-10  Jim Meyering  <meyering@lucent.com>
98540
98541         * lib/obstack.h: Update from GNU libc.
98542         * lib/obstack.c: Likewise.
98543
98544 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
98545
98546         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
98547
98548 2000-11-06  Paul Eggert  <eggert@twinsun.com>
98549
98550         * lib/getusershell.c (setusershell): Use rewind rather than
98551         fseek/fseeko, to avoid configuration hassles with fseeko.
98552         Don't bother opening SHELLS_FILE if shellstream is NULL;
98553         it's not necessary.
98554
98555 2000-11-05  Jim Meyering  <meyering@lucent.com>
98556
98557         * lib/makepath.h (make_dir): Declare.
98558         * lib/makepath.c (make_dir): Remove `static' attribute.
98559         Tweak a comment.
98560
98561 2000-11-04  Jim Meyering  <meyering@lucent.com>
98562
98563         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
98564
98565 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
98566
98567         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
98568         last one in a bucket, advance to the next bucket.
98569
98570 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
98571
98572         * lib/fnmatch.c: Do not comment out all the code if we are using
98573         the GNU C library, because in some cases we are replacing buggy
98574         code in the GNU C library itself.
98575
98576 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
98577
98578         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
98579         (regex_compile): Catch bogus \(\1\).
98580
98581 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98582
98583         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
98584         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
98585         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
98586
98587 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98588
98589         * lib/error.h, getline.h, modechange.h:
98590         Remove "2000" from Copyright line, as the file hasn't been
98591         changed this year other than in the copyright notice.
98592
98593         * lib/xalloc.h: Add "2000" to Copyright line, as this file
98594         was changed this year.
98595
98596 2000-10-29  Jim Meyering  <meyering@lucent.com>
98597
98598         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
98599         renaming.
98600         * m4/ls-mntd-fs.m4: Likewise
98601
98602 2000-10-29  Jim Meyering  <meyering@lucent.com>
98603
98604         * lib/xstat.in: Fix grammar in comment.
98605
98606 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
98607
98608         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
98609         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
98610         doesn't define __restrict_arr.
98611
98612 2000-10-28  Jim Meyering  <meyering@lucent.com>
98613
98614         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
98615         (jm_PREREQ_MEMCHR): New function.
98616
98617 2000-10-28  Jim Meyering  <meyering@lucent.com>
98618
98619         * lib/memchr.c: Update from libc.
98620         Adjust for portability:
98621         [HAVE_STDLIB_H]: Include stdlib.h.
98622         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
98623         Undef __memchr, too.
98624         [!weak_alias]: Define __memchr to memchr.
98625
98626         * lib/regex.c: Update from libc.
98627         * lib/regex.h: Likewise.
98628         * lib/getopt1.c: Likewise.
98629         * lib/memcmp.c: Likewise.
98630
98631         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
98632         Avoid using fseek, when possible -- it's broken by design.
98633         Patch by Ulrich Drepper.
98634
98635 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
98636
98637         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
98638         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
98639         Giving in to popular pressure to shut up the compiler with casts.
98640
98641 2000-10-26  Jim Meyering  <meyering@lucent.com>
98642
98643         * lib/strftime.c: Update from libc.
98644
98645 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
98646
98647         * regex.c: More `unsigned char' -> `re_char' changes.
98648         Also change several `int' into `re_wchar_t'.
98649         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
98650         (PUSH_FAILURE_POINTER): Don't cast any more.
98651         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
98652         We want GCC to complain, since this piece of code makes
98653         re_match non-reentrant, which *should* be fixed.
98654         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
98655         (EXTEND_BUFFER): Use RETALLOC.
98656         (SET_LIST_BIT): Don't cast.
98657         (re_wchar_t): New type.
98658         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
98659         that those two functions will always properly return.
98660         (IMMEDIATE_QUIT_CHECK): Cast to void.
98661         (analyse_first): Use recursion rather than an explicit stack.
98662         (re_compile_fastmap): Can't fail anymore.
98663         (re_search_2): Don't check re_compile_fastmap for failure.
98664         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
98665         Now also sets the new value (passed in a new argument).
98666         (re_match_2_internal): Use it.
98667         Also, use a new var `reg' of type size_t when looping through regs
98668         rather than reuse the inappropriate `mcnt'.
98669
98670 2000-10-25  Jim Meyering  <meyering@lucent.com>
98671
98672         * lib/obstack.c: Update from libc.
98673
98674 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
98675
98676         * regex.c (regex_compile): Change the way of handling a range from
98677         a char less than 256 to a char not less than 256.
98678
98679 2000-10-24  Andrew Innes  <andrewi@gnu.org>
98680
98681         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
98682         NT-Emacs only.
98683         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
98684         so that re_search functions only quit when callers expect them to.
98685
98686 2000-10-23  Jim Meyering  <meyering@lucent.com>
98687
98688         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
98689         wrong.  That set_locale call must not have any side effects.
98690         From Paul Eggert.
98691
98692 2000-10-22  Jim Meyering  <meyering@lucent.com>
98693
98694         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
98695         [CYCLIC]: Remove now-unused definition.
98696
98697         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
98698         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
98699         Suggestion from Ulrich Drepper.
98700
98701 2000-10-21  Jim Meyering  <meyering@lucent.com>
98702
98703         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
98704         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
98705         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
98706
98707 2000-10-21  Jim Meyering  <meyering@lucent.com>
98708
98709         * lib/dirname.c (memrchr): Declare if necessary.
98710         (dir_name): Remove the restriction that there be no
98711         trailing slashes.  Now, this code skips past them, effectively
98712         ignoring them.
98713         [TEST_DIRNAME] (main): New unit tests.
98714
98715         * lib/memrchr.c: New file from GNU libc.
98716         Undef __memrchr, too.
98717         [!weak_alias]: Define __memrchr to memrchr.
98718         Guard weak_alias use with `#ifdef weak_alias'.
98719
98720 2000-10-21  Jim Meyering  <meyering@lucent.com>
98721
98722         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
98723         (dir_name): Use dir_name_r.
98724         * lib/dirname.h (dir_name_r): Declare it.
98725
98726 2000-10-17  Jim Meyering  <meyering@lucent.com>
98727
98728         * lib/quote.h (PARAMS): Define and use.
98729         Reported by Akim Demaille.
98730
98731         * lib/getopt.c: Update from libc.
98732
98733 2000-10-16  Jim Meyering  <meyering@lucent.com>
98734
98735         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
98736         setlocale.
98737         From Jan Fedak.
98738
98739 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
98740
98741         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
98742
98743 2000-09-25  Jim Meyering  <meyering@lucent.com>
98744
98745         * lib/md5.h (rol): Define (from GnuPG).
98746
98747         * lib/sha.c: Give credit (GnuPG) where due.
98748         (M): Use rol rather than open-coding it.
98749         Add a FIXME comment.
98750
98751 2000-09-21  Jim Meyering  <meyering@lucent.com>
98752
98753         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
98754         Reported by Michael Stone.
98755
98756 2000-09-20  Jim Meyering  <meyering@lucent.com>
98757
98758         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
98759         (noinst_HEADERS): Add sha.h.
98760         Based on code from Scott G. Miller and from GnuPG.
98761
98762 2000-09-18  Jim Meyering  <meyering@lucent.com>
98763
98764         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
98765         LIBS. Otherwise, everyone ends up linking with -lelf for some
98766         configurations.
98767         Reported by Mike Stone.
98768
98769 2000-09-15  Jim Meyering  <meyering@lucent.com>
98770
98771         * lib/regex.c: Update from libc.
98772
98773 2000-09-10  Jim Meyering  <meyering@lucent.com>
98774
98775         * lib/getopt.c (_getopt_internal): Update from glibc.
98776
98777 2000-09-09  Jim Meyering  <meyering@lucent.com>
98778
98779         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
98780         think it should be used as a general replacement for isascii.
98781         * lib/fnmatch.c: Likewise.
98782         * lib/mbswidth.c: Likewise
98783         * lib/regex.c: Likewise.
98784
98785         Don't use atoi.
98786         * lib/userspec.c: Include sys/param.h and limits.h.
98787         Include xstrtol.h.
98788         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
98789         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
98790         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
98791         UID, GID.  Check range.
98792
98793 2000-09-06  Jim Meyering  <meyering@lucent.com>
98794
98795         * lib/getopt.c (_getopt_internal): Update from glibc.
98796
98797 2000-08-30  Jim Meyering  <meyering@lucent.com>
98798
98799         * lib/strftime.c: Merge in changes from GNU libc.
98800
98801 2000-08-26  Jim Meyering  <meyering@lucent.com>
98802
98803         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
98804         * m4/fpending.m4: New file.
98805
98806 2000-08-26  Jim Meyering  <meyering@lucent.com>
98807
98808         * lib/closeout.c: Include "__fpending.h".
98809         (close_stdout_status): Return right away if there's nothing to flush.
98810
98811         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
98812         * lib/__fpending.c: New file.
98813         * lib/__fpending.h: New file.
98814
98815 2000-08-20  Jim Meyering  <meyering@lucent.com>
98816
98817         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
98818         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
98819         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
98820
98821 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
98822
98823         Improve fileutils installation on systems where running
98824         programs (like install) can't be unlinked.
98825         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
98826         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
98827
98828 2000-08-07  Paul Eggert  <eggert@twinsun.com>
98829
98830         Standardize on "memory exhausted" instead of "Memory exhausted"
98831         or "virtual memory exhausted".
98832         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
98833         "virtual memory exhausted".
98834         * lib/same.c (same_name): Invoke xalloc_die instead of printing
98835         our own message.
98836         * lib/userspec.c (parse_user_spec): Likewise.
98837         * lib/bumpalloc.h: comment fix
98838         * lib/same.c, userspec.c: Include xalloc.h.
98839
98840         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
98841         not char *const and pointing to a constant array.
98842         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
98843         (xrealloc): Comment fix.
98844
98845         * lib/userspec.c (parse_user_spec):
98846         Don't translate a message until just before returning,
98847         to avoid unnecessary translation.
98848
98849 2000-08-07  Jim Meyering  <meyering@lucent.com>
98850
98851         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
98852         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
98853         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
98854         getgroups.c, gethostname.c, getopt.h, group-member.c,
98855         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
98856         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
98857         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
98858         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
98859         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
98860         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
98861         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
98862         yesno.c: Back out Copyright date changes for each file with no change
98863         this year.  This eases coordination with other programs using the same
98864         source code modules.  From Paul Eggert.
98865
98866 2000-08-06  Paul Eggert  <eggert@twinsun.com>
98867
98868         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
98869         not char, for compatibility with glibc 2.1.3 strftime.c.
98870
98871 2000-08-03  Greg McGary  <greg@mcgary.org>
98872
98873         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
98874         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
98875         (EXTEND_BUFFER): Use them.
98876
98877 2000-08-01  Jim Meyering  <meyering@lucent.com>
98878
98879         * lib/dirname.c (ISSLASH): Define.
98880         (BACKSLASH_IS_PATH_SEPARATOR): Define.
98881         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
98882         both `\' and `/' may be use as path separators.
98883         Based on a patch from Prashant TR.
98884
98885 2000-07-31  Paul Eggert  <eggert@twinsun.com>
98886
98887         * lib/quotearg.c (quotearg_n_options): Don't make the initial
98888         slot vector a constant, since it might get modified.
98889
98890 2000-07-31  Jim Meyering  <meyering@lucent.com>
98891
98892         * lib/xmalloc.c: Use `virtual memory exhausted', not
98893         `Memory exhausted'.
98894         * lib/obstack.c (print_and_abort): Likewise.
98895
98896 2000-07-30  Paul Eggert  <eggert@twinsun.com>
98897
98898         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
98899         buffer, so that the caller can always quote one small
98900         component of a "memory exhausted" message in slot 0.
98901         From a suggestion by Jim Meyering.
98902
98903 2000-07-30  Jim Meyering  <meyering@lucent.com>
98904
98905         * lib/makepath.c (make_path): Quote the other instance, too.
98906
98907         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
98908         (STATIC_BUF_SIZE): Define.
98909         (quotearg_n_options): Use only statically allocated storage when
98910         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
98911         than STATIC_BUF_SIZE.
98912
98913 2000-07-29  Jim Meyering  <meyering@lucent.com>
98914
98915         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
98916         * lib/dirname.c (dir_name): Likewise.
98917
98918         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
98919         `/'.
98920
98921         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
98922         (dir_name): Assert that there are no trailing slashes.
98923
98924 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
98925
98926         * lib/mbswidth.h (mbswidth): Add a flags argument.
98927         (mbswidth): New declaration.
98928         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
98929         * lib/mbswidth.c (mbswidth): Add a flags argument.
98930         (mbsnwidth): New function.
98931
98932 2000-07-24  Jim Meyering  <meyering@lucent.com>
98933
98934         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
98935
98936 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98937
98938         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
98939
98940 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98941
98942         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
98943         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
98944         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
98945         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
98946         invoke multibyte primitives.
98947
98948 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98949
98950         * lib/quotearg.c:
98951         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
98952         so that mbstate_t is always defined.
98953
98954         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
98955         be 1 in at least one GCC installation, and this configuration
98956         error is likely to be common.  Ignoring MB_LEN_MAX hurts
98957         performance on hosts that have mbrtowc but have only unibyte
98958         locales, but I assume these hosts are rare.
98959
98960 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98961
98962         * lib/mbswidth.c (_XOPEN_SOURCE):
98963         Don't define; this causes problems on Solaris 7.
98964         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
98965
98966 2000-07-23  Jim Meyering  <meyering@lucent.com>
98967
98968         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
98969         too: getgrgid, getpwuid, getuid.
98970
98971 2000-07-23  Jim Meyering  <meyering@lucent.com>
98972
98973         * lib/basename.c (base_name): Add an assertion.
98974
98975 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
98976
98977         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
98978         shadow its mbsinit function.
98979
98980 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98981
98982         * lib/mbswidth.h: New file.
98983         * lib/mbswidth.c: New file.
98984         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
98985         (noinst_HEADERS): Add mbswidth.h.
98986
98987 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98988
98989         * lib/config.charset: Add support for FreeBSD. Improve support for
98990         HP-UX and IRIX 6.
98991
98992 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
98993
98994         * m4/mbswidth.m4: New file.
98995         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
98996
98997 2000-07-15  Jim Meyering  <meyering@lucent.com>
98998
98999         * lib/makepath.c: Include quote.h.
99000         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
99001         corresponding argument in a `quote (...)' call.
99002         Give better diagnostics.
99003
99004         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
99005         (noinst_HEADERS): Add quote.h.
99006
99007         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
99008         from tar's src/misc.c.
99009         * lib/quote.h: New file.  Prototypes for same.
99010
99011 2000-07-14  Paul Eggert  <eggert@twinsun.com>
99012
99013         From a suggestion by Bruno Haible.
99014         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
99015         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
99016         to decide whether to define the BeOS workaround macro;
99017         this adjusts to the change to AC_MBSTATE_T.
99018
99019 2000-07-14  Jim Meyering  <meyering@lucent.com>
99020
99021         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
99022         jm_AC_TYPE_UINTMAX_T.
99023
99024 2000-07-13  Paul Eggert  <eggert@twinsun.com>
99025
99026         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
99027
99028         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
99029         quotearg_buffer_restyled): Add support for
99030         clocale_quoting_style.  Undo previous change to
99031         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
99032         and "{RIGHT QUOTATION MARK}" msgids.
99033
99034 2000-07-10  Paul Eggert  <eggert@twinsun.com>
99035
99036         From a suggestion by Bruno Haible.
99037         * m4/mbstate_t.m4 (AC_MBSTATE_T):
99038         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
99039         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
99040         and mbstate_t, to a single-part test that simply defines mbstate_t.
99041         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
99042         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
99043
99044 2000-07-10  Jim Meyering  <meyering@lucent.com>
99045
99046         * m4/strerror_r.m4: Mirror the correction made in autoconf.
99047
99048         * m4/gnu-source.m4: Output to confdefs.h directly.
99049         Suggestion from Akim Demaille.
99050
99051 2000-07-09  Paul Eggert  <eggert@twinsun.com>
99052
99053         The old behavior of quoting `like this' doesn't look good with
99054         newer, ISO-style fonts.  See:
99055         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
99056
99057         Instead, quote "like this" by default.  Let the translator
99058         tailor the locale-specific quoting behavior by providing
99059         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
99060
99061         * lib/quotearg.c (N_): New macro.
99062         (gettext_default): New function.
99063         (quotearg_buffer_restyled): Use
99064         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
99065         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
99066
99067 2000-07-09  Jim Meyering  <meyering@lucent.com>
99068
99069         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
99070         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
99071
99072         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
99073         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
99074
99075 2000-07-09  Jim Meyering  <meyering@lucent.com>
99076
99077         * lib/Most files: Update copyright dates to include 2000.
99078
99079 2000-07-08  Jim Meyering  <meyering@lucent.com>
99080
99081         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
99082         if not defined.
99083         (xgethostname): Remove now-unnecessary #ifdef.
99084         Move declaration of `err' into loop where it's used.
99085
99086 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99087         and Bruno Haible  <haible@clisp.cons.org>
99088
99089         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
99090         only if the test for an object-type mbstate_t fails.  This
99091         prevents us from mistakenly reporting that mbstate_t is a
99092         system object type after we "#define mbstate_t int" to work
99093         around its lack.
99094
99095 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99096         and Bruno Haible  <haible@clisp.cons.org>
99097
99098         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
99099
99100 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99101
99102         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
99103         to strerror_r.
99104         Include <ctype.h> for use of isalpha.
99105
99106 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99107
99108         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
99109         by allocating a larger buffer. Test the gethostname return value for
99110         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
99111         returns an error and ENAMETOOLONG isn't defined.
99112
99113 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99114
99115         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
99116         dimension.
99117
99118 2000-07-04  Jim Meyering  <meyering@lucent.com>
99119
99120         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
99121         of the deprecated AC_CHECKING.
99122
99123 2000-07-04  Jim Meyering  <meyering@lucent.com>
99124
99125         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
99126         Reported by Bruno Haible.
99127
99128 2000-07-04  Jim Meyering  <meyering@lucent.com>
99129
99130         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
99131         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
99132         lacks mbrtowc.
99133
99134 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99135
99136         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
99137         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
99138
99139 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99140         and Bruno Haible  <haible@clisp.cons.org>
99141
99142         * lib/quotearg.c (mbrtowc):
99143         Assign to *pwc, and return 1 only if result is nonzero.
99144         (iswprint): Use ISPRINT when substituting our own mbrtowc.
99145
99146 2000-07-03  Jim Meyering  <meyering@lucent.com>
99147
99148         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
99149
99150 2000-07-03  Jim Meyering  <meyering@lucent.com>
99151
99152         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
99153         This is necessary to get a definition of e.g., UTMP_FILE on
99154         HP-UX 10.20.
99155         From Bob Proulx.
99156
99157 2000-07-02  Jim Meyering  <meyering@lucent.com>
99158
99159         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
99160
99161         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
99162         AC_LIBOBJ(function_name).
99163         * m4/chown.m4: Likewise.
99164         * m4/fnmatch.m4: Likewise.
99165         * m4/ftruncate.m4: Likewise.
99166         * m4/getgroups.m4: Likewise.
99167         * m4/getline.m4: Likewise.
99168         * m4/group-member.m4: Likewise.
99169         * m4/jm-macros.m4: Likewise.
99170         * m4/lstat.m4: Likewise.
99171         * m4/malloc.m4: Likewise.
99172         * m4/memcmp.m4: Likewise.
99173         * m4/nanosleep.m4: Likewise.
99174         * m4/putenv.m4: Likewise.
99175         * m4/realloc.m4: Likewise.
99176         * m4/regex.m4: Likewise.
99177         * m4/stat.m4: Likewise.
99178         * m4/strftime.m4: Likewise.
99179
99180 2000-07-02  Jim Meyering  <meyering@lucent.com>
99181
99182         * lib/quotearg.c (mbstate_t): Don't define here.
99183
99184 2000-07-02  Jim Meyering  <meyering@lucent.com>
99185
99186         * lib/nanosleep.c (SIGCONT): Define if not already defined.
99187
99188 2000-07-01  Jim Meyering  <meyering@lucent.com>
99189
99190         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
99191
99192 2000-07-01  Jim Meyering  <meyering@lucent.com>
99193
99194         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
99195         problem.
99196
99197 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99198
99199         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
99200         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
99201
99202 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99203
99204         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
99205         per change in ../m4/ls-mntd-fs.m4.
99206         (read_filesystem_list): Ignore symbolic links.
99207
99208 2000-06-29  Jim Meyering  <meyering@lucent.com>
99209
99210         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
99211         for declaration of strcmp.
99212
99213         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
99214
99215         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
99216         Avoid warning by casting result to `char *' to remove `const'.
99217
99218 2000-06-28  Jim Meyering  <meyering@lucent.com>
99219
99220         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
99221         included by quotearg.c, for which we perform this test.  From
99222         Bruno Haible.
99223
99224 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99225
99226         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
99227         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
99228         <utmpx.h> exists, put readutmp.o into LIBOBJS.
99229
99230 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99231
99232         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
99233
99234 2000-06-26  Paul Eggert  <eggert@twinsun.com>
99235
99236         savedir now sets errno on failure and invokes xmalloc to get memory.
99237         Fix a couple of other minor bugs while we're at it.
99238
99239         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
99240         (NAMLEN): Remove macro.
99241         (malloc, realloc): Remove decls.
99242         (stpcpy): Likewise.
99243         ("xalloc.h"): Include.
99244         (NAME_SIZE_DEFAULT): New macro.
99245         (savedir): Use xmalloc / xrealloc to allocate memory.
99246         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
99247         Skip "" directory entries.
99248         Use strlen to calculate directory entry length, since the old method
99249         is rarely used these days and isn't worth supporting.
99250         Don't use a pointer after freeing it.
99251         Check for integer overflow when calculating allocation size.
99252         Use memcpy to copy entries, instead of stpcpy.
99253         Set errno properly when returning NULL.
99254         Check for readdir error.
99255
99256 2000-06-26  Jim Meyering  <meyering@lucent.com>
99257
99258         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
99259
99260 2000-06-25  Jim Meyering  <meyering@lucent.com>
99261
99262         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
99263         Linux header bug when _XOPEN_SOURCE is defined to 500.
99264
99265 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99266
99267         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
99268         deficiency.
99269
99270 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99271
99272         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
99273         Include xalloc.h.
99274         Don't include <stdlib.h>.  Don't declare malloc, realloc.
99275
99276 2000-06-24  Jim Meyering  <meyering@lucent.com>
99277
99278         * m4/strerror_r.m4: Revive this file -- to try out an experimental
99279         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
99280         for which strerror does return char*, but which lacks a conveniently
99281         accessible declaration of the function.  If the compile-test says
99282         strerror_r doesn't work, then resort to a `run'-test that works on
99283         BeOS and segfaults on DEC Unix.
99284
99285 2000-06-24  Jim Meyering  <meyering@lucent.com>
99286
99287         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
99288
99289 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99290
99291         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
99292         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
99293
99294 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99295
99296         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
99297         (mbrtowc, mbstate_t): Define substitutes if
99298         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
99299         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
99300         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
99301
99302 2000-06-23  Jim Meyering  <meyering@lucent.com>
99303
99304         * m4/afs.m4: Add missing AC_MSG_RESULT.
99305         Reported by Bruno Haible.
99306
99307         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
99308         Suggestion from Bruno Haible.
99309
99310 2000-06-23  Jim Meyering  <meyering@lucent.com>
99311
99312         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
99313
99314 2000-06-21  Jim Meyering  <meyering@lucent.com>
99315
99316         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
99317
99318 2000-06-21  Jim Meyering  <meyering@lucent.com>
99319
99320         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
99321         (noinst_HEADERS): Add getstr.h.
99322
99323         * lib/getline.c (getstr): Move into a separate file.
99324         * lib/getstr.c (getstr): New file, extracted from getline.c, with
99325         the following changes: new parameter, delim2; both delim[12]
99326         parameters have type `int', not `char'.  The latter would lose
99327         with 8-bit delimiters.
99328         * lib/getstr.h: New file.
99329
99330 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99331
99332         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
99333         than 1024, return a memory chunk of least possible size, instead
99334         of size PATH_MAX + 2. In the loop, increment the size proportionally.
99335         Use free/xmalloc instead of xrealloc to avoid copying for very long
99336         paths.
99337
99338 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99339
99340         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
99341         the empty string.
99342
99343 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99344
99345         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
99346         address, not strdup.  Include <stdlib.h> and don't declare free().
99347
99348 2000-06-19  Jim Meyering  <meyering@lucent.com>
99349
99350         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
99351
99352 2000-06-18  Jim Meyering  <meyering@lucent.com>
99353
99354         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
99355
99356         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
99357         `checking whether...' message to be consistent with that of the
99358         lstat test.
99359
99360 2000-06-18  Jim Meyering  <meyering@lucent.com>
99361
99362         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
99363         Besides, these days every porting target provides a mkdir function.
99364
99365         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
99366         needed. (this snippet comes from src/system.h).
99367
99368 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
99369
99370         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
99371
99372 2000-06-15  Paul Eggert  <eggert@twinsun.com>
99373
99374         * lib/human.c (adjust_value): New function.
99375         (human_readable_inexact): Apply rounding style even when
99376         printing approximate values.
99377
99378 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99379
99380         * lib/human.c (human_readable_inexact): Allow an input block
99381         size that is not a multiple of the output block size, and vice versa.
99382         Reported by Piergiorgio Sartor.
99383
99384 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99385
99386         * lib/getdate.y (get_date): Apply relative times after time
99387         zone indicator, not before.  Reported by Todd A. Jacobs.
99388
99389 2000-06-13  Jim Meyering  <meyering@lucent.com>
99390
99391         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
99392
99393         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
99394
99395 2000-06-12  Paul Eggert  <eggert@twinsun.com>
99396
99397         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
99398
99399 2000-06-12  Jim Meyering  <meyering@lucent.com>
99400
99401         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
99402         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
99403         optional argument.
99404         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
99405         the optional argument, `lib'.
99406
99407 2000-06-08  Jim Meyering  <meyering@lucent.com>
99408
99409         * m4/largefile.m4: Remove file (now that it's part of autoconf).
99410
99411 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99412
99413         Rewrite largefile configuration so that we don't need to run
99414         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
99415         AC_CANONICAL_HOST in configure.in -- jmm]
99416
99417         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
99418         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
99419         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
99420         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
99421         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
99422         All uses changed.
99423         Instead of inspecting the output of getconf, try to compile the
99424         test program without and with the macro definition.
99425         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
99426         for getconf.  Instead, check for the needed flags by compiling
99427         test programs.
99428
99429 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99430
99431         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
99432
99433 2000-06-04  Jim Meyering  <meyering@lucent.com>
99434
99435         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
99436         SunOS 4.1.4 for which gid_t is an unsigned type.
99437
99438 2000-06-03  Jim Meyering  <meyering@lucent.com>
99439
99440         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
99441         now that autoconf requires that.
99442
99443         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
99444         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
99445         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
99446
99447 2000-06-03  Jim Meyering  <meyering@lucent.com>
99448
99449         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
99450
99451 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99452
99453         * m4/glibc21.m4: New file.
99454         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
99455
99456 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99457
99458         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
99459         newer, don't install charset.alias.
99460         * lib/config.charset: Change the Linux/glibc rules so they become empty
99461         on glibc-2.1 or newer.
99462
99463 2000-06-02  Jim Meyering  <meyering@lucent.com>
99464
99465         * lib/mountlist.c: Back out last change.  Instead, do this...
99466         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
99467         me_dummy member using the same `ignore'-testing code.
99468         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
99469         fs_type strings.
99470         From Mark D. Roth.
99471
99472 2000-05-29  Jim Meyering  <meyering@lucent.com>
99473
99474         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
99475         mounts with the `ignore' attribute.  Based on a patch from
99476         Mark D. Roth.
99477
99478 2000-05-28  Jim Meyering  <meyering@lucent.com>
99479
99480         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
99481         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99482         * m4/stat.m4: Likewise.
99483         * m4/lstat.m4: Likewise.
99484         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
99485
99486         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
99487         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
99488
99489 2000-05-26  Jim Meyering  <meyering@lucent.com>
99490
99491         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
99492
99493 2000-05-24  Jim Meyering  <meyering@lucent.com>
99494
99495         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
99496         autoconf requires that.
99497         * m4/lib-check.m4: Likewise.
99498         * m4/jm-macros.m4: Likewise.
99499         * m4/strftime.m4: Likewise.
99500
99501         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
99502         AC_CHECK_DECLS, now that autoconf requires that.
99503
99504 2000-05-22  Jim Meyering  <meyering@lucent.com>
99505
99506         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99507         * m4/lstat.m4: Likewise.
99508
99509 2000-05-22  Jim Meyering  <meyering@lucent.com>
99510
99511         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
99512
99513 2000-05-20  Jim Meyering  <meyering@lucent.com>
99514
99515         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
99516         (jm_PREREQ): Use it.
99517
99518 2000-05-18  Jim Meyering  <meyering@lucent.com>
99519
99520         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
99521         back, too, since it may have been modified by allocate_entry.
99522         (hash_delete): Rewrite to use neither the assignment operator
99523         nor the comma operator in an if-expression.
99524
99525 2000-05-15  Paul Eggert  <eggert@twinsun.com>
99526
99527         * lib/closeout.c:
99528         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
99529         Remove; no longer needed.
99530         "quotearg.h": Add include.
99531         (file_name): Do not bother to explicitly initialize to NULL; it's less
99532         efficient on some hosts.
99533         (close_stdout_status): Remove test as to whether stdout was already
99534         closed; it breaks for the case "echo x | sort >&-".
99535         Quote file name colons.
99536         Do not assume that _("write error") lacks format strings.
99537
99538 2000-05-15  Jim Meyering  <meyering@lucent.com>
99539
99540         * lib/version-etc.c (version_etc_copyright): Update the copyright
99541         string used in all --version output.
99542
99543 2000-05-14  Jim Meyering  <meyering@lucent.com>
99544
99545         * lib/closeout.c (close_stdout_set_file_name): New function.
99546         (close_stdout_status): Use new file-scoped global.
99547         Return right away if fstat says the stdout file descriptor is invalid.
99548         * lib/closeout.h (close_stdout_set_file_name): Declare.
99549
99550 2000-05-10  Jim Meyering  <meyering@lucent.com>
99551
99552         * lib/closeout.c [default_exit_status]: New file-scoped variable.
99553         (close_stdout_set_status): New function.
99554         * lib/closeout.h (close_stdout_set_status): Declare.
99555
99556 2000-05-09  Jim Meyering  <meyering@lucent.com>
99557
99558         * m4/gettext.m4: Rename this...
99559         * m4/libintl.m4: ...to this.
99560
99561 2000-05-08  Jim Meyering  <meyering@lucent.com>
99562
99563         * lib/long-options.c: Don't include closeout.h.
99564         (parse_long_options): Don't call close_stdout for --version.
99565
99566 2000-05-06  Paul Eggert  <eggert@twinsun.com>
99567
99568         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
99569         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
99570         2.1.3 bug.  This avoids a clash when files like regex.c define
99571         _GNU_SOURCE.
99572
99573 2000-05-06  Jim Meyering  <meyering@lucent.com>
99574
99575         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
99576         (AC_REPLACE_FUNCS): Add strnlen.
99577
99578         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
99579         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
99580
99581         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
99582         AC_SEARCH_LIBS call for nanosleep.
99583         (LIB_NANOSLEEP): Set and AC_SUBST.
99584
99585 2000-05-06  Jim Meyering  <meyering@lucent.com>
99586
99587         * lib/strnlen.c: Undefine __strnlen and strnlen.
99588         [!weak_alias]: Define __strnlen to strnlen.
99589
99590         * lib/atexit.c: New file, from libiberty.
99591
99592 2000-05-06  Jim Meyering  <meyering@lucent.com>
99593
99594         * lib/closeout.c (close_stdout_status): Also check for errors on the
99595         stderr stream.
99596
99597 2000-05-05  Jim Meyering  <meyering@lucent.com>
99598
99599         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
99600         AC_SEARCH_LIBS call for clock_gettime.
99601         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
99602
99603         * m4/search-libs.m4: Update from autoconf.
99604
99605         su doesn't work on Solaris 2.6.
99606         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
99607         <shadow.h>.  Reported by Dragos Harabor.
99608
99609 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
99610
99611         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
99612         memcpy instead of xmalloc, xrealloc, path_concat.
99613         (locale_charset): Treat empty environment variables as absent.
99614         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
99615
99616 2000-05-04  Jim Meyering  <meyering@lucent.com>
99617
99618         * lib/getopt.c: Update from glibc.
99619         * lib/obstack.c: Likewise.
99620         * lib/obstack.h: Likewise.
99621         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
99622         file
99623
99624         * lib/regex.h: Likewise.
99625         * lib/strndup.c: Likewise.
99626         * lib/strnlen.c: New file, from glibc.
99627
99628 2000-05-03  Jim Meyering  <meyering@lucent.com>
99629
99630         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
99631
99632 2000-05-02  Paul Eggert  <eggert@twinsun.com>
99633
99634         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
99635         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
99636         compile-time test, rather than inspecting host and OS, to
99637         decide whether to define _LARGEFILE_SOURCE.
99638
99639 2000-05-01  Jim Meyering  <meyering@lucent.com>
99640
99641         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
99642
99643         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
99644         Based on a patch from Bruno Haible.
99645
99646 2000-05-01  Jim Meyering  <meyering@lucent.com>
99647
99648         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
99649
99650 2000-04-29  Jim Meyering  <meyering@lucent.com>
99651
99652         * lib/path-concat.c: Declare strdup only if it's not defined.
99653         * lib/canon-host.c: Likewise.
99654
99655 2000-04-28  Jim Meyering  <meyering@lucent.com>
99656
99657         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
99658         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
99659         is included first, then limits.h is included by locale.h by libintl.h.
99660         From John David Anglin.
99661
99662 2000-04-25  Jim Meyering  <meyering@lucent.com>
99663
99664         * lib/makepath.c (S_IRWXUGO): Define.
99665         (make_path): Always perform explicit chmod if MODE specifies any
99666         of the `special' permission bits.  Prompted by a bug report against
99667         install from Mate Wierdl and Joost van Baal.
99668
99669 2000-04-18  Jim Meyering  <meyering@lucent.com>
99670
99671         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
99672         (jm_PREREQ): Use it.
99673
99674 2000-04-18  Jim Meyering  <meyering@lucent.com>
99675
99676         * lib/README: New file.
99677
99678         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
99679         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
99680
99681 2000-04-17  Jim Meyering  <meyering@lucent.com>
99682
99683         Get it right :-)
99684         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
99685         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
99686         Suggestion from Akim Demaille.
99687
99688 2000-04-17  Jim Meyering  <meyering@lucent.com>
99689
99690         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
99691         the definition of it to rpl_strftime also defined-away the system's
99692         declaration.
99693
99694 2000-04-15  Jim Meyering  <meyering@lucent.com>
99695
99696         Use `C' to denote so-called `contiguous' files, the same way
99697         that tar does.
99698         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
99699         (ftypelet): Use S_ISCTG.
99700         From Michael Deutschmann.
99701
99702 2000-04-14  Jim Meyering  <meyering@lucent.com>
99703
99704         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
99705         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
99706         clobbered.
99707
99708 2000-04-14  Jim Meyering  <meyering@lucent.com>
99709
99710         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
99711
99712 2000-04-13  Jim Meyering  <meyering@lucent.com>
99713
99714         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
99715         AH_VERBATIM to insert required #ifndef into config.h.in.
99716         Suggestion from Akim Demaille.
99717
99718 2000-04-12  Jim Meyering  <meyering@lucent.com>
99719
99720         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
99721         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
99722         Christian Krackowizer.
99723
99724         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
99725         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
99726         (AC_SYS_LARGEFILE): Require.
99727         (AM_C_PROTOTYPES): Require.
99728
99729 2000-04-08  Jim Meyering  <meyering@lucent.com>
99730
99731         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
99732         names don't conflict.  Reported by Eli Zaretskii.
99733
99734 2000-04-07  Jim Meyering  <meyering@lucent.com>
99735
99736         * lib/putenv.c: Move inclusion of errno.h so it follows that of
99737         sys/types.h, to work around system header problems on AIX 3.2.5.
99738         From Bruno Haible.
99739
99740 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
99741
99742         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
99743         bug.  Deal with the different error behavior of Irix iconv.
99744
99745 2000-04-05  Paul Eggert  <eggert@twinsun.com>
99746
99747         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
99748         IRIX if the installer said otherwise.
99749
99750 2000-04-05  Jim Meyering  <meyering@lucent.com>
99751
99752         Portability tweaks required for ultrix4.3.
99753         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
99754         (jm_CHECK_DECLS): Add getutent to the list of functions.
99755         (_jm_DECL_HEADERS): Add utmpx.h.
99756         From John David Anglin.
99757
99758         * m4/strftime.m4: Back out the 2000-04-02 change.
99759         Instead of that change, simply undefine putenv in the test program.
99760
99761 2000-04-05  Jim Meyering  <meyering@lucent.com>
99762
99763         Portability tweaks required for ultrix4.3.
99764         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
99765         getutent.
99766         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
99767         * lib/canon-host.c: Declare strdup.
99768         * lib/path-concat.c: Likewise.
99769         From John David Anglin.
99770
99771 2000-04-04  Jim Meyering  <meyering@lucent.com>
99772
99773         Be more DOS 8.3-friendly.
99774         * lib/ref-add.sin: Renamed from ref-add.sed.in.
99775         * lib/ref-del.sin: Renamed from ref-del.sed.in.
99776         * lib/Makefile.am: Reflect renaming.
99777         Reported by Eli Zaretskii.
99778
99779         Use a temporary file name that won't clash with `charset.alias'
99780         in the DOS 8.3 name space.
99781         * lib/Makefile.am (charset_tmp): Define.
99782         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
99783         (uninstall-local): Likewise.
99784         Reported by Eli Zaretskii.
99785
99786 2000-04-03  Jim Meyering  <meyering@lucent.com>
99787
99788         * m4/gettext.m4: Fix typo in comment.
99789
99790         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
99791         textutils/configure.in).  Suggestion from Paul Eggert.
99792         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
99793
99794 2000-04-02  Paul Eggert  <eggert@twinsun.com>
99795
99796         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
99797         variable in the shell rather than using putenv, which isn't
99798         portable.  This avoids the configure-time inter-test dependency
99799         on the potentially-renamed putenv function.
99800
99801 2000-03-30  Paul Eggert  <eggert@twinsun.com>
99802
99803         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
99804         before checking struct stat.st_blksize, so that
99805         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
99806
99807 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99808
99809         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
99810         since strftime.c uses HAVE_STRFTIME to decide whether to use
99811         the underlying strftime.
99812
99813 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99814
99815         * lib/time/strftime.c (my_strftime): Make sure we call the system
99816         strftime, not ourselves, when invoking the underlying strftime.
99817
99818 2000-03-24  Jim Meyering  <meyering@lucent.com>
99819
99820         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
99821         (charset_alias): Define.
99822         (install-exec-local): Factor out common code.
99823         (uninstall-local): Split lines longer than 80.
99824         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
99825         (SUFFIXES): Define.
99826         (.sed.in.sed): New rule.  Don't redirect directly to $@.
99827         (CLEANFILES): Add ref-add.sed and ref-del.sed.
99828
99829 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
99830
99831         * lib/config.charset: Output a line containing "Packages using this
99832         file".
99833         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
99834         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
99835         ref-del.sed): New rules.
99836
99837 2000-03-17  Jim Meyering  <meyering@lucent.com>
99838
99839         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
99840         Otherwise, include <strings.h>
99841
99842 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
99843
99844         * lib/unicodeio.c (utf8_wctomb): New function.
99845         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
99846         format instead of in UCS-4 with platform dependent endianness.
99847
99848 2000-03-10  Jim Meyering  <meyering@lucent.com>
99849
99850         * m4/lib-check.m4: Look for getspnam in -lgen, too.
99851         From Marco Franzen.
99852
99853 2000-03-07  Paul Eggert  <eggert@twinsun.com>
99854
99855         * lib/savedir.c (savedir): Work even if directory size is
99856         negative; this can happen with some screwy NFS configurations.
99857
99858 2000-03-06  Jim Meyering  <meyering@lucent.com>
99859
99860         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
99861         if it's NULL (because we ran out of memory).  From Bruno Haible.
99862
99863 2000-03-05  Jim Meyering  <meyering@lucent.com>
99864
99865         * lib/localcharset.c ("path-concat.h"): Include.
99866         (get_charset_aliases): Use path_concat instead of ANSI string
99867         concatenation.
99868
99869         * lib/unicodeio.h (PARAMS): Define.
99870         Use it to guard prototype.
99871
99872 2000-03-04  Jim Meyering  <meyering@lucent.com>
99873
99874         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
99875         for lib/localcharset.c.
99876
99877 2000-03-04  Jim Meyering  <meyering@lucent.com>
99878
99879         * lib/Makefile.am (install-exec-local): Create $(libdir) before
99880         installing into it.
99881         (uninstall-local): Uncomment this rule so `make distcheck' works
99882         once again.
99883
99884         * lib/unicodeio.c (<errno.h>): Include it.
99885         (errno): Declare if not defined.
99886
99887         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
99888
99889         * lib/config.charset: New version, incorporating remarks from a linux
99890         i18n mailing list.  From Bruno Haible.
99891
99892 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
99893
99894         * m4/codeset.m4: New file.
99895         * m4/iconv.m4: New file.
99896         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
99897
99898 2000-03-03  Jim Meyering  <meyering@lucent.com>
99899
99900         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
99901
99902 2000-03-02  Jim Meyering  <meyering@lucent.com>
99903
99904         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
99905         the messages come out on separate lines.
99906
99907         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
99908         rather than jm_CHECK_DECLARATIONS.
99909         * m4/decl.m4: Remove now-unused file.
99910
99911         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
99912         geteuid.
99913
99914 2000-03-02  Jim Meyering  <meyering@lucent.com>
99915
99916         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
99917
99918 2000-03-01  Jim Meyering  <meyering@lucent.com>
99919
99920         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
99921         * lib/unicodeio.c: Likewise.
99922
99923 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
99924
99925         * lib/config.charset: New file.
99926         * lib/localcharset.c: New file.
99927         * lib/unicodeio.h, lib/unicodeio.c: New files.
99928         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
99929         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
99930         (noinst_HEADERS): Add unicodeio.h.
99931         (all-local, install-exec-local, charset.alias): New targets.
99932
99933 2000-02-28  Paul Eggert  <eggert@twinsun.com>
99934
99935         * lib/quotearg.c (ALERT_CHAR): New macro.
99936         (quotearg_buffer_restyled): Use it.
99937
99938 2000-02-27  Jim Meyering  <meyering@lucent.com>
99939
99940         * m4/check-decl.m4: Add getenv to the list.
99941
99942 2000-02-27  Jim Meyering  <meyering@lucent.com>
99943
99944         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
99945         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
99946
99947         * lib/backupfile.c: Guard inclusion of stdlib.h with
99948         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
99949         Declare malloc if needed.
99950
99951         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
99952         `#ifndef HAVE_DECL..'
99953         now that autoconf always defines the HAVE_DECL_ symbols.
99954         * lib/human.c: Likewise.
99955         * lib/same.c: Likewise.
99956         * lib/strtoumax.c: Likewise.
99957
99958         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
99959         declaration check was not run.
99960         * lib/hash.c: Likewise.
99961         * lib/human.c: Likewise.
99962         * lib/same.c: Likewise.
99963         * lib/strtoumax.c: Likewise.
99964
99965         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
99966         `.', then first look up the entire `.'-containing string as a login
99967         name.
99968
99969 2000-02-23  Jim Meyering  <meyering@lucent.com>
99970
99971         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
99972         in place of my hack.
99973
99974 2000-02-18  Paul Eggert  <eggert@twinsun.com>
99975
99976         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
99977         (textint): New typedef.
99978         (parser_control): Member year changed from int to textint.
99979         All uses changed.
99980         (YYSTYPE): Removed; replaced by %union with int and textint members.
99981         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
99982         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
99983         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
99984         (tSNUMBER, tUNUMBER): Now of type <textintval>.
99985         (date, number, to_year): Use width of number in digits, not its value,
99986         to determine whether it's a 2-digit year, or a 2-digit time.
99987         (yylex): Store number of digits of numeric tokens.
99988         Reported by John Kendall.
99989
99990         (parser_control): Changed from struct parser_control to typedef (for
99991         consistency).  All uses changed.
99992
99993         (tID): Removed; not used.
99994         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
99995
99996 2000-02-14  Paul Eggert  <eggert@twinsun.com>
99997
99998         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
99999         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
100000
100001 2000-02-12  Jim Meyering  <meyering@lucent.com>
100002
100003         * lib/userspec.c (ISDIGIT): Define it.
100004         (isdigit): Remove definition.
100005         (is_number): Use ISDIGIT, not isdigit.
100006         <libintl.h>: Include.
100007         (_ and N_): Define.
100008         (parse_user_spec): Mark translatable strings.
100009
100010 2000-02-10  Jim Meyering  <meyering@lucent.com>
100011
100012         With these changes, nanosleep.[ch] are finally enough like the other
100013         lib/* replacement files to compile on a few more losing systems.
100014
100015         * lib/nanosleep.h: Don't include config.h.
100016         Remove prototype from declaration of nanosleep.
100017         (PARAMS): Remove now-unneeded definition.
100018         * lib/nanosleep.c: #undef nanosleep.
100019         (rpl_nanosleep): Rename from nanosleep.
100020
100021 2000-02-10  Jim Meyering  <meyering@lucent.com>
100022
100023         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
100024         gnu_nanosleep to rpl_nanosleep.
100025
100026 2000-02-09  Jim Meyering  <meyering@lucent.com>
100027
100028         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
100029         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
100030
100031 2000-02-08  Akim Demaille  <akim@epita.fr>
100032
100033         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
100034         `[' and `]' and remove uses of `changequote'.
100035         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
100036         (AC_SYS_LARGEFILE): Likewise.
100037         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
100038         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
100039         of changequote.
100040         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
100041         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
100042         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
100043         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
100044
100045 2000-02-05  Jim Meyering  <meyering@lucent.com>
100046
100047         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
100048         Remove explicit use of AC_HEADER_TIME.  It is required by
100049         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
100050         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
100051         in autoconf whereby the expansion of the latter ended up preceding
100052         the expansion of its prerequisite, AC_HEADER_TIME.
100053         Reported by Volker Borchert.
100054
100055 2000-02-03  Jim Meyering  <meyering@lucent.com>
100056
100057         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
100058
100059 2000-02-03  Jim Meyering  <meyering@lucent.com>
100060
100061         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
100062         rather than with `#if HAVE_UTMPNAME'.
100063
100064 2000-02-02  Jim Meyering  <meyering@lucent.com>
100065
100066         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
100067         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
100068         Reported by Eli Zaretskii.
100069
100070 2000-02-01  Jim Meyering  <meyering@lucent.com>
100071
100072         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
100073
100074 2000-01-31  Jim Meyering  <meyering@lucent.com>
100075
100076         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
100077         functions.  Add the time.h and sys/time.h headers along with the
100078         AC_REQUIRE'ment of AC_HEADER_TIME.
100079
100080 2000-01-31  Jim Meyering  <meyering@lucent.com>
100081
100082         * lib/nanosleep.h (nanosleep): Guard declaration with
100083         `#if ! HAVE_DECL_NANOSLEEP'.
100084         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
100085         the declaration in that vendor's sys/timers.h.
100086         Reported by Christian Krackowizer.
100087
100088         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
100089         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
100090         (ISPRINT): Likewise.
100091         Reported by Tom Tromey.
100092
100093 2000-01-30  Jim Meyering  <meyering@lucent.com>
100094
100095         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
100096
100097         * m4/prereq.m4 (utmp_includes): Define.
100098         Check for ut_user and ut_name members in both struct utmpx
100099         and struct utmp.
100100
100101 2000-01-30  Jim Meyering  <meyering@lucent.com>
100102
100103         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
100104         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
100105         header files where only utmpx.ut_user is declared.
100106
100107         * lib/readutmp.h (UT_USER): Define.
100108
100109 2000-01-29  Jim Meyering  <meyering@lucent.com>
100110
100111         * m4/lib-check.m4: New file containing library-related checks from
100112         fileutils and sh-utils (textutils had none).
100113
100114 2000-01-28  Jim Meyering  <meyering@lucent.com>
100115
100116         * m4/perl.m4: Change format of warning message to look more like that
100117         from the missing script.  Suggestion from François Pinard.
100118
100119 2000-01-25  Jim Meyering  <meyering@lucent.com>
100120
100121         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
100122         well as time.h in the compile check.
100123         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
100124         Fix typo in cross-compiling case: s/yes/no/.
100125
100126 2000-01-23  Jim Meyering  <meyering@lucent.com>
100127
100128         * m4/jm-macros.m4: Move df-related tests here from
100129         fileutils/configure.in
100130
100131         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
100132         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
100133
100134         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
100135         s/space/ac_fsusage_space/.
100136         (jm_FILE_SYSTEM_USAGE): Take two parameters.
100137
100138         * m4/ftruncate.m4: New file (derived from part of
100139         fileutils/configure.in).
100140         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
100141         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
100142
100143         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
100144         AC_SUBST these here, rather than just in sh-util/configure.in, so
100145         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
100146         all the same.
100147         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
100148         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
100149         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
100150         (AC_SUBST(POW_LIBM)): Likewise.
100151         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
100152
100153 2000-01-23  Jim Meyering  <meyering@lucent.com>
100154
100155         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
100156         obstack.c.
100157
100158 2000-01-22  Jim Meyering  <meyering@lucent.com>
100159
100160         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
100161
100162         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
100163
100164         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
100165         configure.in
100166         (AC_CHECK_HEADERS): Likewise for sh-utils.
100167         (AC_CHECK_HEADERS): Likewise for textutils.
100168         Merge the three lists of headers.
100169
100170         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
100171         from fileutils' configure.in.
100172
100173         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
100174         code. Moved tests into their own function (_jm_DECL_HEADERS) in
100175         check-decl.m4.
100176
100177         * m4/check-decl.m4: Use #if rather than #ifdef.
100178         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
100179         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
100180         (_jm_DECL_HEADERS): Define new function.
100181         (jm_CHECK_DECLARATIONS): Require it.
100182
100183 2000-01-22  Jim Meyering  <meyering@lucent.com>
100184
100185         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
100186         [! HAVE_DECL_STRTOULL]: Declare strtoull.
100187         Required for some AIX systems.  Reported by Christian Krackowizer.
100188         [TESTING] (main): New function.
100189
100190         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
100191         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
100192         letters.
100193
100194         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
100195         iswprint.
100196
100197         * lib/strverscmp.c (ISDIGIT): Define.
100198         (strverscmp): Use ISDIGIT, not isdigit.
100199
100200 2000-01-19  Jim Meyering  <meyering@lucent.com>
100201
100202         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
100203         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
100204         defines `struct timespec' in <sys/time.h>
100205
100206         * m4/c-bs-a.m4: Remove uses of changequote altogether.
100207         Thanks to Akim for explaining.
100208
100209 2000-01-17  Paul Eggert  <eggert@twinsun.com>
100210
100211         * lib/nanosleep.c (nanosleep):
100212         Don't use SA_INTERRUPT to decide whether to call sigaction, as
100213         POSIX.1 doesn't require SA_INTERRUPT and some systems
100214         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
100215         it's been part of POSIX.1 since day 1 (in 1988).
100216
100217 2000-01-17  Jim Meyering  <meyering@lucent.com>
100218
100219         * lib/interlock: Remove unused file.  Reported by François Pinard.
100220
100221 2000-01-16  Paul Eggert  <eggert@twinsun.com>
100222
100223         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
100224         alert, backslash, formfeed, and vertical tab unnecessarily in
100225         shell quoting style.
100226
100227 2000-01-16  Jim Meyering  <meyering@lucent.com>
100228
100229         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
100230         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
100231         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
100232         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
100233
100234 2000-01-16  Jim Meyering  <meyering@lucent.com>
100235
100236         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
100237         because the latter didn't work.
100238
100239 2000-01-15  Jim Meyering  <meyering@lucent.com>
100240
100241         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
100242         (AC_REPLACE_FUNCS): Add memcpy and memset.
100243         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
100244         Add strpbrk.
100245         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
100246
100247 2000-01-12  Jim Meyering  <meyering@lucent.com>
100248
100249         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
100250         (jm_PREREQ): Use it.
100251         (jm_PREREQ_READUTMP): New macro.
100252         (jm_PREREQ): Use it.
100253
100254 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100255
100256         Quote multibyte characters correctly.
100257         * m4/c-bs-a.m4: New file.
100258         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
100259         (jm_PREREQ): Use it.
100260
100261 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100262
100263         * m4/uintmax_t.m4: Port to autoconf 2.13.
100264
100265 2000-01-08  Jim Meyering  <meyering@ascend.com>
100266
100267         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
100268         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
100269
100270 2000-01-04  Jim Meyering  <meyering@ascend.com>
100271
100272         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
100273         jm_STRUCT_DIRENT_D_TYPE.
100274         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
100275         jm_STRUCT_DIRENT_D_INO.
100276         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
100277         jm_STRUCT_UTIMBUF.
100278         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
100279         renamings.
100280         * m4/utime.m4: Likewise.
100281
100282         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
100283         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
100284
100285 2000-01-03  Paul Eggert  <eggert@twinsun.com>
100286
100287         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
100288         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
100289
100290 2000-01-02  Jim Meyering  <meyering@ascend.com>
100291
100292         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
100293         remember if this is necessary.
100294
100295 1999-12-26  Jim Meyering  <meyering@ascend.com>
100296
100297         * m4/jm-macros.m4: Use it here.
100298         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
100299
100300 1999-12-23  Jim Meyering  <meyering@ascend.com>
100301
100302         * m4/jm-macros.m4: Check for clock_gettime (moved from
100303         fileutils/configure.in)
100304         Check for gettimeofday.
100305
100306 1999-12-20  Jim Meyering  <meyering@ascend.com>
100307
100308         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
100309         autoconf-2.14a-1999-12-20.
100310
100311 1999-12-19  Jim Meyering  <meyering@ascend.com>
100312
100313         * m4/lstat-slash.m4: New file.
100314         * m4/jm-macros.m4: Use the new macro:
100315         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
100316
100317 1999-12-07  Jim Meyering  <meyering@ascend.com>
100318
100319         * m4/perl.m4: Require that File::Compare be available, too.
100320         Too many systems seem to lack it.
100321
100322         * m4/strftime.m4: Add checks for most of the cpp macros tested in
100323         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
100324
100325 1999-11-18  Paul Eggert  <eggert@twinsun.com>
100326
100327         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
100328         problem with the QNX 4.25 shell, which doesn't propagate exit
100329         status of failed commands inside shell assignments.
100330
100331 1999-11-17  Jim Meyering  <meyering@ascend.com>
100332
100333         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
100334
100335 1999-11-07  Jim Meyering  <meyering@ascend.com>
100336
100337         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
100338
100339 1999-11-06  Jim Meyering  <meyering@ascend.com>
100340
100341         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
100342         * m4/jm-macros.m4 (jm_MACROS): Use it here.
100343
100344 1999-11-05  Jim Meyering  <meyering@ascend.com>
100345
100346         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
100347         configure.in of textutils, fileutils, and sh-utils into this one
100348         (shared between those packages) file.
100349         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
100350         AC_STRUCT_ST_BLKSIZE.
100351
100352 1999-11-03  Jim Meyering  <meyering@ascend.com>
100353
100354         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
100355         of AC_CHECK_TYPE checks includes unistd.h.
100356         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
100357         Suggestion from Akim Demaille.
100358
100359 1999-10-30  Jim Meyering  <meyering@ascend.com>
100360
100361         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
100362         m4-quoted string.
100363         * m4/ls-mntd-fs.m4: Likewise.
100364         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
100365         * m4/jm-winsz1.m4: Likewise.
100366
100367         * m4/const.m4: Remove file, since the fix made it into the experimental
100368         version of autoconf.
100369         * m4/mktime.m4: Likewise.
100370
100371         * m4/check-type.m4: Remove file, now that the latest version of
100372         AC_CHECK_TYPE takes a third arg to specify additional #includes.
100373
100374         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
100375         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
100376         AC_CHECK_TYPE.
100377
100378 1999-10-04  Jim Meyering  <meyering@ascend.com>
100379
100380         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
100381
100382 1999-09-22  Paul Eggert  <eggert@twinsun.com>
100383
100384         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
100385         2.95.1 bug with HP-UX 10.20.
100386
100387 1999-09-17  Jim Meyering  <meyering@ascend.com>
100388
100389         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
100390         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
100391         due to missing strdup (against sh-utils-2.0).
100392
100393 1999-08-29  Jim Meyering  <meyering@ascend.com>
100394
100395         * m4/jm-macros.m4: Require jm_BISON.
100396         * m4/bison.m4: New file.
100397
100398 1999-08-17  Paul Eggert  <eggert@twinsun.com>
100399
100400         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
100401         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
100402
100403 1999-08-05  Jim Meyering  <meyering@ascend.com>
100404
100405         * m4/getline.m4: Rename test file from conftestdata to conftest.data
100406         to avoid conflicts with `conftest' on 8+3 filesystems.
100407         Suggestion from Eli Zaretskii.
100408
100409 1999-08-04  Jim Meyering  <meyering@ascend.com>
100410
100411         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
100412         fileutils and sh-utils (textutils's getline test was inadequate).
100413         (AM_FUNC_GETLINE): Run this test.
100414         (AC_CHECK_FUNCS): Check for getdelim.
100415         Reported by Bob Proulx.
100416
100417 1999-08-02  Jim Meyering  <meyering@ascend.com>
100418
100419         * m4/jm-macros.m4: Add a comment.
100420
100421 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100422
100423         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
100424         <inttypes.h> defines strtoumax as a macro (and not as a
100425         function).
100426
100427 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100428
100429         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
100430         that we can shift, multiply and divide unsigned long long
100431         values; Ultrix cc can't do it.
100432
100433 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100434
100435         * m4/mktime.m4: New file, which is a preview of what should appear
100436         in the next public autoconf release.
100437
100438 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100439
100440         * m4/lfs.m4: Remove this file.
100441         * m4/largefile.m4: New file.  It contains the old contents of
100442         lfs.m4, except that all names with prefix AC_LFS have been
100443         changed to use the prefix AC_SYS_LARGEFILE instead, to be
100444         compatible with future autoconf versions.  Also, some minor m4
100445         quoting problems have been fixed.
100446
100447 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100448
100449         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
100450         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
100451         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
100452         and simplify the shell code.
100453
100454 1999-08-01  Jim Meyering  <meyering@ascend.com>
100455
100456         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
100457         m4.
100458
100459 1999-07-20  Jim Meyering  <meyering@ascend.com>
100460
100461         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
100462
100463 1999-07-15  Jim Meyering  <meyering@ascend.com>
100464
100465         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
100466
100467 1999-05-22  Jim Meyering  <meyering@ascend.com>
100468
100469         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
100470
100471 1999-05-20  Jim Meyering  <meyering@ascend.com>
100472
100473         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
100474         Add a colon after each `then' in case $4 is empty.
100475
100476 1999-05-16  Jim Meyering  <meyering@ascend.com>
100477
100478         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
100479
100480 1999-05-10  Jim Meyering  <meyering@ascend.com>
100481
100482         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
100483
100484         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
100485         AC_FUNC_MKTIME.
100486
100487 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
100488
100489         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
100490
100491 1999-05-04  Paul Eggert  <eggert@twinsun.com>
100492
100493         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
100494         not CPPFLAGS, so that linking works correctly in IRIX.
100495
100496 1999-04-30  Paul Eggert  <eggert@twinsun.com>
100497
100498         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
100499
100500 1999-04-20  Paul Eggert  <eggert@twinsun.com>
100501
100502         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
100503         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
100504         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
100505         jm_AC_TYPE_UNSIGNED_LONG_LONG.
100506         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
100507
100508         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
100509
100510 1999-04-20  Jim Meyering  <meyering@ascend.com>
100511
100512         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
100513         AC_REPLACE xstroull if necessary.  From Paul Eggert.
100514         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
100515
100516 1999-04-18  Jim Meyering  <meyering@ascend.com>
100517
100518         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
100519         * m4/jm-macros.m4: Use it.
100520
100521 1999-04-06  Jim Meyering  <meyering@ascend.com>
100522
100523         * m4/strftime.m4: Remove test for %f.
100524
100525 1999-03-29  Jim Meyering  <meyering@ascend.com>
100526
100527         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
100528         superset of the AC_TYPE_* checks in the textutils, fileutils,
100529         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
100530         AC_TYPE_PID_T.
100531
100532 1999-03-28  Jim Meyering  <meyering@ascend.com>
100533
100534         * m4/jm-macros.m4: Define GNU_PACKAGE here.
100535         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
100536         replaced e.g., in the *.sh files of the sh-utils.
100537
100538 1999-03-20  Jim Meyering  <meyering@ascend.com>
100539
100540         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
100541         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
100542         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
100543
100544 1999-03-19  Jim Meyering  <meyering@ascend.com>
100545
100546         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
100547
100548 1999-03-12  Jim Meyering  <meyering@ascend.com>
100549
100550         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
100551
100552 1999-03-07  Jim Meyering  <meyering@ascend.com>
100553
100554         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
100555         declared.
100556
100557 1999-02-17  Jim Meyering  <meyering@ascend.com>
100558
100559         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
100560         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
100561
100562 1999-02-07  Jim Meyering  <meyering@ascend.com>
100563
100564         * m4/group-member.m4: New file -- extracted from sh-utils'
100565         configure.in.
100566
100567         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
100568         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
100569
100570 1999-02-06  Jim Meyering  <meyering@ascend.com>
100571
100572         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
100573         * m4/fnmatch.m4: Likewise.
100574         * m4/getgroups.m4: Likewise.
100575         * m4/lstat.m4: Likewise.
100576         * m4/malloc.m4: Likewise.
100577         * m4/putenv.m4: Likewise.
100578         * m4/realloc.m4: Likewise.
100579         * m4/regex.m4: Likewise.
100580         * m4/stat.m4: Likewise.
100581         * m4/strftime.m4: Likewise.
100582         Suggestion from Alain Magloire.
100583
100584         * m4/chown.m4: Use `.$ac_objext', not `.o'.
100585         * m4/fnmatch.m4: Likewise.
100586         * m4/getgroups.m4: Likewise.
100587         * m4/getline.m4: Likewise.
100588         * m4/lstat.m4: Likewise.
100589         * m4/malloc.m4: Likewise.
100590         * m4/memcmp.m4: Likewise.
100591         * m4/putenv.m4: Likewise.
100592         * m4/realloc.m4: Likewise.
100593         * m4/regex.m4: Likewise.
100594         * m4/stat.m4: Likewise.
100595         * m4/strftime.m4: Likewise.
100596         Suggestion from Alain Magloire.
100597
100598         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
100599         an argument.
100600
100601         * m4/regex.m4: Add a run-time Test for proper operation of
100602         re_compile_pattern.
100603
100604 1999-01-31  Jim Meyering  <meyering@ascend.com>
100605
100606         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
100607
100608 1999-01-30  Jim Meyering  <meyering@ascend.com>
100609
100610         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
100611
100612         * m4/jm-mktime.m4: Make this a wrapper around the official
100613         AM_FUNC_MKTIME rather than my private copy, now that the official one
100614         is up to date.
100615         * m4/mktime.m4: Remove file.
100616
100617         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
100618         * m4/uptime.m4: Likewise.
100619         * m4/uintmax_t.m4: Likewise.
100620
100621 1999-01-28  Jim Meyering  <meyering@ascend.com>
100622
100623         * m4/jm-macros.m4: Use jm_AFS.
100624         * m4/afs.m4: New file (from fileutils' configure.in).
100625
100626         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
100627         * m4/chown.m4: Likewise.
100628         * m4/d-ino.m4: Likewise.
100629         * m4/d-type.m4: Likewise.
100630         * m4/fnmatch.m4: Likewise.
100631         * m4/getgroups.m4: Likewise.
100632         * m4/gettext.m4: Likewise.
100633         * m4/jm-mktime.m4: Likewise.
100634         * m4/jm-winsz2.m4: Likewise.
100635         * m4/lcmessage.m4: Likewise.
100636         * m4/ls-mntd-fs.m4: Likewise.
100637         * m4/malloc.m4: Likewise.
100638         * m4/memcmp.m4: Likewise.
100639         * m4/putenv.m4: Likewise.
100640         * m4/realloc.m4: Likewise.
100641         * m4/st_mtim.m4: Likewise.
100642         * m4/strftime.m4: Likewise.
100643
100644 1999-01-16  Jim Meyering  <meyering@ascend.com>
100645
100646         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
100647         (ARGMATCH_DIE_DECL): Define.
100648
100649 1999-01-12  Jim Meyering  <meyering@ascend.com>
100650
100651         * m4/Makefile.am.in: Rewrite to avoid using fmt.
100652         Reported by Lars Hecking.
100653
100654 1999-01-10  Jim Meyering  <meyering@ascend.com>
100655
100656         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
100657         gross kludge.
100658         * m4/inttypes_h.m4: Likewise.
100659         * m4/lstat.m4: Likewise.
100660         * m4/malloc.m4: Likewise.
100661         * m4/readdir.m4: Likewise.
100662         * m4/realloc.m4: Likewise.
100663         * m4/st_dm_mode.m4: Likewise.
100664         * m4/stat.m4: Likewise.
100665         * m4/utimbuf.m4: Likewise.
100666         * m4/utimes.m4: Likewise.
100667
100668         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
100669         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
100670         comments in config.h.in are meaningful.
100671
100672         * m4/jm-macros.m4: Require autoconf-2.13 here.
100673
100674         * m4/regex.m4: By default, don't use the included regex.c on systems
100675         with glibc 2.  Suggestion from Uli Drepper.
100676
100677 1999-01-02  Jim Meyering  <meyering@ascend.com>
100678
100679         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
100680
100681 1998-12-18  Jim Meyering  <meyering@ascend.com>
100682
100683         * m4/Makefile.am.in (Makefile.am): Simplify rule.
100684         Based on a suggestion from Lars Hecking.
100685
100686 1998-11-16  Paul Eggert  <eggert@twinsun.com>
100687
100688         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
100689
100690 1998-11-16  Jim Meyering  <meyering@ascend.com>
100691
100692         * m4/lfs.m4: Double-quote the `uname...` expression.
100693
100694 1998-11-14  Jim Meyering  <meyering@ascend.com>
100695
100696         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
100697         * m4/stat.m4: Likewise.
100698
100699 1998-11-03  Jim Meyering  <meyering@ascend.com>
100700
100701         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
100702         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
100703
100704 1998-10-18  Jim Meyering  <meyering@ascend.com>
100705
100706         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
100707
100708 1998-10-17  Jim Meyering  <meyering@ascend.com>
100709
100710         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
100711         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
100712         calls for those previously hard-coded headers.  Instead, take a new
100713         parameter.
100714         (jm_CHECK_DECLARATIONS): Reflect interface change.
100715         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
100716         (jm_CHECK_DECL_LOCALTIME_R): New macro.
100717
100718         * m4/mktime.m4: Test for spring-forward gap before long-running test.
100719
100720 1998-10-14  Jim Meyering  <meyering@ascend.com>
100721
100722         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
100723         instead of "TZ=America/Vancouver".  From Paul Eggert.
100724
100725 1998-10-11  Jim Meyering  <meyering@ascend.com>
100726
100727         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
100728         This adds a test for a recently added compatibility fix for mktime.c.
100729         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
100730
100731 1998-09-27  Jim Meyering  <meyering@ascend.com>
100732
100733         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
100734
100735         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
100736         ../configure.in, including a change from Gordon Matzigkeit to allow
100737         cross-compiling for the Hurd.
100738
100739         * m4/glibc.m4: New file/macro to test for the GNU C Library
100740         versions 1 and 2.  From Gordon Matzigkeit.
100741         Indent.
100742
100743 1998-09-21  Jim Meyering  <meyering@ascend.com>
100744
100745         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
100746
100747 1998-08-18  Paul Eggert  <eggert@twinsun.com>
100748
100749         Port nanosecond-resolution times to UnixWare 2.1.2 and
100750         pedantic Solaris 2.6.
100751
100752         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
100753         AC_STRUCT_ST_MTIM.
100754         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
100755         Generate name of ns member, instead of just 1 or undef.
100756         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
100757
100758 1998-08-15  Jim Meyering  <meyering@ascend.com>
100759
100760         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
100761         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
100762         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
100763         instead of jm_TYPE_SSIZE_T.
100764
100765 1998-08-12  Jim Meyering  <meyering@ascend.com>
100766
100767         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
100768
100769 1998-08-02  Jim Meyering  <meyering@ascend.com>
100770
100771         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
100772         in acconfig.h manually.
100773
100774 1998-07-31  Paul Eggert  <eggert@twinsun.com>
100775
100776         * m4/st_mtim.m4: New file.
100777
100778 1998-07-28  Jim Meyering  <meyering@ascend.com>
100779
100780         * m4/utimes.m4: Undef stat.
100781
100782 1998-07-25  Jim Meyering  <meyering@ascend.com>
100783
100784         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
100785         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
100786
100787 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
100788
100789         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
100790         uid and gid actually remain unchanged.
100791
100792 1998-07-07  Jim Meyering  <meyering@ascend.com>
100793
100794         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
100795
100796 1998-07-04  Jim Meyering  <meyering@ascend.com>
100797
100798         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
100799         to prove that this macro can be used in packages without regex.c.
100800
100801 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
100802
100803         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
100804         is to be used.
100805
100806 1998-07-03  Jim Meyering  <meyering@ascend.com>
100807
100808         * m4/gettext.m4: Add -lintl if it's found to be necessary.
100809
100810         * m4/gettext.m4: New file -- from gettext-0.10.35.
100811         * m4/lcmessage.m4: Likewise.
100812         * m4/progtest.m4: Likewise.
100813
100814         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
100815         * m4/jm-macros.m4: Require the new macro.
100816
100817 1998-06-29  Jim Meyering  <meyering@ascend.com>
100818
100819         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
100820         for the definition of NGROUPS (used in a system header included
100821         by sys/mount.h).
100822
100823 1998-06-28  Jim Meyering  <meyering@ascend.com>
100824
100825         * m4/ls-mntd-fs.m4: New file.
100826         * m4/fstypename.m4: New file.
100827
100828         * m4/jm-macros.m4: Require the new macro.
100829         * m4/jm-glibc-io.m4: New file.
100830
100831 1998-05-19  Jim Meyering  <meyering@ascend.com>
100832
100833         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
100834         * m4/lchown.m4: New file.
100835
100836         * m4/Makefile.am.in: New file.
100837         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
100838
100839 1998-05-14  Jim Meyering  <meyering@ascend.com>
100840
100841         * m4/Makefile.am (EXTRA_DIST): Add them.
100842         * m4/jm-macros.m4: New file.
100843         * m4/utimbuf.m4: New file.
100844
100845 1998-05-12  Jim Meyering  <meyering@ascend.com>
100846
100847         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
100848
100849 1998-05-11  Jim Meyering  <meyering@ascend.com>
100850
100851         * m4/isc-posix.m4: New file.
100852
100853 1998-05-10  Jim Meyering  <meyering@ascend.com>
100854
100855         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
100856
100857 1998-05-09  Jim Meyering  <meyering@ascend.com>
100858
100859         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
100860         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
100861         with automake.
100862
100863         * m4/ssize_t.m4: New file.
100864         * m4/mktime.m4: Remove file -- the new automake has this now.
100865
100866 1998-04-26  Jim Meyering  <meyering@ascend.com>
100867
100868         * m4/assert.m4: New file.
100869         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
100870
100871 1998-04-05  Jim Meyering  <meyering@ascend.com>
100872
100873         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
100874         (jm_PREREQ): Use it here.
100875
100876 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
100877
100878         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
100879         in acconfig.h.
100880
100881 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
100882
100883         * m4/prereq.m4: New file.
100884         * m4/error.m4: New file.
100885         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
100886
100887 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
100888
100889         * m4/getline.m4: Don't set am_cv_func_working_getline before the
100890         cache-check for the same variable -- that defeated the purpose of
100891         the test; the test program was never run.  This was a problem only
100892         on systems with losing getline functions -- HP-UX 10.20 is one.
100893         Reported by Bjorn Helgaas.
100894
100895 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
100896
100897         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
100898
100899 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
100900
100901         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
100902
100903         * m4/const.m4: New file.  Use an initializer in this declaration
100904         typedef int charset[2]; const charset x;
100905         Reported by Bob Glickstein.
100906
100907 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
100908
100909         * m4/chown.m4: Fix reversed types on -1 args to chown.
100910         From Kaveh Ghazi.
100911
100912 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
100913
100914         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
100915         Add lseek and memchr.
100916
100917         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
100918         T.E.Dickey <dickey@clark.net> said that some older preprocessors
100919         have a 20-character limit on names.
100920
100921 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
100922
100923         * m4/inttypes_h.m4: New file.
100924         * m4/uintmax_t.m4: New file.
100925         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
100926
100927
100928         -----
100929
100930         Local Variables:
100931         coding: utf-8
100932         End:
100933
100934         Copyright (C) 1997-2013 Free Software Foundation, Inc.
100935
100936         Copying and distribution of this file, with or without
100937         modification, are permitted provided the copyright notice
100938         and this notice are preserved.